This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

ANCS with sd_ble_gap_authenticate

HI,

We survey APPLE's ANCS right now! But we have a question that need your help. I use ios device ios 8.3,ble softdevice 8.0

I have some questions about the pairing.when i use sd_ble_gap_authenticate(...) function to pair,But the result pairing is not successful,And repeat pairing is window.I Set the ble_gap_sec_params_t parameters are as follows:

#define SEC_PARAM_BOND 1 #define SEC_PARAM_MITM 0 #define SEC_PARAM_IO_CAPABILITIES BLE_GAP_IO_CAPS_NONE #define SEC_PARAM_OOB 0 #define SEC_PARAM_MIN_KEY_SIZE 7 #define SEC_PARAM_MAX_KEY_SIZE 16

when i define SEC_PARAM_BOND=0, pairing is successful,and ancs are very stable.But Bluetooth connection may have a problem.I would like to ask whether can need not change the SEC_PARAM_BOND?How to use sd_ble_gap_authenticate(...) function correctly?

Thanks!

Parents
  • When does this happen? If you leave SEC_PARAM_BOND 1, delete the bond information in iOS(forget device in Bluetooth settings), and delete the bond information on the nRF51, pressing button 1 on restart on the nRF51 DK. Do you want to pair or do you want to bond, if you want to bond you need to have SEC_PARAM_BOND 1.

Reply
  • When does this happen? If you leave SEC_PARAM_BOND 1, delete the bond information in iOS(forget device in Bluetooth settings), and delete the bond information on the nRF51, pressing button 1 on restart on the nRF51 DK. Do you want to pair or do you want to bond, if you want to bond you need to have SEC_PARAM_BOND 1.

Children
No Data
Related