How to flash the robot vacuum cleaner Xiaomi Mi Robot Vacuum through the PC: full instructions with nuances

Firmware vacuum cleaner Xiaomi Mi Robot Vacuum via PC – a procedure that may be necessary to restore the device after a failure, install custom firmware or update to the latest version of the software. Unlike the standard OTA- update through the Mi Home application, manual firmware gives more control, but requires accuracy: an error at any stage can turn the vacuum cleaner into a β€œbrick”.

Many users are afraid to stitch the device themselves for fear of damaging it, but with proper preparation and following the instructions, the risks are minimal. The main thing is to choose the right firmware version for your model (for example, STYJ02YM for Mi Robot Vacuum 2), prepare the necessary tools and be patient. In this article, we will discuss the process from A to Z, including solving typical errors.

If your vacuum cleaner is stuck on the logo, doesn't respond to buttons or constantly resets settings, firmware through your PC is often the only way out. But remember: Xiaomi's warranty does not apply to devices with corrupted software, so act at your own risk.

Preparation for firmware: what will be needed

Before you start, make sure you have everything you need, and without proper preparation, the process can fail and, in the worst case, damage the vacuum cleaner.

Here is the complete list of equipment and programs:

  • πŸ–₯️ Windows PC 7/10/11 (32 or 64-bit). On MacOS or Linux, firmware is possible, but requires additional driver manipulation.
  • πŸ”Œ USB-Type-A cable (to connect the vacuum cleaner to the PC) The original Xiaomi cable is preferable.
  • πŸ“ Firmware for your model. Only download from trusted sources: the official Xiaomi website, the forums 4PDA or the Xiaomi Community.
  • πŸ› οΈ Firmware: MiFlash (for official firmware) or Robot_Vacuum_Tool (for custom).
  • πŸ”§ Qualcomm HS-USB QDLoader 9008 drivers (required for vacuum cleaner recognition in EDL mode).
  • πŸ”‹ Charger (vacuum cleaner must be charged at least 50% before firmware).

Pay special attention to the choice of firmware. For example, Mi Robot Vacuum 1S will suit a file with the extension.tgz, and Mi Robot Vacuum 2 -.bin. Mismatch of software and vacuum cleaner model will lead to brick (complete failure)!

Also check the integrity of the downloaded files. Firmware archives often weigh 100-300MB. If the file is less than 50MB, it is likely to be corrupted.

πŸ“Š What model of Xiaomi Mi Robot Vacuum do you use?
Mi Robot Vacuum 1/1S
Mi Robot Vacuum 2/2S
Mi Robot Vacuum STYJ02YM
Another model
I don't know.

How to determine the model and current version of the firmware

Before firmware, you need to know exactly the model of your vacuum cleaner and the version of the installed software, this information will help you choose the right firmware file and avoid errors.

You can find out the model in several ways:

  • πŸ“„ Look at the sticker under the vacuum cover (e.g. MJSTFJ02CM for Mi Robot Vacuum 2S).
  • πŸ“± In the Mi Home app: go to Device Profile β†’ Settings β†’ About Device.
  • πŸ” On a vacuum cleaner box (if preserved).

The firmware version can be checked:

  1. Turn on the vacuum cleaner by clamping the power button for 3-5 seconds.
  2. Connect to its Wi-Fi point (MiRobot_Vacuum_XXXX type network).
  3. In your browser, go to http://192.168.8.1/cgi-bin/luci (login/password default: admin/admin).
  4. In the Status β†’ Overview section, look for the Firmware Version line.

If the vacuum cleaner is not turned on, you can determine the model by appearance:

How to distinguish Mi Robot Vacuum 1S from 2S?
The Mi Robot Vacuum 1S has a single physical button and a ring-shaped indicator. The 2S has a three-button touchpad and a laser rangefinder (a protruding turret).

Installation of drivers and preparation of PC

So, in order for a computer to recognize a vacuum cleaner in firmware mode, you need to install special drivers, and without them, the firmware simply won't see the device.

