Xiaomiโs robot vacuum cleaners arenโt just cleaning devices, theyโre real smart assistants that can build detailed maps of the space, but many users face a problem: once you reboot, update your firmware or crash in the Mi Home app, the saved map suddenly disappears. Why does this happen? The fact is that by default, most models (such as the Mi Robot Vacuum-Mop 2 Pro or Dreame D9) donโt save the map automatically โ you need to fix it manually or configure it to sync with the cloud.
In this article, we will discuss all the working ways to save a map, including hidden application functions, commands for the ADB, and what to do if the card does reset. We will focus on models with the LDS-ladar (laser scanner) and hybrid navigation systems, since they have different algorithms for building maps, and you will learn how to avoid the typical errors that cause the map to โflyโ after each turn on.
If your vacuum cleaner has already lost the map, don't panic. In 90% of cases, it can be restored without completely flashing it, and the key is to follow the clear algorithm that we've described below.
1.How card saving in Xiaomi robot vacuum cleaners works
Before you save a card, it's important to understand how it's formed and where it's stored. Xiaomi robots have two types of memory for the cards:
- ๐ฑ Local memory โ the card is stored in the device itself (in the internal flash memory), and when the power is turned off or the settings are reset, the data can be erased.
- โ๏ธ Cloud storage โ the card syncs with Xiaomi servers through a Mi Account, which is more secure, but requires a stable Internet connection.
Most models (such as the Mi Robot Vacuum-Mop P or Viomi V3) only keep the card locally by default, which means that if any failure (battery discharge to 0%, forced shutdown, firmware update) the card may disappear. To avoid this, you need to enable cloud synchronization manually โ but not in all regions this feature is officially available.
Another caveat: Hybrid navigation robots (laser + camera, like the DreameBot Z10 Pro) can build maps faster, but they also lose maps more often due to conflicts between sensors, and in such cases, calibrating the laser through an engineering menu helps.
โ ๏ธ Warning: If your vacuum cleaner is connected to a Mi Account from a Chinese region, cloud-based card storage may be blocked due to Xiaomiโs restrictions on local users, in which case alternative methods will have to be used (see Section 4).
2. Method 1: Manually save the card through the Mi Home application
The easiest way is to save the card manually after cleaning is complete.
- Start the robot for a full cleaning (the โZoneโ or โFull cleaningโ mode).
- Wait for him to build the map (usually 5-10 minutes).
- Open the Mi Home app, go to the tab with the map.
- Click on the Save icon (the floppy or cloud icon, depending on the version of the application).
If there is no save button, your model does not support this function directly, in which case you can try an alternative method:
- ๐ Reboot the robot via Settings โ Reboot in the app.
- ๐ฒ After you restart, check if the map is still there. If so, it's stored locally.
- โ๏ธ If the card is gone, turn on cloud sync (see next section).
Make sure the robot is connected to Wi-Fi | Check the battery level (minimum 20%) | Close all doors in the room | Remove from the floor small objects that may interfere with the scan-->
On some firmware (for example, on Mi Robot Vacuum-Mop 2 Lite), the save button only appears after double-clicking on the card. If nothing helps, update the Mi Home app to the latest version or try using Mi Home Lite (an alternative client for Android).
Method 2: Enabling cloud-based map synchronization
Cloud storage is the most reliable way, but it doesn't work on all models and regions.
- Open Mi Home and go to the robot settings.
- Find the Map โ Map Settings section (or Map Settings in English).
- Enable the option of โCard Syncโ or โCloud Mapโ.
- Confirm the link to your Mi Account.
If you donโt have an option, try changing your account region to Singapore or Hong Kong (there is more frequent access).
- ๐ In Mi Home, go to profile โ Region.
- ๐ Select Singapore or Hong Kong and reboot the app.
- ๐ After changing region, check for the cloud sync option.
Yes, it works stably | Yes, but sometimes it fails | No, no such function | I don't know how to check-->
Important: Once cloud sync is enabled, it can take up to 10 to 15 minutes to load the map to the server for the first time, don't turn off the robot or close the application at this time, and if the process is stalled, restart the vacuum cleaner and try again.
โ ๏ธ Note: On firmware models for the Chinese market (e.g. Viomi) V2 suffixed CN In the title, cloud synchronization may require a link to a Chinese Mi Account, in which case it is easier to use the method of saving through the Internet. ADB (see section 5).
Method 3: Save the card through the engineering menu (for advanced)
If standard methods donโt work, you can try saving the card through the robotโs engineering menu, a method that works for most Xiaomi-based models (including the Dreame and Viomi), but requires caution.
Instructions:
- Turn on the robot and connect to its Wi-Fi point (network type rockrobo-XXXX).
- In your browser on your phone or PC, enter the address: http://192.168.8.1/miIO/info
- Copy the value of token is the key to access the robotโs API.
- Use Postman or Terminal to send a card save command: curl http://[IP_Robot]/miIO.info -H "X-API-Token: [your token]" -d '{"method":"save_map"}
If the command is successful, the robot will respond {"result":"ok"}. The map will then be stored in local memory. For models with laser navigation (LDS), it is also useful to calibrate the sensor through the command:
curl http://[IP_robot]/miIO.info -H "X-API-Token: [your token]" -d '{"method":"calibrate_tof"'What to do if the token does not work?
For convenience, you can use ready-made utilities like Valetudo (an alternative firmware for robot vacuum cleaners) or DustBuilder (a tool for working with maps), these solutions allow you not only to save maps, but also edit them manually.
5. Method 4: Save the card via ADB (for Android)
If your robot vacuum cleaner is connected to an Android phone, you can try saving the card via ADB (Android Debug Bridge), which works for models where the card is stored in the cache of the Mi Home app.
Step-by-step:
- Enable USB debugging on your phone (Settings โ About Phone โ Assembly Number โ press 7 times, then go back to Settings โ Developers โ Debugging by USB).
- Connect the phone to your PC and execute the command: adb backup -f mihome_backup.ab com.xiaomi.smarthome This will back up Mi Home data, including maps.
- If you only need to remove the card, use the utility abe (Android Backup Extractor) to unpack the file mihome_backup.ab.
Warning: This method stores all the information from Mi Home, including the settings of other devices, and to restore only the card, you will have to manually search for files with the.map or.dat extension in the unpacked backup.
To automate the process, you can use a Python script with a miio library:
from miio import Vacuum
vacuum = Vacuum(ip="192.168.8.1", token="YOUR_TOKEN")
map_data = vacuum.get_map()
with open("map_backup.json", "w") as f:
f.write(str(map_data))๐ก
If you lose a card frequently, set up an automatic backup via Tasker (Android) or Shortcuts (iOS). Create a task that sends a card save command to the server or cloud once a week.
Method 5: Recovery of the card after resetting
If the card does reset, don't rush to re-start the robot. First, try to restore it from the backup:
- โ๏ธ If cloud sync is enabled, just restart the robot. The map should be automatically loaded within 5-10 minutes.
- ๐ฑ If the card is saved locally, try resetting the network settings on the robot (not a full reset!): go to Settings โ Network โ Reset.
- ๐ง For models with Valetudo or custom firmware, restore the map from the map_backup.json file via the web interface.
If it doesn't work, we'll have to re-build the map to speed up the process.
- Place the robot in the center of the room.
- Start cleaning in โFull Cleaningโ mode (not โZoneโ).
- Do not interrupt the process until the robot has walked around all the rooms.
- After you have completed the map, save it (see section 2).
Some models (e.g. Xiaomi Mi Robot Vacuum-Mop 2 Ultra) have a Quick Map feature that allows you to restore the map in 2-3 minutes, but requires the robot to already โknowโ the layout of the room. Activates through Settings โ Map โ Quick map.
| Model robot. | Supports cloud storage | Local conservation | Post-discharge recovery |
|---|---|---|---|
| Mi Robot Vacuum-Mop 2 Pro | โ (in some regions) | โ | Through reboot. |
| DreameBot D9 | โ | โ | Only manual. |
| Viomi V3 | โ (with a Chinese account) | โ | Through the engineering menu |
| Mi Robot Vacuum-Mop P | โ | โ | Requires laser calibration |
7.Typical mistakes and how to avoid them
Many users face the same problems when saving cards, and here are the most common mistakes and solutions:
- ๐ Robot shuts down during save โ Before saving the card, make sure the battery level is at least 30%. If the robot is discharged to 0%, the card is almost always reset.
- ๐ No Wi-Fi connection โ Cloud synchronization requires stable internet. If the router is running at 5GHz, switch to 2.4GHz - many Xiaomi robots do not support 5GHz.
- ๐ The card is โhitโ after a firmware update โ Before upgrading, save the card manually and make a backup via ADB. If the card disappeared after the update, try rolling back to the previous firmware version.
- ๐ Robot doesn't recognize rooms after rearranging furniture โ Run remapping in map settings. Some models (like Dreame D10 Plus) allow you to manually edit the map โ add or remove walls through the app.
Another common problem is that the robot forgets the map after changing the router, and that's because some models link the map to the MAC- address of the network.
- Connect the robot to the new Wi-Fi.
- Start cleaning in Full Cleaning mode.
- After you build the map, save it and restart the robot.
๐ก
If your robot vacuum cleaner often loses the card, check the energy saving settings in the Mi Home app. Turn off the battery saving option for the robot - it can interrupt background synchronization processes.
8. Alternative solutions: if nothing helps
If all methods have been tried but the card is still being reset, consider the following options:
- ๐ ๏ธ Valetudo firmware is an alternative open-source firmware for robot vacuum cleaners that gives you complete control of the maps. It supports most models Xiaomi/Dreame.
- ๐ก Home Assistant โ Smart Home system allows you to integrate the robot and save maps on your server.
- ๐ง Manual editing of configuration files for power users. Maps are stored in /data/map/ files on the device (access via ADB).
Valetudo firmware will require:
- Unlock root access to the robot (instructions are on the official website).
- Install firmware via SSH or USB-OTG.
- Set up a web interface for managing maps.
Valetudoโs advantage is that the cards are saved on your server, not in the Xiaomi cloud, which eliminates data loss when crashes, and the firmware allows you to edit cleaning areas, adjust the schedule and even control the robot through MQTT.
โ ๏ธ Warning: Third-party firmware (like Valetudo) can take you out of warranty and cause the robot to run in an unstable way. Make a full backup of the original firmware before installing it!
If you are not willing to take risks, contact Xiaomi Service Center. In some cases, the loss of the card is associated with hardware problems (for example, a malfunction of the laser sensor), and self-manipulation will only aggravate the situation.
Yes, I use Valetudo.|Yeah, I tried, but I came back to the stock.|No, I'm afraid I'll lose my guarantee.|I don't know what that is.-->