I have a question about PeerManager.
When I tried bonding using PeerManager, the following error occurred.
Please tell me the cause.
I have a question about PeerManager.
When I tried bonding using PeerManager, the following error occurred.
Please tell me the cause.
<info> peer_manager_handler: Connection security failed: role: Central, conn_handle: 0x0, procedure: Bonding, error: 4352 <warning> peer_manager_handler: Disconnecting conn_handle 0.
Hi,
Which SDK version and example are you using? What device are you using for testing bonding against? Decimal 4352 is 0x1100. I find the following defines and reasoning for this error in peer_manager_types.h:
#define PM_CONN_SEC_ERROR_BASE 0x1000 /**< @brief The base for Peer Manager defined errors. See @ref PM_SEC_ERRORS and @ref pm_sec_error_code_t. */ #define PM_CONN_SEC_ERROR_DISCONNECT (PM_CONN_SEC_ERROR_BASE + 0x100) /**< @brief Pairing or encryption did not finish before the link disconnected for an unrelated reason. */
So it looks like the device disconnects before the pairing or encryption procedure completed.
Best regards,
Jørgen
It may or may not occur under the same conditions.
(Reset every time to make same condition)
What causes the device to disconnect?
It may or may not occur under the same conditions.
(Reset every time to make same condition)
What causes the device to disconnect?