I would like to send my heart rate measured by SmartWatch to Android mobile. And I want to send that heart rate information to someone else's cell phone. (For example, when a grandfather who wears a wearable suddenly falls down, I want the information to go to his guardian.)
①Smart Watch → ②My Cell Phone → ③(only when it is dangerous) Protector's cell phone
In my country, however, there was only one book published in 2014 on smart watch development, and no way to transmit heart rate information to mobile. related information were available on the Tizen and Stack Overflowhomepage, but I do not know how to develop it.
rink (1) Get data from Smartwatch Android Wear to Smartphone
rink (2) How to get raw data(Heart Rate etc) from samsung gear s3 in Android
rink (4) Heart rate sensor API for Android
On the Android Developers home page, there was data transmission. Can I use this to transfer my heart rate information to mobile? https://developer.android.com/training/wearables/data-layer/assets.html
I am new to Android studio development and wearable development, and I do not know how to make it. I would like to ask if there is any tutorial related to SmartWatch heart rate transmission.
I have been looking at the Github source once, but I'm not sure it is right to do this. https://github.com/dirkvranckaert/HeartRateMonitor
[#1] Smart Watch
To fetch heart rate data from sensor you have to develop a Tizen UI/service application. In that Tizen application, you have fetch data using Sensor/Human Activity Monitor API. You can chose either Tizen Native API for Native app (C/C++) or Tizen Web API for Web app (HTML/CSS/JS).
Guides:
Web API
Human activity monitor API References
or Native API
Or If you move to Android wear than check out the Android Developers.
[#2] Smart Watch to My Cell Phone
For connection and data transfer between mobile android device and Samsung Gear device , Accessory Protocol is defined. So, the option available here is using Accessory SDK for Android mobile and Tizen wearable.
You may check my response on similar issue on this post, the difference is just 'step count' instead 'heart rate'
How to integrate Samsung Gear Steps in android Application?
[#3] My Cell Phone to Protectors Cell Phone
You may check this post on SO:
Android - communicating between two devices
Obviously bluetooth won't be a solution for this case, you may check the documentations on Web socket on the post above. You may think of HTTP request-response also.