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.

CCS/CC2640: Read BLE GATT service characteristic value on my laptop

Part Number: CC2640
Other Parts Discussed in Thread: TMP112, CC2650, CC2540,

Tool/software: Code Composer Studio

Hello,

I have a CC2650 LP board and a TMP112 sensor. I  build a custom service on sending temperature. Is there an example or solution on reading BLE GATT service characteristic value on the laptop rather than using a cellphone app like BLE scanner? 

I saw this link: e2e.ti.com/.../446282

It seems that people has done some project using CC2540 USB dongle as a scanner and read sensortag characteristic value. Is it necessary to use the dongle if I would like to read GATT characteristic value on laptop?

Thanks,

Jianlin

  • Hi Jianlin,

    If you want to connect to the device and read from it that way, you would need to use another device running Host Test.

    If you simply want to read the value of the characteristic, you could output the characteristic value over UART. Project Zero in SimpleLink Academy shows an example of this. Look at the Log_info statements in the user_DataService_ValueChangeHandler functions for some inspiration.
  • Hello Rachel,

    I would like to build a GATT client on my laptop which allows me to read GATT service characteristic value from a CC2640 device (whcih works as a GATT server). Is there a way to build a GATT client on CC2650 Launchpad or using other TI developing board?

    Thanks,
    Jianlin
  • Hi Jianlin,

    If you want to connect to your device, the easiest way would be to use another CC26xx device running the Host Test example project. Then you could use BTool to connect to the device with the temperature sensor. The BTool User's Guide can be found here: BTool User's Guide

  • Hello Rachel,

    Thanks a lot for your suggestion! That's very helpful. However, in BTool, I have to manually click the button to record the characteristic value. Is there a way to let BTool record characteristic value continuously(for instance: every 1min)? If no, is there a way to do that?

    Thanks,
    Jianlin
  • Hi Jianlin,

    I suggest you look at Custom Profile lab in SimpleLink Academy. Task 6 uses a timer to send notifications about the value of a characteristic. If you enable notifications to send information periodically, BTool will keep a record of the value in the log.