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

Change sound files without re-flash the whole firmware #39

Closed
Franzl123 opened this issue Jan 2, 2018 · 13 comments
Closed

Change sound files without re-flash the whole firmware #39

Franzl123 opened this issue Jan 2, 2018 · 13 comments

Comments

@Franzl123
Copy link
Contributor

Hi,
how can i change the sound files without a complete re-flash? is there an miIO.ota command?

thx

@fvollmer
Copy link
Contributor

fvollmer commented Jan 2, 2018

According to https://github.com/marcelrv/XiaomiRobotVacuumProtocol there is a dnld_install_sound command. I don't know how to use it, but you should be able to use tcpdump on the robot at port 54322 to sniff the official app. I think @Flole998 has already worked out how the command works (for his app https://xiaomi.flole.de/).
Another approach is to just copy them via scp.

@dgiese
Copy link
Owner

dgiese commented Jan 2, 2018

Just replace the files in /opt/rockrobo/resources/sounds/prc

@MeisterTR
Copy link

you can change the sound with this command:
dnld_install_sound {"md5":"#MD5#","sid":1005,"url":"http://#PFAD_DES_SERVERS#/deutsch.pkg"}

@CODeRUS
Copy link
Contributor

CODeRUS commented Jan 2, 2018

on my vacuum changing files in /opt/rockrobo/resources/sounds/prc have no effect. should change /mnt/data/rockrobo/sounds/

@linuxlurak
Copy link
Contributor

you could even upload the sound files with scp:
scp /path/to/sound/files/* root@robovac-ip:/opt/rockrobo/resources/sounds/prc

@dgiese
Copy link
Owner

dgiese commented Jan 3, 2018

/opt/rockrobo/resources/sounds/prc is the correct path if you did not change the language to english over the Mi Home App. Here you replace the original Chinese voice with your desired voice. The folder /mnt/data/rockrobo/sounds/ is just for downloaded sounds. As we can change the firmware, the /opt/.... folder is the better one ;)

@CODeRUS
Copy link
Contributor

CODeRUS commented Jan 3, 2018

so, if sounds exists in /mnt/data/rockrobo/sounds/ it will be used? then downloaded sounds should be wiped.

@w00dst0ck
Copy link

you can change the sound with this command: dnld_install_sound {"md5":"#MD5#","sid":1005,"url":"http://#PFAD_DES_SERVERS#/deutsch.pkg"}

Anyone tested this with mirobo raw?
I would only use a german soundpack without rooting my vacuum.

@CODeRUS
Copy link
Contributor

CODeRUS commented Jan 5, 2018

Anyone tested this with mirobo raw?

yes and it works fine

@dgiese dgiese closed this as completed Feb 18, 2018
@rytilahti
Copy link
Contributor

Just in case someone comes looking up this topic at some later point, after rytilahti/python-miio#153 gets merged installing a sound with python-miio works by simply calling mirobo install_sound mysound.pkg (assuming a fairly generic network setup and unblocked access from the vacuum to the host where the command is executed).

@trananhtuan
Copy link

Sorry for digging back an old thread but how can I create sound.pkg file?

@Fietspomp86
Copy link

Sorry for digging back an old thread but how can I create sound.pkg file?

I just use the Mirobo 1.1.0 software to directly upload to the vacuum, this is quite easy to do.

@trananhtuan
Copy link

That works for me too. Thank you.

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

No branches or pull requests

10 participants