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 receive and show 12 bit or 16 bit data in serial monitor if i use cc2640r2 board as a central device.

Part Number: LAUNCHXL-CC2640R2
Could you please help me with this..
I am able to transmit 16 bit data using cc2640r2 as a peripheral device. 
I am using cc2640r2 as a central device. 
I want to receive and show 12 bit data in the serial monitor but default central program showing 8 bit  only..
do you have any example code to receive 16 bit data in central device or guide me how to modify the default central code.
Thanks in advance. 
  • Hi Sai,

    While I don't know of a default example that shows 16 bit data in the serial monitor, if you are able to get 8 bits in the monitor, then I think it should be relatively straightforward to print out 16 bits. Can you please give me some background information on your project.

    1. What SDK are you using

    2. What example are you based off?

    3. Are you able to verify that your central device is receiving 16 bits of data and you're just having trouble printing it to the screen? Or are you not even sure if your central device is receiving all 16 bits at all? You can check this by debugging your code with breakpoints.

    Best,

    Nate

  • I am sorry for delayed reply.

    Actually i am facing two types of problems,

    1. I created custom service to transmit 16 bit data from peripheral device. I have verified that 16 bit data received in android ble app, but not able to receive in cc2640r2 central device. Even not able to find that custom service, because default simple central code designed to receive 1st service uuid and char.

    2. I don't know how to edit the peripheral and central default code to transmit and receive 16 bit data.

    *how to check by debugging the code with breakpoints. please give some examples.

    sdk version: - SimpleLink CC2640R2 SDK (5.30.00.03)

  • Hi Sai,

    sorry for late response. the default 8 bit is determined in UART.h File Reference, support 5,6,7,8 bit change.

    If you want to transmit longer data. You can find 'RingBuf' in UARTCC26X2.h File Reference.

    Best regards