Part of the Scooters Hub. Your Xiaomi M365 shows a red wrench and error 21 — and it started right after a firmware update, or after a battery swap. This article sorts out what the code actually means, and which of the eight things riders usually believe about it is wrong.
Short Answer: The Battery and Controller Have Stopped Talking
Error 21 means the battery and the controller cannot communicate. Xiaomi names three causes: a damaged communication cable, a battery firmware update, and third-party batteries or battery firmware. On older models the speed is limited to 6 km/h while the code is shown. The first step is a restart — then check the battery cable. Do not reflash with custom firmware: third-party firmware is one of the causes, not a cure.
How the code shows up depends on the model. The M365 and the Essential have no digital display and beep instead: each long beep is the tens and each short beep the units, so two long beeps and one short beep mean code 21. Models with a digital display show the code where the speed is normally shown, with a flashing red wrench. In the Xiaomi Home app the fault appears on the home screen when the scooter is connected — tap it for the explanation that applies to your exact model.

Myth 1: “Error 21 means the battery is dead.”
The correction: No — it means the battery and the controller cannot communicate. The battery itself may be perfectly fine; the link between the two is what has failed. Xiaomi’s own list gives three causes, and a dead battery is not one of them: a damaged communication cable, a battery firmware update, or a third-party battery or battery firmware. Tip: restart first, then check the battery cable and its plugs before you spend money on a battery.
Myth 2: “Any battery that fits will work.”
The correction: A new battery should always be the same model as the original. Xiaomi lists third-party batteries as a cause of code 21, and the fix in its table is to use a battery of the same model as the original. A pack with the right voltage and the right connector can still fail to communicate if the controller does not recognise it. Tip: match the model, not just the voltage and the plug.
Myth 3: “Reflashing with custom firmware will fix error 21.”
The correction: The opposite is true. Wheelyshop’s guide says plainly: skip custom firmware and flashing tools. Third-party firmware and batteries are one of the causes Xiaomi itself gives for code 21. And if the software removes the speed limiter, the scooter may no longer meet the rules for the road. Tip: update only through Xiaomi Home, and only with firmware Xiaomi publishes for your exact model.
Myth 4: “Error 21 needs a new battery straight away.”
The correction: The fix in Xiaomi’s table is three steps, and a new battery is not among them: restart, check the battery cable, and use a battery of the same model as the original. A replacement battery only enters the picture when the cable is sound, the restart did not clear the code, and the fitted battery is not the original model. Tip: restart without touching the throttle or the brake — holding either at start-up can trigger codes 14 or 15 and muddy the diagnosis.
Myth 5: “The 6 km/h speed limit means the motor is broken.”
The correction: The speed limit is the scooter protecting itself, not a broken motor. On older models the speed is limited to 6 km/h while error 21 is shown. The same limit appears with the related battery codes: code 22 (battery code not recognised) and code 23 (battery still carrying its default serial number) both limit speed to 6 km/h. Tip: the limit clears when communication is restored — it is a symptom of the lost link, not a motor fault.
Myth 6: “You can open the battery and fix the BMS wire yourself.”
The correction: Never open the battery yourself. The guide is blunt about this: a damaged lithium-ion cell can catch fire. The battery management system lives inside a sealed pack, and the parts you can safely check — the cable, the plugs, the firmware — are all outside it. Codes 22–24, 39, 53 and 61 point to the battery, and the guide’s advice for those is a spare part or a repair shop, not a DIY opening. Tip: if the cable and plugs are sound and the code stays, take the scooter to a bike or e-vehicle repair shop and quote the code and the model.
Myth 7: “Error 21 is the same as error 22.”
The correction: The codes are neighbours, not twins. Error 21 is lost communication between the battery and the controller. Error 22 is the battery code not being recognised — usually a third-party battery or BMS — and its fix is to switch to a battery of the same model. Error 23 is different again: the battery still has its default serial number, and it must be paired with the scooter or replaced. All three limit speed to 6 km/h on older models, which is why riders mix them up. Tip: read the exact code before you act — the fix differs between 21, 22 and 23.
Myth 8: “A firmware update in Xiaomi Home always clears error 21.”
The correction: An update can cause error 21 — a battery firmware update is one of Xiaomi’s three named causes. The update in Xiaomi Home is the published fix for codes 26 and 31, not for 21. If the code appeared right after an update, the update itself is the prime suspect, not the cure. Tip: check the battery cable and the battery’s origin before you update again, and read the fault description in Xiaomi Home — it applies to your exact model.

Checklist: Before You Ride After Error 21
- Restart the scooter without touching the throttle or the brake, and see whether the code comes back.
- Note when the code first appeared — right after a firmware update, or right after a battery was fitted.
- Check the battery cable and its plugs for damage, looseness or moisture.
- Confirm the fitted battery is the same model as the original — not just the same voltage.
- Read the fault description in Xiaomi Home; it applies to your exact model.
- Do not open the battery yourself, and do not reflash with custom firmware.
- If the code stays after the restart and the cable check, take the scooter to a repair shop with the code and the model name.
Readers Also Ask
What does Xiaomi M365 error 21 mean?
The battery and the controller cannot communicate. Xiaomi names three causes: a damaged communication cable, a battery firmware update, and third-party batteries or battery firmware.
Can I ride with error 21 showing?
On older models the speed is limited to 6 km/h while the code is shown, and the red wrench stays on the display. Park the scooter and work through the checklist — riding at walking pace with a fault showing is not a fix, and the code will still be there when you stop.
Will a firmware update fix error 21?
No — an update can cause it. A battery firmware update is one of Xiaomi’s three named causes. The Xiaomi Home update is the published fix for codes 26 and 31, not for 21.
Does error 21 mean I need a new battery?
Not necessarily. Restart first, then check the battery cable. Only if the cable is sound and the fitted battery is not the original model does a replacement enter the picture — and then it must be the same model as the original.
Can a third-party battery fix error 21?
No — third-party batteries are a named cause of the code. If the scooter already has a third-party battery fitted, that battery is the prime suspect, and the fix is a battery of the same model as the original.
Conclusion
Error 21 is a communication failure, not a dead battery and not a broken motor. Restart, check the cable, confirm the battery is the original model — and leave custom firmware and the sealed battery pack alone. If the codes point at both the battery and the controller on an older scooter, compare what the parts cost with the price of a new scooter before you order anything — that is the guide’s own repair-or-replace advice, and it applies here too.
Related reading: Xiaomi M365 Error 35 After a Display Replacement · How to Downgrade Ninebot Max Firmware 1.7.0
Additional Details
- Name: Xiaomi M365 Error 21: BMS Communication After an Update or With a Third-Party Battery
- Description: Xiaomi M365 error 21 means the battery and controller cannot communicate — often after an update or with a third-party battery. Here is what to check first.
- Published: November 24, 2026






