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.

cc2541 disconnects immediately after connection

Other Parts Discussed in Thread: CC2540

Hello,

In my central code i have kept following connection parameters

Min connection interval = 100 ms 

Max. connection interval = 100 ms 

slave latency = 0

supervision timeout = 3 second

sometimes my central devices disconnects immediately after connecting to peripheral device.

I checked the error for disconnection and it is "LL_STATUS_ERROR_CONNECTION_TIMEOUT" 

Peripheral's default connection are also 100 ms so what can be the reason for disconnection ?

Any help would be highly appreciated.

Thanks,

Smitesh mali

  • The error coming on disconnection is "LL_STATUS_ERROR_CONN_FAILED_TO_BE_ESTABLISHED(0x3E)"

    mostly. one more interesting thing i have observed. I had kept  DEFAULT_LINK_HIGH_DUTY_CYCLE macro TRUE earlier. Now  i have changed it to FALSE. After this change , i observed following thing.

    1) Earlier both central and peripheral were receiving "connection event" and then immediate disconnection used to happen. but now only central gets "connection event" and peripheral doesn't get "connection event" when immediate disconnection occurs  

    Regards,

    Smitesh mali

  • Hi, Smitesh!

    I am having the same problem a very long time and I tried of all to solve it, with no success!
    I think... my problem is I am using a hardware of CSR(Securyti Tag) and TI CC2540( inside my own PCB board than I did) and the two do not communicate easily.
    The scan_resp rarely is sent from slave (CSR)...GAP_DEVICE_INFO_EVENT occurs whenever and the device address I can get but the complete scan_resp I just can not receive.
    I am using the SimpleBLECentral project as a base. If not receive the scan_resp event, I can connect I know.... but when the scan_resp event comes and I try to connect, the problem as yours accurs too.... disconnet immediately after the connection with the same LL_STATUS_ERROR_CONN_FAILED_TO_BE_ESTABLISHED (0x3E).

    Detail, when I use the same equipment (Securyti Tag) with the CC2540 Texas inside, everything works 100%. I have a development board by CSR and I load it with the "Securyti tag" code, I do this what I described above, wiht the Securyti Tag than I bought at the market I just can not get the scan_resp never!

  • Hello everyone , I managed to solve my problem . Now is connecting cool.
    I used my kit Keyfob with the SimpleBLECentral code than I downloaded from link below :

    http://processors.wiki.ti.com/index.php/SimpleBLECentral_Keyfob

    I made some changes in the code to the best signal leds tested and ready stood Tag CSR , and to my surprise , found and connected ok ! So BLE Texas Instruments really connects with any Bluetooth device , including the CSR .

    I went back to my board and using StudioRF I could analyze the functioning and conditions of radio and antenna on my hardware. Everything was ok !
    Still , I could not make my hardware connect with the Tag CSR .

    After many attempts and changes in my hardware in a moment of madness I went back to the data sheet and I saw that the capacitors in the 32MHz crystal had a value much smaller than what I wore ... I set up another board and to my surprise it worked . But I still did not know what had happened to pass to work.

    I took one of my previous hardware and changed only the capacitors Crystal 27pF to 15pF and ready .... worked!

    There is the photo of the perp:

     7

    B.R.

    Odair Carlos