Hello, i have unexpected disconnection on a nRF54L15 SoC. The goal is to synchronise 2 nRF devices : device 1 is a nRF54L15 SoC and ble nus central software, device 2 is a nRF52832 SoC and ble NUS server software. Device 1 will scan for ble NUS services.
Device 1 :
SDK : nRF Connect SDK Bare Metal v2.0.1
Tool Chain : nRF Connect SDK Toolchain v3.3.0
Softdevice : bm_nrf54l15dk/nrf54l15/cpuapp/s145_softdevice
Device 2:
SDK : nRF5 SDK V16.0.0
Softdevice : s132_nRF52_softdevice V7.0.1
Device 2 discovery works randomly.
Good case :
[00:02:18.131,818] <inf> sample: Client initialized
[00:02:18.131,875] <inf> sample: Client scan started
[00:02:18.219,577] <inf> sample: Connecting to target 3bf29a2a35d4
[00:02:18.219,599] <inf> sample: Connected, client_conn_handle = 2
[00:02:18.221,392] <inf> ble_conn_params: Peer 0x2 requested ATT MTU of 247 bytes
[00:02:18.221,420] <inf> ble_conn_params: ATT MTU set to 23 bytes for peer 0x2
[00:02:18.221,425] <inf> sample: GATT ATT MTU on connection 0x2 changed to 23
[00:02:18.251,232] <inf> ble_conn_params: Peer 0x2 requested data length of TX 251, RX 251 bytes
[00:02:18.281,228] <inf> ble_conn_params: Data length updated to TX 27, RX 27 for connection 0x2
[00:02:18.281,235] <inf> sample: Data length for connection 0x2 updated to 27
[00:02:18.551,187] <inf> sample: Discovery complete
[00:02:18.551,223] <inf> sample: Connected to device with Nordic UART Service
[00:02:18.731,176] <inf> sample: NUS TX data event, len: 3
[00:02:18.736,593] <inf> sample: Sended data to UART: <06>
[00:02:18.736,649] <inf> sample: Sended data to UART: <93>
[00:02:18.736,703] <inf> sample: Sended data to UART: <00>
[00:02:18.753,737] <inf> sample: Sended to NUS Client : <06><01><00>
[00:02:18.753,772] <inf> sample: Received data from UART: <06><01><00>
[00:02:18.862,405] <inf> sample: Received data from UART: <FF><F4><00>
Device 2 is discovered.
Bad case:
[00:00:48.303,294] <inf> sample: Client initialized
[00:00:48.303,352] <inf> sample: Client scan started
[00:00:52.891,556] <inf> sample: Sended data to UART: <FF>
[00:00:52.891,613] <inf> sample: Sended data to UART: <F7>
[00:00:52.891,668] <inf> sample: Sended data to UART: <0F>
[00:00:52.891,745] <inf> sample: Sended data to UART: <53>
[00:00:52.891,800] <inf> sample: Sended data to UART: <4F>
[00:00:52.891,855] <inf> sample: Sended data to UART: <27>
[00:00:52.891,911] <inf> sample: Sended data to UART: <54>
[00:00:52.891,966] <inf> sample: Sended data to UART: <4F>
[00:00:52.892,022] <inf> sample: Sended data to UART: <55>
[00:00:52.892,077] <inf> sample: Sended data to UART: <43>
[00:00:52.892,827] <inf> sample: Sended data to UART: <48>
[00:00:52.892,895] <inf> sample: Sended data to UART: <5F>
[00:00:52.892,950] <inf> sample: Sended data to UART: <30>
[00:00:52.893,006] <inf> sample: Sended data to UART: <30>
[00:00:52.893,059] <inf> sample: Sended data to UART: <30>
[00:00:52.893,115] <inf> sample: Sended data to UART: <34>
[00:00:52.893,170] <inf> sample: Sended data to UART: <31>
[00:00:52.893,233] <inf> sample: Sended data to UART: <38>
[00:00:52.942,274] <inf> sample: Connecting to target 3bf29a2a35d4
[00:00:52.942,296] <inf> sample: Connected, client_conn_handle = 0
[00:00:53.093,990] <inf> sample: Disconnected
[00:00:53.094,004] <inf> sample: Disconnected. conn_handle: 0x0, reason: 0x3e
Device 2 is seen by device 1, but after connection device 1 will disconnect immediately with error 0x3e (Connection failed to be established error).
Project configuration :
Scan parameters :
So, what can be the problem ?