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.

LAUNCHXL-CC2640R2: How to read received BLE adc data in Ble_central CC2640R2 From Ble_peripheral CC2640R2?

Part Number: LAUNCHXL-CC2640R2
connections between 2 boards(CC2640R2) are happening, verified using putty serial monitor. I sent measured adc signal using simple_peripheral CC2640r2 , as instructed by this link,
i am getting expected adc data in my mobile ble app correctly.
I am using another cc2460r2 as a central device to receive the adc data sent by a simple peripheral device.
I uploaded ble_simple _central code in another cc2460r2 . connections are happening but while selecting GATT read request using buttons , adc values are not showing 0x01 only showing. 
Do I need to modify the ble_simple central code to read adc value?
  • Hey Sai,

    Can you clarify this statement?

    I uploaded ble_simple _central code in another cc2460r2 . connections are happening but while selecting GATT read request using buttons , adc values are not showing 0x01 only showing. 

    I believe the default simple_central code will read the first characteristic of SimpleProfile. In this case, you are very likely not requesting the ADC data you expect using Simple_Central and modifications will be required. To start, you will need to perform a full service discovery procedure and find all the characteristics of the peripheral you connect to. Then, you must perform the read request to the the exact characteristic where the peripheral stores this data. This process is much easier on a cell phone where most of this is already done for you.

    Hope this helps.

  • Thanks for your valuable reply.

    clarification:

    Can you clarify this statement?

    I have 2 cc2640r2 boards ,one for central and another for peripheral. I uploaded default simple central code in one board and uploaded modified simple peripheral code as instructed by simplelink academy https://dev.ti.com/tirex/explore/node?node=AGYzpC6aIv4x4yC7xDEtdQ__krol.2c__LATEST to read adc siganl.I am able to read measured adc in cellphone ble app but not able to read in CC2640r2 central board.

    yes as you said, i am using default simple_central code.Is there any example simple_central code for my case?

    or please guide me how to do that modification.

    Thanks in Advance!

  • Hey Sai,

    There is an example of service discovery inside one of our Github examples: simple_serial_socket_client. Please refer to the link project for some guidance.

    Additionally, please review our Simplelink Academy module on Custom Profile to familiarize yourself with the GATT table structures.

  • Thank you , i will try and update.