-
Notifications
You must be signed in to change notification settings - Fork 2
Add function for pairing a Plus-device #405
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
0ac7b6c
1afd37c
b0074d1
d773422
766b7d3
0a090f6
8c9cc9d
e87314f
2e0f011
35a23cc
4e9c58b
8b8c955
e7bdc76
b2ce393
f5ad254
c398411
b8a1a46
bb68f69
5f51ffb
c78302d
2054269
b5d3330
cc6ac17
01bb2e5
f68c5c4
54458b5
a22e6a1
69ee4b2
5cfe231
0ea6fd0
436815d
4512dcb
040d8e0
90f4e4f
13889ee
f58b1e0
0ba10f3
21636ed
af43aef
54951ec
971faca
e417ce9
8da1c1a
2e3cd7b
1478ca8
8fae24c
0b22aff
5b6985d
f36d370
85add5f
5bbc040
8cbd27d
16b7f26
5508875
d2d669f
2c92ede
9653f2e
4d351f0
9171413
1ccee3b
7bb6736
dc12be2
0aa68a6
973aef9
3ccfa86
862e5c8
e6d3493
4b13f00
c31f223
ada3b05
f612323
e88e3fb
f4784ab
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,57 @@ | ||
| """Plus-device pairing test data.""" | ||
|
|
||
| RESPONSE_MESSAGES = { | ||
| b"\x05\x05\x03\x030001CAAB\r\n": ( | ||
| "Stick network info request", | ||
| b"000000C1", # Success ack | ||
| b"0002" # response msg_id | ||
| + b"0123456789012345" # stick-mac | ||
| + b"0F" # channel | ||
| + b"FFFFFFFFFFFFFFFF" | ||
| + b"0698765432101234" # 06 + plus-device mac | ||
| + b"FFFFFFFFFFFFFFFF" | ||
| + b"0698765432101234" # 06 + plus-device mac | ||
| + b"1606" # pan_id | ||
| + b"01", # index | ||
| ), | ||
coderabbitai[bot] marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| b"\x05\x05\x03\x03000AB43C\r\n": ( | ||
| "STICK INIT", | ||
| b"000000C1", # Success ack | ||
| b"0011" # msg_id | ||
| + b"0123456789012345" # stick mac | ||
| + b"00" # unknown1 | ||
| + b"00", # network_is_offline | ||
| ), | ||
| b"\x05\x05\x03\x0300040000000000000000000098765432101234\r\n": ( | ||
| "Pair request of plus-device 0098765432101234", | ||
| b"000000C1", # Success ack | ||
| b"0005" # response msg_id | ||
| + b"00" # existing | ||
| + b"01", # allowed | ||
| ), | ||
| b"\x05\x05\x03\x0300230123456789012345A0EC\r\n": ( | ||
| "Node Info of stick 0123456789012345", | ||
| b"000000C1", # Success ack | ||
| b"0024" # msg_id | ||
| + b"0123456789012345" # mac | ||
| + b"00000000" # datetime | ||
| + b"00000000" # log address 0 | ||
| + b"00" # relay | ||
| + b"80" # hz | ||
| + b"653907008512" # hw_ver | ||
| + b"4E0843A9" # fw_ver | ||
| + b"00", # node_type (Stick) | ||
| ), | ||
| } | ||
|
|
||
| SECOND_RESPONSE_MESSAGES = { | ||
| b"\x05\x05\x03\x03000D55555555555555555E46\r\n": ( | ||
| "ping reply for 5555555555555555", | ||
| b"000000C1", # Success ack | ||
| b"000E" | ||
| + b"5555555555555555" # mac | ||
| + b"44" # rssi in | ||
| + b"33" # rssi out | ||
| + b"0055", # roundtrip | ||
| ) | ||
| } | ||
|
Comment on lines
1
to
57
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Missing
🤖 Prompt for AI Agents |
||
Uh oh!
There was an error while loading. Please reload this page.