Bafang Error 13: Battery Temperature Fault Fix

Bafang error 13 indicates an abnormal battery temperature condition detected by the Battery Management System (BMS). On e-bikes using Bafang CAN-bus communication protocols, the battery continuously transmits real-time pack temperature data to the motor controller. If the battery’s internal temperature sensors detect that the cells are dangerously hot, below freezing during discharge, or that a thermal probe inside the battery has failed, the system logs error 13 and cuts motor power to prevent cell degradation or thermal runaway.

Fast Fix

Turn off the e-bike and remove the battery pack immediately. Move the battery indoors to a moderate, room-temperature environment (65°F to 75°F / 18°C to 24°C) and let it rest for at least one hour. Inspect the battery cradle terminals for moisture or dirt, reinstall the pack firmly, and restart the bike.


Quick Status & System Safety

  • Severity: High. Operating lithium-ion batteries outside their thermal boundaries can cause irreversible internal damage or fire.
  • Riding Safety: Do not force the motor to run. If the pack is physically hot or swollen, move it outdoors away from flammable structures immediately. Mechanical pedaling is safe only with the battery removed.
  • Root Cause: Battery overheating from high-load riding, cell charging/discharging in freezing conditions, dirty battery CAN-bus communication pins, or a failed BMS thermistor probe.

What Bafang Error 13 Means

Lithium-ion battery chemistry is sensitive to temperature extremes. Discharging a pack when cells exceed 140°F (60°C) accelerates electrolyte breakdown and risks thermal runaway. Discharging below 14°F (-10°C) causes severe voltage collapse, while charging below freezing causes permanent lithium plating on the anodes.

In integrated Bafang systems, the battery BMS features internal thermistors embedded among the cell blocks:

[Lithium Cell Array] ---> [Embedded BMS Thermistor Probe]
                                     |
                       (Temperature < 0°C or > 60°C)
                                     |
                     [BMS Sends Data Over CAN-Bus]
                                     |
                       [Bafang Controller Reads Out-of-Spec]
                                     |
                         [Bafang Error 13 Logged]
                         [Battery Output Disabled]

When the BMS reports a temperature outside safe parameters, or if the CAN-bus data wire that carries thermal data is shorted to ground, the controller generates error 13 and cuts power delivery to safeguard the pack.


Diagnostic Path

  1. What was the weather when error 13 appeared?
    • Below freezing (under 32°F / 0°C): The battery core temperature is too cold to deliver safe operating current.
    • Extreme summer heat (over 90°F / 32°C): Sustained high-power riding caused the cell array to overheat.
  2. Is the battery casing physically hot to the touch?
    • If the plastic or aluminum casing feels hot while resting, an internal cell failure may be occurring.
  3. Does error 13 appear on an open-source or generic battery?
    Standard generic batteries without CAN-bus lines do not trigger error 13; this error appears on proprietary smart batteries communicating directly with Bafang CAN controllers.

Likely Causes

  • Thermal Overload Under Heavy Load: Sustained maximum-throttle riding up long grades on hot days, pushing internal cell temperatures beyond the BMS safety threshold. For heat management techniques, see Identifying Thermal Throttling in E-Bike Batteries.
  • Sub-Freezing Operation: Leaving the bike parked outside in freezing weather and attempting to draw full power before the battery warms up.
  • Communication Terminal Contamination: Dirt or moisture on the battery mount’s CAN data pins causing digital packet loss or corrupted temperature reporting.
  • Detached BMS Thermistor Probe: A thermal sensor inside the battery pack shaking loose from the cell group or breaking its solder connection.

Step-by-Step Troubleshooting

Step 1: Normalize Pack Temperature

  1. Remove the battery pack from the bike.
  2. Bring the battery into a climate-controlled room (65°F–75°F / 18°C–24°C).
  3. Never attempt to charge a frozen or overheated battery.
  4. Allow the battery to sit for at least 1 to 2 hours. Lithium cell arrays have high thermal mass; the core temperature can take hours to equalize with room air. For understanding cold-weather impact, read How Extreme Temperature Affects E-Bike Batteries.
  5. Once normalized, tap the battery’s charge level indicator to wake the BMS.

Step 2: Clean Battery Mount and Communication Pins

  1. Examine the battery connector pins on both the battery casing and the frame cradle.
  2. Look for small auxiliary data pins next to the heavy power blades.
  3. Check for water, road grime, or corrosion that could short the CAN-High or CAN-Low communication lines.
  4. Clean all contact surfaces thoroughly using quick-drying electrical contact cleaner and a lint-free swab.
  5. Reseat the battery, ensuring the mechanical latch locks completely into place.

Step 3: Test Startup and Low-Load Operation

  1. Turn on the bike after thermal normalization.
  2. If error 13 has cleared, test the bike in a low pedal assist level (Eco or PAS 1).
  3. Avoid using maximum throttle or climbing steep hills for the first 10 minutes of riding to allow the pack to warm up smoothly without thermal stress.

Critical Battery Safety Warnings

Disconnect and move the battery outdoors immediately if:

  • The battery casing shows visible swelling, bulging, or seam separation. Detailed hazard steps are covered in Swollen E-Bike Battery Symptoms: Dangers and Action Steps.
  • The battery emits a sweet, pungent, or chemical odor.
  • The battery continues to heat up while disconnected and resting idle.
  • The battery emits hissing or popping sounds.

Commonly Confused Problems


Escalation and Battery Repair

If error 13 persists after the battery has rested at room temperature for several hours and the connector pins are clean, the internal thermal monitoring circuit has failed:

  1. BMS Sensor Failure: The internal thermistor probe bonded to the lithium cells has failed open or detached, causing the BMS to read extreme temperatures permanently.
  2. Dealer Diagnostics: An authorized Bafang dealer or e-bike battery specialist can connect the battery to diagnostic software to read the exact temperature value being reported by individual internal probes.
  3. Replacement: Because opening lithium-ion battery packs presents severe safety and fire hazards, do not attempt to disassemble the internal cell array. If the BMS cannot clear the thermal error, the battery pack must be replaced with a genuine, compatible Bafang CAN-bus battery.