⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
7 posts / 0 new
Last post
johndefalco
Offline
Last seen:3年5个月前
加入:2017-04-17 15:16
Heart Rate Data Rate

The heart rate sensor on the 14681 Wearable Kit is currently sending out change notifications every 60 seconds, but I would like to change it to something faster.

Looking at the java code for both the Wearables App and IoT Sensor App for Android, I can't find a way to set the Heart Rate Data Rate as mentioned in the Health Toolbox (Page 109 of UM-B-076 document) ht_hr_config_t and values such as HT_HR_DATA_RATE_1_PER_15SEC_HZ, HT_HR_DATA_RATE_1_PER_1SEC_HZ, etc. The HCS and DWS service list nothing like those parameters, and the code doesn't mention any interval settings.

Are there any java code examples that can show me how to do this?

Thanks!

Device:
Device Number:
14681
MT_dialog
Offline
Last seen:3 months 4 days ago
Staff
加入:2015-06-08 11:34
Hi johndefalco,

Hi johndefalco,

There is no option to change the intervals that the heart rate will notify you from the phone application (the values that you are checking in the document are applied in the fw side and not via the phone application), currently you can only change that via changing the fw itself. In order to do that you will have to change the DEFAULT_HR_RATE to the value that you would like, but this will fill up your flash with hr data.

Thanks MT_dialog

johndefalco
Offline
Last seen:3年5个月前
加入:2017-04-17 15:16
Sorry for being completely

Sorry for being completely new and only a software guy...where and how would I update this DEFAULT_HR_RATE? I've installed SmartSnippets Toolbox and connected the wearable development board and 14681 sensor/wristband to the board via JTAG. What's next? Thanks!

MT_dialog
Offline
Last seen:3 months 4 days ago
Staff
加入:2015-06-08 11:34
Hi johndefalco,

Hi johndefalco,

Go to the wrbl_ht_ctrl.c file and you can find there the DEFAULT_HR_RATE definition having a default value which the heart rate algoritm is operating with, if you change that to HT_HR_DATA_RATE_1_PER_1SEC_HZ for example you will get notifications every one second in your phone application in the SIG Heart Rate profile (as long you have enabled the notifications from the central), but as i ve mentioned this will fill up the flash with data.

Thanks MT_dialog

johndefalco
Offline
Last seen:3年5个月前
加入:2017-04-17 15:16
Which software download

Which software download contains the wrbl_ht_ctrl.c file? I've checked DA1468x_SDK_BTLE_v_1.0.8.1050.1 and other links in the 1468x software downloads and can't seem to find it there.

johndefalco
Offline
Last seen:3年5个月前
加入:2017-04-17 15:16
Ah I found it in the wearable

Ah I found it in the wearable dev kit section!

MT_dialog
Offline
Last seen:3 months 4 days ago
Staff
加入:2015-06-08 11:34
Hi johndefalco,

Hi johndefalco,

Yes, the werable reference design is a seperate design, not included in the SDK you will have to download the Wearable firmware from the reference designs section on the support portal.

Thanks MT_dialog