FirmwarePublished 7 min read

How Are SOC and SOH Estimated in a Battery Management System?

State of charge (SOC) is estimated by counting charge in and out of the battery and correcting the drift with open circuit voltage readings or a model based filter; state of health (SOH) is estimated from measured capacity fade and internal resistance growth. A Battery Management System (Battery BMS) shares both over CAN (Controller Area Network) or Modbus.

How Are SOC and SOH Estimated in a Battery Management System?

A Battery Management System (Battery BMS) estimates SOC (state of charge) by integrating measured current over time, known as coulomb counting, and correcting the accumulated drift with open circuit voltage readings after rest or with a model based estimator such as an extended Kalman filter. It estimates SOH (state of health) by tracking capacity fade against rated capacity and the growth of internal resistance over the battery's life. This guide covers the Battery BMS that protects a cell pack, not a Building Management System (Building BMS) that controls HVAC (heating, ventilation and air conditioning) and lighting.

What do SOC and SOH mean?

SOC is the remaining charge as a percentage of the battery's present usable capacity: 100% when full, 0% when empty within the defined voltage limits. SOH describes how much the battery has aged relative to new, commonly as present capacity divided by rated capacity, sometimes combined with internal resistance because resistance limits power. SOC changes within a cycle; SOH changes slowly over hundreds of cycles and calendar time. SOC estimates depend on SOH, because a 100 Ah pack at 90% SOH holds only about 90 Ah when full.

Which SOC estimation methods are used?

Production Battery BMS firmware usually combines at least two of these methods.

SOC estimation methods compared
MethodHow it worksStrengthsWeaknesses
Coulomb countingIntegrates measured current over timeSimple, responsive to load changesDrifts with current sensor offset; needs a known starting SOC
Open circuit voltage lookupMaps rested cell voltage to SOC using a characterised curveAbsolute reference that does not driftNeeds a rest period; poor resolution on flat curves such as LFP (lithium iron phosphate)
Model based filter (extended or unscented Kalman filter)An equivalent circuit model predicts voltage; the voltage error corrects SOCWorks under dynamic load and corrects drift continuouslyNeeds cell characterisation over temperature, more computation and careful tuning
Data driven modelsA trained model maps measurements to SOCCan capture complex nonlinear behaviourNeeds large datasets covering temperature and ageing; harder to validate and explain

How does coulomb counting work in practice?

With charging current defined as positive and discharging current as negative, SOC(t) = SOC(t0) + (η ÷ Q) × ∫ I dt, where η is the coulombic efficiency and Q is the present usable capacity in ampere hours. Hypothetical example for illustration: a 100 Ah pack at 90% SOC discharges at 20 A for 1.5 hours, removing 30 Ah, so SOC falls to 60%. The weakness shows in the same arithmetic: a current sensor offset of 0.2 A, uncorrected over 24 hours, accumulates 4.8 Ah, which is a 4.8 percentage point SOC error on a 100 Ah pack. That is why offset calibration and periodic correction are essential.

How is SOH estimated?

Capacity based SOH = measured capacity ÷ rated capacity × 100%. A full charge and discharge is rarely available in the field, so firmware estimates capacity from a partial window: capacity = ampere hours counted ÷ change in SOC, where both SOC end points are anchored by reliable open circuit voltage readings. Hypothetical example for illustration: between anchored SOC values of 80% and 30% the BMS counts 46 Ah, so capacity is 46 ÷ 0.5 = 92 Ah, and SOH for a 100 Ah rated pack is 92%. Resistance based SOH compares internal resistance, measured as voltage change divided by current change during a load step, with the beginning of life value at the same temperature and SOC. The end of life threshold, for example a set percentage of rated capacity, is a product requirement, not a fixed constant.

What is the step by step implementation procedure?

A typical sequence for SOC and SOH in Battery BMS firmware:

  • Step 1: Characterise the cell: open circuit voltage versus SOC at several temperatures, capacity, internal resistance, relaxation time constants and voltage hysteresis, using a cell cycler or data from the cell supplier.
  • Step 2: Select and calibrate current sensing (shunt with a precision amplifier and ADC (analog to digital converter), or a Hall effect sensor), measuring offset and gain across the operating temperature range.
  • Step 3: Sample pack current and cell voltages close together in time, so model based estimators compare consistent values.
  • Step 4: Implement coulomb counting with efficiency, temperature compensation and the present capacity from SOH.
  • Step 5: Detect rest (current below a threshold for a set time) and correct SOC from open circuit voltage, accounting for hysteresis and relaxation.
  • Step 6: Add a model based estimator where dynamic accuracy is required, starting with a first or second order resistor capacitor (RC) equivalent circuit model.
  • Step 7: Update capacity and resistance estimates with plausibility limits, so a single bad measurement cannot change SOH abruptly.
  • Step 8: Persist SOC, SOH and counters to non volatile memory with a write strategy that respects flash or EEPROM (electrically erasable programmable read only memory) endurance.
  • Step 9: Validate against reference measurements from a cycler and HIL (hardware in the loop) profiles covering temperature extremes, partial cycles and sensor faults.

