Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8093

Troubleshooting • Re: HM-10 does not talk to raspi 5

$
0
0
Hi,

I ordered a HM-18 labeled device from DSD TECH. This one reponds with 'OK+RENEW' and 'OK+RESET'.

With 'NO Security' options I get again disconnect

Code:

> bScanning for LE devices - 10 seconds..Enable LE scan< HCI OGF=08 OCF=0C      0000  01 0C 20 02 01 01> Event 0E = 01 0C 20 00      0000  04 0E 04 01 0C 20 00> Event 3E = 02 01 00 00 CC 35 9C 93 72 84...      0000  04 3E 28 02 01 00 00 CC - 35 9C 93 72 84 1C 02 01      0010  06 09 FF 48 4D 84 72 93 - 9C 35 CC 07 16 00 B0 00      0020  00 00 00 03 02 E0 FF 02 - 0A 05 D2Disable LE scan< HCI OGF=08 OCF=0C      0000  01 0C 20 02 00 001 FOUND 84:72:93:9C:35:CC - Fixed    Flags = 06    Manuf specific = 48 4D 84 72 93 9C 35 CC    Service Data = 00 B0 00 00 00 00    Some 2-byte UUIDs      FFE0    Tx Power Level = 05    Known device 1001  LE 84:72:93:9C:35:CCFound 0 unknown devices> cAVAILABLE DEVICES  1001 -  LE 84:72:93:9C:35:CCInput node  (x=cancel)? 1001BONDING  (save pairing info)  0 = Do not bond - OK for most servers  1 = New bond  2 = Re-Pair with a previously bonded deviceBond  (x=cancel)? 0PAIRING and SECURITY  0 = Do not pair - OK for most servers  1 = Pair - Just Works  2 = Pair - Fixed Passkey  3 = Pair - Random PasskeyInput pair option  (x=cancel)? 0CONNECTION COMPLETE TIME  After connecting, some LE servers need more time to complete  the process or they will disconnect. Zero may work, otherwise  find the shortest time that will prevent disconnection.  Current value=750  (x=cancel to keep)  Default value=750Time in ms  (x=cancel)? 750< HCI OGF=08 OCF=0A      0000  01 0A 20 01 00SEND LE connect to  LE 84:72:93:9C:35:CC  Set [10].. board address reversed CC..84< HCI OGF=08 OCF=0D      0000  01 0D 20 19 60 00 60 00 - 00 00 CC 35 9C 93 72 84      0010  00 18 00 28 00 00 00 11 - 01 00 00 00 00> Event 0E = 01 0C 20 00      0000  04 0E 04 01 0C 20 00> Event 0E = 01 0A 20 0C      0000  04 0E 04 01 0A 20 0C> Event 0F = 00 01 0D 20      0000  04 0F 04 00 01 0D 20> Event 3E = 01 00 40 00 00 00 CC 35 9C 93...      0000  04 3E 13 01 00 40 00 00 - 00 CC 35 9C 93 72 84 27      0010  00 00 00 11 01 00Connect OK as LE clientHandle = 0040Set larger data length  Set [4][5] handle 40 00< HCI OGF=08 OCF=22      0000  01 22 20 06 40 00 FB 00 - 00 08Set MTU  Set [1][2] handle 40 00< CHANNEL 0004 Opcode = 02      0000  02 40 00 07 00 03 00 04 - 00 02 F7 00> Event 0E = 01 22 20 00 40 00      0000  04 0E 06 01 22 20 00 40 - 00> Event 13 = 01 40 00 01 00      0000  04 13 05 01 40 00 01 00 LE 84:72:93:9C:35:CC has disconnected> Event 05 = 00 40 00 3E      0000  04 05 04 00 40 00 3E>
Security settings works fine
OK+RENEW OK+RESET OK+Set:2 OK+Set:123456
But again disconnect

Code:

> cAVAILABLE DEVICES  1001 -  LE 84:72:93:9C:35:CCInput node  (x=cancel)? 1001BONDING  (save pairing info)  0 = Do not bond - OK for most servers  1 = New bond  2 = Re-Pair with a previously bonded deviceBond  (x=cancel)? 0PAIRING and SECURITY  0 = Do not pair - OK for most servers  1 = Pair - Just Works  2 = Pair - Fixed Passkey  3 = Pair - Random PasskeyInput pair option  (x=cancel)? 2PASSKEY chosen by  0 = This local device  1 = Remote serverEnter 0/1  (x=cancel)? 1Fixed 6-digit passkey  (x=cancel)? 123456CONNECTION COMPLETE TIME  After connecting, some LE servers need more time to complete  the process or they will disconnect. Zero may work, otherwise  find the shortest time that will prevent disconnection.  Current value=750  (x=cancel to keep)  Default value=750Time in ms  (x=cancel)? 2000PAIRING COMPLETE TIMEThis might include the time to enter a passkeyor pairing will fail with a timeoutTime in ms  (x=cancel)? 2000< HCI OGF=08 OCF=0A      0000  01 0A 20 01 00SEND LE connect to  LE 84:72:93:9C:35:CC  Set [10].. board address reversed CC..84< HCI OGF=08 OCF=0D      0000  01 0D 20 19 60 00 60 00 - 00 00 CC 35 9C 93 72 84      0010  00 18 00 28 00 00 00 11 - 01 00 00 00 00> Event 0E = 01 0A 20 0C      0000  04 0E 04 01 0A 20 0C> Event 0F = 00 01 0D 20      0000  04 0F 04 00 01 0D 20> Event 3E = 01 00 40 00 00 00 CC 35 9C 93...      0000  04 3E 13 01 00 40 00 00 - 00 CC 35 9C 93 72 84 27      0010  00 00 00 11 01 00Connect OK as LE clientHandle = 0040Set larger data length  Set [4][5] handle 40 00< HCI OGF=08 OCF=22      0000  01 22 20 06 40 00 FB 00 - 00 08Set MTU  Set [1][2] handle 40 00< CHANNEL 0004 Opcode = 02      0000  02 40 00 07 00 03 00 04 - 00 02 F7 00> Event 0E = 01 22 20 00 40 00      0000  04 0E 06 01 22 20 00 40 - 00> Event 13 = 01 40 00 01 00      0000  04 13 05 01 40 00 01 00 LE 84:72:93:9C:35:CC has disconnected> Event 05 = 00 40 00 3E      0000  04 05 04 00 40 00 3EPair  LE 84:72:93:9C:35:CC - not connected as LE server>
What is the issue, do you see any hints?
THX
Cheers

Statistics: Posted by DetlefS — Tue Apr 08, 2025 3:12 pm



Viewing all articles
Browse latest Browse all 8093

Trending Articles