BLE Connection Issue: Immediate Disconnection Between PC and nRF5340 DK

Hi,

I am encountering an issue with the BLE connection on my nRF5340 DK. When I attempt to connect the device to my PC, the pairing process takes a significant amount of time. Additionally, even after pairing is successful, the connection disconnects within a few seconds. However, when using the nRF Connect mobile app, pairing, bonding, and other operations work perfectly fine. Could you help me identify the cause of this issue? I have attached Wireshark logs for reference.

5811.Sniffer.pcapng

Parents
  • Hi,

    I see that there is a non-empty packet sent from the master before the peripheral start advertising again. This is encrypted so I cannot se the content, but I assuem that is a disconnect packet. As the link is encrypted with LESC the sniffer cannot decode it unless you provide the LTK, so you would either have to do that (see CONFIG_BT_LOG_SNIFFER_INFO). Alternatively, you can check and possibly add logging in your application to see what the disconnect reaon is. That said, based on what we know so far it seems that the central (PC in this case) decided to disconnect for some reason.

Reply
  • Hi,

    I see that there is a non-empty packet sent from the master before the peripheral start advertising again. This is encrypted so I cannot se the content, but I assuem that is a disconnect packet. As the link is encrypted with LESC the sniffer cannot decode it unless you provide the LTK, so you would either have to do that (see CONFIG_BT_LOG_SNIFFER_INFO). Alternatively, you can check and possibly add logging in your application to see what the disconnect reaon is. That said, based on what we know so far it seems that the central (PC in this case) decided to disconnect for some reason.

Children
No Data
Related