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

peer_manager_handler: Connection security failed: role: Peripheral, conn_handle: 0x0, procedure: Encryption, error: 4102

SDK16.0

nRF52DK

HTS example

I got this error msg in the RTT log while running the example:

peer_manager_handler: Connection security failed: role: Peripheral, conn_handle: 0x0, procedure: Encryption, error: 4102

What shall I do to fix it?

Thanks,

Parents
  • Hello,

    Searching though this forum, it seems like most of these error messages with error code 0x4102 comes from one of the devices that already has stored bonding information, while the other one does not. 

    Can you please try to delete the flash entirely (you can use "nrfjprog -e"), and reprogram it, and then delete the bonding information on your other device. What sort of the device is your other device? And the device that print this error message, is that the central or the peripheral?

    If that doesn't work, please try to set the log level to debug by changing:

    #define NRF_LOG_DEFAULT_LEVEL 3

    to

    #define NRF_LOG_DEFAULT_LEVEL 4

    What does the log say then?

    Best regards,

    Edvin

  • Sorry my bad. Now I can see my log. bug there is only one debug info. I put it here: 

    <debug> nrf_ble_gq: Registering connection handle: 0x0000

    <info> app: Connected.

    <info> app: start timer here

    <info> app: pm_evt_handler, event id: 0x1

    <info> app: pm_evt_handler, event id: 0x3

    <info> peer_manager_handler: Connection security failed: role: Peripheral, conn_handle: 0x0, procedure: Encryption, error: 4102

    I don't see its helpful. Maybe as you said, its just because other device. Anyway it doesn't stop the mobile connect to the app.

    Thanks,

Reply
  • Sorry my bad. Now I can see my log. bug there is only one debug info. I put it here: 

    <debug> nrf_ble_gq: Registering connection handle: 0x0000

    <info> app: Connected.

    <info> app: start timer here

    <info> app: pm_evt_handler, event id: 0x1

    <info> app: pm_evt_handler, event id: 0x3

    <info> peer_manager_handler: Connection security failed: role: Peripheral, conn_handle: 0x0, procedure: Encryption, error: 4102

    I don't see its helpful. Maybe as you said, its just because other device. Anyway it doesn't stop the mobile connect to the app.

    Thanks,

Children
No Data
Related