Xiaomi Mi Robot Vacuum Mop on the Firmware Robot Vacuum Mop MAT: detailing

Reflashing of the robot vacuum cleaner Xiaomi Mi Robot Vacuum Mop on alternative firmware MAT (Mi Home Alternative Tool provides access to advanced features: removing regional restrictions, Russifying the interface, configuring cleaning areas without Xiaomi cloud servers. However, the process requires care - a bug in the firmware stage can turn the device into a "brick". In this article, we will analyze the step-by-step algorithm taking into account the specifics of the models. STYJ02YM, STYTJ01ZHM and similar, and also consider the unique risks when working with memory chips GD25Q127C, which are used in these vacuum cleaners.

Before you start, make sure your model is supported. MAT. Firmware is suitable for most Xiaomi vacuum cleaners based on the Rockchip platform RK1608, but not compatible with new devices on MT7688 (If you are not sure about the chip model or firmware version, use the MiHome-Binary-Parser utility to analyze the memory dump - this will help avoid conflicts.

1. Why. MAT Better than standard Xiaomi firmware?

Xiaomi’s standard software has a number of limitations that MAT pass:

  • 🌍 Removing regional locks: the ability to use the vacuum cleaner in any country without being tied to Xiaomi servers (relevant for models purchased in China).
  • πŸ”§ Full control of maps: edit cleaning areas, virtual walls and no-go zones right in the application without cloud synchronization.
  • πŸ“± Local management: working over a local network without the need to connect to the Internet (important for users with limited traffic or problems with the Internet) VPN).
  • πŸ”„ Updates without dependencies: MAT Updated regardless of official Xiaomi releases, often adding features earlier than the manufacturer.

Besides, MAT Supports integration with Home Assistant and other smart home systems through the protocol MQTT, For example, you can set up automatic cleaning when you open a window (through sensors) or synchronize the vacuum cleaner with a robot washer.

⚠️ Attention: Firmware MAT If the device is warranty-free, consider alternatives such as using Valetudo (for open vacuum cleaners). API) or purchase of an international version of the vacuum cleaner.

2. Preparation for firmware: what will be needed

Before starting the process, collect everything you need:

  • πŸ–₯️ Computer on Windows 10/11 Linux (macOS is not supported due to driver issues) CH340).
  • πŸ”Œ USB-cable with data transmission support (not all charging cables are suitable!).
  • πŸ”§ Screwdriver. T5 to disassemble the vacuum cleaner (needed to connect to the contacts) UART).
  • πŸ“ Firmware files: the latest version MAT For your model (download only from the official repository).
  • πŸ› οΈ Programs: MiHome-Binary-Parser, Flash_Download_Tools (for Rockchip, Putty (for Rockchip) UART-monitoring).

Pay special attention to the versions of the memory chip. In vacuum cleaners Xiaomi Mi Robot Vacuum Mop used:

Model chip.Memory volumeCompatibility with MATNotes
GD25Q127C16 MBYes.The most common option. It requires a patch to work properly with the cards.
GD25Q128C16 MBYes.Analogue GD25Q127C, But with another contact wiring, check the datasheet before rationing.
MX25L12835F16 MBPartially.May require manual editing of the configuration file config.json.
W25Q128JV16 MBNo.Not supported MAT Because of the controller, the risk of bricks. ~70%.

To find out the chip model, take the vacuum cleaner apart and find the markings on the board. UART execute:

cat /proc/mtd

The answer will be a line with the name of the chip, for example: mtd0: 00100000 00020000"GD25Q127C".

πŸ“Š What is your experience with smart devices?
First time.
I've been stitching smartphones/tablets
I worked with IoT gadgets.
I am professionally engaged in electronics.

3. Disassembly of the vacuum cleaner and connection to UART

For firmware through UART (recommended method) access to the contacts on the motherboard:

  1. Turn the vacuum cleaner off the net and turn it over.
  2. Remove the bottom cover by unscrewing 4 screws T5 (Two hidden under stickers!).
  3. Disconnect the battery (required!) to avoid short circuit.
  4. Find a connector on the board. J3 (These are contacts, usually near a memory chip. UART:
  • GND β€” earth).
  • TX β€” Data transmission (white/yellow wire).
  • RX β€” data reception (green wire).
  • 3.3V β€” Power (red wire, not necessarily connected).

