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

nRF52832 lost bond but Android phone did not

Hi. I am connecting to and establishing a bond between my Android phone and the nRF52832 board using the s132 SoftDevice. I'm in a situation where the Android phone has a bond for the board, but the board does not have a bond for the phone. Is there a way for the Android app to check if the board has a bond for that phone? I was thinking that upon reading of a secured characteristic, I would get back a specific error that would tell the app "There is no bond for that phone". At this point I will notify the user to manually delete the bond for that board from their Bluetooth settings.

  • I'm afraid you will not be notified by the Android API in case this happens. And I also think Android will try re-esthablish the bond upon connection, so you will most like see a quick disconnect or not get connected (from the applications point of view) at all. I guess you could add some information to the advertisement packet that tells your application whether the peripheral already has a bond or not. Unfortunately there is not really any good ways of doing this...

Related