Download the Qualcomm HS-USB QDLoader 9008 driver from Qualcomm’s official website or trusted forums (e.g. 4PDA).

  1. Connect the vacuum cleaner to the PC in the off state.
  2. Press the power button and, without letting it go, plug in the USB cable. Hold the button for 10-15 seconds until you hear the device connect.
  3. In Device Manager (Win + X β†’ Device Manager), find a device with an exclamation point (usually in the Other Devices section).
  4. Right-click β†’ Update the driver β†’ Search for drivers on this computer β†’ specify the folder with the downloaded driver.

After successful installation in Device Manager, a Qualcomm HS-USB QDLoader 9008 (COMX) device will appear, where X is the port number.

If the driver is not installed:

  • πŸ”Ή Turn off the driver digital signature check in Windows (the instructions are available on the Microsoft website).
  • πŸ”Ή Try another USB- port (preferably USB 2.0, as 3.0 may not work).
  • πŸ”Ή Use a different cable (some cables are only for charging purposes).

πŸ’‘

If the vacuum cleaner is not detected in EDL mode, try connecting it to a PC via an externally powered USB-Hab, which sometimes helps stabilize the connection.

Step-by-step instructions for firmware through MiFlash

Now, we're going to go into the firmware process itself. We're going to use the official MiFlash utility, which is suitable for most Xiaomi Mi Robot Vacuum models.

Follow this algorithm:

  1. Download and install MiFlash from the official Xiaomi website (version no lower than 2020.3.14.0).
  2. Unpack the firmware into a short-cut folder (e.g., C:\MiRobot\firmware). The archive should contain a flash_all.bat file or images.
  3. Turn the vacuum cleaner into EDL mode: Turn off the vacuum cleaner. Press the power button and, without letting go, connect the USB- cable to your PC. Hold the 10-15 button for seconds until you hear the connection sound.

Launch MiFlash

Select

Device

COM3

Select firmware mode

  • Clean All – Full Firmware (recommended in case of failures).
  • Clean All and Lock - firmware with bootloader lock (for official firmware).
  • Save User Data – Save User Data (not always working correctly)
  • Press Flash and wait until it is completed (usually 5-10 minutes).

The firmware process is accompanied by a green progression lane, and when completed, the Flash Done message will appear in the log. Don't disconnect the vacuum cleaner from the PC until this message appears - interrupting the firmware will cause the device to fail!

β˜‘οΈ Checklist before firmware

Done: 0 / 5

Common mistakes and their solution

Even with the correct following of the instructions, errors can occur, and let's look at the most common ones and how to fix them.

Mistake.Reason.Decision
Device not found in MiFlashDriver not installed or vacuum cleaner not in EDL modeReinstall the driver, check the connection, try another USB- port
Flash failed (red band)Incompatible firmware or a corrupted fileDownload the firmware again, check the model of the vacuum cleaner
The vacuum cleaner does not turn on after firmwareIncorrect firmware mode (e.g. Save User Data instead of Clean All)Repeat the firmware in Clean All and Lock mode
MiFlash is 99% frozenConflict with antivirus or driversDisable the antivirus, reinstall the drivers, try another PC

If the vacuum cleaner after firmware does not respond to the buttons and does not turn on:

⚠️ Warning: Don't try to turn it on repeatedly, which can make the problem worse. Connect the vacuum cleaner to your PC and repeat the firmware in Clean All mode. If that doesn't help, the loader may be damaged and soldering equipment will be needed to repair it.

Another common problem is that the vacuum cleaner turns on, but doesn't connect to the Wi-Fi.

  • πŸ”„ Reset settings via the Reset button (under the cover).
  • πŸ“‘ Re-flash the Wi-Fi module separately (if your firmware supports separate module upgrades).
  • πŸ”§ Check if the router is blocking new devices from connecting.

Firmware custom versions of the software: risks and opportunities

In addition to the official firmware, there are custom (modified) versions of the software for Xiaomi Mi Robot Vacuum. They can add new features, for example:

  • πŸ—ΊοΈ Support for multi-floor maps.
  • πŸ”Š Russian-language voice assistant.
  • πŸ“Š Advanced suction power settings.
  • 🚫 Removal of restrictions by region (e.g., for European models)

