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

nrf Connect for mobile

Hi ,

In order to capture and get the data from the external BLE beacons,

I am trying to simulate this using nrf connect Advertiser option instead of using Beacons for testing purposes.

However, see that the advertised packets from the nrf connect uses a RANDOM address instead of the phone's Bluetooth address.

How to use the nrf connect advertising to use the Bluetooth module on the phone?

Parents
  • Hi

    The nRFConnect advertiser uses RandomPrivateResolvable address type, and there's no way to edit this in the nRFConnect app I'm afraid. In order to confirm that this is the phone, you'll have to whitelist the IRK in your scanning device. This is used to resolve the address so that you can know that it is the same device even though the address changes. You can refer to the HID Keyboard application to see how whitelisting is implemented there. Essentially, the peer manager library that handles bonding also takes care of the IRK, so it's quite straightforward. Please check out the ble_app_hrs_c example for instance to see how you can do this in your central.

    Best regards,

    Simon

Reply
  • Hi

    The nRFConnect advertiser uses RandomPrivateResolvable address type, and there's no way to edit this in the nRFConnect app I'm afraid. In order to confirm that this is the phone, you'll have to whitelist the IRK in your scanning device. This is used to resolve the address so that you can know that it is the same device even though the address changes. You can refer to the HID Keyboard application to see how whitelisting is implemented there. Essentially, the peer manager library that handles bonding also takes care of the IRK, so it's quite straightforward. Please check out the ble_app_hrs_c example for instance to see how you can do this in your central.

    Best regards,

    Simon

Children
No Data
Related