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

Bonding only when client is close to server?

What's the proper way to implement bonding that depends on proximity (rather than a whitelist)? So when the client (phone) is close (say, five to ten centimeters) to the server (BTLE peripheral) then there is a bond created and the devices can now communicate over a larger range. I'm looking at the proximity example, but if there are other resources out there, please point them to me if possible. Thanks!

Parents
  • There isn't really any way to automatically do this, and the exact method used would depend on your use case.

    If your application has some way of entering a bonding mode, it could be possible to reduce the output power, and possibly also check the RSSI of incoming packets and disconnect if it's too low in this mode. RSSI monitoring can be enabled when in a connection with sd_ble_gap_rssi() start.

Reply
  • There isn't really any way to automatically do this, and the exact method used would depend on your use case.

    If your application has some way of entering a bonding mode, it could be possible to reduce the output power, and possibly also check the RSSI of incoming packets and disconnect if it's too low in this mode. RSSI monitoring can be enabled when in a connection with sd_ble_gap_rssi() start.

Children
No Data
Related