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.

UART to BLE BRIDGE in cc2650

Other Parts Discussed in Thread: CC2650, BLE-STACK, CC2650STK

Hi all,

I am tring with UART with BLE bridge with cc2650 sensor wih dev pack,first I flashed SPPBLESERVERSTACKand then SPPBLE SERVER code and I open the hercules from my pc and  master control panel from mobile and send the data like hi and etc..,  from mobile but it is not showing in hercules.I have not changed any code.Please help me to get output and any changes shold I make and any references examples.

Thanks & Regards

Prudhvi.

  • Hello Prudhvi,

    Please see the BLE wiki for the support page on the UART BLE Bridge TI Design. I suggest getting it working using the published example as I'm not able to ascertain the specific variables impacting your setup. If you are using a mobile, you'll need to implement the SPPBLE profile as documented on the TI Design page.

    Best wishes
  • Thanks for reply
    Is there any reference code for the UART that is intergrating with sensor tag
  • The UART BLE Bridge TI Design has a sample implementation for the CC2650STK SensorTag hardware. The UART drivers are included in this reference as well as the BLE-Stack SDK.

    Best wishes
  • hi all,

    Now I am able to connect uart to ble bridge ,my question when I am sending data from hercules to mobile through it is able to show in mobile as well as terminal now when I am sending from mobile to hercules it is not showing anything.please help I was stuck from 2 days.

    Thanks & Regards

    prudhvi
  • Hi Prudhvi,

    What is 'hercules' in this context? Are you able to set & capture a breakpoint in the SPPBLE's write attribute callback function? Did you take a BLE air sniffer trace to confirm the Client is writing data? I would start in the Attr's callback fxn, then trace the data to the UART using the debugger.

    Best wishes
  • Thanks,

    Hercules is Hyper terminal for the serial communication,I have not checked with break points but when I connected with UART boar to sensor dev pack and I have opened master control panel in mobile and connected with it and tried to send data from mobile it is not showing anything in uart teminal and from terminal I tried to send it is successfully recieving the data in mobile,my question is can we send from mobile to terminal and if it is possible where should I do modification please help me.

    Regards

    Prudhvi
  • Hi Prudhvi,

    From your description there are many variables, so I can't narrow down where the problem could be in your setup. However, I do suggest the following methodology:

    1. Use the published examples in the TI Design to get the system working. I.e., don't use a mobile phone.
    2. Once you have it working, take a sniffer trace of the read/write transactions. Use this as a reference datum for a known good example.
    3. Implement your system and take a sniffer trace, and if needed, a logic capture of the UART then compare to the reference.
    4. Once you confirmed the BLE transactions are correct, you can use the debugger to trace the data from the BLE stack to to the UART. Again use the known good reference as a starting point.

    This approach has worked for me countless times, and I'm sure it will work for you. Thankfully, TI has provided a working example, so that should help you trace down the problem in your setup.

    Best wishes
  • Thanks for reply,

    Now I got the output,I have another question can we merge the uart to ble bridge code in sensor tag or vice versa my task is that I have to print the sensors data in Uart terminal,I am tring but it is showing lot of errors please give me any suggestions to merge and if any reference.

    Regards ,
    Prudhvi