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

private resolvable address and IRK generation

i need to generate an irk from nrf52 so that no device can identify that nrf52 data...only the device with same irk can identify and connect to it

for that what should i do?

Thank you

Parents
  • Hi,

    If you include the peer_manager in your application, for instance like the ble hid keyboard and mouse examples in the SDK v15.3 is doing, then you can find that the peer manager will handle all bond information, and by default use whitelisting after bonding to ensure that only previously bonded peer devices may reconnect when advertising. It is only by bonding that an IRK is generated and whitelisting will work.

    Best regards,
    Kenneth

Reply
  • Hi,

    If you include the peer_manager in your application, for instance like the ble hid keyboard and mouse examples in the SDK v15.3 is doing, then you can find that the peer manager will handle all bond information, and by default use whitelisting after bonding to ensure that only previously bonded peer devices may reconnect when advertising. It is only by bonding that an IRK is generated and whitelisting will work.

    Best regards,
    Kenneth

Children
  • @ please say the process 

  • this is my code what are the changes should i do so that"only the device with same irk can identify and connect to it"

  • After bonding is complete, then the irk can be fetched by calling pm_whitelist_get(). For instance look at the hid keyboard examples:

    Best regards,
    Kenneth

  • @Kenneth

    Where can we see that irk