Connection dropped immediately by peripheral while connecting from nRF52840

I try to establish a connection from nRFConnect Desktop using nRF52840DK to some hearing aid peripheral, but connection is immediately dropped after sending the first command. Also using some adjusted examples from nRFSDK in central role, will lead to same situation, where peripheral just disconnects.

It will work from nRFConnect Mobile on Android 11 and 9. There it connects successfully, and can read out all services and characteristics. It is also possible to connect/pair to the peripheral from Windows 10.

Find attached the logs from nRFConnect Desktop and Mobile and some wireshark logs for nRF5280 (failed) and Android/Win(worked)

Tested with nRF52840DK and also nRF52840Dongle. Same result for both.

Also tried to use some other BLE stack and adjusted different connection parameters like Window Offset, Interval, Timeout, CSA#2, PHY...with no success.

Regards
Heiko

Heiko

2022-11-29T17:54:37.496Z INFO Scan started
2022-11-29T17:54:37.713Z DEBUG   385/ 0 <-  [02 1d 00 ff ff 04 b5 1d a4 7e 91 6f 02 28 00 28 00 00 00 ae 00 1e 01 02 01 1a 1a ff 4c 00 0c 0e 00 25 9b 52 88 a0 74 66 a8 19 bc 02 d7 f6 10 05 5b 1c 54 ff 19 ] type:     VENDOR_SPECIFIC reliable:yes seq#:4 ack#:0 payload_length:35 data_integrity:1 header_checksum:db err_code:0x0
2022-11-29T17:54:37.713Z DEBUG      389 ->  [N/A] type:                 ACK reliable: no seq#:0 ack#:5 payload_length:0 data_integrity:0 err_code:0x0
2022-11-29T17:54:37.713Z DEBUG GAP_EVT_ADV_REPORT/ADV_IND time:2022-11-29T17:54:37.713Z connHandle:65535 rssi:82 peerAddr:[address:6F:91:7E:A4:1D:B5 type:randomPrivateResolvable addrIdPeer:0] scanRsp:false advType:advInd gap:[adTypeFlags:[leGeneralDiscMode,leOnlyGeneralDiscMode,leBrEdrController,leBrEdrHost] manufacturerSpecificData:76,0,12,14,0,37,155,82,136,160,116,102,168,25,188,2,215,246,16,5,91,28,84,255,25]
2022-11-29T17:54:37.715Z DEBUG   386/ 0 <-  [02 1d 00 ff ff 04 b5 1d a4 7e 91 6f 02 28 00 28 00 00 00 ae 01 00 01 ] type:     VENDOR_SPECIFIC reliable:yes seq#:5 ack#:0 payload_length:17 data_integrity:1 header_checksum:bc err_code:0x0
2022-11-29T17:54:37.716Z DEBUG      390 ->  [N/A] type:                 ACK reliable: no seq#:0 ack#:6 payload_length:0 data_integrity:0 err_code:0x0
2022-11-29T17:54:37.716Z DEBUG GAP_EVT_ADV_REPORT time:2022-11-29T17:54:37.714Z connHandle:65535 rssi:82 peerAddr:[address:6F:91:7E:A4:1D:B5 type:randomPrivateResolvable addrIdPeer:0] scanRsp:true
2022-11-29T17:54:37.801Z DEBUG   387/ 0 <-  [02 1d 00 ff ff 04 65 9d 02 4c ec 7f 02 28 00 28 00 00 00 a7 00 1e 01 02 01 06 02 0a ef 11 06 92 15 37 84 e8 cc 2c 86 31 44 4a c7 bd f4 74 7d 05 ff 07 01 01 01 ] type:     VENDOR_SPECIFIC reliable:yes seq#:6 ack#:0 payload_length:35 data_integrity:1 header_checksum:d9 err_code:0x0
2022-11-29T17:54:37.801Z DEBUG      391 ->  [N/A] type:                 ACK reliable: no seq#:0 ack#:7 payload_length:0 data_integrity:0 err_code:0x0
2022-11-29T17:54:37.801Z DEBUG GAP_EVT_ADV_REPORT/ADV_IND time:2022-11-29T17:54:37.801Z connHandle:65535 rssi:89 peerAddr:[address:7F:EC:4C:02:9D:65 type:randomPrivateResolvable addrIdPeer:0] scanRsp:false advType:advInd gap:[adTypeFlags:[leGeneralDiscMode,brEdrNotSupported,leOnlyLimitedDiscMode,leOnlyGeneralDiscMode] txPowerLevel:239 128BitServiceUuidMoreAvailable:7D74F4BD-C74A-4431-862C-CCE884371592 manufacturerSpecificData:7,1,1,1]
2022-11-29T17:54:37.806Z DEBUG   388/ 0 <-  [02 1d 00 ff ff 04 65 9d 02 4c ec 7f 00 04 65 9d 02 4c ec a9 01 03 01 02 09 68 ] type:     VENDOR_SPECIFIC reliable:yes seq#:7 ack#:0 payload_length:1a data_integrity:1 header_checksum:8a err_code:0x0
2022-11-29T17:54:37.806Z DEBUG      392 ->  [N/A] type:                 ACK reliable: no seq#:0 ack#:0 payload_length:0 data_integrity:0 err_code:0x0
2022-11-29T17:54:37.806Z DEBUG GAP_EVT_ADV_REPORT time:2022-11-29T17:54:37.802Z connHandle:65535 rssi:87 peerAddr:[address:7F:EC:4C:02:9D:65 type:randomPrivateResolvable addrIdPeer:0] scanRsp:true gap:[completeLocalName:h]
2022-11-29T17:54:37.903Z DEBUG   389/ 0 <-  [02 1d 00 ff ff 06 b9 05 d7 10 80 34 00 67 fe 02 00 4a fe a3 06 1f 01 1e ff 06 00 01 09 20 02 9e e6 0d 5f c0 8d 90 1b 21 a3 d3 dd f2 14 7b ee 33 34 c1 92 16 01 10 ] type:     VENDOR_SPECIFIC reliable:yes seq#:0 ack#:0 payload_length:36 data_integrity:1 header_checksum:cf err_code:0x0
2022-11-29T17:54:37.904Z DEBUG      393 ->  [N/A] type:                 ACK reliable: no seq#:0 ack#:1 payload_length:0 data_integrity:0 err_code:0x0
2022-11-29T17:54:37.904Z DEBUG GAP_EVT_ADV_REPORT/ADV_NONCONN_IND time:2022-11-29T17:54:37.904Z connHandle:65535 rssi:93 peerAddr:[address:34:80:10:D7:05:B9 type:randomPrivateNonResolvable addrIdPeer:0] scanRsp:false advType:advNonconnInd gap:[manufacturerSpecificData:6,0,1,9,32,2,158,230,13,95,192,141,144,27,33,163,211,221,242,20,123,238,51,52,193,146,22,1,16]
2022-11-29T17:54:37.912Z DEBUG   390/ 0 <-  [02 1d 00 ff ff 04 b5 1d a4 7e 91 6f 00 67 fe 02 00 4a fe aa 00 1e 01 02 01 1a 1a ff 4c 00 0c 0e 00 25 9b 52 88 a0 74 66 a8 19 bc 02 d7 f6 10 05 5b 1c 54 ff 19 ] type:     VENDOR_SPECIFIC reliable:yes seq#:1 ack#:0 payload_length:35 data_integrity:1 header_checksum:de err_code:0x0
2022-11-29T17:54:37.912Z DEBUG      394 ->  [N/A] type:                 ACK reliable: no seq#:0 ack#:2 payload_length:0 data_integrity:0 err_code:0x0
2022-11-29T17:54:37.912Z DEBUG GAP_EVT_ADV_REPORT/ADV_IND time:2022-11-29T17:54:37.912Z connHandle:65535 rssi:86 peerAddr:[address:6F:91:7E:A4:1D:B5 type:randomPrivateResolvable addrIdPeer:0] scanRsp:false advType:advInd gap:[adTypeFlags:[leGeneralDiscMode,leOnlyGeneralDiscMode,leBrEdrController,leBrEdrHost] manufacturerSpecificData:76,0,12,14,0,37,155,82,136,160,116,102,168,25,188,2,215,246,16,5,91,28,84,255,25]
2022-11-29T17:54:38.007Z DEBUG   391/ 0 <-  [02 1d 00 ff ff 04 b5 1d a4 7e 91 6f 00 67 fe 02 00 4a fe ae 00 1e 01 02 01 1a 1a ff 4c 00 0c 0e 00 25 9b 52 88 a0 74 66 a8 19 bc 02 d7 f6 10 05 5b 1c 54 ff 19 ] type:     VENDOR_SPECIFIC reliable:yes seq#:2 ack#:0 payload_length:35 data_integrity:1 header_checksum:dd err_code:0x0
2022-11-29T17:54:38.007Z DEBUG      395 ->  [N/A] type:                 ACK reliable: no seq#:0 ack#:3 payload_length:0 data_integrity:0 err_code:0x0
2022-11-29T17:54:38.007Z DEBUG GAP_EVT_ADV_REPORT/ADV_IND time:2022-11-29T17:54:38.007Z connHandle:65535 rssi:82 peerAddr:[address:6F:91:7E:A4:1D:B5 type:randomPrivateResolvable addrIdPeer:0] scanRsp:false advType:advInd gap:[adTypeFlags:[leGeneralDiscMode,leOnlyGeneralDiscMode,leBrEdrController,leBrEdrHost] manufacturerSpecificData:76,0,12,14,0,37,155,82,136,160,116,102,168,25,188,2,215,246,16,5,91,28,84,255,25]
2022-11-29T17:54:38.010Z DEBUG   392/ 0 <-  [02 1d 00 ff ff 06 bb c5 ab 73 2b 01 00 67 fe 02 00 4a fe a9 06 1e 01 02 01 1a 1a ff 4c 00 02 15 11 19 19 bb 78 13 4e a7 9e 65 6f 14 00 00 00 79 1f 01 a8 c0 01 ] type:     VENDOR_SPECIFIC reliable:yes seq#:3 ack#:0 payload_length:35 data_integrity:1 header_checksum:dc err_code:0x0
2022-11-29T17:54:38.010Z DEBUG      396 ->  [N/A] type:                 ACK reliable: no seq#:0 ack#:4 payload_length:0 data_integrity:0 err_code:0x0
2022-11-29T17:54:38.010Z DEBUG GAP_EVT_ADV_REPORT/ADV_NONCONN_IND time:2022-11-29T17:54:38.009Z connHandle:65535 rssi:87 peerAddr:[address:01:2B:73:AB:C5:BB type:randomPrivateNonResolvable addrIdPeer:0] scanRsp:false advType:advNonconnInd gap:[adTypeFlags:[leGeneralDiscMode,leOnlyGeneralDiscMode,leBrEdrController,leBrEdrHost] manufacturerSpecificData:76,0,2,21,17,25,25,187,120,19,78,167,158,101,111,20,0,0,0,121,31,1,168,192,1]
2022-11-29T17:54:38.114Z DEBUG   393/ 0 <-  [02 1d 00 ff ff 04 65 9d 02 4c ec 7f 00 67 fe 02 00 4a fe a7 00 1e 01 02 01 06 02 0a ef 11 06 92 15 37 84 e8 cc 2c 86 31 44 4a c7 bd f4 74 7d 05 ff 07 01 01 01 ] type:     VENDOR_SPECIFIC reliable:yes seq#:4 ack#:0 payload_length:35 data_integrity:1 header_checksum:db err_code:0x0
2022-11-29T17:54:38.115Z DEBUG      397 ->  [N/A] type:                 ACK reliable: no seq#:0 ack#:5 payload_length:0 data_integrity:0 err_code:0x0
2022-11-29T17:54:38.115Z DEBUG GAP_EVT_ADV_REPORT/ADV_IND time:2022-11-29T17:54:38.115Z connHandle:65535 rssi:89 peerAddr:[address:7F:EC:4C:02:9D:65 type:randomPrivateResolvable addrIdPeer:0] scanRsp:false advType:advInd gap:[adTypeFlags:[leGeneralDiscMode,brEdrNotSupported,leOnlyLimitedDiscMode,leOnlyGeneralDiscMode] txPowerLevel:239 128BitServiceUuidMoreAvailable:7D74F4BD-C74A-4431-862C-CCE884371592 manufacturerSpecificData:7,1,1,1]
2022-11-29T17:54:38.120Z DEBUG   394/ 0 <-  [02 1d 00 ff ff 04 65 9d 02 4c ec 7f 00 67 fe 02 00 4a fe a8 01 03 01 02 09 68 ] type:     VENDOR_SPECIFIC reliable:yes seq#:5 ack#:0 payload_length:1a data_integrity:1 header_checksum:8c err_code:0x0
2022-11-29T17:54:38.120Z DEBUG      398 ->  [N/A] type:                 ACK reliable: no seq#:0 ack#:6 payload_length:0 data_integrity:0 err_code:0x0
2022-11-29T17:54:38.120Z DEBUG GAP_EVT_ADV_REPORT time:2022-11-29T17:54:38.117Z connHandle:65535 rssi:88 peerAddr:[address:7F:EC:4C:02:9D:65 type:randomPrivateResolvable addrIdPeer:0] scanRsp:true gap:[completeLocalName:h]
2022-11-29T17:54:38.397Z DEBUG   395/ 0 <-  [02 1d 00 ff ff 06 71 f8 e2 19 2e 0e 00 67 fe 02 00 4a fe cf 06 1f 01 1e ff 06 00 01 09 20 02 7e e7 bb 15 2f db fe e3 d7 d4 8e 3d 4f 55 a3 2b ff 73 60 df 0d ec 9f ] type:     VENDOR_SPECIFIC reliable:yes seq#:6 ack#:0 payload_length:36 data_integrity:1 header_checksum:c9 err_code:0x0
2022-11-29T17:54:38.397Z DEBUG      399 ->  [N/A] type:                 ACK reliable: no seq#:0 ack#:7 payload_length:0 data_integrity:0 err_code:0x0
2022-11-29T17:54:38.397Z DEBUG GAP_EVT_ADV_REPORT/ADV_NONCONN_IND time:2022-11-29T17:54:38.397Z connHandle:65535 rssi:49 peerAddr:[address:0E:2E:19:E2:F8:71 type:randomPrivateNonResolvable addrIdPeer:0] scanRsp:false advType:advNonconnInd gap:[manufacturerSpecificData:6,0,1,9,32,2,126,231,187,21,47,219,254,227,215,212,142,61,79,85,163,43,255,115,96,223,13,236,159]
2022-11-29T17:54:38.404Z DEBUG   396/ 0 <-  [02 1d 00 ff ff 04 f3 86 8f 50 4c 4d 00 67 fe 02 00 4a fe a8 00 11 01 02 01 1a 02 0a 05 0a ff 4c 00 10 05 03 18 22 e5 a0 ] type:     VENDOR_SPECIFIC reliable:yes seq#:7 ack#:0 payload_length:28 data_integrity:1 header_checksum:a9 err_code:0x0
2022-11-29T17:54:38.404Z DEBUG      400 ->  [N/A] type:                 ACK reliable: no seq#:0 ack#:0 payload_length:0 data_integrity:0 err_code:0x0
2022-11-29T17:54:38.404Z DEBUG GAP_EVT_ADV_REPORT/ADV_IND time:2022-11-29T17:54:38.404Z connHandle:65535 rssi:88 peerAddr:[address:4D:4C:50:8F:86:F3 type:randomPrivateResolvable addrIdPeer:0] scanRsp:false advType:advInd gap:[adTypeFlags:[leGeneralDiscMode,leOnlyGeneralDiscMode,leBrEdrController,leBrEdrHost] txPowerLevel:5 manufacturerSpecificData:76,0,16,5,3,24,34,229,160]
2022-11-29T17:54:38.406Z DEBUG   397/ 0 <-  [02 1d 00 ff ff 04 4c cd 9e af c4 70 00 67 fe 02 00 4a fe bc 00 03 01 02 01 06 ] type:     VENDOR_SPECIFIC reliable:yes seq#:0 ack#:0 payload_length:1a data_integrity:1 header_checksum:91 err_code:0x0
2022-11-29T17:54:38.406Z DEBUG      401 ->  [N/A] type:                 ACK reliable: no seq#:0 ack#:1 payload_length:0 data_integrity:0 err_code:0x0
2022-11-29T17:54:38.406Z DEBUG GAP_EVT_ADV_REPORT/ADV_IND time:2022-11-29T17:54:38.406Z connHandle:65535 rssi:68 peerAddr:[address:70:C4:AF:9E:CD:4C type:randomPrivateResolvable addrIdPeer:0] scanRsp:false advType:advInd gap:[adTypeFlags:[leGeneralDiscMode,brEdrNotSupported,leOnlyLimitedDiscMode,leOnlyGeneralDiscMode]]
2022-11-29T17:54:38.408Z DEBUG   398/ 0 <-  [02 1d 00 ff ff 04 4c cd 9e af c4 70 00 7d df 00 00 ac 03 bd 01 00 01 ] type:     VENDOR_SPECIFIC reliable:yes seq#:1 ack#:0 payload_length:17 data_integrity:1 header_checksum:c0 err_code:0x0
2022-11-29T17:54:38.408Z DEBUG      402 ->  [N/A] type:                 ACK reliable: no seq#:0 ack#:2 payload_length:0 data_integrity:0 err_code:0x0
2022-11-29T17:54:38.408Z DEBUG GAP_EVT_ADV_REPORT time:2022-11-29T17:54:38.407Z connHandle:65535 rssi:67 peerAddr:[address:70:C4:AF:9E:CD:4C type:randomPrivateResolvable addrIdPeer:0] scanRsp:true
2022-11-29T17:54:38.503Z DEBUG   399/ 0 <-  [02 1d 00 ff ff 06 fa 56 0a ad f0 24 00 67 fe 02 00 4a fe a9 06 1c 01 03 03 6f fd 17 16 6f fd 71 cf 20 fb a5 9d 9f 68 6e a9 f6 7d c9 fe ee 27 79 e3 69 f7 ] type:     VENDOR_SPECIFIC reliable:yes seq#:2 ack#:0 payload_length:33 data_integrity:1 header_checksum:fd err_code:0x0
2022-11-29T17:54:38.503Z DEBUG      403 ->  [N/A] type:                 ACK reliable: no seq#:0 ack#:3 payload_length:0 data_integrity:0 err_code:0x0
2022-11-29T17:54:38.503Z DEBUG GAP_EVT_ADV_REPORT/ADV_NONCONN_IND time:2022-11-29T17:54:38.503Z connHandle:65535 rssi:87 peerAddr:[address:24:F0:AD:0A:56:FA type:randomPrivateNonResolvable addrIdPeer:0] scanRsp:false advType:advNonconnInd gap:[16BitServiceUuidComplete:FD6F serviceData:111,253,113,207,32,251,165,157,159,104,110,169,246,125,201,254,238,39,121,227,105,247]
2022-11-29T17:54:38.506Z DEBUG   400/ 0 <-  [02 1d 00 ff ff 06 71 f8 e2 19 2e 0e 00 67 fe 02 00 4a fe c6 06 1f 01 1e ff 06 00 01 09 20 02 7e e7 bb 15 2f db fe e3 d7 d4 8e 3d 4f 55 a3 2b ff 73 60 df 0d ec 9f ] type:     VENDOR_SPECIFIC reliable:yes seq#:3 ack#:0 payload_length:36 data_integrity:1 header_checksum:cc err_code:0x0
2022-11-29T17:54:38.506Z DEBUG      404 ->  [N/A] type:                 ACK reliable: no seq#:0 ack#:4 payload_length:0 data_integrity:0 err_code:0x0
2022-11-29T17:54:38.506Z DEBUG GAP_EVT_ADV_REPORT/ADV_NONCONN_IND time:2022-11-29T17:54:38.506Z connHandle:65535 rssi:58 peerAddr:[address:0E:2E:19:E2:F8:71 type:randomPrivateNonResolvable addrIdPeer:0] scanRsp:false advType:advNonconnInd gap:[manufacturerSpecificData:6,0,1,9,32,2,126,231,187,21,47,219,254,227,215,212,142,61,79,85,163,43,255,115,96,223,13,236,159]
2022-11-29T17:54:38.531Z DEBUG      405 ->  [00 8b ] type:     VENDOR_SPECIFIC reliable:yes seq#:0 ack#:4 payload_length:2 data_integrity:1 header_checksum:f2 err_code:0x0
2022-11-29T17:54:38.532Z DEBUG   401/ 0 <-  [N/A] type:                 ACK reliable: no seq#:0 ack#:1 payload_length:0 data_integrity:0 err_code:0x0
2022-11-29T17:54:38.532Z DEBUG   402/ 0 <-  [01 8b 00 00 00 00 ] type:     VENDOR_SPECIFIC reliable:yes seq#:4 ack#:1 payload_length:6 data_integrity:1 header_checksum:c6 err_code:0x0
2022-11-29T17:54:38.532Z DEBUG      406 ->  [N/A] type:                 ACK reliable: no seq#:0 ack#:5 payload_length:0 data_integrity:0 err_code:0x0
2022-11-29T17:54:38.537Z INFO Scan stopped
2022-11-29T17:54:45.923Z INFO Connecting to device
2022-11-29T17:54:45.930Z DEBUG      413 ->  [00 8c 01 04 65 9d 02 4c ec 7f 01 01 a0 00 50 00 14 00 01 28 00 28 00 00 00 f4 01 01 ] type:     VENDOR_SPECIFIC reliable:yes seq#:3 ack#:1 payload_length:1c data_integrity:1 header_checksum:66 err_code:0x0
2022-11-29T17:54:45.930Z DEBUG   409/ 0 <-  [N/A] type:                 ACK reliable: no seq#:0 ack#:4 payload_length:0 data_integrity:0 err_code:0x0
2022-11-29T17:54:45.930Z DEBUG   410/ 0 <-  [01 8c 00 00 00 00 ] type:     VENDOR_SPECIFIC reliable:yes seq#:1 ack#:4 payload_length:6 data_integrity:1 header_checksum:b1 err_code:0x0
2022-11-29T17:54:45.930Z DEBUG      414 ->  [N/A] type:                 ACK reliable: no seq#:0 ack#:2 payload_length:0 data_integrity:0 err_code:0x0
2022-11-29T17:54:46.175Z DEBUG   411/ 0 <-  [02 10 00 00 00 04 65 9d 02 4c ec 7f 02 28 00 28 00 00 00 f4 01 ] type:     VENDOR_SPECIFIC reliable:yes seq#:2 ack#:4 payload_length:15 data_integrity:1 header_checksum:bf err_code:0x0
2022-11-29T17:54:46.176Z DEBUG      415 ->  [N/A] type:                 ACK reliable: no seq#:0 ack#:3 payload_length:0 data_integrity:0 err_code:0x0
2022-11-29T17:54:46.176Z DEBUG GAP_EVT_CONNECTED time:2022-11-29T17:54:46.176Z connHandle:0 peerAddr:[address:7F:EC:4C:02:9D:65 type:randomPrivateResolvable addrIdPeer:0] role:central connParams:[minConnInterval:50 maxConnInterval:50 slaveLatency:0 connSupTimeout:5000]
2022-11-29T17:54:46.187Z INFO Connected to device 7F:EC:4C:02:9D:65: interval: 50ms, timeout: 5000ms, latency: 0
2022-11-29T17:54:46.198Z DEBUG      416 ->  [00 94 00 00 01 00 00 ] type:     VENDOR_SPECIFIC reliable:yes seq#:4 ack#:3 payload_length:7 data_integrity:1 header_checksum:a6 err_code:0x0
2022-11-29T17:54:46.198Z DEBUG   412/ 0 <-  [N/A] type:                 ACK reliable: no seq#:0 ack#:5 payload_length:0 data_integrity:0 err_code:0x0
2022-11-29T17:54:46.198Z DEBUG   413/ 0 <-  [01 94 00 00 00 00 ] type:     VENDOR_SPECIFIC reliable:yes seq#:3 ack#:5 payload_length:6 data_integrity:1 header_checksum:a7 err_code:0x0
2022-11-29T17:54:46.198Z DEBUG      417 ->  [N/A] type:                 ACK reliable: no seq#:0 ack#:4 payload_length:0 data_integrity:0 err_code:0x0
2022-11-29T17:54:46.276Z DEBUG   414/ 0 <-  [02 11 00 00 00 13 ] type:     VENDOR_SPECIFIC reliable:yes seq#:4 ack#:5 payload_length:6 data_integrity:1 header_checksum:a6 err_code:0x0
2022-11-29T17:54:46.276Z DEBUG      418 ->  [N/A] type:                 ACK reliable: no seq#:0 ack#:5 payload_length:0 data_integrity:0 err_code:0x0
2022-11-29T17:54:46.279Z DEBUG GAP_EVT_DISCONNECTED time:2022-11-29T17:54:46.276Z connHandle:0 reason:19 reasonName:remoteUserTerminatedConnection
2022-11-29T17:54:46.284Z INFO Disconnected from device 7F:EC:4C:02:9D:65, reason: BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION
2022-11-29T17:55:01.224Z INFO Connecting to device
2022-11-29T17:55:01.233Z DEBUG      419 ->  [00 8c 01 04 65 9d 02 4c ec 7f 01 01 a0 00 50 00 14 00 01 06 00 06 00 00 00 f4 01 01 ] type:     VENDOR_SPECIFIC reliable:yes seq#:5 ack#:5 payload_length:1c data_integrity:1 header_checksum:44 err_code:0x0
2022-11-29T17:55:01.233Z DEBUG   415/ 0 <-  [N/A] type:                 ACK reliable: no seq#:0 ack#:6 payload_length:0 data_integrity:0 err_code:0x0
2022-11-29T17:55:01.233Z DEBUG   416/ 0 <-  [01 8c 00 00 00 00 ] type:     VENDOR_SPECIFIC reliable:yes seq#:5 ack#:6 payload_length:6 data_integrity:1 header_checksum:9d err_code:0x0
2022-11-29T17:55:01.233Z DEBUG      420 ->  [N/A] type:                 ACK reliable: no seq#:0 ack#:6 payload_length:0 data_integrity:0 err_code:0x0
2022-11-29T17:55:01.249Z DEBUG   417/ 0 <-  [02 10 00 00 00 04 65 9d 02 4c ec 7f 02 06 00 06 00 00 00 f4 01 ] type:     VENDOR_SPECIFIC reliable:yes seq#:6 ack#:6 payload_length:15 data_integrity:1 header_checksum:ab err_code:0x0
2022-11-29T17:55:01.249Z DEBUG      421 ->  [N/A] type:                 ACK reliable: no seq#:0 ack#:7 payload_length:0 data_integrity:0 err_code:0x0
2022-11-29T17:55:01.249Z DEBUG GAP_EVT_CONNECTED time:2022-11-29T17:55:01.249Z connHandle:0 peerAddr:[address:7F:EC:4C:02:9D:65 type:randomPrivateResolvable addrIdPeer:0] role:central connParams:[minConnInterval:7_5 maxConnInterval:7_5 slaveLatency:0 connSupTimeout:5000]
2022-11-29T17:55:01.255Z INFO Connected to device 7F:EC:4C:02:9D:65: interval: 7.5ms, timeout: 5000ms, latency: 0
2022-11-29T17:55:01.266Z DEBUG      422 ->  [00 94 00 00 01 00 00 ] type:     VENDOR_SPECIFIC reliable:yes seq#:6 ack#:7 payload_length:7 data_integrity:1 header_checksum:84 err_code:0x0
2022-11-29T17:55:01.266Z DEBUG   418/ 0 <-  [N/A] type:                 ACK reliable: no seq#:0 ack#:7 payload_length:0 data_integrity:0 err_code:0x0
2022-11-29T17:55:01.266Z DEBUG   419/ 0 <-  [01 94 00 00 00 00 ] type:     VENDOR_SPECIFIC reliable:yes seq#:7 ack#:7 payload_length:6 data_integrity:1 header_checksum:93 err_code:0x0
2022-11-29T17:55:01.266Z DEBUG      423 ->  [N/A] type:                 ACK reliable: no seq#:0 ack#:0 payload_length:0 data_integrity:0 err_code:0x0
2022-11-29T17:55:01.280Z DEBUG GAP_EVT_DISCONNECTED time:2022-11-29T17:55:01.280Z connHandle:0 reason:19 reasonName:remoteUserTerminatedConnection
2022-11-29T17:55:01.282Z INFO Disconnected from device 7F:EC:4C:02:9D:65, reason: BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION
2022-11-29T17:55:01.288Z DEBUG   420/ 0 <-  [02 11 00 00 00 13 ] type:     VENDOR_SPECIFIC reliable:yes seq#:0 ack#:7 payload_length:6 data_integrity:1 header_checksum:9a err_code:0x0
2022-11-29T17:55:01.288Z DEBUG      424 ->  [N/A] type:                 ACK reliable: no seq#:0 ack#:1 payload_length:0 data_integrity:0 err_code:0x0
2022-11-29T17:55:04.172Z INFO Connecting to device
2022-11-29T17:55:04.178Z DEBUG      425 ->  [00 8c 01 04 65 9d 02 4c ec 7f 01 01 a0 00 50 00 14 00 01 06 00 06 00 00 00 f4 01 01 ] type:     VENDOR_SPECIFIC reliable:yes seq#:7 ack#:1 payload_length:1c data_integrity:1 header_checksum:62 err_code:0x0
2022-11-29T17:55:04.178Z DEBUG   421/ 0 <-  [N/A] type:                 ACK reliable: no seq#:0 ack#:0 payload_length:0 data_integrity:0 err_code:0x0
2022-11-29T17:55:04.178Z DEBUG   422/ 0 <-  [01 8c 00 00 00 00 ] type:     VENDOR_SPECIFIC reliable:yes seq#:1 ack#:0 payload_length:6 data_integrity:1 header_checksum:d1 err_code:0x0
2022-11-29T17:55:04.178Z DEBUG      426 ->  [N/A] type:                 ACK reliable: no seq#:0 ack#:2 payload_length:0 data_integrity:0 err_code:0x0
2022-11-29T17:55:04.497Z DEBUG   423/ 0 <-  [02 10 00 00 00 04 65 9d 02 4c ec 7f 02 06 00 06 00 00 00 f4 01 ] type:     VENDOR_SPECIFIC reliable:yes seq#:2 ack#:0 payload_length:15 data_integrity:1 header_checksum:df err_code:0x0
2022-11-29T17:55:04.497Z DEBUG      427 ->  [N/A] type:                 ACK reliable: no seq#:0 ack#:3 payload_length:0 data_integrity:0 err_code:0x0
2022-11-29T17:55:04.497Z DEBUG GAP_EVT_CONNECTED time:2022-11-29T17:55:04.497Z connHandle:0 peerAddr:[address:7F:EC:4C:02:9D:65 type:randomPrivateResolvable addrIdPeer:0] role:central connParams:[minConnInterval:7_5 maxConnInterval:7_5 slaveLatency:0 connSupTimeout:5000]
2022-11-29T17:55:04.503Z INFO Connected to device 7F:EC:4C:02:9D:65: interval: 7.5ms, timeout: 5000ms, latency: 0
2022-11-29T17:55:04.514Z DEBUG      428 ->  [00 94 00 00 01 00 00 ] type:     VENDOR_SPECIFIC reliable:yes seq#:0 ack#:3 payload_length:7 data_integrity:1 header_checksum:aa err_code:0x0
2022-11-29T17:55:04.514Z DEBUG   424/ 0 <-  [N/A] type:                 ACK reliable: no seq#:0 ack#:1 payload_length:0 data_integrity:0 err_code:0x0
2022-11-29T17:55:04.514Z DEBUG   425/ 0 <-  [01 94 00 00 00 00 ] type:     VENDOR_SPECIFIC reliable:yes seq#:3 ack#:1 payload_length:6 data_integrity:1 header_checksum:c7 err_code:0x0
2022-11-29T17:55:04.514Z DEBUG      429 ->  [N/A] type:                 ACK reliable: no seq#:0 ack#:4 payload_length:0 data_integrity:0 err_code:0x0
2022-11-29T17:55:04.528Z DEBUG GAP_EVT_DISCONNECTED time:2022-11-29T17:55:04.528Z connHandle:0 reason:19 reasonName:remoteUserTerminatedConnection
2022-11-29T17:55:04.529Z INFO Disconnected from device 7F:EC:4C:02:9D:65, reason: BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION
2022-11-29T17:55:04.534Z DEBUG   426/ 0 <-  [02 11 00 00 00 13 ] type:     VENDOR_SPECIFIC reliable:yes seq#:4 ack#:1 payload_length:6 data_integrity:1 header_checksum:c6 err_code:0x0
2022-11-29T17:55:04.534Z DEBUG      430 ->  [N/A] type:                 ACK reliable: no seq#:0 ack#:5 payload_length:0 data_integrity:0 err_code:0x0
nRF Connect, 2022-11-29
h (7F:EC:4C:02:9D:65)
I	18:56:12.596	[Server] Server started
V	18:56:12.609	Heart Rate (0x180D)
- Heart Rate Measurement [N] (0x2A37)
   Client Characteristic Configuration (0x2902)
