This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Heart rate collector. CC2540

Other Parts Discussed in Thread: MIO, CC2540, CC2541, ADS1293, TPS61220, TIDA-00096

Hello.

I have "alpha mio" watch with heart rate function. This device implements BLE and heart rate service. As i understood heart rate service suggests using notification. I have two questions:

1. How receive a notification using simpleBLECentral.

2. Does anyone use heart rate service? My cc2540 found this watch, connect to it, but i can't find hadle.

Br.

  • Hello Denis,

    If the CC2540 can connect to it, then you should be able to connect to it using BTool.  It should have all the UUIDs, services and characteristics of a standard heart rate monitor.  You should then be able to follow the heart rate monitor example in BLE v1.3 projects folder to see what notifications need to be turned on.  The Adv. Command tab in BTool should allow you to discover all the characteristics and write a 1 to it to allow for notifications.

    Thanks,

  • greenja, in BLE 1.3 heart rate monitor implements only heart rate sensor, not collector. And i can't discover characteristic of heart rate collector by uuid.

  • If that is the case then it looks like my suggestion will not work for you.  Sorry.

    You will have to go through the Core Bluetooth profiles and see how it is done, or search the forum and Internet for an example.  Although I don't see why you can't use BTool to turn the notifications on.  I'm not sure of any other example project that would be better suited to modify than the heart rate monitor to accomplish your task.

    Good luck,

  • BTool does not work. It can't find virtual com port.

    >>I'm not sure of any other example project that would be better suited to modify than the heart rate monitor to accomplish your task.

    Example in BLE stack is only example of sensor.

  • This watch implements heart rate service. UUID 0x18OD. It's discoverable by this uuid, but i can't find handle (Att not found 0x01).

    This log is from packet sniffer:

    How do you think, is it possible to read data which watch is sending after connection? (Yellow packet). Or someone have any idea how to get characteristic?

    BR

  • First thing, I recommend you go over the following guide The BLE 2540 Mini Development User's Guide.  www.ti.com/lit/ug/swru270c/swru270c.pdf
    Read the section on using BTool and the correct software that has to be loaded into the USB Dongle. 

    Then read through the TI BLE Sample Applications Guide http://www.ti.com/lit/ug/swru297c/swru297c.pdf.  This contains the details on using a heart rate profile and a glucose collector.
    From the above two documents, you should obtain a thorough understanding of how to interface with the device.
    Thanks,
  • Hello Greenja,
    I am working on this project now. Can you tell me how to call the function on B-tool software when I connect to a heart rate monitor? I have downloaded the IAR embedded, I just do not know the relationship between the IAR and B-tool.
    How can I read the value of heart rate by using the heart rate profile?
    Thank you
  • After you get HeartRate sensor connected to Btool, you can do the following steps to get heart rate report to Btool.

    1. Fill 0x0013 in Characteristic Value Handle of Characteristic Write.

    2. Fill 01:00 in value of Characteristic Write.

    3. Press Write button.

    4. You will see heart rate report to Btool.

  • Hello Yikai,
    Thank you for your replying. If I only have my CC2541 BLE, should I buy the ADS1293 production of TI to get my signal?
    Where did you get this parameters? I cannot find the charateristic on the heartrate.c file.
  • 1. Yes, you have to buy ADS1293 yo get real signal wired to CC2541.
    2. I use BLE device monitor (processors.wiki.ti.com/.../BLE_Device_Monitor_User_Guide) to get these characteristics.
  • 1. When install the BLE device monitor, it shows some problems
    11:13:51.614 > BLE Host: COM4 baud 115200 flowc. none
    11:13:56.621 > No response from BLE host at COM4

    The BLE host means my keyfob or USB dongle?
    My BLE port shows COM4 but I cannot connect it correctly.
    I just follow the step on the User Guide and I cannot find which COM my port locates on.

    2. I just do not know how to past my screenshot.

    3. I just purchased ADS1293 today and it haven't shipped. Is the ADS1293 the Heart rate sensor? I saw the description it looks like a chip. So just by connecting the ADS1293 to the body and CC2541,will it show graph on the BLE device monitor?
  • 1. BLE host means USB dongle in your case. Do you flash HostTest example into your CC2540 USB dongle?

    2. You can click the rich format... Link at the right bottom of edit box. After edit box changes to rich format, you can drag and drop the file.

    3. You have to write driver for ADS1293 by yourself.

  • I am a starter in BLE, so I do not know from which to start. My major is not about communication or software developing, but my instructor asked me to do this project. Please forgive me for having so much questions. Hope that would not bother you too much.
    1. I saw the wireless heart rate monitor reference design guide. Should I also buy TIDA-00096 and TPS61220? I have nothing but CC2541 now. Can I detect heart rate just by using CC2540 and ADS1293?
    The reference said I should download an APP of IOS, then what about Btool software. I thought we could see the heart rate graph on Btool.

    2. Should I use BLE device monitor and Btool to completer my project? or just using Btool is Ok?
    What is BLE device monitor used for?

    3. I am very confused now just do not know where to start at the beginning. If you know, please tell me the steps. If you do not mind, can I FaceTime with you? If you think it is too private, just to ignore my request.

    Thank you very much
  • 1. You suppose can buy ADS1293 and wire it to your CC2540 to make it for heart rate detect. BTool is a PC example shows you how to scan, connect, and receive/send data to BLE device. There is no capability to show heart rate graph on Btool.
    2. BLE device monitor is just another PC example like Btool. Both of them don't provide heart rate graph.
    3. I suggest you to starts some handons to get familiar to CC254x and BLE stack.
  • hi Yikai,
    i try the above mention procedure. when i connect my smartRF06 to com6. it gives foloowing two strings,

    14:54:09.072 > HCI error code not known: FE
    or
    14:57:11.720 > Host: COM6 115200 baud no flowc.
    14:57:16.716 > No response from BLE host at COM6

    what i am doing wrong?
  • Do you flash HostTest into your SmartRF06-CC2650EM?
  • Hi YiKai Chen,

    using the above information i was able to receive the values on BTool figure 1.

    but when i try to implement the same on CCS (Figure2). it is given me the write error 3 and read res : 2.

    why is it giving me the write error in ccs?

    and how i can convert the reive value into actual heart rate value?

    please guide anything will be much appreciated.

    Best Regards

    Usman