Reflashing the vacuum cleaner Xiaomi: official and custom methods

Xiaomi’s robot vacuum cleaners regularly receive firmware updates that improve cleaning algorithms, add new features (such as zoning or carpet recognition), and fix bugs. However, a standard update through the Mi Home app isn’t always available β€” especially for older models or devices with regional limitations, in which cases users have to resort to manual flashing.

This article covers all the current ways to update the software for vacuum cleaners Xiaomi (including models Mi Robot Vacuum-Mop 2 Pro, S7, STYJ02YM And others, explain the differences between official and custom firmware, and help avoid common mistakes, and we'll figure out when flashing is really necessary and when to do without it, because an incorrect update can turn a vacuum cleaner into a brickΒ».

Why upgrade the firmware of the Xiaomi vacuum cleaner?

The manufacturer releases software updates for robot vacuum cleaners at least 2-3 times a year, each of which brings noticeable improvements:

  • 🧹 Optimizing cleaning algorithms: more accurate mapping, better recognition of obstacles (such as cables or shoes), adaptive suction force depending on the type of coating.
  • πŸ”‹ Battery management: extending battery life by optimizing charging/discharge cycles (relevant for models with Li-ion batteries, such as Xiaomi Mi Robot Vacuum-Mop P).
  • πŸ“± New features in the app: support for voice assistants (Alice, Google Assistant), advanced cleaning zone settings, integration with Xiaomi Home for automatic scripts.
  • 🐞 Fixing bugs: fixing problems with hanging, Wi-Fi connection errors, incorrect operation of sensors.

Not all updates are equally useful, however, and some users complain that after the update, the vacuum cleaner has lost contact with the base more often or ignored virtual walls, in which case manually rolling back the previous firmware version may be the solution.

⚠️ Attention: Updating the firmware does not increase the physical suction power or battery capacity. If the vacuum cleaner has become worse to remove due to wear of brushes or clogged filters, firmware here will not help - mechanical cleaning or replacement of components is required.

πŸ“Š What model of Xiaomi vacuum cleaner you use?
Mi Robot Vacuum-Mop 2 Pro
S7/S7 MaxV
STYJ02YM (1S)
Another Xiaomi model
Another brand's vacuum cleaner

Official ways to update firmware

The safest method is to upgrade through the Mi Home app (or Xiaomi Home for new models), which is automated and minimally risky, but has limitations:

  1. Regional reference: Vacuum cleaners for the Chinese market (with firmware) CN) They do not receive updates via European servers and vice versa.
  2. Distribution delays: New versions of the software are first tested on a limited number of devices, so your vacuum cleaner can get an update 1-3 months after the official announcement.
  3. No rollback: You can’t return to the previous firmware version through Mi Home – only forward.

Step-by-step instructions for updating through Mi Home:

Make sure the vacuum cleaner is at least 50 times charged%|Connect it to a stable Wi-Fi network (2.4 GHz)|Close the Mi Home app and restart it.|Check the free space on your smartphone (required) ~100MB)-->

  1. Open Mi Home, select your vacuum cleaner on the home screen.
  2. Go to Settings β†’ About the device β†’ Update firmware.
  3. If a new version is available, click Update. The vacuum cleaner will restart and install the software (the process will take 5-15 minutes).
  4. After updating, reset the map in the settings – this will help to avoid navigation errors.

If the update button is inactive, check:

  • 🌍 Region of the Mi Account: it must match the vacuum cleaner region (e.g, CN Chinese version).
  • πŸ“Ά Internet connection: vacuum cleaner must be online (Wi-Fi indicator burns blue).
  • ⏳ Last Check Time: Sometimes you need to manually click Check Updates.

πŸ’‘

If the vacuum cleaner doesn't find an update, try temporarily changing the region in Mi Home to Mainland China, updating the firmware, and then coming back. This method works for most global models.

Hand-flashing through USB (for advanced users)

If the official update is not available or you want to install custom firmware (for example, Valetudo for decoupling from the Xiaomi cloud), you will need manual firmware through the USB-This is a method that's suitable for connector models. USB Type-C or Micro-USB (usually hidden under the cover).

Warning: Mistakes can permanently incapacitate the vacuum cleaner, a method only recommended for experienced users who are prepared to risk losing warranty.

Tools required:

  • πŸ–₯️ Computer with Windows/Linux (for firmware via adb or fastboot).
  • πŸ”Œ Cable USB-A β†’ USB-C/Micro-USB (original, undamaged).
  • πŸ“ Firmware in.bin or.img format (download only from trusted sources, for example, XDA Developers).
  • πŸ”§ Firmware: MiFlash (for official firmware) or Platform Tools (for ADB).

