-
-
Notifications
You must be signed in to change notification settings - Fork 574
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: No response from the device viomi.vacuum.v8 #750
Comments
If you turn on the debug mode ( |
Not 100% sure what response is confirmation for the handshake but the full debug log is below. I assume its this piece? ":Got a response: Container" Also in my initial post I did a tcp scan and not udp. Doing UDP I can see 54321 open so I guess its not closed. Not shown: 998 closed ports
|
Mine v7. Also received timeout sometime. Quick fix was mentioned on FYI: directly change retry_count to bigger number (20 for example) |
Hi, i have the same problem. With the command: i get as answer: But any other command leads to a timeout.... Did you solved your issue? Thanks and best regards, |
@meteo88 no sorry my issue still persist. I also tried changing the timeout values but I get the same result. We are both on the same firmware version. Would be interesting to know if there is anybody with this version firmware that is working. |
Viomi vacuums cannot be controlled with mirobo, but you have to use A good way to test if the the token is correct and the communications are working fine, you can simply execute |
Thanks for the hint!!(btw i am using Version 0.5.3) With: i get a valid response:
But there is also a weird Error Code 2105? The only thing is, that the command executes very slow, sometimes it lasts more than 10seconds until the command is executed, do you know why? Can you please explain me the difference between vacuum and viomivacuum? That would be sad, because there are a ton more options with the miiocli vacuum command compared to the miiocli viomivacuum. Thanks for your explanation! |
Hi Dominik, No worries, glad you got it working! The 'vacuum' plugin implements the protocol used by rockrobo (there are different manufacturers behind xiaomi vacuums: rockrobo, viomi, dreame, ..), which implement their own control protocols. If there is some command that is missing, which you can control using the official app, then it'd be possible to add that to viomivacuum. The currently known errors are listed here https://github.com/rytilahti/python-miio/blob/master/miio/viomivacuum.py#L18, so if you know what does that error code mean we could add it to the list of known codes. Regarding to the slowness of responses, that could be related to the currently missing saving of sequence id when using miiocli. The device may think that a sequential request is a duplicate when the sequence id is the same the previous one. If that happens, miiocli will try to bump the sequence number and retry, which would explain the delays. |
If it helps here’s a provisioning command I once sniffed:
|
Provision command is implemented already (https://github.com/rytilahti/python-miio/blob/master/miio/device.py#L215), the problem is that as soon as you execute that, the token will be reseted -> no more access using the current token. I'm unaware of ways to get the new token. edit: if there are parameters missing from the linked command, please feel free to create a PR :-) |
Once you have root (https://itooktheredpill.irgendwo.org/2020/rooting-xiaomi-vacuum-robot/) you can extract the token from |
Almost the same issues here but with a different flavor. The basics are working for me which is great but I've encountered several "blind spots" with the viomivacuum commands like for example set_moproute which results in the "decrypt" error and/or timeouts like described here and consumables appears to not reveal any "live" info. What I also discovered is that my app won't show me the mop pattern selection which is really strange. I've got the v8 Model EU version. My next approach was to sniff out the network traffic through my firewall (sophos) and also directly from the phone (through pcapdroid) but the only thing i got was a truckload of TLS encrypted messages. Any way that info could be useful to you? Info: Status: |
@Neuroquila-n8fall you may be interested in taking a look at #808 by @titilambert and giving it a try (and commenting on your findings on that PR :-), he's done several improvements to viomi vacuum support in that PR. The TLS traffic (destined to the cloud service, I presume?) is not that useful without decrypting the connection, only capturing the local connectivity (from phone to the device on port 54321) could be useful. |
Thanks for the hint. I'll give it a shot! Well I've got a lot of UDP traffic as well. It's strange that I could only see those messages when probing from the firewall interface. I have also recorded UDP engrams that were sent directly from the mother ship. |
I am watching that PR closely, it will be great to have room-specific cleaning capability in the viomi v8! |
HI All I am trying to integrate my viomi.vacuum.v8 THIS IS OK THIS IS NOT WORKING I get following issues:
Debug Level Logs:
Hope someone finds a solution one day :) PS, i posted also here: it seems that the viomi.vacuum.v8 does not work with map extractor (yet) |
|
@rumpeltux , how do I use this to do the provisioning?
|
@rytilahti , I have site-packages/miio/device.py: return self.send("miIO.config_router", params) |
I am unable to connect to my Xiaomi Mijia STYJ02YM vacuum.
I installed the older version of the Mi Home app and extracted the token from the log file. In fact I did this a few times to confirm the token is the same. From the log file I also got the model number "model":"viomi.vacuum.v8"
My vacuum is on Firmware version. : 3.5.3_0017
I tried installing mirobo / miiocli on two different Linux installations both with the same result ending up in a timeout.
I also performed a portscan on the Vacuum and only find port 53 open. I can even telnet to this and get a response.
Any other suggestions or am I missing something?
I believe my firmware version is the most recent as I only got this vacuum recently so I am not sure if anybody can confirm this version firmware works and/or Xaiomi patched something in this release preventing connections?
Any help would be appreciated.
More details below.
mirobo --version
mirobo, version 0.5.2
PORT STATE SERVICE
53/tcp open domain
miiocli viomivacuum --ip 10.0.0.10 --token xxxxxxxxxxxxxxxxxxxxxxxxxxxx info
ERROR:miio.miioprotocol:Got error when receiving: timed out
mirobo --ip 10.0.0.10 --token xxxxxxxxxxxxxxxxxxxxxxxxxxxx info
ERROR:miio.miioprotocol:Got error when receiving: timed out
Error: No response from the device
The text was updated successfully, but these errors were encountered: