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

ble_app_ancs will run error when dond/pairing

I used SDK 5.1 and S110 6.0, I dowmload the project ble_app_ancs to nRF51822 DK. I try to connect it to iPhone 4s (which run on IOS 7.04), when I click 'pairing', the led ASSERT_LED_PIN_NO (LED_7) will on, iPhone show 'disconnected'.

Then I used Master Control Panel to connecte it, click 'service' and 'enable service' is OK, but when I click the 'Bond', it will cause a link loss. and the ASSERT_LED_PIN_NO is on too.

Did there some bugs exit in the ble_app_ancs ?

Thanks and best regards.

Parents
  • The ble_app_ancs uses a BLE_BONDMNGR_MAX_BONDED_CENTRALS of 1, so if you try to bond more devices, you'll get an error from the bond manager.

    When you have bonded the max number of devices, you have to delete the existing bonds to be able to bond a new device. This can be done with the ble_bondmngr_centrals_delete()/ble_bondmngr_central_delete() functions, but you have to decide for yourself which Central to delete, or if you want to delete all of them.

Reply
  • The ble_app_ancs uses a BLE_BONDMNGR_MAX_BONDED_CENTRALS of 1, so if you try to bond more devices, you'll get an error from the bond manager.

    When you have bonded the max number of devices, you have to delete the existing bonds to be able to bond a new device. This can be done with the ble_bondmngr_centrals_delete()/ble_bondmngr_central_delete() functions, but you have to decide for yourself which Central to delete, or if you want to delete all of them.

Children
No Data
Related