mihome-binary-protocol icon indicating copy to clipboard operation
mihome-binary-protocol copied to clipboard

Question on the "Hello packet"

Open andreashaertel opened this issue 5 years ago • 2 comments

I am reading into the topic with the hope to be able to speak to my Roborock vacuum cleaner using UDP messages in an enclosed WiFi without connection to the world wide web (to avoid communication between the robot and any foreign server):

I do not yet understand, when this "Hello packet" is send: my robot is not connected to any WiFi. I can put some keys and then it is waiting for input from the App: does the App connect to the robot via a direct WiFi connection and then speaks to it via UDP? Does anyone know a source for further reading on this processes?

Any help is very welcome. Thank you and best regards

andreashaertel avatar Jun 26 '20 14:06 andreashaertel

Well, I have connected with a Laptop via WiFi with my Roborock S5 Max. Then I have send a UDP "Hello" package to the IP 192.168.8.1 (from this address I received a positive ping) and port 54321 and listened with a second programm on the port 54321 on my local machine - receiving nothing. I would have expected a reply package from the robot. Is this procedure not correct? Any help is welcome. Thank you

andreashaertel avatar Jun 28 '20 11:06 andreashaertel

Well, the initial handshake is running now and the robot sends me its token.

Now I wonder about the following: I can send commands to the robot via udp protocol using the token for encryption. If I ask the robot to send the map, it sends it to the xiomi cloud encrypted with the cloudkey? There is now way to get access to this without hacking the robot?

andreashaertel avatar Jun 30 '20 22:06 andreashaertel