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.

LAUNCHXL-CC2640R2: Not able to connect over BLE to a modified Project_Zero with one smartphone (but works with others)

Part Number: LAUNCHXL-CC2640R2


Hi all,

I'm dealing with a project that's based on Project Zero example, taken from SDK 2_30_00_28. In addition to the BLE stack implemented by Project Zero, there's an additional application that generates a periodic task and runs an ADC.

The problem is that I'm not able to connect to the board with my smartphone (OnePlus 3T), but with others I can (I tried with a Honor 8 and an old Samsumg Galaxy S3). 

I have also been told from the person that gave me this project, that it runs and connects fine to his smartphone.

I thought that since it's an older version of Project Zero, that it was incompatible with my device, but I tried to comment out the initialization of the additional application in main.c (thus leaving only project zero running) and it connects fine to my smartphone.

Connecting with PuTTY it gives me this Log:

#000027 [ 1.923 ] INFO: (project_zero.c:1507) (CB) GAP State change: 6, Sending msg to app.
#000028 [ 1.923 ] INFO: (project_zero.c:952) Connected. Peer address: 0x6F58862C1099
#000029 [ 2.216 ] INFO: (project_zero.c:1294) HCI Command Complete Event received
#000030 [ 7.196 ] ERROR: (project_zero.c:1347) Flow control violated. Opcode of offending ATT msg: 0x10
#000031 [ 17.202 ] INFO: (project_zero.c:1507) (CB) GAP State change: 4, Sending msg to app.
#000032 [ 17.203 ] INFO: (project_zero.c:1507) (CB) GAP State change: 2, Sending msg to app.
#000033 [ 17.203 ] INFO: (project_zero.c:961) Disconnected / Idle
#000034 [ 17.203 ] INFO: (project_zero.c:942) Advertising

I found this thread which presents the same log: https://e2e.ti.com/support/wireless-connectivity/bluetooth/f/538/t/597549?RTOS-CC2640R2F-Connecting-issue-after-porting-project-with-cc2650-to-cc2640r2f

I tried cleaning the stack library before building, as one person suggested, and also added the USE_LL_CONN_PARAM_UPDATE part taken from the Simple Peripheral project, as another suggested.

This gave no positive results.

Any suggestions? Thanks.

  • Hello Giacomo,

    What kind of app do you use to connect with?

    Does the phone work with Project Zero from the latest SDK?

    Have you tried to get a sniffer trace of the connection?

  • Thank you for your reply.

    The app that I use to connect is BLE Scanner, as reported in many examples found in TI Resource Explorer.

    I manage to connect with my phone to the newest version of Project Zero (SDK 4.10.00.10). I also manage to connect to this customized version, only if I initialize only the BLE stack part of it, and not the additional part.

    I'm sorry but I don't know what a sniffer trace is. Can you explain me how shall I get it?

  • Hi Giacomo,

    You can use a CC13x2 or CC26x2 LaunchPad as a packet sniffer. Essentially it will capture BLE packets going over the air. The process is decribed here:

    The reason we need this sniffer log is to see whether it's the CC2640R2 or the phone that sends an invalid packet.