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.

  • 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.

  • I download the proximity example compiling and program, erase all bond forget device on phone , but i have a connection without bonded device throw the nRF Control Panel on Android device, why is occur? The PCA10028 shouldn't have the connection because it not bonded and didn't included in whitelist table, but it still have connect (LED1 turned on).

  • Hi.

    I do not fully understand what you mean by "but i have a connection without bonded device throw the nRF Control Panel on Android device, why is occur?" Can you try to explain your test method step by step, so that i can try to do the same here?

  • I deleted all bonded information on my PCA10028 and on the Android phone, then i download and program my PCA10028 proximity example, then go to nRF control panel, finde nordic proximity conection click on and... it connected without bond and will can stand still in this state long time (importent "without bond procedure" and with whitelist implementaition in this example). I didn't whant that unnecessary devices connect and do busy my PCA10028 long time... For examle.... I develope application which open my home door throw the phone (PCA10028 is peripheral, pone - central) i bonded my phone and PCA10028 and it workin good, i open close door as i whant.... but other gay take other phone, open the nRF control panel find my connection "open door" and connect it ...of course hi cann't open dore beacose it should go throw the security procedure, but hi can state in connection state (LED1 turn on) long time, then i comeback after job to home and cannot finde the "open_door" connection beacase it still busy by other phone ...this is problem...

Related