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

The voice pack does not change in Xiaomi Vacuum 1S #583

Closed
Nekmo opened this issue Nov 30, 2019 · 1 comment
Closed

The voice pack does not change in Xiaomi Vacuum 1S #583

Nekmo opened this issue Nov 30, 2019 · 1 comment

Comments

@Nekmo
Copy link

Nekmo commented Nov 30, 2019

Hi, I am trying to install the voice package on my Xiaomi Vacuum 1S. I have tried with two language packs:

In both cases the upload is successful but fails with error code 3.

mirobo --debug --ip 10.1.0.109 --token xxxxxxxxxxxxxxxxxxx install-sound --sid 1 english.pkg                                                                                            
INFO:miio.vacuum_cli:Debug mode active                                                                                                                                                                                                             
DEBUG:miio.vacuum_cli:Read stored sequence ids: {'seq': 109, 'manual_seq': 0}                                                                                                                                                                      
DEBUG:miio.vacuum_cli:Connecting to 10.1.0.109 with token xxxxxxxxxxxxxxxxxxx                                                                                                                                                         
Installing from english.pkg (md5: None) for id 1                                                                                                                                                                                                   
INFO:miio.updater:Serving on 0.0.0.0:43005, timeout 10                                                                                                                                                                                             
INFO:miio.updater:Using local english.pkg (md5: 911bdd115c5b93823e6a87e6c80633cc)                                                                                                                                                                  
DEBUG:miio.updater:available interfaces: ['enxb827ebb10a6d', 'wlan0']                                                                                                                                                                              
DEBUG:miio.updater:enxb827ebb10a6d has no ipv4 addresses, skipping                                                                                                                                                                                 
DEBUG:miio.updater:Got addr: 10.1.0.101                                                                                                                                                                                                            
Hosting file at http://10.1.0.101:43005/english.pkg                                                                                                                                                                                                
DEBUG:miio.protocol:Unable to decrypt, returning raw bytes: b''                                                                                                                                                                                    
DEBUG:miio.device:Got a response: Container:                                                                                                                                                                                                       
    data = Container:                                                                                                                                                                                                                              
        data = b'' (total 0)                                                                                                                                                                                                                       
        value = b'' (total 0)                                                                                                                                                                                                                      
        offset1 = 32                                                                                                                                                                                                                               
        offset2 = 32                                                                                                                                                                                                                               
        length = 0                                                                                                                                                                                                                                 
    header = Container:                                                                                                                                                                                                                            
        data = b'!1\x00 \x00\x00\x00\x00\x0f\x84\r\x84]\xe2\xac\xb0' (total 16)                                                                                                                                                                    
        value = Container:                                                                                                                                                                                                                         
            length = 32                                                                                                                                                                                                                            
            unknown = 0                                                                                                                                                                                                                            
            device_id = b'\x0f\x84\r\x84' (total 4)                                                                                                                                                                                                
            ts = 2019-11-30 17:53:52                                                                                                                                                                                                               
        offset1 = 0                                                                                                                                                                                                                                
        offset2 = 16                                                                                                                                                                                                                               
        length = 16                                                                                                                                                                                                                                
    checksum = b'\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff' (total 16)
