How to reflash the robot vacuum cleaner Xiaomi Mi Robot Vacuum Mop: all the ways and nuances

The Xiaomi Mi Robot Vacuum Mop (including the 1C, 1T, 2 Lite and Pro models) requires regular firmware updates to fix bugs, improve navigation and add new features. However, the standard update through the Mi Home app is not always available β€” especially for devices with regional restrictions or after rooting. In this article, we will discuss all the current ways of flashing, from official to alternative, including recovery from unsuccessful updates.

It is important to understand that firmware robot vacuum cleaner is not the same as updating a smartphone. there is no Recovery Mode, and an error can lead to a complete loss of operation of the device without the possibility of recovery through standard methods. So before starting the procedure, check the compatibility of the firmware file with your model (the number is indicated on the sticker under the cover) and prepare backup tools.

1. Preparation for flashing: what you need to know before you start

Before you start the upgrade, make sure your Xiaomi Mi Robot Vacuum Mop complies with the following requirements:

  • πŸ”‹ Battery charge at least 50%. Better connect the device to the docking station while the firmware is running.
  • πŸ“Ά Stable Wi-Fi connection (for official update) File download speed from 5 Mbps.
  • πŸ“± Up-to-date version of the Mi Home app (not below) 6.5.4 for Android/iOS).
  • πŸ› οΈ Backup of settings (if you plan to custom firmware) Save cleaning cards and schedules.

Pay special attention to the firmware version. You can find out about it:

  1. In the Mi Home app: Device profile β†’ Settings β†’ Device information.
  2. Voice Assistant: Say, β€œWhat is my version number?”
  3. On the case: Under the cover is the Model No. (e.g., STYJ02YM for Mi Robot Vacuum-Mop 2 Lite).

⚠️ Note: Mi Robot Vacuum-Mop models 1T 2 Pros are incompatible, and installing an inappropriate file will cause an error. ERROR 12 (impossibility of system loading).

πŸ“Š What model of Xiaomi robot vacuum cleaner you use?
Mi Robot Vacuum-Mop 1C
Mi Robot Vacuum-Mop 1T
Mi Robot Vacuum-Mop 2 Lite
Mi Robot Vacuum-Mop 2 Pro
Another model

2. Official Update via Mi Home: The Safest Method

If your vacuum cleaner is connected to the Mi Home app and has no regional restrictions, use the built-in update mechanism, which is recommended by Xiaomi and minimizes risks.

Instructions:

  1. Open Mi Home and select your robot vacuum cleaner.
  2. Go to Settings β†’ Update firmware.
  3. If a new version is available, click Update and confirm the action.
  4. Wait for the process to be completed (10-20 minutes) and the robot will restart automatically.

What to do if the Update button is inactive?

  • 🌍 Check your account region in Mi Home. for Russia, for Europe, choose Europe".
  • πŸ”„ Reconnect the device: Settings β†’ Remove the device, then add again.
  • πŸ“‘ Switch to another Wi-Fi network (e.g., from 5 GHz to 2.4 GHz).

πŸ’‘

If the update is stuck in Preparation, restart the robot vacuum cleaner, holding the power button for 10 seconds.

Manual update via USB: for power users

If the official method does not work (for example, due to regional restrictions), you can install the firmware manually through the USB-This is a suitable method for Mi Robot Vacuum-Mop models. 1C/1T/2 Lite, but requires strict adherence to the instructions.

Required files and tools:

  • πŸ’Ύ Firmware file in.pkg format (download only from official sources, for example, miuirom.org).
  • πŸ’½ USB-flash-drive FAT32 (32 GB maximum, no other files).
  • πŸ”Œ adapter OTG (plug-in).

Step-by-step:

  1. Download the firmware and rename the file to mirobo.pkg.
  2. Copy it on an empty flash drive (in the root catalog).
  3. Connect the flash drive to the robot through OTG-adapter (connector is under the cover, next to the reset button).
  4. Hold the power button for 5 seconds until you hear the beep.
  5. The update will start automatically (the indicator will flash yellow).

⚠️ Note: If the robot makes a mistake ERROR 4, so the firmware file is corrupted or not suitable for your model (MD5) file.

β˜‘οΈ Preparation USB-flash-drive

Done: 0 / 4

4. Alternative methods: Token-hacking and custom firmware

For users who want advanced features (such as integration with Home Assistant or removing regional restrictions), there are informal ways to firmware: they require a Token device and use third-party tools.

The most popular tools are:

  • πŸ”§ Valetudo – open firmware for robot vacuum cleaners Xiaomi, allowing you to control the device without the cloud Xiaomi.
  • πŸ”§ DustBuilder – utility for creating custom firmware with support for new maps and cleaning zones.
  • πŸ”§ MiHome Hack – a script to get Token without physical hacking.

