This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF52840 dongle got disconnected within 1 minute connected to nRF52840 DK

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:~$

Parents
  • Hi jshen, 

    Did you modify the example code ble_app_blinky or ble_app_interactive? If so, what are they?

    Can you provide the full log output from the ble_app_interactive while connecting to dongle A2? If you could set NRF_LOG_DEFAULT_LEVEL to 4 in your sdk_config.h file, that should provide more details.

    Can you provide a sniffer trace between the two devices when reproducing? You can use nRFSniffer for that.

    -Amanda H.

Reply
  • Hi jshen, 

    Did you modify the example code ble_app_blinky or ble_app_interactive? If so, what are they?

    Can you provide the full log output from the ble_app_interactive while connecting to dongle A2? If you could set NRF_LOG_DEFAULT_LEVEL to 4 in your sdk_config.h file, that should provide more details.

    Can you provide a sniffer trace between the two devices when reproducing? You can use nRFSniffer for that.

    -Amanda H.

Children
  • Hi Amanda,

    Thank you for looking into it.

    To make things simple,i didn't modify the code at all. The dongle was programmed with the original hex file from the downloaded SDK. I did compile the DK code using SES but without any change at all. 

    I installed latest wireshark and the nRFSniffer. unfortunately the sniffer doesn't support the nRF52 dongles i have, and although it supports the DK, but i only have one DK and needed it to run the ble_app_interactive application. I looked at the sniffer software hex files and there was no hex file for PCA10059 which is the dongle i have.

    Modifying the NRF_LOG_DEFAULT_LEVEL from 3 (info) to 4 (debug), didn't change the CLI output, i did rebuilt the project a couple of times to be sure.

    [2020-09-10 12:59:41.670] uart_cli:~$ BLE app with command line interface example started.
    [2020-09-10 12:59:41.681] uart_cli:~$ Press Tab to view all available commands.
    [2020-09-10 12:59:41.690] uart_cli:~$
    [2020-09-10 12:59:59.980] advertiseballocbonded_devicesclear
    [2020-09-10 12:59:59.980] cliconnectconnected_devicesdevice_name
    [2020-09-10 12:59:59.980] devicesnumericpair
    [2020-09-10 13:00:00.001] parametersprivacyqueueremove_bond
    [2020-09-10 13:00:00.013] resizescan
    [2020-09-10 13:00:00.013] uart_cli:~$
    [2020-09-10 13:00:01.165] uart_cli:~$ scan on
    [2020-09-10 13:00:03.483] Scan started
    [2020-09-10 13:00:03.483] uart_cli:~$ <info> app: Scanning
    [2020-09-10 13:00:03.483] uart_cli:~$ devices
    [2020-09-10 13:00:21.543] Device ED:5E:2C:11:B5:A2 Nordic_Blinky
    [2020-09-10 13:00:21.546] Device 71:12:05:FD:9F:18
    [2020-09-10 13:00:21.551] uart_cli:~$ connect ED:5E:2C:11:B5:A2
    [2020-09-10 13:00:33.598] uart_cli:~$ <info> app: CENTRAL: Connecting...
    [2020-09-10 13:00:33.666] 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-10 13:00:33.681] uart_cli:~$ <info> app: CENTRAL: Connected, handle: 0.
    [2020-09-10 13:00:33.685] uart_cli:~$ <info> peer_manager_handler: Peer data updated in flash: peer_id: 0, data_id: Peer rank, action: Update, no change
    [2020-09-10 13:00:33.698] uart_cli:~$ Current MTU: 23
    [2020-09-10 13:00:34.154] uart_cli:~$ MTU changed successfully
    [2020-09-10 13:00:34.165] uart_cli:~$ <info> app: CENTRAL: Disconnected, handle: 0, reason: 0x22
    [2020-09-10 13:01:14.168] uart_cli:~$ <info> peer_manager_handler: Connection security failed: role: Central, conn_handle: 0x0, procedure: Encryption, error: 4352
    [2020-09-10 13:01:14.177] uart_cli:~$

    Best regards,

    Job

  • Hi Job, 

    Please try Erasing the DK and do it again.

    -Amanda H.  

  • Hi Amanda,

    Thank you very much, i will try it and let you know the result.

    Job

Related