- Body Sensor Location [R] (0x2A38)
- Heart Rate Control Point [W] (0x2A39)
Unknown Service (0000aaa0-0000-1000-8000-aabbccddeeff)
- Unknown Characteristic [N R] (0000aaa1-0000-1000-8000-aabbccddeeff)
   Client Characteristic Configuration (0x2902)
   Unknown Descriptor (0000aab0-0000-1000-8000-aabbccddeeff)
   Characteristic User Description (0x2901)
   Characteristic Presentation Format (0x2904)
- Unknown Characteristic [I W WNR] (0000aaa2-0000-1000-8000-aabbccddeeff)
   Client Characteristic Configuration (0x2902)
User Data (0x181C)
- First Name [R W] (0x2A8A)
- Last Name [R W] (0x2A90)
- Gender [R W] (0x2A8C)
V	18:56:12.929	Connecting to 7F:EC:4C:02:9D:65...
D	18:56:12.929	gatt = device.connectGatt(autoConnect = false, TRANSPORT_LE, preferred PHY = LE 1M)
D	18:56:13.276	[Server callback] Connection state changed with status: 0 and new state: CONNECTED (2)
I	18:56:13.277	[Server] Device with address 7F:EC:4C:02:9D:65 connected
D	18:56:13.291	[Callback] Connection state changed with status: 0 and new state: CONNECTED (2)
I	18:56:13.291	Connected to 7F:EC:4C:02:9D:65
D	18:56:13.304	[Broadcast] Action received: android.bluetooth.device.action.ACL_CONNECTED
V	18:56:13.308	Discovering services...
D	18:56:13.308	gatt.discoverServices()
I	18:56:13.516	[Server] PHY updated (TX: LE 2M, RX: LE 2M)
I	18:56:13.522	PHY updated (TX: LE 2M, RX: LE 2M)
I	18:56:13.909	Connection parameters updated (interval: 7.5ms, latency: 0, timeout: 5000ms)
D	18:56:16.038	[Callback] Services discovered with status: 0
I	18:56:16.038	Services discovered
V	18:56:16.109	Generic Attribute (0x1801)
- Service Changed [I] (0x2A05)
   Client Characteristic Configuration (0x2902)
