Hi,
1.How to resolve this error:
peer_manager_handler: Connection security failed: role: Peripheral, conn_handle: 0x0, procedure: Encryption, error: 4102
2.Test DK: PCA10056 3.0.0
Test SDK:nRF5 SDK\nRF5_SDK_17.1.0_ddde560\examples\ble_peripheral\ble_app_hrs\pca10056\s140\arm5_no_packs\ble_app_hrs_pca10056_s140.uvprojx
Test app: Android nRF Connect
3.Test steps:
1. Erase nRF52840
2. Programmer example hex : ble_app_hrs (log level DEBUG)
3. Use nRF Connect to the DK to pair and bind
4. Power off the DK
5. Tap the disconnect button in nRF Connect
6. Power on the DK
7. Click the Connect button in nRF Connect
8. View the serial port log. The error is as follows:
Test all logs
Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
[16:57:16.722]收←◆<info> app_timer: RTC: initialized.
<debug> nrf_ble_lesc: Initialized nrf_crypto.
<debug> nrf_ble_lesc: Initialized nrf_ble_lesc.
<debug> nrf_ble_lesc: Generating ECC key pair
<info> app: Heart Rate Sensor example started.
<info> app: Erase bonds!
<info> peer_manager_handler: All peers deleted.
<info> app: Fast advertising.
[16:57:45.366]收←◆<debug> nrf_ble_gatt: Requesting to update ATT MTU to 247 bytes on connection 0x0.
<debug> nrf_ble_gatt: Updating data length to 251 on connection 0x0.
<info> app: Connected.
[16:57:45.508]收←◆<debug> nrf_ble_gatt: ATT MTU updated to 247 bytes on connection 0x0 (response).
<info> app: GATT ATT MTU on connection 0x0 changed to 247.
[16:57:45.708]收←◆<debug> nrf_ble_gatt: Data length updated to 27 on connection 0x0.
<debug> nrf_ble_gatt: max_rx_octets: 27
<debug> nrf_ble_gatt: max_tx_octets: 27
<debug> nrf_ble_gatt: max_rx_time: 328
<debug> nrf_ble_gatt: max_tx_time: 328
Test example
Thank you for all your assistance.
Kind regards,
Peter.Min