Better Battery Insights Begin with Persistent BMS Data
ITTIA DB Lite and STM32 MCUs connect battery measurements, historical behavior, and local intelligence
A battery’s latest voltage reading tells only part of its story. Understanding its behavior requires knowing what happened before: how it was charged, how much current it delivered, which temperatures it experienced, and how its response changed over repeated cycles.
For battery management system developers, this creates a practical challenge. The device must respond to current operating conditions while preserving enough history to support useful analysis. It must accomplish both within the memory, storage, processing, and timing limits of an embedded system.
ITTIA DB Lite brings transactional, streaming, and time-series data management to microcontrollers. Combined with STM32 devices, it provides a foundation for applications that collect battery measurements, process them locally, and retain meaningful operating history. ITTIA has announced support for STM32U5, STM32H5, STM32H7 devices and other STM32 supported platforms.
Battery management depends on information collected over time
A battery management system monitors operating conditions and supports functions such as charge estimation, balancing coordination, diagnostics, and protection. Its application software works with measurements from battery-monitoring electronics, current sensors, temperature sensors, and other components. However, these measurements become more useful when they remain connected over time.
A voltage drop during a high-current load has a different meaning from a similar drop under light load. A temperature increase during charging should be reviewed alongside charging current, ambient conditions, and the behavior of neighboring cells. A change in estimated battery health should be examined against comparable operating conditions.
The data foundation therefore needs to preserve relationships between measurements, operating states, events, and estimates. Otherwise, engineers may receive an alarm or a health score without enough context to investigate it.
Give STM32 applications a structured battery history
STM32 devices execute the embedded application, coordinate interfaces, and process measurements. ITTIA DB Lite adds an organized way to manage the information that the application produces.
ITTIA describes ITTIA DB Lite as an embedded database for RTOS and bare-metal applications, with transactional and time-series capabilities and support for storage media including NOR flash, NAND flash, SD cards, and eMMC. The selected storage configuration must fit the target hardware and workload.
For a BMS application, a proposed data model could include:
Information | Example contents | Engineering value |
Measurement history | Timestamp, cell voltage, pack current, temperature | Reconstruct operating conditions |
Charge sessions | Start and end times, transferred charge, temperature range | Compare charging behavior |
Battery events | Threshold crossing, balancing activity, sensor fault | Investigate unusual operation |
Derived estimates | State of charge, state of health, algorithm version | Review how results were produced |
Configuration history | Calibration reference, firmware version, parameter changes | Explain changes in reported behavior |
These records turn a collection of readings into a history that the application can retrieve and interpret.
Process time-series data close to the battery
Battery information arrives continuously, but every sample does not need the same treatment. Some measurements support immediate calculations. Others contribute to session summaries or become valuable when an unusual event occurs.
ITTIA DB Lite’s published time-series capabilities include time-based queries, windowed aggregation, downsampling, and retention policies. These functions support applications that need to extract useful information from continuous measurements within embedded resource limits.
A BMS design can use this approach to calculate recent temperature averages, track cell-voltage spread, summarize current demand, or compare selected charging sessions.
Local processing also allows the application to retain useful information during a network interruption. Engineers can define which records stay on the device and which summaries or event histories are transferred when communication becomes available. The result is a deliberate data strategy: collect what matters, process it near its source, and preserve the information needed for later review.
A practical example on STM32H5
Consider an illustrative battery-powered industrial robot with an STM32H5-based management controller. During operation, the controller receives cell voltages, pack current, and temperatures from the measurement electronics. The application uses ITTIA DB Lite to maintain recent measurement history and summaries of charging and discharging sessions.
One day, the application detects that a cell’s voltage response differs from its recent behavior during a comparable load. Instead of saving only an alarm code, the application preserves:
- A measurement window before and after the event.
- The associated current and temperature conditions.
- The cell identifier and charge-session reference.
- The active calibration and algorithm versions.
- The resulting assessment and any recorded control action.
When an engineer reviews the event, the record provides evidence for investigation. The engineer can examine whether the behavior relates to operating conditions, measurement quality, configuration changes, or possible battery degradation.
This is a proposed application workflow, not a claim that a database alone diagnoses battery faults. The diagnostic method still requires appropriate development and validation.
Prepare consistent inputs for battery AI
AI-based battery applications often need features calculated from sequences of measurements rather than individual readings. Examples include temperature trends, voltage variation, charge throughput, and statistical summaries over defined windows.
ITTIA’s published STM32 battery-management architecture positions ITTIA DB Lite AI as the feature-engineering component within the product family, complementing the structured battery history managed by ITTIA DB Lite. For developers, the important design question is consistency. A feature must have a clear definition: its units, source signals, time window, sampling assumptions, and treatment of missing or invalid measurements.
For example, “average battery temperature” is incomplete without specifying which sensors contributed and which interval was used. If that definition changes between model versions, comparing outputs becomes more difficult. A structured data foundation helps the application keep these definitions and associations explicit.
Connect estimates to their supporting evidence
State of charge and state of health are estimates. Their usefulness depends on the estimation method, measurement quality, operating conditions, and validation program.
When the application records an estimate, it should also preserve enough context to explain how that result was produced. Depending on the design, this may include the algorithm or model identifier, feature definition, source-data window, and relevant quality indicators.
Suppose a firmware update changes the state-of-health calculation. A later difference in reported health may reflect the updated method rather than a physical change in the battery. Recording the version association helps engineers distinguish these possibilities.
This creates traceability around an estimate. It does not, by itself, explain the internal reasoning of an AI model or establish that the estimate is correct.
Balance useful history with storage and timing limits
Keeping every measurement for the battery’s entire life is often impractical. A more sustainable design gives different information different retention periods.
Recent high-resolution data can support short-term investigation. Selected event windows can remain available longer. Charging summaries and lifecycle counters can preserve a broader view with less storage.
Developers should also account for exceptional operation. Repeated faults may generate far more records than a typical day, so storage planning needs an explicit policy for event bursts and full-storage conditions.
Timing deserves the same care. Measurement acquisition, protection functions, analytics, and persistence should have defined priorities and resource budgets. Database activity must be evaluated alongside the application’s most demanding workload on the selected STM32 device and storage medium.
Build battery intelligence on dependable data
A useful BMS data foundation preserves more than numbers. It preserves the relationships that make those numbers meaningful: which cell was measured, under what conditions, during which session, and with which configuration.
ITTIA DB Lite and STM32 devices give developers a practical starting point for building this foundation directly into embedded products. Applications can use persistent history to support diagnostics, prepare data for local analysis, and connect derived results to their underlying measurements.
Before deployment, teams should validate interrupted writes, reset recovery, session consistency, storage endurance, and timing under load. Battery estimation and protection functions require their own application-specific verification.
Contact ITTIA to discuss your STM32 platform, battery-data workload, and development goals. Request a demo and source code to explore how ITTIA DB Lite can support your next battery management system.