Instructions for firmware through MiFlash:

  1. Download and install the MiFlash Tool.
  2. Connect the vacuum cleaner to the PC in fastboot mode (this may require you to press the Reset button when connecting). USB).
  3. In MiFlash, select the downloaded firmware file (.tgz or.zip) and press Refresh – the device must be determined.
  4. Press Flash and wait until the cable is completed (don’t turn off!).

⚠️ Attention: Firmware via fastboot erases all vacuum cleaner settings, including stored maps of the premises, after the procedure you will need to reconfigure Wi-Fi and train the robot to plan the apartment.

What if the vacuum cleaner is not defined in MiFlash?
If the device doesn’t appear in the list, try: 1. Install Qualcomm drivers HS-USB QDLoader 9008 manually via Windows Device Manager. 2. Use another USB-port (preferably) USB Reboot the vacuum cleaner to fastboot mode again, holding the Reset button for 10-15 seconds.

Castom firmware: Valetudo and alternatives

Xiaomi’s official software has a number of limitations: mandatory cloud binding, no local management, in-app advertising. Alternative firmware like Valetudo solves these problems, but requires unlocking the bootloader and technical skills.

The advantages of Valetudo:

  • πŸ”’ Local control: vacuum cleaner can be controlled without the Internet, directly from the home network.
  • 🚫 No cloud dependency: No Xiaomi account or connection to China servers required.
  • πŸ› οΈ Advanced settings: manual adjustment of suction power, speed of movement, sensor sensitivity.
  • πŸ“Š Open Source: The community adds new features regularly.

Disadvantages:

  • ⚠️ Loss of warranty: Xiaomi does not support custom firmware.
  • πŸ”§ Installation difficulty: soldering iron is required to connect to UART or experience with ADB.
  • πŸ”„ No. OTA-Updates: every Valetudo update will have to be manually installed.

Compatible models:

Model vacuum cleanerValetudo supportMethod of installation
Xiaomi Mi Robot Vacuum-Mop 2 Pro (STYJ02YM)βœ… Yes.Through UART or ADB
Xiaomi Mi Robot Vacuum-Mop P (STYTJ01ZHM)βœ… Yes (beta)Requires unlocking of the loader
Xiaomi S7 / S7 MaxV❌ No (closed firmware)β€”
Xiaomi STYJ02YM (1S)βœ… Yes.Through root access.

Detailed instructions for installing Valetudo can be found on the project's official website, and most models will require:

  1. Get root access through an exploit in firmware.
  2. Connect to the vacuum cleaner SSH or UART.
  3. Download and install a Docker container with Valetudo.

πŸ’‘

Custom firmware is only suitable for enthusiasts willing to sacrifice stability for additional features, and for most users, official software remains the best choice.

Typical errors and their solutions

Even if you follow the instructions, the flashing process may not go according to plan, and let's look at some of the most common problems and ways to fix them:

1.The vacuum cleaner is not turned on after firmware ("brick")

  • πŸ”‹ Check battery power: connect the vacuum cleaner to the docking station for 30 minutes, then try turning on.
  • πŸ”„ Try returning to factory firmware via fastboot (if the device is PC-defined).
  • πŸ› οΈ If nothing helps, contact the service center - sometimes you need to solder the flash memory.

2. Wi-Fi connection error after update

  • πŸ“Ά Restart router and vacuum cleaner (hold power button for 10 seconds).
  • πŸ”„ Reset network settings in the Mi Home app: Device settings β†’ Wi-Fi reset.
  • 🌍 Make sure the region in the Mi Home matches the vacuum cleaner region (e.g., the area in the vacuum cleaner, CN Chinese models).

3.The vacuum cleaner doesn't build a map or get knocked down

  • πŸ—ΊοΈ Perform a reset of the card in the settings and retrain the robot from scratch.
  • 🧹 Check the purity of sensors (especially lidar) – dirt can distort data.
  • πŸ“± Update the Mi Home app to the latest version.

4. Firmware is interrupted in the middle

  • πŸ”Œ Use the original. USB-cable USB 2.0 (USB 3.0 can cause malfunctions).
  • πŸ–₯️ Turn off antivirus and firewall on PC – they can block MiFlash.
  • πŸ”„ Repeat the firmware from another version of the software (for example, first install the intermediate build).

