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.

CC2640R2F: SPP server example can not be connected by windows 10 or android device

Part Number: CC2640R2F

I'm trying to run SPP server example with simplelink_cc2640r2_sdk_1_50_00_58 SDK. The problem is when I'm trying to connect to the device and enter the password, windows immediately displays "try to reconnect your device" error without any connection delay. When I try to connect with android phone, no error message displayed, just a notification sound is played by the phone without any delay. Is something wrong with this example code?

PS: I have removed the fake Bluetooth address, since device is Sable-x R2 and has its own address.

  • There are no current known issues with the example application. Do you have a sniffer capture of the failed connection?
    Have you done any debugging to see if the LINK_ESTABLISHED event is received by the application?
  • I couldn't manage to use the sniffer application. Actually i am new to all TI environment.

    I've done debugging. Events happen in this order: First, I try to connect from my computer. Then Windows immediately says "try to reconnect your device". After this, within a second, debugger gets to the case GAP_LINK_ESTABLISHED_EVENT and state GAPROLE_CONNECTED.
  • I think the problem is about the application that i want to use. I want to make a connection like standard Serial Port Profile. But this is a custom application so both sides of the connection have to implement it. There is no generic driver for this demo and standard windows or android devices couldn't pair with it. By the way, there is no problem when i connect with applications like LightBlue or BLE Scanner.

    So is there a way that i can use generic SPP? Or can you suggest me a generic GATT profile so i can transmit any data?
  • Hello,

    You are correct that both sides of the BLE Link will have to implement the same flavor of the Serial Port Profile, some applications such as the Adafruit ones, implement the Nordic flavor as opposed to the TI flavor, so technically speaking you have connected to the SPP Server, but are just are not able to interface to the SPP out of the box.

    A couple tips for that, you can still send data via SPP using a standard app like light blue, you just need to send it using the right characteristic UUID, see Section 3 of this document for an explanation of the TI SPP chars:

    www.ti.com/.../tidu997a.pdf

  • Hi,

    This has been tested to work with iOS (LightBlue) and Android (BLE Scanner) devices, but not with Windows. The SPP Server uses custom GATT profile that the central (client) side needs to first discover and write to those custom characteristics as listed in the link of the previous post.

    Best wishes
  • Thanks for the fast and accurate responses. I guess the case is closed but issue is not resolved. So I don't know whether there is a button for this situation:)
  • Thanks for following up let us know if you have any further questions.