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.

CC2540 error message 0x3E

Other Parts Discussed in Thread: CC2540

Hi, 

I encountered a situation, CC2540 BLE chip set, that the USB dongle report and error message 0x3E while trying to unpair with the already paired remote. 

According to the BLE document Core_V4.0. 0x3E represent the connection failed to be established error code indicates that the “LL initiated a connection but connection has failed to be established”. What are the possible root cause that could lead to this error? Do you think this would have to do connectivity issue? I am suspecting it maybe the link layer is the trying to initiate connection, but the physical layer failed to establish communication with the peripheral device. What is the proper way to handle this situation? 

Thanks,

Nelson

  • This error occurs if the central device sends a connection request and it does not here any response back from the peripheral within the first six connection events. You are most likely seeing this because the advanced remote, after pairing/bonding with a central device, will put the central device's address on it's whitelist. If a peripheral advertises with the filter policy set to GAP_FILTER_POLICY_WHITE, then it will not accept connection requests from central device's that don't match the address of the bonded device.

    You can erase all bonds and clear the whitelist on the remote by pressing the red button on the remote. If you want to disable this whitelist synching functionality altogether, you can rebuild the HidAdvRemote with the following modification: in the function HidDev_Init (found in the file hiddev.c under the "PROFILES" group in the project), and change the value of the variable syncWL from TRUE to FALSE.

  • Hi Willis,

    Thank you very much for answering my question. I have another question about this USB Dongle-like code. If we want to perform software unit testing on the firmware that is very similar to the USB Dongle code, what will be the best approach? We consulted with our external software test company, but didn't have much luck finding one that support CC2540 BLE platform.

    Thanks,

    Nelson