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

Pair whit more than 1 device

Hi, if i pair my nrf51-dk with my iPhone works, than I pres discontent (bluetooth settings), now, if I try whit another iPhone this doesn't work...

If I reset the board or upgrade the application the pair mode doesn't work with the second phone.

The only one solution is erase all whit nrfgostudio, put new Softdevice s110, put new application and then I can connect whit another device. but only one!!

My application is as a copy the hid_keyboard_example. What whold I do for pair my nr51-dk with more than one phone?!

Thanks Regards

Parents
  • Hi,

    The HID mouse example is set up to pair and bond with a central, then keep that bonding information to connect to the same central again later. It also uses a whitelist, to only allow connecting to a selected set of centrals. This is reasonable behaviour for a HID device. In most cases you use it for the same device, and you definitely do not want it to connect to random centrals in the event of a connection loss. And you do not want to set up a new connection manually every time you use the HID device.

    The example uses persistent storage manager and BLE device manager to store the bonding info. Data is saved to flash memory, which makes it persistent. The memory area will not be overwritten by a reinstall of the SoftDevice or the application, which explains the behaviour you are seeing.

    To connect (and bond) with another central, you can explicitly tell the HID mouse application to forget the current bonding information. To do this, press button 2 while resetting the DK. You can also have a look at the documentation for the HID Mouse Application for the standard behaviour (see the Testing section for a functionality walk-through).

    You can also disable the whitelist. This is done while the device is in advertising mode, by pressing and holding button 2 for a couple of seconds. You can have a look at the BSP indication states, which are used to show the current state of the example program. It should go from whitelisting (LED 1 blinking, period 1s) to normal advertising (LED 1 blinking, period 2s), and now the HID mouse application should accept connections from new centrals.

    Regards, Terje

  • I faced the same issue with android phones, as Terje suggested to change maximum number of bonds to remember which is defined in device_manager_cnfg.h i did it, but no success. I have edited ble_app_uart example program to support passkey pairing, but only one device is getting paired, i have erased the flash and reprogrammed it but still it is pairing to only one device(same as before erasing flash). kindly suggest me a way to pair more then one device.

Reply
  • I faced the same issue with android phones, as Terje suggested to change maximum number of bonds to remember which is defined in device_manager_cnfg.h i did it, but no success. I have edited ble_app_uart example program to support passkey pairing, but only one device is getting paired, i have erased the flash and reprogrammed it but still it is pairing to only one device(same as before erasing flash). kindly suggest me a way to pair more then one device.

Children
No Data
Related