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.

Related