Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs

peer_manager_handler: Connection security failed: role: Central, conn_handle: 0x0, procedure: Bonding, error: 1

Hi,

As I have developed the peripheral device (nRF52840) with custom services and trying to validate the connection by programming its central device using nRF52840DK. The peripheral programmed with security 128 Bit OOB Key. Which I have set on both peripheral and central device while programming. I used following setup on both device,

#define SEC_PARAM_BOND                       1                                                                                                   /**< Perform bonding. */
#define SEC_PARAM_MITM                        1                                                                                                    /**< Man In The Middle protection not required. */
#define SEC_PARAM_LESC                        0                                                                                                   /**< LE Secure Connections not enabled. */
#define SEC_PARAM_KEYPRESS              0                                                                                        /**< Keypress notifications not enabled. */
#define SEC_PARAM_IO_CAPABILITIES    BLE_GAP_IO_CAPS_NONE                                 /**< No I/O capabilities. */
#define SEC_PARAM_OOB                          1                                                                                                   /**< Out Of Band data not available. */
#define SEC_PARAM_MIN_KEY_SIZE        7                                                                                 /**< Minimum encryption key size. */
#define SEC_PARAM_MAX_KEY_SIZE       16                                                                              /**< Maximum encryption key size. */

I followed the Heart rate example to programm the central device. But my central device not connecting with the peripheral,shows the following error,

<info> app: BLE_GAP_EVT_AUTH_KEY_REQUEST
<info> peer_manager_handler: Event is PM_EVT_CONN_SEC_FAILED
<info> peer_manager_handler: Connection security failed: role: Central, conn_handle: 0x0, procedure: Bonding, error: 1
<info> app: BLE_GAP_EVT_AUTH_STATUS: status=0x1 bond=0x0 lv4: 0 kdist_own:0x0 kdist_peer:0x0

What would be the cause, I am not familiar with 'error 1'. Can someone help here.

Thanks in advance.

with Regards,

Sreejith

Parents Reply Children
No Data
Related