Skip to content
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

install_sound on gen2 not working #168

Closed
BerraKode opened this issue Jan 21, 2018 · 9 comments
Closed

install_sound on gen2 not working #168

BerraKode opened this issue Jan 21, 2018 · 9 comments

Comments

@BerraKode
Copy link

BerraKode commented Jan 21, 2018

I've tried to get this working but without success. I get the following message when trying to upload my pack:


$ mirobo install_sound http://192.168.0.122:80/image-server/es.pkg d41d8cd98f00b204e9800998ecf8427e 1005

Installing from http://192.168.0.122:80/image-server/es.pkg (md5: d41d8cd98f00b204e9800998ecf8427e) for id 1005
<SoundInstallStatus sid: None (state: SoundInstallState.Unknown, error: 0) - progress: 0>
<SoundInstallStatus sid: 1005 (state: SoundInstallState.Downloading, error: 0) - progress: 0>
<SoundInstallStatus sid: 1005 (state: SoundInstallState.Installing, error: 0) - progress: 0>
Error during installation: 4


Is it confirmed this does not work on gen2 or could it be I've done something wrong?

Thanks for the awesome work btw!!
/BerraKode

@rytilahti
Copy link
Owner

rytilahti commented Jan 21, 2018

Unfortunately the error codes are unknown at the moment, nor anyone has confirmed whether this works on gen2 (actually no one has reported even if it works, I have just tested that it works on my vacuum).

Anyway, seeing that you are not seeing download progress at all, I would look first into your web-server's logs to see if it ever tries to fetch that es.pkg at all. Maybe error 4 is "unable to download" or something similar?

edit: I did some experimentation, error 2 is download error (when I shut down the server during it's downloading it), error 3 is checksum (md5) error, rest are still unknown.

@BerraKode
Copy link
Author

I get this in my webserver log:
192.168.0.148 - - [22/Jan/2018:11:38:09 +0100] "GET /image-server/es.pkg HTTP/1.1" 200 249 "-" "-"

So looks like the error is with the vacuum right? I know at least another guy who got this working on his gen1. So maybe gen2 is the villain.

@rytilahti
Copy link
Owner

Ok, may very well be that there's something else we need to pay attention to for gen2 devices, unfortunately I have no answer for this at the moment.

@rytilahti
Copy link
Owner

Could you re-try this with the current git version? The previous server did not send a content-length header as part of the response, which caused problems with firmware update status messages, maybe they check for that differently also for the gen2.

@BerraKode
Copy link
Author

Would love to. Will let you know tomorrow!

@BerraKode
Copy link
Author

Unfortunately still the same error message for me :(

@rytilahti
Copy link
Owner

https://github.com/marcelrv/XiaomiRobotVacuumProtocol/blob/master/install_sound.md defining the sver for the payload is probably what is needed here. If someone wants to test and report back (or even create a PR), it would be nice.

@BerraKode
Copy link
Author

I can only find the install_sound() method (which doesn't have a parameter for sver). How do I use dnld_install_sound? :)

@rytilahti
Copy link
Owner

Potentially interesting for this #348 (comment) .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants