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

Question about ble_app_hids_keyboard example

Hi, Dear Nordic & all:

  when I run the  ble_app_hids_keyboard example in nrf52820(SDK17.0.2), I meet a question:

1、Frist I use my iphone connect ble device and pair success;

2、Then I remove the ble device and  unbind with my iphone, the device's log  will appear this:

      High Duty Directed advertising -> Fast advertising with whitelist -> Slow advertising with whitelist;

3、I connect to it again with my Iphone, and find it fail to connect;the log & screenshot as below:

screenshot:

log about connecting again:

<info> peer_manager_handler: Connection security failed: role: Peripheral, conn_handle: 0x0, procedure: Bonding, error: 133
<info> app: High Duty Directed advertising.
<info> app: Disconnected
<info> app: Fast advertising with whitelist.
<info> app: Slow advertising with whitelist.

4、I also try another phone to connect, and can not connect either;

So, I check the reference document:  Nordic Semiconductor Infocenter, and found step 9 & step 10:

    9、Reset the device while pressing Button 2 to erase bond info. Repeat step 2, and check if the device can send messages to the computer.

    10、Disconnect the device from Windows 8, thereby removing the bond info from the computer. Start a search for Bluetooth devices and observe that while the device is advertising with Whitelist, Windows 8 is not able to discover the device.

Is that mean one device can only connect to one iphone(or PC), if I want another phone(or PC) to connect the same device, should I erase bond and reset? 

Thanks for your kind reply!

Related