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
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
对不起,拜因g 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!
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
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.
Ah I found it in the wearable dev kit section!
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