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

Whats the simplest way to do the re-bonding of the nrf52840 after deleting the pairing key from the smartphone ?

1. I've deleted the peers from the device by running the BMS sdk example, still i am unable to connect the previously bonded device where i"ve deleted the key.

2. The pm_evt_handler desnt gets called but the disconnection takes place?

What are the things exactly to be done ? 
What is the easiest approach to look into this case?

Parents
  • Hi Rit De, 

    For security reasons by default it's not allowed to reinitialize bonding after the bonding is established. It's because if we allow that an attacker can spoof that it's the central and that the central has lost bonding. By doing that he can replace the central and remove the bond information in the peripheral. So it's the best if you have a physical button to erase bond on the device so that it can have a new bond with the central. 


    However if you want to allow re-bonding /re-pairing, it's possible to do so. You would need to add PM_EVT_CONN_SEC_CONFIG_REQ event handling inside pm_evt_handler to return allow_repairing = true. Please have a look at this case: devzone.nordicsemi.com/.../sdk15-paring-problem

Reply
  • Hi Rit De, 

    For security reasons by default it's not allowed to reinitialize bonding after the bonding is established. It's because if we allow that an attacker can spoof that it's the central and that the central has lost bonding. By doing that he can replace the central and remove the bond information in the peripheral. So it's the best if you have a physical button to erase bond on the device so that it can have a new bond with the central. 


    However if you want to allow re-bonding /re-pairing, it's possible to do so. You would need to add PM_EVT_CONN_SEC_CONFIG_REQ event handling inside pm_evt_handler to return allow_repairing = true. Please have a look at this case: devzone.nordicsemi.com/.../sdk15-paring-problem

Children
No Data
Related