Started playing around with the gateway that I bought earlier tonight. I’ve been able to setup my router so that I can monitor traffic between my phone (hosting the IKEA app) and the gateway.I realize that I’m a bit over my head here but who knows, there might be someone here who can help me progress my work?
192.168.0.188 is my phone and 192.168.0.129 is the IKEA gateway. This is the tcpdump-command I’m using to monitor data:
tcpdump -ennvvvXXSs 1514 -i eth0 'dst 192.168.0.129 or ( vlan and dst 192.168.0.129 )'
This is what happens when I set the light to max in the app:
01:09:19.553148 xx:xx:xx:xx:xx:xx > xx:xx:xx:xx:xx:xx, ethertype 802.1Q (0x8100), length 79: vlan 1, p 0, ethertype IPv4, (tos 0x0, ttl 64, id 49576, offset 0, flags [none], proto UDP (17), length 61)
192.168.0.188.57891 > 192.168.0.129.5684: [udp sum ok] UDP, length 33
0x0000: xxxx xxxx xxxx xxxx xxxx xxxx 8100 0001 .r.'...A_q.i....
0x0010: 0800 4500 003d c1a8 0000 4011 367a c0a8 [email protected]..
0x0020: 00bc c0a8 0081 e223 1634 0029 4c11 17fe .......#.4.)L...
0x0030: fd00 0100 0000 0000 1400 1400 0000 0000 ................
0x0040: 0000 14d9 30bf f309 7937 08c0 ba0b 86 ....0...y7.....
And this is what happens I set the light to min (turn it off.) Yes, two commands are sent
01:10:02.016296 xx:xx:xx:xx:xx:xx > xx:xx:xx:xx:xx:xx, ethertype 802.1Q (0x8100), length 79: vlan 1, p 0, ethertype IPv4, (tos 0x0, ttl 64, id 31962, offset 0, flags [none], proto UDP (17), length 61)
192.168.0.188.57891 > 192.168.0.129.5684: [udp sum ok] UDP, length 33
0x0000: xxxx xxxx xxxx xxxx xxxx xxxx 8100 0001 .r.'...A_q.i....
0x0010: 0800 4500 003d 7cda 0000 4011 7b48 c0a8 ..E..=|...@.{H..
0x0020: 00bc c0a8 0081 e223 1634 0029 0196 17fe .......#.4.)....
0x0030: fd00 0100 0000 0000 1d00 1400 0000 0000 ................
0x0040: 0000 1dba d111 bf7f 0d5f c695 efdf ca ........._.....
01:10:02.022176 xx:xx:xx:xx:xx:xx > xx:xx:xx:xx:xx:xx, ethertype 802.1Q (0x8100), length 79: vlan 1, p 0, ethertype IPv4, (tos 0x0, ttl 64, id 35537, offset 0, flags [none], proto UDP (17), length 61)
192.168.0.188.57891 > 192.168.0.129.5684: [udp sum ok] UDP, length 33
0x0000: xxxx xxxx xxxx xxxx xxxx xxxx 8100 0001 .r.'...A_q.i....
0x0010: 0800 4500 003d 8ad1 0000 4011 6d51 c0a8 [email protected]..
0x0020: 00bc c0a8 0081 e223 1634 0029 358f 17fe .......#.4.)5...
0x0030: fd00 0100 0000 0000 1e00 1400 0000 0000 ................
0x0040: 0000 1eeb 15b9 42b2 e36c e5a5 30be 96 ......B..l..0..
Since “xxx xxxx xxxx xxxx xxxx xxxx 8100 0001” shows up every time, I’m guessing (for now) that’s the address of the bulb. However, the app references iCoAP and Wolfssl. Is that to say that strong encryption is used, thus rendering any attempt to build a custom integration uesless? What do you guys think?