How do you get a Token?

  1. Install Packet Capture on your smartphone (Android).
  2. Start capturing traffic and connect to the robot via Mi Home.
  3. Find a request with token= (32-digit code) in the logs.
Risks of custom firmware
Installing unofficial software will void Xiaomi’s warranty, and a laser rangefinder (LiDAR) or Wi-Fi module may fail, making it impossible to navigate or connect to the network. JTAG-port.

Example of a firmware command via Valetudo (required) SSH-access):

ssh root@192.168.x.x


cd /tmp




wget https://example.com/valetudo.zip




unzip valetudo.zip




./install.sh

5.Recovery after a failed firmware

If the Xiaomi Mi Robot Vacuum Mop has stopped turning on after the update (a red indicator is on or emits repeated beeps), try the following recovery methods:

Symptoms.Possible causeDecision
Red indicator, no response to buttonsLoader damaged.Swipe through UART (sweatering required)
Yellow indicator flashes 3 timesFile checksum errorRepeat the firmware from another flash drive
A beeping "dee-li" every 5 secondsIncompatible version of the firmwareReturn the original firmware via USB
The robot is switched on but not connected to Wi-FiResetting network settingsHold Wi-Fi + Spot for 10 seconds

To recover through UART, you will need:

  • πŸ”¬ soldering iron and solder (to connect to contacts on the board).
  • πŸ–₯️ USB-TTL adapter (e.g, CP2102).
  • πŸ’» Tera Term or Putty for sending commands.

Commands for loader recovery:

setenv bootcmd "run boot_mi"


saveenv




reset

⚠️ Attention: Pike UART If you're not sure, you can get the motherboard damaged if you're not sure, you can call the service center.

πŸ’‘

If the robot does not respond to the buttons, but the indicator is on, try resetting to the factory settings: hold the power button and the Spot button at the same time for 15 seconds.

6. Frequent errors and their solutions

Even if you follow the instructions correctly, you can get errors.

  • πŸ”΄ Error 12 is incompatible firmware. Check the device model and download the correct file.
  • 🟑 Error 4: corrupted file. Upload the firmware and check. MD5-sum.
  • πŸ”΅ Error 7: Low battery power. Connect the robot to the docking station for 1 hour.
  • βšͺ Error 1 - Failure of communication with the Xiaomi server. Check the Internet connection.

If the robot produces a 12 error after firmware, but switches on:

  1. Reset settings: Settings β†’ Reset to factory.
  2. Fly the device through USB with the correct file.
  3. If the error persists, return the original firmware.

For Error 4 (damaged file):

  • Format the flash drive in FAT32 (not exFAT!).
  • Use another one. USB-drive (some models do not read flash drives larger than 16 GB).
  • Check the file name: it should be mirobo.pkg (no spaces!).

7. Where to download firmware and how to verify their authenticity

The official firmware for Xiaomi Mi Robot Vacuum Mop can be downloaded from the following sources:

  • 🌐 Xiaomi official website (support section for your model).
  • πŸ“¦ Forum 4PDA (Specific topics for specific models, for example, here).
  • πŸ”— GitHub (Valetudo or DustBuilder repositories).

How to verify the authenticity of the file?

  1. Compare the MD5-sum of the downloaded file with the original (as indicated on the source website).
  2. Use antivirus to check for malware.
  3. Check the extension: the correct file should be.pkg, not.exe or.zip.

Example of MD5 check in Windows:

certutil -hashfile mirobo.pkg MD5

For Linux/Mac:

md5 mirobo.pkg

⚠️ Warning: Never download firmware from torrent trackers or unknown sites! in 2023, cases of infection of Xiaomi robot vacuum cleaners with viruses through fake firmware files were recorded.

FAQ: Answers to Frequent Questions

Can I roll back the firmware to the previous version?
Yes, but only if you have an old firmware file saved. Use USB to roll back. However, some models (such as the Mi Robot Vacuum-Mop 2 Pro) block the downgrade due to the bootloader's protection.
What if the robot does not see the docking station after the firmware?
Reset the docking station settings: disconnect it from the network for 30 seconds, then reconnect it. If the problem persists, update the docking station firmware through the Mi Home app (Accessory section).
How do I know which firmware is suitable for my model?
Check the model number on the sticker under the lid (e.g. STYJ02YM). Then look for the firmware on this code on the official website or forums. Mi Robot Vacuum-Mop 1T fits files marked roborock.vacuum.m1s.
Can I use a robot vacuum cleaner without Wi-Fi?
Yes, through USB-But some models (e.g. 2 Pro) require pre-activation via Mi Home, otherwise the device will block the unofficial firmware.
Lost Token after firmware. How do I restore it?
If you used custom firmware (like Valetudo), Token is no longer needed, it is managed locally, and you have to retrieve Token through traffic capture to return to the original firmware.