eigenein / my-iot-rs

Yet another home automation (alpha)
https://eigenein.github.io/my-iot-rs/html
MIT License
32 stars 5 forks source link

[Service] Tuya #3

Open eigenein opened 5 years ago

eigenein commented 5 years ago
eigenein commented 3 years ago
❯ sudo tcpdump -Xs0 host 192.168.2.25
tcpdump: data link type PKTAP
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on pktap, link-type PKTAP (Apple DLT_PKTAP), capture size 262144 bytes
22:54:59.441943 IP esp_d4299b.home.49154 > broadcasthost.6666: UDP, length 174
        0x0000:  ffff ffff ffff cc50 e3d4 299b 0800 4500  .......P..)...E.
        0x0010:  00ca 143d 0000 ff11 e424 c0a8 0219 ffff  ...=.....$......
        0x0020:  ffff c002 1a0a 00b6 1f3a 0000 55aa 0000  .........:..U...
        0x0030:  0000 0000 0000 0000 009e 0000 0000 7b22  ..............{"
        0x0040:  6970 223a 2231 3932 2e31 3638 2e32 2e32  ip":"192.168.2.2
        0x0050:  3522 2c22 6777 4964 223a 2231 3433 3131  5","gwId":"14311
        0x0060:  3030 3763 6335 3065 3364 3432 3939 6222  007cc50e3d4299b"
        0x0070:  2c22 6163 7469 7665 223a 322c 2261 6269  ,"active":2,"abi
        0x0080:  6c69 7479 223a 302c 226d 6f64 6522 3a30  lity":0,"mode":0
        0x0090:  2c22 656e 6372 7970 7422 3a74 7275 652c  ,"encrypt":true,
        0x00a0:  2270 726f 6475 6374 4b65 7922 3a22 4d62  "productKey":"Mb
        0x00b0:  3042 5353 4b30 6d62 4f37 5742 4274 222c  0BSSK0mbO7WBBt",
        0x00c0:  2276 6572 7369 6f6e 223a 2233 2e31 227d  "version":"3.1"}
        0x00d0:  69d8 6063 0000 aa55                      i.`c...U
{"ip":"192.168.2.25","gwId":"14311007cc50e3d4299b","active":2,"ability":0,"mode":0,"encrypt":true,"productKey":"Mb0BSSK0mbO7WBBt","version":"3.1"}