- Client Supported Features [R W] (0x2B29)
- Database Hash [R] (0x2B2A)
Generic Access (0x1800)
- Device Name [R] (0x2A00)
- Appearance [R] (0x2A01)
- Central Address Resolution [R] (0x2AA6)
- Peripheral Preferred Connection Parameters [R] (0x2A04)
Device Information (0x180A)
- Model Number String [R] (0x2A24)
- Manufacturer Name String [R] (0x2A29)
- Firmware Revision String [R] (0x2A26)
- Hardware Revision String [R] (0x2A27)
- Software Revision String [R] (0x2A28)
Unknown Service (ba50125d-0806-42ab-8bf1-22e0b954a8fa)
- Unknown Characteristic [R] (e6c02a45-a0e5-41f2-9cd1-c1fab9ec0c3e)
- Unknown Characteristic [N W] (43c8465e-ba80-451d-8098-57716b4fdbe5)
   Client Characteristic Configuration (0x2902)
- Unknown Characteristic [W WNR] (855c8579-17b7-40a8-be4f-ad574357f797)
- Unknown Characteristic [W WNR] (6d6a8b8f-544e-4ef1-be91-c60db8e70884)
- Unknown Characteristic [W WNR] (f6c47754-8bd2-4cc2-bf0b-fdee78fa812e)
- Unknown Characteristic [N] (5eb7ff93-ebeb-479c-85ab-526f25482545)
   Client Characteristic Configuration (0x2902)
