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

Device disconnects after Foget Device from ANCS server?

Hi, I am using "nrf5 sdk v11.0" ble_peripheral "ble_ancs_c" example for nrf52_DK(PCA10040) .

When i connect to the my ios device then accepted pairing request then i am able to get the notification from ios ANCS server . But when i do forget device fromios device the ble connection it self got terminated (I think it should not ).Only the ANCS server and ANCS client connection should be terminated ,the ble connection should not be terminated. Also next time when i connect to same ios device i didn't received any pairing request nor able to connect automatically .Also not able to connect/pair to other ios device .

I need to know which event is triggered when the ANCS connection established and terminated? the BLE Disconnect event i am getting after forget device (But i believe that there must some other event triggered in softdevice ,related to forget device and after the connection established with the ANCS server).

Thanks Krishna

  • When you delete the bond information in iOS you should also do so on the peripheral. If you only delete it on the iOS side I don't think you will be able to create a new bond. That is you will get an event PM_EVT_CONN_SEC_CONFIG_REQ, by default this will not be handled and the new bond will be rejected. This is the default behavior as you don't know if the device trying to bond is the same as the known device (using the IRK to authenticate the peer is not safe, as it's very easy for an attacker to use the same address as the known device)

Related