An Open Edge Telemetry and Supervisory Balancing Layer for Parallel LiFePO4 Battery Banks Governed by Closed Commercial Battery Management Systems
Year: 2026
Type: software
Abstract: What this is. An open software layer that turns a bank of up to sixteen commodity 16-cell LiFePO4 packs, each governed by its own closed vendor battery management system, into a fully observable and interoperable component. A commodity single-board computer acts as the sole master of one RS-485 multidrop bus, decodes complete per-cell telemetry from every pack, re-exports the bank as a single virtual battery over MQTT to an energy-management gateway, and optionally runs a supervisory per-pack balancing policy. No vendor firmware is modified. What it contains. The serial protocol decoder for the commercial pack status frame (jkpb/protocol.py), bus transport and polling (jkpb/transport.py, logger.py), SQLite and CSV persistence (jkpb/storage.py), bank-level aggregation with charge and discharge current limits (jkpb/aggregate.py), the MQTT publisher (jkpb/mqtt_publisher.py), the supervisory charge-only pack-isolation policy with its safety gates and voltage hysteresis (jkpb/balancer.py, jkpb/control.py), a deterministic hardware-free simulator of an imbalanced bank (jkpb/sim.py), the combined read-plus-publish-plus-balance pipeline with simulate, dry-run and live modes (bridge.py), offline unit tests that need no hardware (tests/), and a fully commented configuration file (config.yaml). What it does not contain, and why. No measured battery dataset: no logged bank telemetry, SQLite database or CSV is distributed, and the deterministic simulator regenerates every quantitative result from fixed seeds instead. No credentials, broker address or gateway portal identifier: the network fields in config.yaml are placeholders that each user fills in for their own installation. No vendor firmware, no proprietary specification document and no third-party driver source is redistributed; only an independently written decoder is included. Actuation is shipped disabled by default: the pack MOSFET write frame is not validated against live hardware, so allow_mosfet_writes is false and the simulate and dry-run modes never write to a battery management system nor publish anything.
Author: García Cuadra, Andrei
Institution: Universidad Politécnica de Madrid
Language: English
Subfield: Automotive Engineering
Field: Engineering
Domain: Physical Sciences
Open Access status: green
OpenAlex ID: W7204133383
