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

Comments

@Franzl123
Copy link
Contributor

@Franzl123 Franzl123 commented Jan 2, 2018

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

thx

@fvollmer

This comment has been minimized.

Copy link
Contributor

@fvollmer 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

This comment has been minimized.

Copy link
Owner

@dgiese dgiese commented Jan 2, 2018

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

@MeisterTR

This comment has been minimized.

Copy link

@MeisterTR MeisterTR commented Jan 2, 2018

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

@CODeRUS

This comment has been minimized.

Copy link
Contributor

@CODeRUS 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

This comment has been minimized.

Copy link
Contributor

@linuxlurak linuxlurak commented Jan 3, 2018

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

@dgiese

This comment has been minimized.

Copy link
Owner

@dgiese 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

This comment has been minimized.

Copy link
Contributor

@CODeRUS 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

This comment has been minimized.

Copy link

@w00dst0ck w00dst0ck commented Jan 5, 2018

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

This comment has been minimized.

Copy link
Contributor

@CODeRUS CODeRUS commented Jan 5, 2018

Anyone tested this with mirobo raw?

yes and it works fine

@dgiese dgiese closed this Feb 18, 2018
@rytilahti

This comment has been minimized.

Copy link
Contributor

@rytilahti rytilahti commented Feb 18, 2018

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

This comment has been minimized.

Copy link

@trananhtuan trananhtuan commented Jan 31, 2019

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

@Fietspomp86

This comment has been minimized.

Copy link

@Fietspomp86 Fietspomp86 commented Jul 29, 2019

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

This comment has been minimized.

Copy link

@trananhtuan trananhtuan commented Jul 30, 2019

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
Projects
None yet
10 participants
You can’t perform that action at this time.