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.

Parents
  • FormerMember
    0 FormerMember

    In SDK 11, the example ble_app_gls uses the peer_manager module to store the bonding information, I would recommend you to take a look at it.

    There is no direct way for the nRF5 device to get to know that the phone has deleted the pairing information. One way to notify the nRF5 device is to use a button push or similar.

Reply
  • FormerMember
    0 FormerMember

    In SDK 11, the example ble_app_gls uses the peer_manager module to store the bonding information, I would recommend you to take a look at it.

    There is no direct way for the nRF5 device to get to know that the phone has deleted the pairing information. One way to notify the nRF5 device is to use a button push or similar.

Children
No Data
Related