Connect the wires to USB-UART adapter (e.g., adapter, CP2102 or CH340) Install the adapter drivers (download from the chip manufacturer's website).

⚠️ Attention: Low-quality adapters CH340 They can give out unstable voltages, which will damage the board. Use adapters that are surge-proof (e.g., surge-proof adapters, FTDI FT232RL).

After connecting, open Putty or Screen (for Linux) with settings:

  • Speed: 115,200 baht.
  • Data bits: 8.
  • Stop-bits: 1.
  • Parity control: None.

If the connection is successful, when you turn on the vacuum cleaner, the loading log will appear in the terminal. If instead of the log you see characters or debris, check the connection is correct. TX/RX (smack them up!).

Battery's off.|The wires are connected to the correct contacts (GND, TX, RX)|Drivers installed for USB-UART adapter|Terminal (Putty/Screen) tuned 115200 baud|Firmware downloaded MAT for your model-->

4. Step-by-step instructions for firmware

The firmware process consists of three stages: creation of a backup, recording MAT And check the performance.

Step 1: Create a backup copy of stock firmware

This is a must-do step, because without a backup, it's impossible to restore the device if you make an error. Flash_Download_Tools (Windows).

For Linux, do the following in the terminal:

sudo flashrom -p ch341a_spi -r backup.bin

Where:

  • ch341a_spi β€” The driver for the programmer (if you use it) CH341A).
  • backup.bin β€” backup filename.

For Windows:

  1. Open up. Flash_Download_Tools.
  2. Select a memory chip from the list (for example, GD25Q127C).
  3. Press Read and save the dump as backup.bin.

⚠️ Note: The backup file should weigh exactly 16MB (16,777,216 bytes). If the size is different, repeat the procedure until you get the correct dump.

Stage 2: Recording firmware MAT

Download the latest version MAT GitHub, there'll be files in the archive:

  • mat_vacuum_mop.bin β€” firmware.
  • config.json β€” Configuration file (may require editing).
  • Readme.md is a guide for your model.

For firmware through Flash_Download_Tools:

  1. Download. mat_vacuum_mop.bin programmatically.
  2. Enter the address of the beginning of the recording: 0x000000.
  3. Press Erase, then Write.
  4. Wait until the end (around) 5-7 minute).

For firmware through UART (alternative):

sudo flashrom -p ch341a_spi -w mat_vacuum_mop.bin

After recording, turn off the programmer, collect the vacuum cleaner and turn it on. The first turn on after the firmware can take up to 3 minutes - this is normal.

Stage 3: Set-up MAT post-fix

Connect the vacuum cleaner to Wi-Fi via the Mi Home app (use the "Add Device Manual" mode).

  1. Go to Settings β†’ About the device β†’ Software version.
  2. Click on the firmware version 5 times and the developer menu will open.
  3. Enable the Local Control option and MQTT (If you plan to integrate with Home Assistant).
  4. Reset the device.

πŸ’‘

After the firmware MAT The vacuum cleaner will be defined in Mi Home as "Unknown Device." That's OK -- control it through a web interface. IP-address (e.g, http://192.168.1.100).

Possible errors and their solutions

Even with the exact following of the instructions, there can be problems.

Mistake.Reason.Decision
The vacuum cleaner does not turn on after firmwareIncompatible version MAT damperRestore the backup through Flash_Download_Tools. If it doesn’t help, check the contact ratio.
The red light is always flashing.Checksum error (CRC)Check it out. MAT with Verify disabled in the programmer settings.
No room maps are retainedWrong. config.json for your modelDownload the current one. config.json for your memory chip from the repository.
The vacuum cleaner does not connect to Wi-FiResetting network settings after firmwarePress the Reset button for 10 seconds, then reset the connection.

If the vacuum cleaner is getting stuck during the loading stage (the white indicator burns, but does not respond to buttons), try to reset it to the factory settings through the window. UART:

echo"reset_to_factory" > /tmp/factory_reset


reboot

If this does not help, you will have to re-stitch the device from scratch using a backup.

