Hi, I have one nRF52840 DK and 2 nRF52840 dongles, i used the latest SDK17.0, programmed nRF5_SDK_17.0.0_9d13099\examples\ble_peripheral\ble_app_blinky\hex\ble_app_blinky_pca10059_s140.hex to the two dongles and compiled nRF5_SDK_17.0.0_9d13099\examples\ble_central_and_peripheral\experimental\ble_app_interactive\pca10056\s140\ses to the DK. I did two tests.
Test 1:
- power on the dongle ended with A2 and scan on from DK
- connect to the A2 dongle, noticed it got disconnected within one minute with error 4352
Test 2:
- power on dongle A2 and dongle 2D
- scan on from DK, connect to dongle 2D
- scan on again from DK, connect to dongle A2
- connected_devices shows both dongles connected_devices
- within 1 minute, A2 disconnected with 4352, 2D stay connected without issue
Question:
- Why the dongle A2 always get disconnected? is it hardware defect?
I used nRF connect programmed both dongles exactly the same way
Console log with timestamp below
Test 1:
[2020-09-09 18:45:44.338]
[2020-09-09 18:45:44.799] uart_cli:~$ BLE app with command line interface example started.
[2020-09-09 18:45:44.806] uart_cli:~$ Press Tab to view all available commands.
[2020-09-09 18:45:44.814] uart_cli:~$
[2020-09-09 18:45:49.610] advertiseballocbonded_devicesclear
[2020-09-09 18:45:49.619] cliconnectconnected_devicesdevice_name
[2020-09-09 18:45:49.630] devicesdisconnectgatthistory
[2020-09-09 18:45:49.638] key_replylognumericpair
[2020-09-09 18:45:49.651] parametersprivacyqueueremove_bond
[2020-09-09 18:45:49.658] resizescan
[2020-09-09 18:45:49.662] uart_cli:~$ scan on
[2020-09-09 18:45:54.835] Scan started
[2020-09-09 18:45:54.836] uart_cli:~$ <info> app: Scanning
[2020-09-09 18:45:54.841] uart_cli:~$ devices
[2020-09-09 18:45:58.153] Device ED:5E:2C:11:B5:A2 Nordic_Blinky
[2020-09-09 18:45:58.156] Device 70:C4:F5:F8:2B:FB
[2020-09-09 18:45:58.159] uart_cli:~$ connect ED:5E:2C:11:B5:A2
[2020-09-09 18:46:14.638] uart_cli:~$ <info> app: CENTRAL: Connecting...
[2020-09-09 18:46:14.688] uart_cli:~$ Connected to address: uart_cli:~$ ED uart_cli:~$ 5E uart_cli:~$ 2C uart_cli:~$ 11 uart_cli:~$ B5 uart_cli:~$ A2 uart_cli:~$
[2020-09-09 18:46:14.719] uart_cli:~$ <info> app: CENTRAL: Connected, handle: 0.
[2020-09-09 18:46:14.723] uart_cli:~$ <info> peer_manager_handler: Peer data updated in flash: peer_id: 0, data_id: Peer rank, action: Update, no change
[2020-09-09 18:46:14.737] uart_cli:~$ Current MTU: 23
[2020-09-09 18:46:15.187] uart_cli:~$ MTU changed successfully
[2020-09-09 18:46:15.194] uart_cli:~$ connected_devices
[2020-09-09 18:46:22.077] Connected devices:
[2020-09-09 18:46:22.080] 0. ED:5E:2C:11:B5:A2 Security level: 1
[2020-09-09 18:46:22.083] uart_cli:~$ <info> app: CENTRAL: Disconnected, handle: 0, reason: 0x22
[2020-09-09 18:46:55.191] uart_cli:~$ <info> peer_manager_handler: Connection security failed: role: Central, conn_handle: 0x0, procedure: Encryption, error: 4352
[2020-09-09 18:46:55.206] uart_cli:~$ connected_devices
[2020-09-09 18:47:09.021] Connected devices:
Test 2:
[2020-09-09 18:52:26.727] uart_cli:~$ scan on
[2020-09-09 18:52:30.896] Scan started
[2020-09-09 18:52:30.898] uart_cli:~$ <info> app: Scanning
[2020-09-09 18:52:30.904] uart_cli:~$ devices
[2020-09-09 18:52:33.007] Device D2:4B:B2:1B:9C:2D Nordic_Blinky
[2020-09-09 18:52:33.010] Device ED:5E:2C:11:B5:A2 Nordic_Blinky
[2020-09-09 18:52:33.014] Device 70:C4:F5:F8:2B:FB
[2020-09-09 18:52:33.017] uart_cli:~$ connect D2:4B:B2:1B:9C:2D
[2020-09-09 18:52:41.251] uart_cli:~$ <info> app: CENTRAL: Connecting...
[2020-09-09 18:52:41.353] uart_cli:~$ Connected to address: uart_cli:~$ D2 uart_cli:~$ 4B uart_cli:~$ B2 uart_cli:~$ 1B uart_cli:~$ 9C uart_cli:~$ 2D uart_cli:~$
[2020-09-09 18:52:41.403] uart_cli:~$ <info> app: CENTRAL: Connected, handle: 0.
[2020-09-09 18:52:41.411] uart_cli:~$ Current MTU: 23
[2020-09-09 18:52:41.885] uart_cli:~$ MTU changed successfully
[2020-09-09 18:52:41.896] uart_cli:~$ <info> app: Data length updated to 27 bytes.
[2020-09-09 18:52:42.965] uart_cli:~$ co scan on
[2020-09-09 18:52:45.169] Scan started
[2020-09-09 18:52:45.171] uart_cli:~$ <info> app: Scanning
[2020-09-09 18:52:45.176] uart_cli:~$ devices
[2020-09-09 18:52:46.677] Device ED:5E:2C:11:B5:A2 Nordic_Blinky
[2020-09-09 18:52:46.682] Device 70:C4:F5:F8:2B:FB
[2020-09-09 18:52:46.684] uart_cli:~$ connect ED:5E:2C:11:B5:A2
[2020-09-09 18:52:54.017] uart_cli:~$ <info> app: CENTRAL: Connecting...
[2020-09-09 18:52:54.323] uart_cli:~$ Connected to address: uart_cli:~$ ED uart_cli:~$ 5E uart_cli:~$ 2C uart_cli:~$ 11 uart_cli:~$ B5 uart_cli:~$ A2 uart_cli:~$
[2020-09-09 18:52:54.370] uart_cli:~$ <info> app: CENTRAL: Connected, handle: 1.
[2020-09-09 18:52:54.375] uart_cli:~$ <info> peer_manager_handler: Peer data updated in flash: peer_id: 0, data_id: Peer rank, action: Update, no change
[2020-09-09 18:52:54.388] uart_cli:~$ Current MTU: 23
[2020-09-09 18:52:55.787] uart_cli:~$ MTU changed successfully
[2020-09-09 18:52:55.793] uart_cli:~$ connected_devices\
[2020-09-09 18:53:03.968] Connected devices:
[2020-09-09 18:53:03.970] 0. D2:4B:B2:1B:9C:2D Security level: 1
[2020-09-09 18:53:03.973] 1. ED:5E:2C:11:B5:A2 Security level: 1
[2020-09-09 18:53:03.978] uart_cli:~$ <info> app: CENTRAL: Disconnected, handle: 1, reason: 0x22
[2020-09-09 18:53:35.793] uart_cli:~$ <info> peer_manager_handler: Connection security failed: role: Central, conn_handle: 0x1, procedure: Encryption, error: 4352
[2020-09-09 18:53:35.807] uart_cli:~$ Connection parameters update success
[2020-09-09 18:53:42.975] uart_cli:~$ Connection parameters update success
[2020-09-09 18:53:44.686] uart_cli:~$ connected_devices
[2020-09-09 18:53:53.425] Connected devices:
[2020-09-09 18:53:53.428] 0. D2:4B:B2:1B:9C:2D Security level: 1
[2020-09-09 18:53:53.433] uart_cli:~$