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: connect error code 0x3e

Part Number: CC2640R2F
Other Parts Discussed in Thread: CC2640, , SYSCONFIG

sdk:simplelink_cc2640r2_sdk_5_30_01_11
Problem: When connecting CC2640 with a mobile phone, the connection fails occasionally, reporting error 0x3e  .

How can I troubleshoot this issue? Could you please assist me.

Thank you.

  • Hi !

    Error 0x3E corresponds to "Connection Failed to be Established / Synchronization Timeout" according to the BLE specification.This error happens when the central (the mobile phone in your case) does not hear any response back from the peripheral within the first six connection events.

    Could you please reply with if you using the whitelist functionality ?
    Additionally, does this error happen with a freshly flashed CC2640R2F ?
    Does it happen with all mobile phones or did you only try with one ?

    Kind regards,
    Lea

  • Hi !

    sdk:simplelink_cc2640r2_sdk_5_30_01_11.

    examples:ti\simplelink_cc2640r2_sdk_5_30_01_11\examples\rtos\CC2640R2_LAUNCHXL\ble5stack\simple_peripheral.

    I directly used this example from your sdk and burned it onto your company's development board. I installed the nrf connect app on my phone to connect to the development board. Currently, I have tested and found that the Xiaomi MIX4, vivo S16, and redmi K40 all encountered the 0x3e error when connecting.  When connecting 100 times, the Huawei mate40 did not encounter 0x3e but instead encountered 0x1e. However, the oppo reno13 and Honor V40 did not encounter this issue when connecting 100 times 

  • Hi !

    The 0x3E error may happen from time to time in a noisy wireless environment, like an office building or a crowded space. While there is no way to guarantee that the error will never happen, there are a few ways to reduce its occurrence in a noisy environment. Actions you can take could for example be to : 
    - Use a higher TX power in Sysconfig

    - Increase the advertising interval

    As for the 0x1E error that you are seeing, this error means "Invalid LMP Parameters / Invalid LL Parameters". This means that the connection parameters that your central has sent have been refused by the peripheral. These parameters include things such as the connection interval minimum and maximum, the latency, and timeout period. Every phone may have different default BLE connection parameters, and it's up to the peripheral to either accept or refuse them.

    By default, the decision of accepting or not a param update is done at the app level. I recommend you to change this value to "Accept All" and see if you continue to see the error 0x1E

    Kind regards,
    Lea