- Unknown Characteristic [N] (ed5f901b-fb08-452c-8d01-46b6c9c1bcc5)
   Client Characteristic Configuration (0x2902)
- Unknown Characteristic [N] (80911332-ead5-4da0-9bfa-4d6286032e25)
   Client Characteristic Configuration (0x2902)
Unknown Service (8341f2b4-c013-4f04-8197-c4cdb42e26dc)
- Unknown Characteristic [R] (0188bf66-463a-405d-91fd-0b8940b92254)
- Unknown Characteristic [R] (2bdcaebe-8746-45df-a841-96b840980fb7)
- Unknown Characteristic [R] (2bdcaebe-8746-45df-a841-96b840980fb8)
- Unknown Characteristic [N R W] (30e69638-3752-4feb-a3aa-3226bcd05ace)
   Client Characteristic Configuration (0x2902)
Unknown Service (7d74f4bd-c74a-4431-862c-cce884371592)
- Unknown Characteristic [N R] (24e1dff3-ae90-41bf-bfbd-2cf8df42bf87)
   Client Characteristic Configuration (0x2902)
- Unknown Characteristic [R] (8d17ac2f-1d54-4742-a49a-ef4b20784eb3)
- Unknown Characteristic [R] (c97d21d3-d79d-4df8-9230-bb33fa805f4e)
- Unknown Characteristic [R] (497eeb9e-b194-4f35-bc82-36fd300482a6)
- Unknown Characteristic [N R W] (f3f594f9-e210-48f3-85e2-4b0cf235a9d3)
   Client Characteristic Configuration (0x2902)