What to do if the vacuum cleaner has turned into a brick?
If the device is not showing signs of life (not turned on, not determined by the programmer), try the following: 1. Check the voltage on the power contacts of the board (should be 3.3V). 2. Re-sweeten the memory chip on the programmer and thread it separately. 3. If the chip is damaged, replace it with a similar one (for example, GD25Q127C on GD25Q128C 4. In extreme cases, contact the service center, but warn that the device has been modified - this may affect the cost of repairs.

6 Integration with Home Assistant and other systems

One of the key advantages MAT Local control is possible through the protocol MQTT. Integration with Home Assistant:

  1. Install Mosquitto broker in Home Assistant.
  2. In the settings MAT (config.json) specify:
"mqtt": {




"enabled": true,




"host": "192.168.1.10", // IP of your Home Assistant




"port": 1883,




"user":"your_username",




"pass":"your_password",




"topic_prefix":"vacuum"




}

  1. Add to configuration.yaml Home Assistant:
vacuum:




- platform: mqtt




name:"Xiaomi Vacuum"




command_topic:"vacuum/command"




state_topic:"vacuum/state"




schema:"state"

After the Home Assistant reboot, the vacuum cleaner will appear in the list of devices.

  • πŸ“ Start cleaning on schedule.
  • πŸ”„ Set up cleaning areas through YAML-configuration.
  • πŸ“Š Monitor battery status and operating time.

To integrate with Google Assistant or Alice, use the HASS-Agent or Node-RED plugin.

πŸ’‘

If the vacuum cleaner does not respond to commands MQTT, Check if port 1883 is open in router settings and if firewall blocks it.

7.Update MAT and rollback to stock firmware

Firmware MAT Updated through the web interface of the vacuum cleaner:

  1. Open it in your browser. http://[IP_vacuumer]/update.
  2. Download the new version of.bin.
  3. Press Update and wait for the reboot.

To return to the stock firmware Xiaomi:

  1. Download the original dump for your model (for example, with Xiaomi Firmware Updater).
  2. Squeeze it through. Flash_Download_Tools (similarly MAT).
  3. Reset the settings through UART:
echo"restore_stock" > /tmp/restore


reboot

⚠️ Warning: After returning to stock firmware, the vacuum cleaner may lock if previously linked to a Chinese Xiaomi account. IMEI through the engineering menu (team) AT+EGMR=1,7,"NEW_IMEI").

8. Alternatives MAT: Valetudo and other firmware

If MAT For some reason, it is not appropriate, consider alternatives:

  • 🧹 Valetudo: open firmware with a web interface, but requires root access (suitable for vacuum cleaners on the Internet) MT7688).
  • πŸ”„ OpenMiHome: fork MAT Supports more models, but less stable.
  • πŸ“± DustBuilder: firmware for vacuum cleaners with LiDAR, allows you to adjust the speed of rotation of the brush.

Comparison MAT Valetudo:

FunctionMATValetudo
Xiaomi Mi Robot Vacuum MopYes.Partially (requires patches)
Local controlYes.Yes.
Integration with Home AssistantMQTTMQTT + REST API
Russification of the interfaceYes.No (English only)
Support for cleaning areasYes.Yes (via plugins)

Valetudo is more difficult to set up, but offers more customization options. MAT It is easier for beginners and better optimized for Russian users (there is Russification and support for Yandex Alice).

πŸ’‘

If your model of vacuum cleaner is not supported MAT, Try Valetudo, but be prepared for manual editing of configuration files and possible bugs with room maps.

FAQ: Frequent Firmware Questions About Xiaomi Mi Robot Vacuum Mop

Can I stitch it? MAT rationless?
Theoretically yes, if your model supports firmware through the air (OTA) But this is a modified application called Mi Home, but it only works for vacuum cleaners on a chip. MT7688 (For example, Xiaomi Robot Vacuum-Mop 2 Lite. For Mi Robot Vacuum Mop on Rockchip RK1608 ration UART mandatory.
How do you know? IP-vacuum address?
If the vacuum cleaner doesn’t connect to Wi-Fi, find it. IP via router (partition) DHCP Clients) or use a network scanner (e.g. Fing for Android/iOS). Alternatively, connect directly to it by creating an access point with a name. Xiaomi_Vacuum_XXXX password 1234567890.
Why after the firmware? MAT vacuum cleaner doesn't build a map?
This is a problem when the firmware version and the configuration file mismatches. config.json indicated "map_format" (For the Mi Robot Vacuum Mop, it's usually "LDS"). Remove old maps via web interface MAT (http://[IP]/maps). Update your firmware to the latest version (maps bugs are often fixed in new releases).
Can I stitch it? MAT to the vacuum cleaner from Aliexpress, if it is linked to a Chinese account?
Yes, but it's going to take an extra step to reset the account. MAT through UART. Connect to the vacuum cleaner SSH (Username: root, password: empty. Follow the command: miio unbind After that, the vacuum cleaner can be linked to a new account (including Russian one).
How to return the warranty after firmware MAT?
Technically, no. But if the vacuum cleaner is still guaranteed, you can try: Return the stock firmware (as described in section 7). Remove all traces of modifications: restore the original one. IMEI, If the vacuum cleaner is blocked when connecting to the Mi Home, use the Mi Account Unlock Tool (risky, can lead to a ban of the account). Note that Xiaomi service centers often check the device log for custom firmware, so the chances of a successful β€œrollback” are low.