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

Bond deletion notification

Hi, My nRf51422 based device holds bonding with single central device and once it bonded it will do whitelist advertising at connection lost (whitelist has one address). If device in the range the central will connect and establish secure link with LTK. Now I want to erase bond information from peer central device. Ok, it delete bond on central and do disconnect. On nRF I receive BLE_GAP_EVT_DISCONNECTED with ble_evt->evt.gap_evt.params.disconnected.reason == BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION But device knows nothing about bond lost, it catches disconnect and start whitelist advertising with previously bonded device address. I tested on Nexus7 and Windows 8.1. Nexus see this advertisement and able to connect and create new bond. The Win8.1 doesn't see. (I checked - adress remains the same all time on both central devices). I need to notify in some way the peripheral about bond deletion to make it clear the whitelist. I found this thread https://devzone.nordicsemi.com/question/5735/problem-when-deleted-bonded-master-keeps-bond/ but think that my situation is different. Please help.

Parents
  • SD110 v8.0.0. My idea is to delete bonding on device once it deleted on central. Since bond deleted, whitelist becomes empty and there are no need to do advertising. To connect/bond new device I use button pressing event in my app. But now after I deleted bond on central, device become disconnected and restart whitelist advertisement with address of last bonded central(i.e. that one that delete bond). The satrange behaviour demonstrates Win8.1 desktop,after bond deletion it do not show this device in scan list even if device do whitelist adverticement with address of desktop. But do it for advertisement without whitelist.

Reply
  • SD110 v8.0.0. My idea is to delete bonding on device once it deleted on central. Since bond deleted, whitelist becomes empty and there are no need to do advertising. To connect/bond new device I use button pressing event in my app. But now after I deleted bond on central, device become disconnected and restart whitelist advertisement with address of last bonded central(i.e. that one that delete bond). The satrange behaviour demonstrates Win8.1 desktop,after bond deletion it do not show this device in scan list even if device do whitelist adverticement with address of desktop. But do it for advertisement without whitelist.

Children
No Data
Related