- Unknown Characteristic [N R W] (6ac46200-24ea-46d8-a136-81133c65840a)
   Client Characteristic Configuration (0x2902)
- Unknown Characteristic [R] (21ff4275-c41d-4486-a0e3-dc11138bcde6)
- Unknown Characteristic [N R W] (a391c6f1-20bb-495a-abbf-2017098fbc61)
   Client Characteristic Configuration (0x2902)
- Unknown Characteristic [N R] (adc3023d-bfd2-43fd-86f6-7ae05a619092)
   Client Characteristic Configuration (0x2902)
- Unknown Characteristic [R W] (a28b6be1-2fa4-42f8-aeb2-b15a1dbd837a)
- Unknown Characteristic [R W] (7be94a55-8d91-4592-bc0f-ea3664ccd3a9)
- Unknown Characteristic [R W] (9c12a3db-9ce8-4865-a217-d394b3bc9311)
- Unknown Characteristic [R] (16438c66-e95a-4c6f-8117-a6b745bd86fc)
- Unknown Characteristic [N R W] (4656d3ac-c2df-4096-96e7-713580b69ccd)
   Client Characteristic Configuration (0x2902)
- Unknown Characteristic [R] (76b3db1f-44c4-46cc-a7b5-e9ce7dfbef50)
- Unknown Characteristic [R] (98924a39-6559-40a8-b302-3c8e40dbf834)
- Unknown Characteristic [R] (8e750bb1-40c1-48df-b450-97f245c57e0c)
- Unknown Characteristic [N R] (61d1b37d-94d5-4281-a88f-9b67f8f96314)
   Client Characteristic Configuration (0x2902)
