Hi.
I am using nRF52832 and SDK15, S132 Softdevice.
I integrated the uart example in the ble_peripheral folder with the buttonless_dfu example, and added the passkey.
The cell phone is Android.
I turned on Bluetooth on my phone and found the nRF52832 and registered the device on my phone by entering the 6 digit PIN.
However, soon BLE_GAP_EVT_DISCONNECT event happened. After 180 seconds, BLE_ADV_EVT_IDLE event happened and then bluetooth advertising end.
Pairing seems to have not been successful.
Through the terminal, you can see the following message.
Connected to a previously bonded device.
Connected
Data len is set to 0xF4(244)
ATT MTU exchange completed. central 0xf7 peripheral 0xf7
ATT MTU exchange completed. central 0xf7 peripheral 0xf7
(Enter 6-digit PIN.)
Connection secured: role: 1, conn_handle: 0x0, procedure: 1.
Disconnected, reason: 0x13
timeout
1) What can I do to keep my pairing going? => I saw that it could be a cache issue. What is cache?
If use the "nRF Connect" app, the connection will not be disconnected.
However, other Bluetooth apps on Android do not pair( For example, the Bluetooth chat application ). Can you tell me why?
Also, my ultimate goal is to implement the device so that it is automatically paired even if the device is turned on or off.
2) How do I keep my pairing automatically?
Thanks in advance for your help.