Xiaomiβs robot vacuum cleaners are some of the most popular smart home devices, but even they require periodic software updates. The firmware can solve navigation problems, add new features, or even unlock hidden features. However, the wrong actions lead to the βbrickingβ of the device, loss of warranty or unstable operation.
In this article, we will analyze all methods of firmware - from official updates through the Mi Home app to manual installation of custom firmware through the ADB or SSH. You will learn which models support alternative software (for example, Valetudo or OpenMiHome), how to avoid errors when updating and what to do if the vacuum cleaner has ceased to respond to commands. STM32 Rockchip, as the process of their firmware is fundamentally different.
1.Why update the firmware of Xiaomi robot vacuum cleaner?
The manufacturer regularly releases updates to fix bugs, improve cleaning algorithms and add new features. for example, in the firmware for Xiaomi Mi Robot Vacuum-Mop 2 Pro version 3.5.8_0040 Support for cleaning areas with different intensity, and in DreameBot D9 β Optimized work with high-pile carpets.
But not all updates are useful. Sometimes new versions of the software:
- π Remove useful features (e.g. manual control via app in older models).
- π’ Slowing down due to additional license checks or cloud services.
- π Block third-party firmware if the device is tied to a Mi Account.
Alternative firmware (e.g. Valetudo) RE) permit:
- π Use a vacuum cleaner without Xiaomi cloud servers (full local work).
- π± Manage through the application side (e.g. Home Assistant).
- π§ Adjust hidden parameters such as fan speed or sensor sensitivity.
β οΈ Attention: Installing custom firmware voids warranty and can cause permanent damage if the model is not supported by developers.
2. Which Xiaomi models support firmware?
Not all Xiaomi robot vacuum cleaners can be manually stitched, and here is a table that supports official and alternative firmware for popular models:
| Model | Official updates | Custom firmware | Platform chip | Notes |
|---|---|---|---|---|
| Mi Robot Vacuum-Mop 2 Pro | β Yes (via Mi Home) | β Valetudo RE, OpenMiHome | Rockchip RK3308 | Requires unlocking the loader |
| DreameBot D9 / D10 Plus | β Yes. | β Valetudo (partially) | STM32 + ESP32 | Firmware only through UART |
| Mi Robot Vacuum-Mop P | β Yes. | β No. | STM32 | Closed firmware, no alternatives |
| Viomi V3 | β Yes. | β Valetudo (experimental) | Rockchip RK3326 | Requires rations of contacts for firmware |
| Mi Robot Vacuum 1S | β No (obsolete model) | β OpenMiHome (Older version) | STM32 | Risk of Loss of Laser Function |
If your model is not in the table, check it on GitHub Valetudo or in the theme on the table. 4PDA. Devices on the base STM32 (For example, Mi Robot Vacuum 1) is flashed through ST-Link, and models with Rockchip are flashed through Fastboot or UART.
π‘
Before buying a custom firmware robot vacuum cleaner, check the motherboard version. D9 audited V1 and V2, And the firmware for one may not fit the other.
3. Firmware Preparation: Tools and Security
Regardless of the way you use the scaling, you will need:
- π» Windows computer 10/11 or Linux (for the ADB/Fastboot).
- π USB-Type-C cable (original, for stable connection).
- π± Mi Home (Last version) for official updates.
- π§ Drivers: Rockchip Driver Assistant for Rockchip chips. ST-Link Utility for Rockchip chips STM32. ADB/Fastboot (It is part of Googleβs Platform Tools).
For custom firmware additionally:
- π Unlock the bootloader (for Rockchip via rkdeveloptool).
- π Firmware file in.img or.bin format (download only from verified sources!).
- π¨ Solding iron and wires (to connect to the UART board-board).
β οΈ Attention: Firmware through UART It requires opening the body and working with the soldering iron. TX/RX/GND If you're not sure about your skills, use official methods.
Before we start:
Backup your current firmware (if possible)|Charge the vacuum cleaner to 100%|Disable Two-Factor Authentication in Mi Account|Check the version of the current software in the device settings-->
Method 1: Officially Update via Mi Home
The safest method is to upgrade through a proprietary app, and it is suitable for most models, including the Mi Robot Vacuum-Mop 2 Pro, DreameBot, and the most popular model. D9 new devices.
Step-by-step:
- Open the Mi Home app and select your vacuum cleaner.
- Go to Settings β About the device β Update firmware.
- If a new version is available, click Update.
- Confirm the update and wait until the completion (the vacuum cleaner will restart automatically).
If the update does not appear:
- πΆ Check the vacuum cleaner's connection to 2.4GHz Wi-Fi (5GHz not supported).
- π Reboot the vacuum cleaner by holding the power button for 10 seconds.
- π± Update the Mi Home app to the latest version.
- π Change your region to China (sometimes updates appear earlier).
β οΈ Note: If the vacuum cleaner is linked to a Mi Account with two-factor authentication, disable it before upgrading. In rare cases, after firmware, the device may require re-entering the code, and SMS he won't come.
π‘
Official updates via Mi Home do not require unlocking the bootloader and retain a warranty, but may contain restrictions (e.g., Xiaomi cloud binding).
5. Method 2: Manual update through USB (Rockchip)
If the official update is not available or you want to install a specific version of the firmware, you can use the method through USB-OTG. This method works for models based on Rockchip (Mi Robot Vacuum-Mop 2 Pro, Viomi). V3 etc.).
Files required:
- rkdeveloptool (a utility for working with Rockchip).
- Firmware file in format update.img (You can download it from miwifi.com or 4PDA).
Instructions:
- Connect the vacuum cleaner to your computer via USB-Type-C (use the port on the device body, not the docking station!).
- Run rkdeveloptool in Maskrom mode (this may require closing contacts on the board).
- Enter the command to check the connection: rkdeveloptool ld If the device is detected, you will see DevNo=1.
- Download the firmware: rkdeveloptool wl 0x2000 update.img
- Wait until the finish (about 5-10 minutes) and restart the vacuum cleaner.
If the process is 100% frozen:
- Turn off the cable and wait 30 seconds.
- Repeat the loading command.
- If the error is repeated, check the integrity of the file. update.img (his MD5-The hash must match the original).
What if the vacuum cleaner is not defined in rkdeveloptool?
6. Method 3: Installation of custom firmware (Valetudo)
Valetudo firmware allows you to control the vacuum cleaner without the Xiaomi cloud, but requires unlocking the loader and technical skills.This method is suitable for Mi Robot Vacuum-Mop 2 Pro, Viomi V3 and some of the Dreame models.
Step 1: Unlock the bootloader
- Connect the vacuum cleaner to your computer and put it into Fastboot mode (for Rockchip): adb reboot bootloader
- Unlock the bootloader command: fastboot flashing unlock (some models will require the entry of an unlock code, which can be obtained through the Xiaomi website).
Step 2: Installation of Valetudo
- Download the latest version of Valetudo from GitHub.
- Unpack the archive and launch the firmware script: flash.sh (Use it for Windows flash.bat).
- Wait for completion and connect to the vacuum cleaner via the Valetudo web interface at the address http://[IP-vacuum-cleaner].
Step 3: Setup
- π‘ Enable local mode in Valetudo settings.
- π Generate a new token API Integration with Home Assistant.
β οΈ Note: After installing Valetudo, the vacuum cleaner will disconnect from Xiaomi servers. You will not be able to use the official Mi Home app, voice assistants (Alice, Google Assistant) and some functions that depend on the cloud (for example, remote control over the Internet).
π‘
If you don't connect to Wi-Fi after Valetudo's firmware, check your router settings. Some models don't work with encryption. WPA3 β switch over WPA2-PSK.
7. Method 4: Firmware through UART (for STM32)
Models on the base STM32 (Mi Robot Vacuum 1S, DreameBot D9 Early audits) are being conducted through UART-This method requires soldering and knowledge of the basics of electronics.
Tools required:
- π§ soldering iron with a thin sting.
- πΈοΈ Wires "dad-mama" to connect to the board.
- π₯οΈ USB-UART adapter (e.g, CP2102 or FT232RL).
- π Firmware in.bin format (for STM32 use STM32CubeProgrammer).
Step-by-step:
- Disassemble the vacuum cleaner and find contacts UART on the motherboard (usually signed as TX, RX, GND).
- Connect the adapter to the contacts: TX (vacuumer) β RX (adapter). RX (vacuumer) β TX (adapter). GND β GND.
STM32CubeProgrammer
Erase & Program
If the firmware fails:
- π Check the voltage on the contacts (should be) 3.3V).
- π Try another one. UART-Adapter (some cheap models do not support the 3.3V).
- π‘ Make sure that the data rate is the same (usually 115200).
8 What to do if the firmware failed?
If the vacuum cleaner doesnβt turn on, flashes red, or emits a constant beep, try the following steps:
1. Reset to factory settings
- Hold the power button for 10-15 seconds until the beep.
- For models with Rockchip, try the command: fastboot erase userdata
2. Repeated firmware in emergency mode
- For Rockchip, use rkdeveloptool in Maskrom mode.
- For STM32 β repeat the firmware through UART contact-check.
3. Contacting the service
- If the vacuum cleaner does not respond to buttons and is not detected by the computer, the loader may be damaged.
- In this case, you need to flash through the programmer (for example, ST-Link for STM32).
β οΈ WARNING: If the vacuum cleaner was purchased less than a year ago, don't try to repair it yourself - contact Xiaomi's authorized service center.Self-intervention voids the warranty even if you just opened the case.
π‘
In 90% of cases, the βbrickedβ vacuum cleaner can be restored through emergency modes (Maskrom or Maskrom). UART). The main thing is not to panic and follow the instructions for your model.