Unknown Service (56772eaf-2153-4f74-acf3-4368d99fbf5a)
- Unknown Characteristic [R] (e24fac83-b5a8-4b9b-8fda-803fffb0c21c)
- Unknown Characteristic [R] (d28617fe-0ad5-40c5-a04a-bc89051ff755)
- Unknown Characteristic [R] (5f35c43d-e0f4-4da9-87e6-9719982cd25e)
- Unknown Characteristic [R] (353ecc73-4d2c-421b-ac1c-8dcb35cd4477)
- Unknown Characteristic [W WNR] (6d5758a1-d4af-4b32-b95e-1e6992454f4f)
- Unknown Characteristic [R] (dcbe7a3e-a742-4527-aeb5-cd8dee63167f)
- Unknown Characteristic [N R W] (68bfa64e-3209-4172-b117-f7eafce17414)
   Client Characteristic Configuration (0x2902)
- Unknown Characteristic [R] (bba1c7f1-b445-4657-90c3-8dbd97361a0c)
- Unknown Characteristic [N R] (42e940ef-98c8-4ccd-a557-30425295af89)
   Client Characteristic Configuration (0x2902)
- Unknown Characteristic [N R W WNR] (535442f7-0ff7-4fec-9780-742f3eb00eda)
   Client Characteristic Configuration (0x2902)
