This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Disconnection error code 0x3E

A multiperipheral connection to a central, all with custom nordic devices (nRF52840) has been stablished. Comunication and connection work just fine, but after a synchronization method via BLE was added to the system (broadcast timer transmitted from central to all peripherals)  the initial stage of the connection generates the 0x3E error.

It connects and inmediately disconnects again with this error. If at least one peripheral is connected, and a new peripheral wants to connect again, this error does not appear. Only in the first connection to a peripheral. 

I don't believe this is a HW problem because the error appears when the synchronization method was added! 

Is it possible that some parameter needs to be adjusted on central side?

Thanks in advance for your attention. 

Parents
  • Hi User1321, 

    the 0x3E disconnect error corresponds to BLE_HCI_CONN_FAILED_TO_BE_ESTABLISHED: The Connection Failed to be Established error code indicates that the LLinitiated a connection but the connection has failed to be established

    So since you did not have any issues prior to connecting before the synchronization method via BLE was added, then I think its highly likely that there is something in this code that causes the SD to assert or prevents it from finishing the connection establishment.  Does the new synchronization method via BLE handle any BLE_GAP_EVTS or BLE_GATTS_EVTS events ?

    Best regards

    Bjørn

Reply
  • Hi User1321, 

    the 0x3E disconnect error corresponds to BLE_HCI_CONN_FAILED_TO_BE_ESTABLISHED: The Connection Failed to be Established error code indicates that the LLinitiated a connection but the connection has failed to be established

    So since you did not have any issues prior to connecting before the synchronization method via BLE was added, then I think its highly likely that there is something in this code that causes the SD to assert or prevents it from finishing the connection establishment.  Does the new synchronization method via BLE handle any BLE_GAP_EVTS or BLE_GATTS_EVTS events ?

    Best regards

    Bjørn

Children
Related