I am developing a HID keyboard with SDK v6.1, SD v7.3, IC revision 2.
The keyboard is already able to advertise (non-whitelist) and bond with iPhone, and connect/reconnect to iOS 9.1 (by whitelist and IRK match).
The problem is I want to start new pairing. I have to disconnect this iPhone, start advertising without whitelist to welcome everyone (including the original bonded iPhone), AND don't want to get immediately reconnect back to this iPhone.
Since there is no blacklist mechanism, I have to vary my Bluetooth static random address, e.g. increment 1, and using "sd_ble_gap_address_set(BLE_GAP_ADDR_CYCLE_MODE_NONE, &gap_addr)". Now the original iPhone and everyone else could see my new advertising device.
Then I use this new address to bond with the original iPhone. It can connect at the first time. But after that it can no longer reconnect again. It repeatedly connect and then disconnect immediately, with disconnect reason=0x3D, which is HCI error "Connection Terminated Due to MIC Failure". Could you please help with this problem? Thank you!