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.

BLE communication between cc256x with tiva c series TM4C123G and android phone

I am trying to develop an android/ios app which can chat with the cc256x controlled by TM4C123G. 

1. SPPLEDemo seems to use the BLE capability of the cc256x. Is my assumption right? If so, I would like to find the "SPPLE Chat" - an iOS app mentioned in the TI documentation. I could not find this application on the app store.

2. Is there any readily available android/iOS app + cc256x demo application which I can try out. I am looking for something like the SPPdemo -- which lets the android app-Blueterm to communicate with the classic Bluetooth in the cc256x (but I would like to use the BLE capability of the cc256x).

I tried the following and made the following observations:

>>>>>> I flashed my TI+cc256x board with the SPPLE Demo.

>>>>>> I am able to successfully pair my android phone (going to Settings and entering pairing code) with the TI module, by sending a series of instructions through terminal/COM port/serial communication 

>>>>>>However, when I try to connect any BLE app in my android phone to the TI module >> the app returns a "not able to connect message" >> however, the terminal window returns

"atLinkKeyRequest: 0x88c9d05038cd

GAP_Authentication_Response success."

I am not sure how to interpret this information. FYI: All the BLE apps in my android phone successfully connect to another BLE module(not a TI module) I have. However, when I try to pair my phone to this module through Settings, I fail.

Any help is greatly appreciated. Thanks!

  • Hi,

    The SPPLE Transfer app is not available in the app store. I don’t know exactly what happened but it might have expired or removed by the developer.

    But could you try the LightBlue App, some functionality should work. I am simultaneously checking this internally, I will get back to you on this.

    NOTE : SPPLE is not a standard Bluetooth Profile. You will have to make sure the android app can use the custom UUIDs that are needed to communicate and read and write to the app.
  • Hello,

    Thank you!

    Updates:    **Lightblue app works (scans, connects and gets Characteristics info from the TI BLE peripheral).

    **I was trying to perform the same actions using Nexus5. On debugging the peripheral, I found out that the "GAP_LE_Event_Callback" from the "GAP_LE_Advertising_Enable"  function which needs to be called when a Central device (Nexus5 in my case) initiates a connect request to the peripheral, was not being called.

    **Trying with a different android phone, I was able to scan, connect and read Characteristics from readily available BLE apps in the Play Store.

    Questions: In the SPPLEDemo app, I am listing down my understanding. Please correct me if I am wrong

    **This app enables both the BR/EDR and the LE capability of the cc256x module.

    **Based on which mode I am trying to connect to. Ex: if I use "advertiseLE" instead of "inquiry" (the commands from the TerminalWindow accessing the Bluetooth stack of the peripheral), would I just use the LE capabilities of the peripheral ? Am I running my device in the Low Power Mode?  

    **Lets say I use the HRPDemo app. In this case, if I write an android app which can send/receive data from the peripheral, am I just using the LE mode of the peripheral? Is my device running in Low Power Mode?

    Thanks!

  • Hi,

    **This app enables both the BR/EDR and the LE capability of the cc256x module.
    [Answer] - yes

    **Based on which mode I am trying to connect to. Ex: if I use "advertiseLE" instead of "inquiry" (the commands from the TerminalWindow accessing the Bluetooth stack of the peripheral), would I just use the LE capabilities of the peripheral ? Am I running my device in the Low Power Mode?
    [Answer] - yes, , and If you are referring to the CC256x, yes the device will enter sleep mode when ever there is no activity (inactivity for 100ms)

    **Lets say I use the HRPDemo app. In this case, if I write an android app which can send/receive data from the peripheral, am I just using the LE mode of the peripheral? Is my device running in Low Power Mode?
    [Answer] - yes, same as above
  • Thank you Sundeep!