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/CC2650DK: Server to client(android application) is not working

Part Number: CC2650DK
Other Parts Discussed in Thread: CC2650

Tool/software: Code Composer Studio

Hi,

I developed an android app to use the serial port profile to transmit the data between android app and 8051 based development board through CC2650. The 8051 based board accepts the commands received and communicates the response through uart to cc2650 which transfers the data to the android app. CC2650 has SPP_BLESERVER example flashed on it. 8051 is programmed such that when it receives the command '1', onboard LED turns on and when it receives '2' on the UART, it transmits the adc value through uart. 

The connection is as below:

8051 ] ---- uart ----- [ CC2650 DEVELOPMENT KIT ] ------ ble ------ [ANDROID APP]

When 1 is entered in android app, it turns on the 8051 LED but when 2 is entered, it does not receive any response. While debugging, I noticed that the adc response reaches the UART buffers of cc2650. Also, I connected PC HyperTerminal instead of 8051 to verify the read/write and it happens correctly. Data entered in the mobile app is transmitted on to HyperTerminal and the data typed on the HyperTerminal is received on the app.

PC ] ---- uart ----- [ CC2650 DEVELOPMENT KIT ] ------ ble ------ [ANDROID APP]

 

Please let me know if I am missing something.

Thanks & regards,

Ramya

 

  • Hello Ramya,

    Since you receive the expected data on the PC/Hyperterm, the BLE configuration is correct. Did you monitor the UART pins to verify that the 8051 is sending the expected reply?

    Best wishes
  • JXS said:

     Did you monitor the UART pins to verify that the 8051 is sending the expected reply?

    Hi JSX,

    Thanks for the reply. UART pins of 8051 is giving expected value. This can also be observed in the Rx buffer of CC2650. Is there something to suspect with the transfer of special characters like '\r', '\n' as the message from 8051 begins with a new line?

    Regards

  • One more observation, Hope this helps:

    The uart data from hyperterminal is getting loaded into appUARTMsgQueue where SDI takes care of transferring to the BLE profile. But in case of 8051 development board, appUARTMsgQueue is empty.

    PS: I am using SPP_BLEServer project.