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

PeerManager error (error: 139)

I have a question about PeerManager.

SDK: 15.3.0
example: ble_app_multirole_lesc (I changed the source from the sample)
using device: EYSHJNZWZ (nRF52832)
connection device: Android (Bluetooth v5.0)

When trying to connect with LESC security level using PeerManager, the following error occurred.
Please tell me the cause.

<info> peer_manager_handler: Connection security failed: role: Peripheral, conn_handle: 0x2, procedure: Bonding, error: 139
<warning> peer_manager_handler: Disconnecting conn_handle 2.

I know that this error means "BLE_GAP_SEC_STATUS_DHKEY_FAILURE".
The connection partner supports pairing.
I confirmed that I could connect many times.
However, this error may occur.
Also, after this error occurs, the same error will occur no matter how many times you try to connect.
This error does not occur after reset.

Parents Reply
  • Edvin said:
    Do you use bonding when you are reproducing this?

     Are both of the devices nRF? If so, can you try to delete the entire flash of both devices, and then try again? If one of the devices is a phone, try to "forget device" to erase the bonding information (stored keys), and delete the flash on the other, so that you have a clean start. 

     

    takashina hiroki said:
    I do not have nRF Sniffer.

     So do you have another DK? nRF Sniffer is only FW, which runs on another DK. It is a very useful tool for these kind of problems, and in BLE development in general.

    Best regards,

    Edvin

Children
Related