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

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

$
0
0
Hi,

thx, checked it out.

'AT+RENEW' is not acknowledged, maybe because it restarts the firmware. 'AT+RESET' comes with 'OK'.
'AT+PASS' is 'AT+PIN' at my HM-10 ( many flavours out there ) and is acknowledged with '+PIN=123456',
setting other PINs is working as well.

NO SECURITY

timed out

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 00Disable LE scan< HCI OGF=08 OCF=0C      0000  01 0C 20 02 00 00Found 0 unknown devices> cAVAILABLE DEVICES  1001 -  LE 38:81:D7:2D:1B:8C  1002 -  LE 5C:06:72:D0:6E:67  1003 -  LE 08:9E:64:17:05:83  1004 -  LE 61:89:19:37:B7:77Input 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=2000  (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 38:81:D7:2D:1B:8C  Set [10].. board address reversed 8C..38< HCI OGF=08 OCF=0D      0000  01 0D 20 19 60 00 60 00 - 00 00 8C 1B 2D D7 81 38      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 20Timed out waiting for expected packet< HCI OGF=08 OCF=0E      0000  01 0E 20 00Fail - no handle
PIN CODE SECURITY


'AT+TYPE' comes with '+TYPE=0' . 'AT+TYPE' is not mentioned as command in 'AT+HELP'.
'AT+TYPE2' comes with 'OK', but 'AT+TYPE' stays with '+TYPE=0'
'AT+TYPE1' comes with 'OK' and 'AT+TYPE' changes to '+TYPE=1'

For my HM-10 there seems to be no Type2 ?

But 'c' with passkey from HM-10 still does not work.
I tried with '+TYPE=1' and '+TYPE=0', I have no TYPE2

Code:

> cAVAILABLE DEVICES  1001 -  LE 38:81:D7:2D:1B:8C  1002 -  LE 5C:06:72:D0:6E:67  1003 -  LE 08:9E:64:17:05:83  1004 -  LE 61:89:19:37:B7:77Input node  (x=cancel)? 1001PAIRING and SECURITY  Most LE servers do not need security  so this option is not necessaryEnable security options 0=No 1=Yes  (x=cancel)? 1BONDING  (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 38:81:D7:2D:1B:8C  Set [10].. board address reversed 8C..38< HCI OGF=08 OCF=0D      0000  01 0D 20 19 60 00 60 00 - 00 00 8C 1B 2D D7 81 38      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 8C 1B 2D D7...      0000  04 3E 13 01 00 40 00 00 - 00 8C 1B 2D D7 81 38 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 38:81:D7:2D:1B:8C has disconnected> Event 05 = 00 40 00 3E      0000  04 05 04 00 40 00 3EPair  LE 38:81:D7:2D:1B:8C - not connected as LE server>
Could you please have a look at the reports and comment on it?

I'd like to dig myself in to BLE communication. Where did you get your knowledge, it
is in the BTLE standard, right? Could you give me a link to the document?

THX
Cheers
Detlef

Statistics: Posted by DetlefS — Fri Apr 04, 2025 12:04 pm



Viewing all articles
Browse latest Browse all 8015

Trending Articles