언어 설정

Menu
Sites
Language
obtain information about the pulse on gear S

Hi. 

Can you help me with my little problem with samsung gear S and tizen?  i have aim and i need get information from the sensor of pulse.
i have installed IDE for wearable and i have thought all work was done, but it is not true. 
i see two way:
1. Get information directly from the sensor using API. 
2. Get information from app S Health using API and Tizen::App::AppManager.
But i don't know API functions, and i can't use it.  
Can you give me some examples with using sensor of pulse? or template with getting info from sensor of pulse. 

 

Sorry for my bad english.

 

Edited by: Александр Яковлев on 20 11월, 2014
답변 바로가기

Responses

5 댓글
Sanjeev BA

Please refer to the following links.

https://developer.tizen.org/dev-guide/2.3.0/org.tizen.mobile.web.appprogramming/html/guide/sys_guide/ham.htm

https://developer.tizen.org/dev-guide/2.3.0/org.tizen.wearable.web.device.apireference/tizen/humanactivitymonitor.html#HumanActivityHRMData

Kindly let me know which version of the Tizen SDK is being used.

 

 

Александр Яковлев

Thanks for the links. it is lift the veil, but for me it is not enough .

i am using latest ver. of SDK for my country.

Tizen SDK

Version : 2.3.0 
Build id : 20141029-1712

Tizen SDK for Wearable

Version : 1.0.0 
Build id : 20140905-2017

 

Александр Яковлев

sorry, can you tell me, how  the HumanActivityHRMData works? What kind of information do I get in the output? this information will be in the form of a Boolean 1 and 0 or it will be the final result obtained automatically? I need a simple application that will continuously take the pulse and store it in a database. is it possible? can give an example of the finished application?

Александр Яковлев

the answer is not found still... Help me

Mark as answer
Sanjeev BA

The following link provides more details.

https://developer.tizen.org/dev-guide/2.3.0/org.tizen.wearable.web.device.apireference/tizen/humanactivitymonitor.html

Here's some sample javascript code.

 function onsuccessCB(hrmInfo) {
     console.log("Heart Rate  : " + hrmInfo.heartRate);
     console.log("Interval : " + hrmInfo.rRInterval);
 }

 function onerrorCB(error) {
     console.log("Error occurs. name:"+error.name + ", message: "+error.message);
 }

 function onchangedCB(hrmdata) {
     console.log("From now on, you will be notified when the HRM data changes.");
     tizen.humanactivitymonitor.getHumanActivityData("HRM", onsuccessCB, onerrorCB);
 }

 tizen.humanactivitymonitor.start("HRM", onchangedCB);

Hope this helps.