Dear fellow engineers,
I have the TI BLE heartrate sample application keyfob .hex file loaded and am trying to use BTool to read heart rate measurement data from the USB Dongle. The devices discover and link fine but I am not receiving the heart rate measurement bursts.
Aside from discovery/establishing a link, what GATT commands must be sent to the keyfob for it to begin transmitting the simulated heart rate data? Reading of 0x2A37 UUID was not permitted.
Thanks,
Fatih
Update: It seems to be a matter of setting HEARTRATE_MEAS_NOTI_ENABLED. Any suggestions?
Hi Faith,
You have to enable notifications for that particular characteristic value which is easily done by writing 01:00 to handle 0x0012. After that you should get notifications once a second.
Br
Hi Nick,
Thank you for the aswer given before it was a lot of help for me. Could you please tell me in which file of the project is this handle defined for? I have been looking for it and I cant find this value. How can I know which characteristic it is?
Thanks in advance
Hi,
Handles are not defined, those are enumerated upon the initiation of the device, based on the services that are added. The handle can be found by doing a service discovery. If you want to try it out in BTool, use "Discover characteristic by UUID". The UUID for the characteristic is found in the heartrateservice.h.
In general, the UUIDs tells you what type of characteristics you should expect. That's why there are profile specifications defined by Bluetooth SIG.
Thank you for your asnwer. I think I finally understood the concept. I will analyse the example and the specifiication defined by Bluetooth SIG better.
Thank you for your time,
João Bastos
I also tried the heartrate sample app on my CC2540 DK Mini keyfob. I could pair it with the dongle but when I try to enable notifications by writing 01:00 to handle 0x0012, BTool comes up with "invalid parameter."
Can anyone help me on this?
Br,
Luis
how did you guys get the .hex file of the heart rate applications?
i am not able to compile them using IAR workbench
Hi Alya,
Try C:\Texas Instruments\BLE-CC254x-1.2\Projects\ble\HeartRate\CC2540DB\CC2540DK-MINI Keyfob Slave\Exe\heartrate.hex
BR,
thanks for ur reply
but the EXE folder is empty !
i only have hex files in this folder C:\Texas Instruments\BLE-CC254x-1.2\Accessories\HexFiles
Hi luis ,
"Invalid parameter " usualy will appear if there is a connection loss or your "link establishment" is not successful .
Thanks for the reply. I found out that I had to write 01:00 to handle 0x0013 (instead of 0x0012) to enable notifications.
hi Nick, I have a question about the bluetooth4.0 chip CC2540.when i use the CC2540DK-MINI Keyfob with the firmware heartrate.hex and connect it to Atomax BLE or BlueFire EKG on iPhone 4s, the heart rate can be display correctly, but the battery level is always 0%. what's the problem? thanks very much!
jeson luo hi Nick, I have a question about the bluetooth4.0 chip CC2540.when i use the CC2540DK-MINI Keyfob with the firmware heartrate.hex and connect it to Atomax BLE or BlueFire EKG on iPhone 4s, the heart rate can be display correctly, but the battery level is always 0%. what's the problem? thanks very much!
The issue lies with the updated BLE 1.2 stack and the apps you are using. When TI updated their BLE stack to 1.2, they removed the proprietary battery spec and replaced it with the adopted BLE profile. This means the UUIDs were updated to their new location on the keyfob (firmware) side. The apps you are using are still pointing to the old UUIDs, I am guessing, and since the apps have not been updated since January (the stack was released in late February), the Battery profile is not pointing to a valid location and not working.
Hi Misael, thanks for you reply. Maybe you are right! do you know which app on iphone 4s can work with the latest BLE 1.2 stack? even not free chage, thanks!
Check out this thread. You might find an app that has the updated/adopted BLE profiles that will work with the TI 1.2 stack.
http://e2e.ti.com/support/low_power_rf/f/538/t/201119.aspx
hi Misael
thanks very much! maybe i was unfortunate, i didn't find a softtool for the latest TI 1.2 stack even not free. we conbined the bluetooth chip into FINIS AquaPulse but the battery level not working.