Hi!
I am having problems with bonding and the UART service. To connect to the peripheral I am using nrfConnect and nrfToolbox (UART) on an iPhone 6.
I am trying to setup an encrypted and bonded connection in the ble_app_uart example from SDK 8.0.0.
I am using a static passkey and have added this permissions to the characteristics/attributes:
BLE_GAP_CONN_SEC_MODE_SET_OPEN(&cccd_md.read_perm);
BLE_GAP_CONN_SEC_MODE_SET_ENC_WITH_MITM(&cccd_md.write_perm);
BLE_GAP_CONN_SEC_MODE_SET_OPEN(&attr_md.read_perm);
BLE_GAP_CONN_SEC_MODE_SET_ENC_WITH_MITM(&attr_md.write_perm);
The TX char. has the same settings.
If the devices are not bonded, the pairing procedure starts (I need to enter the pin on the iPhone, etc.). In this case everything works fine. I can send, I can receive strings.
The problems start after the first disconnect. When I connect back (the devices are bonded) I get disconnected almost immediately with the disconnect reason 0x003D from the device manager.
Can you give me any thoughts on what am I doing wrong.
Thank you and kind regards, Rok