- Unknown Characteristic [N R W WNR] (1454e9d6-f658-4190-8589-22aa9e3021eb)
   Client Characteristic Configuration (0x2902)
- Unknown Characteristic [N R W WNR] (e5892ebe-97d0-4f97-8f8e-cb85d16a4cc1)
   Client Characteristic Configuration (0x2902)
- Unknown Characteristic [N R W WNR] (60415e72-c345-417a-bb2b-bbba95b2c9a3)
   Client Characteristic Configuration (0x2902)
- Unknown Characteristic [N R W WNR] (9215a295-b813-483f-9f85-b700d0b7bc75)
   Client Characteristic Configuration (0x2902)
- Unknown Characteristic [N R W WNR] (6e557876-ccc4-40e0-8c2d-651542c5ad3d)
   Client Characteristic Configuration (0x2902)
- Unknown Characteristic [N R W WNR] (50632720-4c0f-4bc4-960a-2404bdfdfbca)
   Client Characteristic Configuration (0x2902)
- Unknown Characteristic [N R] (58bbccc5-5a57-4e00-98d5-18c6a0408dfd)
   Client Characteristic Configuration (0x2902)
- Unknown Characteristic [N R] (d01ab591-d282-4ef5-b83b-538e0bf32d85)
   Client Characteristic Configuration (0x2902)