DEBUG:miio.device:Discovered 0f840d84 with ts: 2019-11-30 17:53:52, token: b'ffffffffffffffffffffffffffffffff'                                                                                                                                     
DEBUG:miio.device:10.1.0.109:54321 >>: {'id': 110, 'method': 'dnld_install_sound', 'params': {'url': 'http://10.1.0.101:43005/english.pkg', 'md5': '911bdd115c5b93823e6a87e6c80633cc', 'sid': 1}}                                                  
DEBUG:miio.device:10.1.0.109:54321 (ts: 2019-11-30 17:53:53, id: 110) << {'result': [{'progress': 0, 'state': 0, 'error': 0}], 'id': 110}                                                                                                          
<SoundInstallStatus sid: None (state: SoundInstallState.Unknown, error: 0) - progress: 0>                                                                                                                                                          
DEBUG:miio.device:10.1.0.109:54321 >>: {'id': 111, 'method': 'get_sound_progress', 'params': []}                                                                                                                                                   
DEBUG:miio.device:10.1.0.109:54321 (ts: 2019-11-30 17:53:53, id: 111) << {'result': [{'sid_in_progress': 1, 'progress': 0, 'state': 1, 'error': 0}], 'id': 111}                                                                                    
10.1.0.109 - - [30/Nov/2019 17:53:52] "GET /english.pkg HTTP/1.1" 200 -                                                                                                                                                                            
DEBUG:miio.device:10.1.0.109:54321 >>: {'id': 112, 'method': 'get_sound_progress', 'params': []}                                                                                                                                                   
DEBUG:miio.device:10.1.0.109:54321 (ts: 2019-11-30 17:53:53, id: 112) << {'result': [{'sid_in_progress': 1, 'progress': 0, 'state': 1, 'error': 0}], 'id': 112}                                                                                    
Downloading (0 %)                                                                                                                                                                                                                                  
DEBUG:miio.device:10.1.0.109:54321 >>: {'id': 113, 'method': 'get_sound_progress', 'params': []}                                                                                                                                                   
DEBUG:miio.device:10.1.0.109:54321 (ts: 2019-11-30 17:53:54, id: 113) << {'result': [{'sid_in_progress': 1, 'progress': 24, 'state': 1, 'error': 0}], 'id': 113}                                                                                   
Downloading (24 %)                                                                                                                                                                                                                                 
DEBUG:miio.device:10.1.0.109:54321 >>: {'id': 114, 'method': 'get_sound_progress', 'params': []}                                                                                                                                                   
DEBUG:miio.device:10.1.0.109:54321 (ts: 2019-11-30 17:53:55, id: 114) << {'result': [{'sid_in_progress': 1, 'progress': 54, 'state': 1, 'error': 0}], 'id': 114}                                                                                   
Downloading (54 %)                                                                                                                                                                                                                                 
DEBUG:miio.device:10.1.0.109:54321 >>: {'id': 115, 'method': 'get_sound_progress', 'params': []}                                                                                                                                                   
DEBUG:miio.device:10.1.0.109:54321 (ts: 2019-11-30 17:53:56, id: 115) << {'result': [{'sid_in_progress': 1, 'progress': 87, 'state': 1, 'error': 0}], 'id': 115}                                                                                   
Downloading (87 %)                                                                                                                                                                                                                                 
INFO:miio.updater:Got a request, should be downloading now.                                                                                                                                                                                        
DEBUG:miio.device:10.1.0.109:54321 >>: {'id': 116, 'method': 'get_sound_progress', 'params': []}                                                                                                                                                   
DEBUG:miio.device:10.1.0.109:54321 (ts: 2019-11-30 17:53:57, id: 116) << {'result': [{'sid_in_progress': 0, 'progress': 100, 'state': 4, 'error': 3}], 'id': 116}                                                                                  
Error (100 %)                                                                                                                                                                                                                                      
DEBUG:miio.device:10.1.0.109:54321 >>: {'id': 117, 'method': 'get_sound_progress', 'params': []}                                                                                                                                                   
DEBUG:miio.device:10.1.0.109:54321 (ts: 2019-11-30 17:53:58, id: 117) << {'result': [{'sid_in_progress': 0, 'progress': 100, 'state': 4, 'error': 3}], 'id': 117}                                                                                  
Error during installation: 3                                                                                                                                                                                                                       
DEBUG:miio.vacuum_cli:Writing {'seq': 117, 'manual_seq': 0} to /home/homeassistant/.cache/python-miio/python-mirobo.seq

But executing the installation command again there is no error. However, the voice package has not been overwritten:

 mirobo --debug --ip 10.1.0.109 --token xxxxxxxxxxxxxxxxxxx install-sound --sid 1 english.pkg                                                                                            
