Hi people,
I am new here. I have also received a gateway these days with the round text. Bad luck … it is not found by OH. I also updated directly when I plugged it into the wall.
What I can see in Wireshark is that the Gateway doesnt send UDP messages to 224.0.0.50:9898 but on 224.0.0.251:5353 … can someone with a working model look what is sent over port 9898 ?
My Gateqys IP is 192.168.31.184
1584 190.684905150 192.168.31.184 224.0.0.251 MDNS 360 Standard query response 0x0000 A, cache flush 192.168.31.184 SRV, cache flush 0 0 54321 lumi-gateway-v3_miio98878811.local TXT, cache flush PTR lumi-gateway-v3_miio98878811._miio._udp.local
This is what is received (masked my mac whyever):
^û|Ië°³=EZ¦ÿ÷À¨¸àûééFHlumi-gateway-v3_miio98878811localÿÀ¨¸lumi-gateway-v3_miio98878811_miio_udplocal!ÿÔ1lumi-gateway-v3_miio98878811locallumi-gateway-v3_miio98878811_miio_udplocalÿepoch=1mac=7c49eb*****_miio_udplocalÿ/lumi-gateway-v3_miio98878811_miio_udplocal
Hope that helps us
edit:
suddenly I found out that this is (only) a Multicast DNS message. So I dont think it has to do with the not corresponding port 9898. When I penetrate the gateway with nmap most of the time the port remains closed but some times it gives me an opened status.
edit 2:
Bad news is I still did not manage to get anything over port 9898 by UDP. Good news is that the gateway seems to respond to the MIIO node module. A bit scary is that I will get more information when I connect directly to the wifi of the gateway (before it gets paired with my home wifi).
Directly connector before wifi pairing:
C:\Development\miio>node ./node_modules/miio/cli tokens update 192.168.13.1 --token e36451b32c652aee51eabc65243214
INFO Updating token for 192.168.13.1
->: Singlewire Software Packet 15527
->: Singlewire Software Packet 15528
MiioDevice {
model=lumi.gateway.v3,
types=sensor, miio:gateway, miio,
capabilities=illuminance, state, children
}
Already connected over home wifi:
C:\Development\miio>node ./node_modules/miio/cli tokens update 192.168.31.184 --token e36451b32c652aee51eabc65243214
INFO Updating token for 192.168.31.184
D: MiioDevice {
model=undefined,
types=placeholder, miio,
capabilities=
}
INFO Connected to miio:98878811 - trying to change token
->: Singlewire Software Packet 18997
->: Singlewire Software Packet 18998
Token has been updated
The text “Singlewire Software Packet” is what gets received after the UDP connect. As far as I see from the miio code there should alway be an JSON-Object what gets received, but here we get a simple string. That’s curious… I don’t know the protocols before because I am new to all this, but it looks like some protocol change to me .
I am going on to look if the miio extension will do the job and report my success. As I saw there were updates 3 days ago on github.
cheers
next edit:
i successfully compiled in eclipse and got the miio binding running. Unfortunately it only shows up power on/pff and s.th. with test exec cmd atm.
sorry for the bad picture
THe protocol for this is described here if I am right: http://docs.opencloud.aqara.cn/development/gateway-LAN-communication/