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

How to connect to one specific master

Hi,

I´m using nRF51822 with my own application and I want to connect just to one specific master device (for example smartphone) after this one is bonded:

  1. nRF51822 wakes up and clears all bonded master
  2. start adervertising
  3. bonding to master
  4. disconnect and store master information ...

How can I make sure that there is no other master device (for example master emulator) is connecting to my device when I´m advertising to my first master device. I´ve also tried direct advertising and advertising with whitelist but it doesn´t work.

Thanks Marcel

Parents
  • Whitelisting and directed advertising are the methods that the Core Specification sets up for this use case, and as far as we've seen internally, this mostly works correctly. There is unfortunately a bug with the current release of the softdevice, which could cause whitelist to not be applied, but this should happen only rarely. In that case, even a non-whitelisted device may be able to connect.

    Several of our SDK examples implement whitelisting (for example ble_app_proximity), and some also directed advertising (ble_app_hids_keyboard). Have you tested them as is?

    With your own code, in what way exactly can you not get it working? Could you please share your code?

Reply
  • Whitelisting and directed advertising are the methods that the Core Specification sets up for this use case, and as far as we've seen internally, this mostly works correctly. There is unfortunately a bug with the current release of the softdevice, which could cause whitelist to not be applied, but this should happen only rarely. In that case, even a non-whitelisted device may be able to connect.

    Several of our SDK examples implement whitelisting (for example ble_app_proximity), and some also directed advertising (ble_app_hids_keyboard). Have you tested them as is?

    With your own code, in what way exactly can you not get it working? Could you please share your code?

Children
No Data
Related