However, the installation of custom software has a number of disadvantages:

  • ❌ Loss of warranty (if it is still valid).
  • ❌ Risk of unstable operation (e.g., vacuum cleaner may lose communication with base).
  • ❌ Lack of official support.

For firmware custom software instead of MiFlash is often used utility Robot_Vacuum_Tool. The algorithm of actions is similar, but there are nuances:

  1. Custom firmware is usually delivered as.img or.bin files without the flash_all.bat package.
  2. You may need to unlock the bootloader before the firmware (see 4PDA forums for instructions).
  3. Some custom firmware requires manually specifying memory addresses in the utility.

Example of popular custom firmware:

Name of nameSupported modelsMain features
ValetudoMi Robot Vacuum 1S, 2S, STYJ02YMLocal control without cloud, multi-map, advanced settings
OpenMiRobotMi Robot Vacuum 2, 2SIntegration with Home Assistant, custom voices, manual cleaning areas

⚠️ Warning: Custom firmware often requires manual editing of configuration files. If you're not sure about your skills, it's best to stick to the official software. In case of an error, vacuum cleaner recovery may require soldering.

Recovery of the vacuum cleaner after a failed firmware

If the firmware is faulty and the vacuum cleaner is not showing any signs of life, don't panic. In most cases, it can be restored.

Try the re-flashing first:

  1. Turn off the vacuum cleaner from the PC.
  2. Press the power button for 20-30 seconds (sometimes this is reset by a got stuck bootloader).
  3. Connect the vacuum cleaner to the PC in EDL mode and repeat the firmware.

If the vacuum cleaner is not detected in the Device Manager:

  • πŸ”Œ Try another one. USB-port.
  • πŸ–₯️ Use another computer (sometimes the problem is driver conflict).
  • πŸ”§ Reinstall the Qualcomm HS-USB QDLoader 9008 driver manually.

If nothing works, the bootloader may be damaged.

  1. Disassemble the vacuum cleaner and solder to the contacts TEST POINT (usually located near the USB-port).
  2. Use a programmer (e.g., CH341A) to flash memory.
  3. Restore the original firmware dump.

These manipulations require soldering skills and an understanding of electronics, and if you're not sure, you should go to a service center.

πŸ’‘

In 90% of cases, the vacuum cleaner can be restored by re-routing the firmware in EDL mode. The main thing is not to interrupt the process and use the correct version of the software.

FAQ: Answers to Frequent Questions

Can I flash Xiaomi Mi Robot Vacuum through MacOS?
Yes, but it's harder than Windows. You'll need: Install Wine to run MiFlash. Manually install drivers via kext. Use a USB-C β†’ USB-A adapter if you don't have a Type-A port on your Mac. You'll want to find a Windows PC if you don't have a successful firmware port.
How to return the official firmware after custom?
The process is similar to regular firmware: Download the official firmware for your model from Xiaomi. Sweat it through MiFlash in Clean All and Lock mode. If the vacuum is not turned on, try EDL mode with the power button pressed. After returning to the official software, you may need to reset.
Why does the vacuum cleaner not see the base after the firmware?
This is a typical problem when changing the firmware region. Solutions: πŸ”„ Reset the vacuum cleaner settings via the Reset button. πŸ“‘ Refashion the Wi-Fi module separately (if your firmware allows it). πŸ”§ Check if the firmware region matches the base region (e.g., CN for China, EU for Europe).
Can I use a vacuum cleaner without connecting to a PC?
Yes, but the options are limited: πŸ“± Through the Mi Home app (official OTA- updates only). πŸ“ Through the SD- card (not all models support this method).
Where to download the official firmware for Xiaomi Mi Robot Vacuum?
Official firmware can be found: 🌐 On the Xiaomi Firmware website (choose Smart Home section). πŸ“ On the forums 4PDA or Xiaomi Community (look for topics based on your vacuum cleaner model). πŸ“§ On request for Xiaomi support (you need a serial number of the device). Avoid third-party sites - viruses or corrupted files are often found there.