- Unknown Characteristic [R] (bc6829c4-b750-48e6-b6f4-48ec866a1efb)
- Unknown Characteristic [N R W WNR] (51939bb6-a635-4b1e-903b-76cd9dff3fac)
   Client Characteristic Configuration (0x2902)
- Unknown Characteristic [W WNR] (786ff607-774d-49d6-80a5-a17e08823d91)
- Unknown Characteristic [N R] (d5d0affb-35b8-4fdc-a50b-f777c90293b8)
   Client Characteristic Configuration (0x2902)
Unknown Service (0a23ae62-c4c2-43d1-87b1-e8c83839a063)
- Unknown Characteristic [WNR] (6efab52e-3002-4764-9430-016cef4dfc87)
- Unknown Characteristic [N] (34dfc7cb-5252-430b-ba6d-df2fe87914e7)
   Client Characteristic Configuration (0x2902)
- Unknown Characteristic [N R W WNR] (ebee6f69-70b6-4bb9-b13b-9ba84953c233)
   Client Characteristic Configuration (0x2902)
- Unknown Characteristic [W WNR] (62dcc92f-59c2-4228-9a11-c85f18773530)
Unknown Service (0000fdf0-0000-1000-8000-00805f9b34fb)
- Unknown Characteristic [R] (6333651e-c481-4a3e-9169-7c902aad37bb)
- Unknown Characteristic [W WNR] (f0d4de7e-4a88-476c-9d9f-1937b0996cc0)
- Unknown Characteristic [N R] (38663f1a-e711-4cac-b641-326b56404837)
   Client Characteristic Configuration (0x2902)
- Unknown Characteristic [WNR] (00e4ca9e-ab14-41e4-8823-f9e70c7e91df)
- Unknown Characteristic [R] (2d410339-82b6-42aa-b34e-e2e01df8cc1a)
Unknown Service (4f6cf751-176c-4de1-a25e-d218f1901ccf)
- Unknown Characteristic [R] (c7e127d3-0215-43e6-bc26-3f331d3747a2)
- Unknown Characteristic [W] (19d82b8b-f66f-43df-a843-8508e2da564a)
- Unknown Characteristic [N] (6c9bb68d-1e4e-4073-944f-6b06d849446d)
   Client Characteristic Configuration (0x2902)
I	18:56:16.147	Connection parameters updated (interval: 48.75ms, latency: 0, timeout: 5000ms)
nRF5280_Dongle.pcapngnRF5280_DK.pcapngAndroid9.pcapngWin10.pcapng

Parents
  • Hi,

    The disconnect reason in nRF5280_DK.pcapng is 0x13 (Remote user terminated connection), so the peripheral decided to do terminate for some reason which we cannot see from the sniffer trace. If you have developed the peripheral then the simplest would probably be to debug on the peripheral end to see what happens there and why it disconnects. If that is not your product, you don't really have any other way than to try to compare traces to see the difference in the central behavior, and experiment

  • Hi,

    Thanks for your reply. Unfortunately, the peripheral is not our product.

    I tried to compare all traces for working/non-working centrals and try to adjust nRF52840 parameters to eliminate all differences.

    What I did so far:

    • PHY Flag set to 1M in packet header
    • CSA set to #1 in CONNECT_IND header
    • Window Size: 2 (2,5 msec)
    • Window Offset: 35 (43,75 msec)
    • Interval: 40 (50 msec)
    • Latency: 0
    • Timeout: 500 (5000 msec)
    • Sleep clock accuracy: 1 (151ppm to 250ppm)
    • Adjust the feature map in LL_FEATURE_REQ

    Attached the wireshark log for nRF52840 central with all parameters adjusted to be the same like in successfull Android 9 connection procedure.

    I'm running out of ideas what else could cause the peripheral to just terminate the connection. Android 9, 11 and Windows central will work just fine.

    As there is same behavior with nRFConnect Desktop app and also for DK and Dongle, it seems to be some general issue. What else could cause differences, that are maybe hidden by the sniffing tool?
    Any more timing settings that can be adjusted?

    Regards

    wireshark.png

    nRF52840_params.pcapng

    Android9_params.pcapng

  • After spending several hours of analyzing, setting up toolchains and troubleshooting, I found a working setup.

    Not working:

    • nRF5 SDK central examples
    • nRF Connect Desktop (probably also based on nRF5 SDK / SoftDevice)
    • NimBLE open-source bluetooth stack

    Working:

    • nRF Connect SDK central examples
Reply Children
Related