⚠️ Warning: If a vacuum cleaner emits an audible signal at 1 second intervals after a failed firmware, this indicates damage to the loader. In this case, self-repair is almost impossible - specialized equipment is required to flash through the water. UART.

How to roll back the firmware to the previous version

If the new software is unstable, you can try to go back to the old version, but Xiaomi does not provide official tools for rollback, so the process requires caution.

Method 1: Mi Home (if available firmware archive)

  1. Download the desired firmware version (.pkg) from forums (for example, 4PDA).
  2. Rename the file to update.pkg and place it in the root USB-storage (FAT32).
  3. Connect the flash drive to the vacuum cleaner (via the adapter if not) USB-port) and hold the Reset button for 5 seconds.
  4. After the beep release the button and the installation will begin.

Method 2: Fastboot (for power users)

  1. Download the full image of the old firmware (.tgz) for your model.
  2. Connect the vacuum cleaner to the PC in fastboot mode.
  3. In MiFlash, select the Clean All option and specify the path to the image.
  4. Press Flash and wait until it is completed (10-20 minutes).

Important: Firmware rollback can lead to loss of functionality if the new version of the software makes changes to the hardware (for example, updated the sensor firmware), in which case some functions (for example, carpet recognition) may not work correctly.

Compatibility of firmware with different models

You can't install firmware from one model to another, and it's guaranteed to bring the vacuum cleaner down. Each device has a unique hardware platform, and the software is strictly tied to:

  • πŸ”§ Processor models (e.g. Rockchip) RK1608 Mi Robot Vacuum 1S vs STMicroelectronics STM32 new models).
  • πŸ“‘ Type of lidar (laser sensors from the LDROBOT Slamtec requires different drivers).
  • πŸ”‹ Type of battery (Li-ion or LiPo with different charge controllers).

Below is a table of compatibility of popular models and firmware types:

ModelOfficial firmwareValetudoOther custom firmware
Xiaomi Mi Robot Vacuum 1 (1st Gen)βœ… Yes, before version 3.5.8)βœ… Yes (full support)❌ No.
Xiaomi Mi Robot Vacuum-Mop 2 Pro (STYJ02YM)βœ… Yes (monthly updates)βœ… Yes (root required)βœ… OpenMower (experimental)
Xiaomi S7 / S7 MaxVβœ… Yes, only through Mi Home)❌ No (closed loader)❌ No.
Xiaomi STYTJ01ZHM (Mop P)βœ… Yes.βœ… Yes (beta version)❌ No.

Before installing custom firmware, be sure to check its compatibility with your model on GitHub Valetudo or thematic forums. Installing inappropriate software can lead to irreversible damage to the vacuum cleaner controller.

FAQ: Frequent questions about reflashing

Can I use a Xiaomi vacuum cleaner without a computer?
Yes, but only official updates through the Mi Home app. for manual firmware (e.g. via USB) You always need a PC or a laptop, except for the support models. OTA-updates via a local network (for example, Mi Robot Vacuum-Mop 2 Pro can install firmware from a flash drive connected to the docking station).
How do I find out the current version of the firmware?
Open the Mi Home app, select a vacuum cleaner and go to Settings β†’ About the device. The firmware version is listed under the "Branded Software" line (e.g., "Firmware, 3.5.8_0042). Alternatively, you can see the version on the body of the vacuum cleaner - on the sticker under the lid.
What if the vacuum cleaner does not connect to Mi Home?
Try first: Reboot the vacuum cleaner (hold the power button for 10 seconds) Reset the Wi-Fi settings in the app (Settings) β†’ Reset the device from Mi Home and add it again. If nothing helps, re-scan the device by selecting the region that matches your model (e.g, CN Chinese version).
Can I sew the Chinese version of the vacuum cleaner with global firmware?
Global firmware is often devoid of a number of features (e.g. voice recognition in Chinese or support for local servers).In addition, a regional mismatch can lead to: Loss of communication with Xiaomi servers (vacuum cleaner will not receive a receiver). OTA-Sensor errors (if calibration is different for different markets); warranty issues; if you are critically interested in English firmware, you should buy a global version of the vacuum cleaner (with the Global marker in the model name).
How often does Xiaomi release updates for vacuum cleaners?
Frequency of updates depends on the model: Flagship models (S7 MaxV, Vacuum-Mop 2 Pro: Updates are released every 1-3 months (1S, Mi Robot Vacuum: updates less often - every 4-6 months. Old models (released before 2019): updates are almost never released. You can follow the announcements of new firmware on the official Xiaomi website or in Telegram channels dedicated to the smart technology of the brand.