Part Number: CC3551E
Hi Team,
I am working with NimBLE host on CC3551E and trying to implement BLE pairing with a Random/default passkey for both iOS and Android devices.
My goal is:
* BLE Secure Connections enabled
* MITM protection enabled
* Fixed passkey pairing (example: `123456`)
* ANCS support for iOS
Security Configuration
ble_hs_cfg.sm_io_cap = BLE_HS_IO_DISPLAY_ONLY;
ble_hs_cfg.sm_bonding = 1;
ble_hs_cfg.sm_mitm = 1; ble_hs_cfg.sm_sc = 1;
Issue
*connection occurs but encryption/pairing does not complete
* ANCS discovery cannot proceed because pairing is incomplete Additional Information
* Old bonds were deleted on both device and phone
* Phone device entry was forgotten before retesting
* Advertising and connection work correctly
Questions
1. Is the above configuration correct for fixed/default passkey pairing with iOS and Android?
2. Is `BLE_HS_IO_DISPLAY_ONLY` the correct IO capability for this use case?
3. Are additional SMP callbacks or configuration changes required?
Thanks,
Vignesh.