How does a BMS communicate with an inverter, charger or vehicle controller?

A Battery BMS reports its state and limits to the device that controls current, and that device must respect them. In vehicles and many energy storage systems the link is CAN (ISO 11898), typically at 250 or 500 kbit/s, or CAN FD (CAN with Flexible Data rate), with SAE J1939 common in commercial vehicles. Many stationary inverters use CAN or Modbus RTU over RS 485, with a message map defined by the inverter vendor, so the inverter protocol document is a required input. In light electric vehicles the BMS often sends voltage and current requests to the charger over CAN; in CCS (Combined Charging System) fast charging the vehicle communicates with the station under ISO 15118 or DIN SPEC 70121, and the Battery BMS supplies limits to the vehicle charging controller.

Signals usually exchanged:

  • Pack voltage, pack current, SOC and SOH.
  • Maximum charge voltage, charge current limit and discharge current limit, updated with temperature and SOC.
  • Minimum and maximum cell voltage and temperature.
  • Warning, alarm and fault flags, contactor state and a request to stop charging or discharging.
  • A heartbeat or alive counter, with a defined safe reaction by the receiver when it times out.

Integration checklist

Confirm before the battery is commissioned with its inverter, charger or vehicle controller:

  • Protocol document for the counterpart device obtained, with versions recorded.
  • Byte order, scaling, units and sign conventions verified on the bus.
  • Current limits respected by the counterpart device in a test with deliberately reduced limits.
  • Communication loss tested: the counterpart reaches a safe state within the specified timeout.
  • SOC behaviour at full, empty and after rest verified against reference measurements.
  • Fault flags mapped and tested end to end.

Limitations

Flat open circuit voltage curves, such as LFP chemistry in its middle range, give little correction information, so SOC accuracy there depends heavily on current sensing. Cold temperatures change available capacity and resistance. Cell imbalance means pack SOC is limited by the weakest cell, so pack level reporting must reflect cell extremes. Safety functions of a Battery BMS fall under functional safety processes such as ISO 26262 or IEC 61508, which this guide does not cover.

Sources and standards

Standards and specifications referenced in this guide:

  • ISO 11898 Part 1 (CAN data link layer)
  • SAE J1939 (commercial vehicle network)
  • ISO 15118 and DIN SPEC 70121 (vehicle to charging station communication)
  • IEC 62619 (safety requirements for secondary lithium cells and batteries in industrial applications)
  • ISO 26262 and IEC 61508 (functional safety)
  • Modbus Application Protocol Specification V1.1b3
Battery BMSSOCSOHKalman FilterCAN Bus

EmbedCrest Engineering Team

Embedded Systems Engineers at EmbedCrest Technology

Embedded systems, IoT and Edge AI engineering, delivered from Kalyan, Maharashtra, India.

FAQ

Frequently Asked Questions

How are SOC and SOH estimated in a battery management system?

SOC is estimated by coulomb counting, integrating measured current, and correcting drift with open circuit voltage after rest or with a model based Kalman filter. SOH is estimated by comparing measured capacity, often derived from partial cycles between anchored SOC points, with rated capacity, and by tracking internal resistance growth over life.

How does a BMS communicate with an inverter, charger or vehicle controller?

A Battery BMS usually communicates over CAN or CAN FD, or Modbus RTU over RS 485 in many stationary systems. It sends SOC, SOH, voltages, temperatures, charge and discharge current limits, fault flags and a heartbeat. The counterpart must follow the limits and enter a safe state if the heartbeat times out.

Why does SOC jump after the battery rests?

A jump after rest usually means the BMS replaced its drifted coulomb counting estimate with an open circuit voltage correction. Smooth the correction over time, check current sensor offset, and verify the open circuit voltage table for the actual temperature and hysteresis state. Large frequent jumps indicate a sensing or characterisation problem.

How accurate is SOC estimation?

Accuracy depends on current sensor quality, cell characterisation, chemistry, temperature range and the estimation method, so there is no single figure. Specify the required accuracy per operating condition, then measure it against a reference cycler under representative profiles, including cold temperatures, partial cycles and aged cells.

Is a Battery BMS the same as a Building BMS?

No. A Battery Management System monitors and protects battery cells, estimating SOC and SOH and controlling contactors. A Building Management System controls building services such as HVAC, lighting and energy metering, usually over BACnet or Modbus. They share an acronym but are different engineering domains.

Ready to Build Your Embedded Solution?

From Edge AI to industrial IoT, our engineering team delivers end to end embedded systems solutions. Let us discuss your project requirements.

Discuss This With an Engineer