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

Whitelist random private resolvable address without bonding

Hello!
I have an Android phone and nRF52840 as a peripheral. Now I want the peripheral to have a whitelist with exactly 1 peer with whitelist being dropped at button press. Android must be able to connect to like a 100 of such peripheral devices.
I got this working with PeerManager and bonding procedure. But I'm not sure if Android can store hundreds of bonded devices. So I need to make whitelisting work without bonding. The problem is that after pairing pm_peer_id_list() returns 0 peers.
The question is do we have IRK's available after pairing without bonding to put them into whitelist?

 

Parents Reply Children
  • Superuzir said:
    When I set kdist to 1 then API reqiures me to set bond=true as well. How to make sure that IRK is shared only in the process of bonding?

     I assume that you mean that the IRK is shared only in the process of pairing?

    I have been looking at the Bluetooth Specification and it seems that exchanging the IRK when pairing is not allowed, see below.

    BLUETOOTH CORE SPECIFICATION Version 5.1 | Vol 3, Part C, Section 9.4.2, page 2180

    If Security Manager pairing is supported, the Host shall set the Bonding_Flags
    to ‘No Bonding’ as defined in [Vol 3] Part H, Section 3.5.1 and bonding
    information shall not be exchanged or stored.

    Best regards

    Bjørn

Related