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 Bluetooth® low energy (BLE) Bridge Design Guide

Other Parts Discussed in Thread: CC2640, SYSBIOS

I read "UART to Bluetooth® low energy (BLE) Bridge Design Guide" and here's what i think and my questions:

I think using this application I would be able to connect any device on the UART port of the SensorTAG2 and can use the Serial Port Service(SPS)(With any device(mobile phone) with BLE support) to access the UART. 

Our requirement:
We have a device which sends sensor data on UART continuously we need to send this data to mobile app for further processing.

Now Questions:
1. Why would I need RS232 devpack to use UART on sensortag2(confusing)??
2. I can't find SPPBLEServer apllication in BLEstackV2. I checked in C:\ti\simplelink\ble_cc26xx_2_00_00_42893\Projects\ble. Where can i find it?
3. when i get this UART service working then i will need to add this service along with others on the Sensortag2 application for which i think this guide "Tutorial: How to Create a Custom Bluetooth Smart Embedded Application with the CC2650DK" will help. Am i correct?

Please suggest any other available source to add services alongside Serial Port Service.

  • Found SPPBLEServer application working on it..
  • Hello,

    For others benefit, the TI Design can be found here: www.ti.com/.../TIDC-SPPBLE-SW-RD
    SW and design guide are included.

    Best wishes
  • I don't know why but the file downloaded was not in .zip format, in fact I didn't have any extension and I had to add .zip to open it.
    I think I have got the Gatt notification for receive on the UART, but tomorrow I am going to test the data to be sure.
  • Unfortunately, we've found that on some browsers the .zip extension is not added. Renaming it to zip is the correct workaround.

    Best wishes
  • I can't figure out what is this. Why are there different number of bits received. And this is not the data i Sent. I have soldered pins(for UART RX and GND) on cc debugger devpack which connects through skin connector to the sensortag2, and sending data using MSP430g2. Also I need to press over the skin connector only then I recieve this data. I am using BLE monitor App on android 5.0

  • Anyone?? Help me cause i am really stuck here for almost 3 days. I need to know what's going wrong and what is this data that I am getting? Can i use use the Rx Tx pins as shown in photo?

  • Hello,

    The provided SW in the UART/BLE Bridge can be adapted to work on any physical interface that can electrically interface to the UART port of the CC26xx following the UART protocol documented in the TRM. The DevPack Debugger and CC2650DK are two examples of how to interface to UART. However, there are too many variables for me to understand what your problem may be in your setup. Are you able to replicate the example in the Design Guide using two SensorTags? Have you taken logic analyzer traces to monitor the incoming data? I suggest starting with the example, then using BTool as the Central until you understand what is going on before switching to a mobile phone. Also, using the debugger to step through the code would be helpful in understanding where the problem may exist in your setup.

    Best wishes
  • I think I am providing correct data on UART as I have tested the data with msp430. And I am not able to debug the program using IAR because it has some problem with STACK .o object file. I will try again and let you know.
  • IAR shows the following error and fails to debug:

    Fri Jul 17, 2015 11:18:08: Failed to load extra image: C:\ti\simplelink\ble_cc26xx_2_00_00_42893\Projects\ble\SPPBLEServer\

    CC26xx\IAR\Application\CC2640\..\..\Stack\CC2640\FlashROM\Exe\SPPBLEStackFlashROM.out

    On CCS after bios_start():

    No source available for "ti_sysbios_hal_Hwi_HwiProxy_Object__delete__S__mangled__() at C:/ti\simplelink\ble_cc26xx_2_00_00_42893\Projects\ble\SPPBLEServer\CC26xx\CCS\SPPBLEServer\FlashROM\SPPBLEServer.out:{3} 0x1001bbd6{4}"

  • IAR shows the following error and fails to debug:

    Fri Jul 17, 2015 11:18:08: Failed to load extra image: C:\ti\simplelink\ble_cc26xx_2_00_00_42893\Projects\ble\SPPBLEServer\

    CC26xx\IAR\Application\CC2640\..\..\Stack\CC2640\FlashROM\Exe\SPPBLEStackFlashROM.out

    On CCS after bios_start():

    No source available for "ti_sysbios_hal_Hwi_HwiProxy_Object__delete__S__mangled__() at C:/ti\simplelink\ble_cc26xx_2_00_00_42893\Projects\ble\SPPBLEServer\CC26xx\CCS\SPPBLEServer\FlashROM\SPPBLEServer.out:{3} 0x1001bbd6{4}"
  • To answer your question about using those UART TX and RX pins .... No you cannot use them to hook up to your external MSP430 UART

    Reason is the microcontroller on the same Debugger DevPack is also using those 2 UART pins, hence you will get electrical contention,

    One possible workaround is to force that microcontroller's reset pin to be asserted. This might work, but you'll need to reference the Debugger DevPack schematic to find that reset signal.

    Also note that there is a pinout mistake on that 2x10 header where you are wiring to the UART Tx and Rx. They are swapped ...  Hence DP4 is in DP5's position, and vice versa.

    For futher background, see http://e2e.ti.com/support/wireless_connectivity/f/538/p/441616/1591103#1591103 

  • Where could i find the example program?