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

Unnecessary connection

Hello, I have question. I using examples with nRF51-ble-peripheral-bond-handling with bls_service (PCA10028) and i have problem with unnecessary connection. I want that my unbonded (Android, iOs) devices didn't have a connection with PCA10028. When i use nRF Master Control panel i click on my connection (button "CONNECT) after this i I stay in screen with service and characteristic information on long time (did't go to my write characteristic or other) but my unbonded device holds the connect (of course it didn't have access to characteristic - i closed access) but it holds the current connection and other bonded device - necessary device can not connect to my PCA10028, why is occur, and haw can i forbid the connection no bonded devices? Thank you.

Parents
  • Hey!

    If you want to only allow connections from bonded devices, there is a method for this called whitelist advertising. This is done by providing the advertiser with a list of bonded devices. The softdevice will then only accept connection requests from these devices. Whitelist advertisement is implemented in several of our example projects, for example the proximity example.

    You need to enable whitelisting and provide a whitelist in the advertising_start() function. The whitelist is extracted from the device manager using the dm_whitelist_create() function. Some devzone posts might also be helpful, for example this.

    PS: You should be able to "forget" your device on the smartphones you are using. After "forgetting" the device, they should not connect automatically any more. This is normally done inside the bluetooth settings in the smartphone menu.

Reply
  • Hey!

    If you want to only allow connections from bonded devices, there is a method for this called whitelist advertising. This is done by providing the advertiser with a list of bonded devices. The softdevice will then only accept connection requests from these devices. Whitelist advertisement is implemented in several of our example projects, for example the proximity example.

    You need to enable whitelisting and provide a whitelist in the advertising_start() function. The whitelist is extracted from the device manager using the dm_whitelist_create() function. Some devzone posts might also be helpful, for example this.

    PS: You should be able to "forget" your device on the smartphones you are using. After "forgetting" the device, they should not connect automatically any more. This is normally done inside the bluetooth settings in the smartphone menu.

Children
No Data
Related