OpenMiHome / mihome-binary-protocol

GNU General Public License v3.0
713 stars 90 forks source link

Question on the "Hello packet" #9

Open andreashaertel opened 4 years ago

andreashaertel commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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?