Owners of Xiaomi Mijia LDS robotic vacuum cleaners often face an annoying problem: the device works perfectly, but the control interface is entirely in Chinese, and the servers are located in China, which causes response delays. Changing the firmware is not just a whim, but a necessity for full use of the smart home in our region. The global version of firmware opens access to English and Russian, and also stabilizes the connection with the application.
The Mijia Vacuum Cleaner flashing process requires care, as interrupting data recording can turn a smart technique into a βbrick, USB-cable (usually micro-USB or special service, depending on the audit) and stable Internet connection. In this article, we will discuss safe methods for changing the region and completely flashing through the console.
Before you start, make sure the battery is at least 60 percent charged, which is critical, as the device will consume energy during the upgrade process, and the battery will discharge in a fatal bootloader error, and prepare a paper clip or a thin needle to access hidden contacts.
Preparation of equipment and software
The first step is to install the necessary software on your personal computer. The most common way to work with the file system and firmware is to use the ADB utility (Android Debug Bridge) or specialized scripts for Linux/MacOS. If you are a Windows user, you will need ADB and Python drivers, since many tools are written in this language.
You'll need to download a current firmware image, which you can only look for on trusted resources, such as the official GitHub community developer repository or specialized forums like 4PDA. Using files from questionable sources can lead to malware infection or complete inoperability.
- π₯ Download the firmware archive (.pkg or.bin files) for your specific Mijia model LDS.
- π» Install Python 3.x Add a path to it in the variable environments of the system.
- π Prepare. USB-cable with high-quality screening for data transfer, not just charging.
- πΆ Make sure your Wi-Fi router is giving away the network at 2.4GHz, as 5GHz vacuum cleaners canβt see.
β οΈ Warning: Never interrupt the firmware writing process if the indicators flash.Switching off the power at this point damages the bootloader partition, and the device can only be restored through the UART-programmer, opening the body.
Checking the compatibility of the model is another important step: the bottom cover of the device shows the exact model number, for example, STYTJ01YM or SDJQR02RR. The firmware from one model, poured on another, is guaranteed to bring the electronics out of order.
βοΈ Checklist for firmware preparation
Change of region without flashing: the Mi Home method
Often, users don't need to completely flash, but simply change the region in the application to get Russian and voice control, which is the safest way to connect wires and the risk of "bricking" works by creating a new account with a selected region.
To start, remove the device from the current list in the Mi Home app. Then, in your profile settings, change the country to China (if the device is Chinese) or Russia/CIS (if the global version). After changing the region of the back, add a vacuum cleaner, scanning it. QR-bottom-panel.
However, if you have a Chinese version, Russian may not appear even when you change your account region, and in this case, the crutch helps through your phone settings. Go to the settings of the smartphone itself, find a list of applications, select Mi Home, and force the language of the application or system to English. Often the vacuum cleaner interface tightens the system language.
Why is the Russian language not working after the change of the region?
If the simple method didnβt help, we move on to more complex manipulations with tokens. Token is a unique access key that allows you to manage the device with third-party programs. Its acquisition is necessary for advanced users who want to integrate a vacuum cleaner into Home Assistant or Yandex.Smart Home.
Obtaining a device token for advanced settings
To get a token, you'll need a computer that's on the same Wi-Fi network as the vacuum cleaner. There are several ways to get it, either through browser plugins or through console utilities. One of the most reliable is to use a Python script miio.
Install the library with the command pip install python-miio. Once installed, start searching for devices on the network. The script will try to find your Xiaomi Mijia Vacuum and, if lucky, will show the token. If the automatic search fails, you will need to sniff traffic through the Android emulator (such as Nox or BlueStacks) with the Mi Home app installed and intercept packets via Wireshark or Charles Proxy.
You can save the token in a safe place, and it looks like a long string of hexadecimal characters, and you can send direct commands to the device, bypassing Xiaomi's cloud servers, which greatly speeds up the response.
| Parameter | Importance for China | Meaning for Global | Importance for the Russian Federation |
|---|---|---|---|
| server | cn (China) | de/sg (Europe/Singapore) | ru (Russia) |
| Language default | Chinese | English | Russian |
| Voice packets | Only Chinese. | Multilingual | Russian + English |
| Cartography | Chinese maps | OpenStreetMap | Yandex.Maps (through integration) |
β οΈ Note: When receiving a token through traffic sniffing, make sure you do not share your personal data (login/password from your Mi Account) with third parties.
Having a token opens the door to true customization, so you can change the volume, the speed of the brush, the suction force, and even play audio files through the vacuum cleaner speaker.
The process of flashing through the console (ADB)
If you're going to completely flash, you need to put the vacuum cleaner in debugging mode. On some Mijia LDS models, this is done by simultaneously pressing the Home and Turn on buttons for 5-10 seconds. The indicators should start flashing in a certain mode, signaling readiness for connection.
Connect the vacuum cleaner to your computer via USB. In the command line, type in adb devices. If the device is identified, you will see its serial number. The next step is to download the firmware file to the device memory. The command usually looks like adb push firmware.pkg /data/local/update.pkg.
- π Enter the command to start the installation: adb shell miio-ota /data/local/update.pkg.
- β³ Wait for the process to be completed, the indicator on the body will start to flash quickly.
- π The device will automatically reboot through 2-3 minute.
- πΆ After switching on, reconnect to the Wi-Fi network.
π‘
If after flashing the vacuum cleaner goes into an endless reboot, try to press the reset button when you turn on the device to enter Recovery mode and restore factory settings.
It is important to monitor the consoleβs logs during firmware, and if you see checksum error messages, the firmware file is damaged when downloaded or written, in which case you should repeat the procedure with the new file.
After successful installation of the global version, the interface in the application should change to English or Russian (depending on the phone settings), voice notifications will also become clear if the new firmware contains the appropriate audio files.
Installation of alternative firmware Valetudo
For the most daring users, there is the Valetudo project, which is a fully local firmware that removes dependence on the Xiaomi cloud, and the vacuum cleaner stops "calling home" to China, which increases privacy and speed.
Valetudo requires root rights to the vacuum cleaner itself, a complex process that varies from model to model, often requiring a physical opening of the case and a connection to the vacuum cleaner. UART-It's the level of hardcore modding.
The benefits of this firmware are huge: complete independence from the manufacturer's servers, integration with Home Assistant, MQTT, the ability to build real-time maps without delay, but the device warranty will be completely lost.
If you do not have the skills to work with a soldering iron and multimeter, it is better to focus on the software change of the region or installing a global official firmware. Valetudo is the lot of enthusiasts who are willing to risk the device for the sake of complete control.
Common mistakes and ways to solve them
During the firmware process, users often encounter an error called βDevice offlineβ or βUpdate failed.β This may mean that the Xiaomi server is not available or the firmware file is not suitable for this hardware revision. DNS on a computer at 8.8.8.8 or 1.1.1.1.
Another common problem is the brick. If the vacuum cleaner is lit orange or red and emits audible signals but is not connected to Wi-Fi, it may be the calibration of the gyroscope or laser rangefinder (LDS), in which case only the service center or the complex recalibration procedure through the console helps.
β οΈ Attention: After flashing to the global version, the map of the room may be erased. This is normal behavior, since the structure of the storage of maps in different regions may differ.
If the Mi Home app stopped seeing the vacuum cleaner after the update, remove the device from the list and add it again as new.The old settings may conflict with the new firmware version.
π‘
The main cause of firmware errors is an unstable Internet connection or use USB-cable that supports only charging, but not data transmission.