INFO:miio.vacuum_cli:Debug mode active                                                                                                                                                                                                             
DEBUG:miio.vacuum_cli:Read stored sequence ids: {'seq': 117, 'manual_seq': 0}                                                                                                                                                                      
DEBUG:miio.vacuum_cli:Connecting to 10.1.0.109 with token xxxxxxxxxxxxxxxxxxx                                                                                                                                                         
Installing from english.pkg (md5: None) for id 1                                                                                                                                                                                                   
INFO:miio.updater:Serving on 0.0.0.0:44739, timeout 10                                                                                                                                                                                             
INFO:miio.updater:Using local english.pkg (md5: 911bdd115c5b93823e6a87e6c80633cc)               
DEBUG:miio.updater:available interfaces: ['enxb827ebb10a6d', 'wlan0']                                                                                             
DEBUG:miio.updater:enxb827ebb10a6d has no ipv4 addresses, skipping                                                                                                                                                                                
DEBUG:miio.updater:Got addr: 10.1.0.101                                                                                                                                                                                                           
Hosting file at http://10.1.0.101:44739/english.pkg                                                                                                               
DEBUG:miio.protocol:Unable to decrypt, returning raw bytes: b''                                                                                                    
DEBUG:miio.device:Got a response: Container:                                                                                                                                                                                                      
    data = Container:                                                                                                                                                                                     
        data = b'' (total 0)                                                                                                                                                                                                                      
        value = b'' (total 0)                                                                                                                                  
        offset1 = 32                                                                                 
        offset2 = 32                                                                                                                                                                                                                              
        length = 0                                                                                                                                                                                           
    header = Container:                                                                                                                                                                            
        data = b'!1\x00 \x00\x00\x00\x00\x0f\x84\r\x84]\xe2\xac\xe9' (total 16)                                                                                                                                                                   
        value = Container:                                                                
            length = 32                                                                                                
            unknown = 0                                                                                                                                                                                                                           
            device_id = b'\x0f\x84\r\x84' (total 4)                                                                                                                                                
            ts = 2019-11-30 17:54:49                                                                                                                              
        offset1 = 0                                                                                                                                                                                                                               
        offset2 = 16                                                                                                   
        length = 16                                                                                                                                                                                               
    checksum = b'\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff' (total 16)                                                                                                                                                     
DEBUG:miio.device:Discovered 0f840d84 with ts: 2019-11-30 17:54:49, token: b'ffffffffffffffffffffffffffffffff'                                                 
DEBUG:miio.device:10.1.0.109:54321 >>: {'id': 118, 'method': 'dnld_install_sound', 'params': {'url': 'http://10.1.0.101:44739/english.pkg', 'md5': '911bdd115c5b93823e6a87e6c80633cc', 'sid': 1}}
DEBUG:miio.device:10.1.0.109:54321 (ts: 2019-11-30 17:54:49, id: 118) << {'result': [{'progress': 0, 'state': 0, 'error': 0}], 'id': 118}                         
<SoundInstallStatus sid: None (state: SoundInstallState.Unknown, error: 0) - progress: 0>                                                                                                                         
DEBUG:miio.device:10.1.0.109:54321 >>: {'id': 119, 'method': 'get_sound_progress', 'params': []}                                                               
DEBUG:miio.device:10.1.0.109:54321 (ts: 2019-11-30 17:54:49, id: 119) << {'result': [{'sid_in_progress': 1, 'progress': 0, 'state': 0, 'error': 0}], 'id': 119}   
DEBUG:miio.device:10.1.0.109:54321 >>: {'id': 120, 'method': 'get_sound_progress', 'params': []}                       
DEBUG:miio.device:10.1.0.109:54321 (ts: 2019-11-30 17:54:49, id: 120) << {'result': [{'sid_in_progress': 1, 'progress': 0, 'state': 1, 'error': 0}], 'id': 120}                                                   
Installation of sid '1' complete!                                                                                                                                                          
10.1.0.109 - - [30/Nov/2019 17:54:49] "GET /english.pkg HTTP/1.1" 200 -                                                                  
INFO:miio.updater:Got a request, should be downloading now.                                                   
DEBUG:miio.vacuum_cli:Writing {'seq': 120, 'manual_seq': 0} to /home/homeassistant/.cache/python-miio/python-mirobo.seq

I have tried with sid 1, 1007 and 10000 with the same result. Also tested using another webserver (python -m http.server).

I am available for testing. Thanks.

@Nekmo
Copy link
Author

Nekmo commented Nov 30, 2019

Fixed issue. Resolved using 1s voice package:

https://dustbuilder.xvm.mit.edu/pkg/voice-v1s/

Sorry for the inconvenience.

@Nekmo Nekmo closed this as completed Nov 30, 2019
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

1 participant