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

bonding & Whitelisting & deepsleep

hello everybody,

I'm working in a project and faced some problems : article_1 & article_2

the final thing I did is as the second article, I do bonding & added the whitelist advertising to prevent any other mobiles from connecting with my beacon, it works with me & I face some problems now:

problem 1: I need to go to deep sleep in some cases using sd_system_power_off(); and wake up only on 1 event caused by the mobile LPCOMP to start a new advertising & so on, the problem is that going to deep sleep will cause an erase to memory & bond information is lost which means that the user will have to pair again to the device which is totally refused

to sum up, I need to save the bond information for use after wake up from deep sleep mode.

problem 2: when the user delete the device from the paired devices in the mobile settings, my device still advertise with the whitelist, I mean the same mobile can't connect to the device again until it happens a timeout, I need to have the ability to check if the bond info is erased from mobile side or not to advertise without whitelist, this problem may be considered as a user Echo, just I can notify the user not to delete the user from the paired device list but problem 1 is critical for me.

Related