I designed and evaluated a software-defined fuel cell hybrid energy storage system for smart connected vehicles. The central objective was to coordinate a proton exchange membrane fuel cell, a lithium battery pack, and a supercapacitor bank through a supervisory BESS controller so that dynamic load changes could be met with high efficiency, low operating cost, and fast fault response. I treated the BESS controller as the software heart of the system: it acquires real-time parameters, allocates power among energy sources, adjusts control parameters, validates fault conditions, and exposes the operating state to both the vehicle terminal and a remote monitoring platform. The measured application results showed an operating efficiency of 91.5%, a fault diagnosis response time of no more than 0.8 s, improved energy allocation rationality, and reduced application cost. In this article, I present the architecture, modules, formulas, control logic, data pipeline, artificial intelligence layer, visualization design, and application results in a form that can be reused for similar hybrid storage projects.

System Architecture and Operating Principle
I adopted a co-designed hardware and software architecture. The hardware layer contains the fuel cell power unit, the hybrid storage unit, the power electronic conversion unit, and the vehicle load unit. The software layer runs on an in-vehicle industrial control computer and contains the energy management module, the control algorithm module, the fault diagnosis module, the data optimization layer, the artificial intelligence layer, and the visualization layer. The BESS controller communicates with all hardware units over an industrial bus, samples operating parameters at 1 Hz for supervisory functions, and issues control commands to actuators and converters.
| Layer | Unit or module | Key configuration | Role in the BESS controller architecture |
|---|---|---|---|
| Hardware | Fuel cell power unit | Proton exchange membrane fuel cell, constant-temperature operation | Provides steady base power and follows the economically optimal operating point |
| Hardware | Lithium battery pack | 80 kWh, state of charge operating range 25% to 80% | Supplies sustained energy and smooths medium-frequency power fluctuations |
| Hardware | Supercapacitor bank | 18 kWh, high power density | Responds to fast load peaks and reduces fuel cell start-stop cycling |
| Hardware | DC/DC converter | Input 38 V to 72 V, output 48 V to 60 V, conversion efficiency 94% | Regulates bus voltage and manages bidirectional energy flow |
| Hardware | AC/DC inverter | Vehicle-grade power conversion | Interfaces the DC bus with AC loads where required |
| Hardware | Load unit | Rated power 50 kW, fluctuation range 20 kW to 50 kW | Represents the smart connected vehicle propulsion and auxiliary demand |
| Software | Energy management module | Three-level monitoring and power allocation | Generates supervisory set points for the BESS controller |
| Software | Control algorithm module | Power allocation, PI regulation, efficiency optimization | Executes fast closed-loop adjustment through the BESS controller |
| Software | Fault diagnosis module | Real-time monitoring, trend analysis, recovery execution | Protects the system and triggers safe modes under the BESS controller |
| Software | Data and AI layer | Big data preprocessing, neural network, reinforcement learning | Optimizes parameters and improves the BESS controller adaptability |
| Software | Visualization layer | Qt-based monitoring interface and remote platform | Displays system state and supports operator intervention |
I used the principle of constant fuel cell operation with dynamic hybrid storage dispatch. The BESS controller compares the load demand with the fuel cell output, the lithium battery state of charge, and the supercapacitor state of charge. It then selects an operating mode and calculates the required compensation power. The fuel cell is kept near its high-efficiency region whenever possible, while the lithium battery and supercapacitor absorb or deliver the difference. The BESS controller also maintains the fuel cell enclosure temperature within a stable band by starting heating or cooling devices when required.
Operating Modes and Power Balance
I defined low-load, medium-load, and high-load operating modes. The modes are not fixed thresholds alone; the BESS controller applies hysteresis and rate limiting to avoid chattering when the load crosses a boundary. The following table summarizes the mode logic that I implemented.
| Mode | Load range | Fuel cell output | Lithium battery action | Supercapacitor action | BESS controller decision focus |
|---|---|---|---|---|---|
| Low load | 20 kW to 30 kW | 15 kW to 20 kW, derated operation | Charged at 80 A to 120 A when state of charge is below the upper limit | Standby, state of charge kept around 55% to 65% | Preserve fuel cell economy and avoid overcharging |
| Medium load | 30 kW to 45 kW | Up to 45 kW, full output | State of charge maintained around 45% to 65% | Standby and fast monitoring | Match load directly and retain short-term discharge capability |
| High load | 45 kW to 50 kW | 45 kW, full output | Supplements 2 kW to 3 kW only when state of charge is above 55% | Discharges 5 kW to 10 kW for peak smoothing | Protect the lithium battery from deep discharge and meet peak demand |
| Emergency | Fuel cell fault or severe restriction | Shut down or limited | Discharges within safe limits | Provides fast support | Maintain emergency motion for at least 4 h when possible |
I expressed the instantaneous power balance used by the BESS controller as follows:
$$
P_{\mathrm{load}}(t)=P_{\mathrm{fc}}(t)+P_{\mathrm{bat}}(t)+P_{\mathrm{sc}}(t)-P_{\mathrm{loss}}(t)
$$
where positive battery and supercapacitor power denotes discharge and negative values denote charging. The loss term is estimated from converter and line losses. I used the following relation for the loss power:
$$
P_{\mathrm{loss}}(t)=\eta_{\mathrm{loss}}(T)\,P_{\mathrm{load}}(t)
$$
$$
\eta_{\mathrm{loss}}(T)=\eta_{\mathrm{loss},0}+0.002\left\lfloor\frac{T-T_0}{10}\right\rfloor
$$
In this expression, T is the measured temperature, T0 is the reference temperature, and the coefficient increases by 0.2% for each 10 °C rise. The BESS controller recalculates the loss coefficient at each supervisory cycle so that the power allocation remains accurate under thermal variation.
I modeled the lithium battery state of charge using a discrete-time update:
$$
SOC_{\mathrm{bat}}(k+1)=SOC_{\mathrm{bat}}(k)+\frac{\eta_{\mathrm{ch}}P_{\mathrm{ch}}(k)\Delta t}{E_{\mathrm{bat}}}-\frac{P_{\mathrm{dis}}(k)\Delta t}{\eta_{\mathrm{dis}}E_{\mathrm{bat}}}
$$
where Ebat is the battery energy capacity, ηch and ηdis are charge and discharge efficiencies, and Pch and Pdis are the charging and discharging powers. The BESS controller uses this model to enforce the upper and lower state-of-charge limits. I used a similar but faster model for the supercapacitor:
$$
SOC_{\mathrm{sc}}(k+1)=SOC_{\mathrm{sc}}(k)+\frac{P_{\mathrm{sc}}(k)\Delta t}{E_{\mathrm{sc}}}
$$
The supercapacitor model is intentionally simple because its main role is short-duration peak support rather than long-term energy storage. The BESS controller gives the supercapacitor priority when the load derivative exceeds a threshold, which reduces fuel cell start-stop events and battery current stress.
Energy Management Module
I structured the energy management module as a three-level monitoring and allocation architecture. The command layer receives load demand and environmental parameters. The coordination layer integrates the command-layer information, estimates the state of each storage unit, and generates a preliminary power allocation. The execution layer sends commands to the converters and hardware units and feeds the actual response back to the BESS controller. This hierarchical design makes the software modular and allows the BESS controller to remain stable even when a sensor or communication link temporarily degrades.
| Level | Function | Sampling or update period | Key output | BESS controller interaction |
|---|---|---|---|---|
| Command layer | Receives load demand, temperature, and environmental information | 1 s | Load request and environmental state | Provides the reference input to the BESS controller |
| Coordination layer | Integrates information, checks state of charge and fuel cell parameters, generates preliminary allocation | 100 ms to 1 s | Preliminary power set points | Validates set points before the BESS controller releases them |
| Execution layer | Controls hardware units and reports execution state | 100 ms | Converter duty commands and feedback | Closes the loop for the BESS controller |
I built three allocation modes into the BESS controller: normal mode for stable load, energy-saving mode for low-speed driving, and emergency mode for fuel cell failure. Normal mode favors fuel cell operation in the high-efficiency band. Energy-saving mode reduces the fuel cell output when the predicted load is low and lets the battery absorb surplus energy within safe limits. Emergency mode disables noncritical loads, uses the hybrid storage units at their safe maximum, and maintains a minimum driving capability.
| Allocation mode | Activation condition | Power priority | Protection constraint | BESS controller objective |
|---|---|---|---|---|
| Normal | Load variation below the dynamic threshold | Fuel cell first, battery second, supercapacitor last | Battery state of charge between 25% and 80% | Maximize efficiency and reduce cycling |
| Energy-saving | Low-speed driving with stable low load | Fuel cell in derated high-efficiency region, battery charging when possible | Charging current limited to 80 A to 120 A | Reduce fuel consumption and operating cost |
| Emergency | Fuel cell fault or severe thermal restriction | Battery and supercapacitor supply critical load | Minimum state of charge and current limits | Preserve safe motion and fault isolation |
For energy balance, the BESS controller computes the deviation every 100 ms. I used the following residual:
$$
\Delta P(t)=P_{\mathrm{in}}(t)-P_{\mathrm{out}}(t)-P_{\mathrm{loss}}(t)
$$
When the absolute value of the residual exceeds 5% of the rated load, the BESS controller adjusts the power allocation command. The system loss is taken as 3% to 5% of the load power under nominal conditions, and the temperature correction described earlier is applied. I also included a rate limiter so that the fuel cell output cannot change faster than its safe ramp rate:
$$
\left|\frac{dP_{\mathrm{fc}}}{dt}\right|\leq R_{\mathrm{fc,max}}
$$
This constraint prevents abrupt fuel cell load changes and allows the battery and supercapacitor to absorb fast transients. The BESS controller therefore operates as a supervisory coordinator rather than a pure high-speed current loop.
Control Algorithm Module
I implemented a three-stage control algorithm module: power allocation, proportional-integral regulation, and efficiency optimization. Each stage has a distinct time scale. The BESS controller runs the allocation and efficiency optimization at the supervisory level and delegates fast current regulation to the converter controllers. This separation improves numerical stability and makes the software easier to tune.
Power Allocation Algorithm
I used the following allocation law for the fuel cell reference:
$$
P_{\mathrm{fc}}^{*}=\min\left(P_{\mathrm{fc,max}},\beta\,P_{\mathrm{load}}\right)
$$
where Pfc,max is 45 kW and β is a power allocation coefficient adjusted by the lithium battery state of charge. I defined β as a piecewise function to protect the battery at low state of charge and to avoid overcharging at high state of charge:
$$
\beta=
\begin{cases}
0.55, & SOC_{\mathrm{bat}}\leq 0.30\\
0.65+0.4\left(SOC_{\mathrm{bat}}-0.30\right), & 0.30<soc_{\mathrm{bat}}<0.70\\ $$="" &="" 0.70="" 0.85,=""
The BESS controller then calculates the required hybrid storage power:
$$
P_{\mathrm{hyb}}^{*}=P_{\mathrm{load}}-P_{\mathrm{fc}}^{*}
$$
If Phyb* is positive, the storage units discharge. If it is negative, the storage units charge. The BESS controller splits the hybrid power between the battery and the supercapacitor by using a frequency-separation rule. The low-frequency component goes to the battery, and the high-frequency component goes to the supercapacitor:
$$
P_{\mathrm{bat}}^{*}=L_{\mathrm{lp}}\left(P_{\mathrm{hyb}}^{*}\right)
$$
$$
P_{\mathrm{sc}}^{*}=P_{\mathrm{hyb}}^{*}-P_{\mathrm{bat}}^{*}
$$
where Llp denotes a low-pass filter. The BESS controller tunes the filter cutoff according to the load spectrum and the supercapacitor state of charge. When the supercapacitor state of charge is low, the cutoff is reduced so that the battery takes more of the low-frequency component. When the supercapacitor state of charge is high, the cutoff is increased to make better use of peak power capability.
Proportional-Integral Regulation
I used a PI regulator to stabilize the lithium battery charging current and to reduce current shocks. The discrete implementation used by the BESS controller is:
$$
I_{\mathrm{bat}}^{*}(k)=K_p e(k)+K_i\sum_{j=0}^{k}e(j)\Delta t
$$
where e(k) is the current error, Kp is 1.0, and Ki is 0.08. I included an anti-windup limiter:
$$
I_{\mathrm{bat}}^{*}(k)=\operatorname{sat}\left(I_{\mathrm{bat}}^{*}(k),I_{\min},I_{\max}\right)
$$
With this tuning, the battery charging current fluctuation was kept within plus or minus 5 A in the tested operating range. The BESS controller also applies a first-order filter to the current reference to avoid abrupt set-point changes:
$$
I_{\mathrm{bat,ref}}(k)=\alpha I_{\mathrm{bat}}^{*}(k)+(1-\alpha)I_{\mathrm{bat,ref}}(k-1)
$$
I selected α according to the converter switching frequency and the desired response time. The BESS controller monitors the current error and automatically reduces the integral gain if sustained oscillation is detected.
Efficiency Optimization
I defined system efficiency as the ratio of output power to input power:
$$
\eta_{\mathrm{sys}}=\frac{P_{\mathrm{out}}}{P_{\mathrm{in}}}
$$
The efficiency optimization algorithm searches for the fuel cell operating point that maximizes ηsys subject to the load and state-of-charge constraints. I expressed the optimization as:
$$
\max_{P_{\mathrm{fc}},P_{\mathrm{bat}},P_{\mathrm{sc}}}\eta_{\mathrm{sys}}
$$
$$
\text{subject to}\quad
P_{\mathrm{load}}=P_{\mathrm{fc}}+P_{\mathrm{bat}}+P_{\mathrm{sc}}-P_{\mathrm{loss}}
$$
$$
SOC_{\mathrm{bat,min}}\leq SOC_{\mathrm{bat}}\leq SOC_{\mathrm{bat,max}}
$$
$$
SOC_{\mathrm{sc,min}}\leq SOC_{\mathrm{sc}}\leq SOC_{\mathrm{sc,max}}
$$
$$
0\leq P_{\mathrm{fc}}\leq P_{\mathrm{fc,max}}
$$
I used an iterative search around the fuel cell high-efficiency band of 40% to 60% of rated power. The BESS controller evaluates the candidate operating points and selects the one with the highest predicted efficiency while respecting the protection constraints. The system efficiency was kept above 90% in the main operating range.
| Control stage | Input | Output | Update period | Key parameter | BESS controller role |
|---|---|---|---|---|---|
| Power allocation | Load power, battery state of charge, fuel cell limit | Fuel cell reference and hybrid power reference | 1 s | β | Coordinates source sharing |
| Frequency separation | Hybrid power reference | Battery and supercapacitor references | 100 ms | Low-pass cutoff | Protects battery and uses supercapacitor peaks |
| PI regulation | Battery current error | Current command | 10 ms to 100 ms | Kp, Ki | Stabilizes charging current |
| Efficiency optimization | Efficiency map and constraints | Optimal fuel cell operating point | 1 s to 10 s | High-efficiency band | Adjusts long-term operating point |
Fault Diagnosis Module
I designed the fault diagnosis module to cover the fuel cell, the lithium battery, the supercapacitor, and the power conversion units. The module follows a real-time monitoring, trend analysis, and handling execution flow. The BESS controller performs a two-stage validation: it first compares each parameter with its threshold, and then it computes the rate of change over a sliding window to avoid false alarms caused by transient noise. The diagnosis response time is no more than 0.8 s for the defined fault set.
I used the following residual and threshold rule:
$$
r_i(k)=\left|x_i(k)-\hat{x}_i(k)\right|
$$
$$
\text{Fault}_i=
\begin{cases}
1, & r_i(k)>\theta_i \ \text{and}\ \left|\frac{r_i(k)-r_i(k-N)}{N\Delta t}\right|>\gamma_i\\
0, & \text{otherwise}
\end{cases}
$$
where xi is the measured signal, x̂i is the estimated or expected value, θi is the threshold, and γi is the rate threshold. The BESS controller logs the residual, the threshold, and the validation result for each detection event.
| Subsystem | Monitored parameter | Typical threshold or condition | Response action | BESS controller handling |
|---|---|---|---|---|
| Fuel cell | Stack temperature | Below 50 °C or above 70 °C | Start heater or cooling fan | Holds temperature in the 55 °C to 65 °C band |
| Fuel cell | Output voltage and current | Deviation beyond the validated residual threshold | Limit power and request inspection | Switches to emergency or reduced mode |
| Lithium battery | State of charge | Below 25% or above 80% | Limit charge or discharge | Adjusts β and hybrid split |
| Lithium battery | Current and temperature | Overcurrent or thermal rise beyond threshold | Reduce current command | Disables charging if necessary |
| Supercapacitor | Voltage and state of charge | Outside safe operating window | Reduce peak support | Reallocates peak power to battery |
| DC/DC converter | Input and output voltage | Out-of-range voltage or conversion fault | Shut down the affected channel | Isolates the fault and reconfigures the bus |
After fault removal, the BESS controller executes an automatic recovery sequence. The sequence first verifies that the measured signals remain within safe limits for a confirmation window, then restores the converter channel, then ramps the power reference, and finally returns to the normal allocation mode. I included a manual hold state so that an operator can inspect the system before full recovery.
Big Data Optimization of Energy Dispatch
I added a big data optimization layer to improve the long-term behavior of the BESS controller. The layer collects load power, fuel cell output, state of charge, temperature, and fault logs through the sensor network. Data are transmitted over the industrial bus to an edge computing node. I used LZ4 compression to reduce the data volume to approximately 30% of its original size and retained a 30-day storage window for analysis.
| Stage | Method | Parameter | Output | BESS controller use |
|---|---|---|---|---|
| Acquisition | Sensor network and industrial bus | 1 Hz supervisory sampling | Raw power, state of charge, temperature, fault data | Provides real-time state estimates |
| Compression | LZ4 | Approximate volume reduction to 30% | Compressed time-series records | Supports long-window trend analysis |
| Noise removal | Moving average | Window selected from signal bandwidth | Smoothed signals | Reduces false fault triggers |
| Missing-value repair | Linear interpolation | Gap up to 4 s using surrounding 10 points | Complete data sequence | Maintains continuity for the BESS controller |
| Load prediction | Historical pattern and short-term trend | Rolling horizon | Predicted load profile | Pre-positions fuel cell and storage set points |
| Dispatch optimization | Rule-based and data-driven correction | Mode-dependent thresholds | Optimized power allocation | Updates the BESS controller strategy |
I used the following interpolation expression when a data gap is short:
$$
x(t)=x(t_1)+\frac{t-t_1}{t_2-t_1}\left[x(t_2)-x(t_1)\right]
$$
The BESS controller also uses a load prediction residual to decide whether to pre-charge or pre-discharge the storage units:
$$
e_{\mathrm{pred}}(k)=P_{\mathrm{load}}(k)-P_{\mathrm{pred}}(k)
$$
If the predicted load is higher than the measured load and the battery state of charge is sufficient, the BESS controller raises the storage readiness level. If the predicted load is lower, it lowers the fuel cell output within the high-efficiency band and allows the battery to absorb surplus energy. For low-speed driving, the fuel cell is derated to 15 kW to 20 kW and the surplus charges the battery. For high-speed driving, the fuel cell remains at full output and the supercapacitor assists with peaks. For start-stop operation, the supercapacitor responds first so that the fuel cell does not experience frequent start-stop cycles.
Artificial Intelligence-Driven Control
I combined a backpropagation neural network with reinforcement learning to make the BESS controller adaptive to complex driving conditions. The neural network predicts control parameters from the load profile, state of charge, temperature, and recent fault history. The reinforcement learning layer adjusts the long-term policy using a reward function that balances efficiency, device wear, and operating cost.
I defined the reward function as:
$$
R=w_1\eta_{\mathrm{sys}}-w_2L_{\mathrm{wear}}-w_3C_{\mathrm{op}}-w_4\left|\Delta SOC_{\mathrm{bat}}\right|
$$
where ηsys is system efficiency, Lwear is a normalized wear index, Cop is operating cost, and the last term penalizes excessive battery state-of-charge swing. The weights are normalized so that the reward remains comparable across operating modes. The BESS controller computes the reward once per hour and updates the policy gradually to avoid instability.
I used the following prediction error metric for the neural network:
$$
E_{\mathrm{NN}}=\frac{1}{N}\sum_{i=1}^{N}\left(\hat{y}_i-y_i\right)^2
$$
$$
\left|\frac{\hat{y}_i-y_i}{y_i}\right|\leq 3\%
$$
The trained model kept the control-parameter prediction error within plus or minus 3% in the validation set. The BESS controller uses the predicted parameters as initial values and then applies the rule-based safety constraints. This design keeps the artificial intelligence layer inside a bounded operating envelope and prevents unsafe actions.
| AI function | Input features | Output | Validation result | BESS controller integration |
|---|---|---|---|---|
| Load pattern recognition | Recent load, speed trend, temperature | Operating-mode probability | Stable classification in tested cycles | Selects allocation mode |
| Parameter prediction | Load profile, state of charge, thermal state | Allocation coefficient and current limits | Prediction error within plus or minus 3% | Initializes the BESS controller set points |
| Reinforcement learning | Efficiency, wear, cost, state-of-charge swing | Policy adjustment | System efficiency maintained at 91.5% | Tunes long-term supervisory policy |
| Acceleration support | Load rise rate and supercapacitor state | Peak-support command | System efficiency 90.8% during acceleration test | Coordinates fuel cell and supercapacitor |
In the acceleration test, the fuel cell remained at full output, the supercapacitor supplied the fast peak, and the BESS controller limited the battery current ramp. The measured efficiency during acceleration was 90.8%, which is slightly below the steady-state value but still within the target envelope. The BESS controller therefore maintained both dynamic response and device protection.
Real-Time Monitoring and Visualization
I developed a Qt-based monitoring interface that supports both the vehicle terminal and a remote monitoring platform. The interface response time was no more than 450 ms in the tested deployment. The screen is divided into an overview area, a curve area, a strategy area, and a fault area. The BESS controller publishes the data to the interface through a lightweight message service and keeps the display synchronized with the supervisory state.
| Interface area | Displayed content | Interaction | Operator benefit | BESS controller data source |
|---|---|---|---|---|
| Overview | Total power, efficiency, state of charge, fault state | Gauge and bar chart view | Immediate situational awareness | Real-time supervisory estimates |
| Curve | 24 h load, fuel cell output, and state-of-charge curves | Zoom and query | Trend inspection and tuning | Historical time-series records |
| Strategy | Current mode, predicted load, allocation parameters | Manual mode switch with permission check | Controlled intervention | Mode and set-point state |
| Fault | Current and historical faults | Excel-compatible log export | Maintenance and audit | Fault diagnosis records |
I used a three-level warning mechanism. A level-one warning is a minor anomaly and triggers only a pop-up message. A level-two warning is a moderate anomaly and triggers a pop-up message, audible alarm, yellow flashing indicator, and activation of a standby device. A level-three warning is a severe anomaly and triggers a pop-up message, continuous audible alarm, red flashing indicator, automatic isolation of the faulty unit, transition to emergency supply, and a short message notification to the maintenance contact.
| Warning level | Condition | Visual and audible action | Automatic action | BESS controller response |
|---|---|---|---|---|
| Level one | Minor parameter deviation | Pop-up only | No automatic shutdown | Logs event and continues monitoring |
| Level two | Moderate anomaly | Pop-up, audible alarm, yellow flash | Start standby device | Reduces load or reallocates power |
| Level three | Severe anomaly | Pop-up, continuous alarm, red flash | Isolate fault and switch to emergency supply | Executes safe shutdown and recovery sequence |
The visualization layer also supports remote maintenance. The BESS controller exposes diagnostic counters, firmware version information, and parameter history. I restricted manual strategy changes to authorized users and required a confirmation step before any parameter write. This design reduces the risk of accidental misconfiguration during field service.
Application Results and Performance Discussion
I evaluated the system on a smart connected vehicle energy storage application with a rated load of 50 kW and a load fluctuation range of 20 kW to 50 kW. The BESS controller was assessed for energy allocation rationality, operating efficiency, fault response, cost reduction, and dynamic supply capability. The measured operating efficiency reached 91.5%, and the fault diagnosis response time did not exceed 0.8 s. These results confirm that the software-defined coordination strategy can meet the dynamic power supply demand of smart connected vehicles.
| Performance indicator | Target or baseline | Measured result | Interpretation | BESS controller contribution |
|---|---|---|---|---|
| System operating efficiency | Above 90% | 91.5% | High-efficiency operating band maintained | Efficiency optimization and mode selection |
| Fault diagnosis response time | No more than 0.8 s | 0.8 s or less | Fast fault isolation and recovery | Two-stage validation and event handling |
| Battery charging current fluctuation | Within plus or minus 5 A | Achieved in tested range | Reduced current stress | PI regulation and rate limiting |
| Energy allocation rationality | Improved versus conventional control | Significantly improved | Better source sharing and less waste | Hierarchical allocation and prediction |
| Application cost | Reduced | Effectively reduced | Lower fuel consumption and wear | Economic mode and AI policy tuning |
| Acceleration efficiency | Near steady-state efficiency | 90.8% | Dynamic performance retained | Supercapacitor peak support |
| Monitoring response | Below 500 ms | No more than 450 ms | Responsive operator interface | Lightweight data service from the BESS controller |
I also examined the sensitivity of the results to temperature and load variation. When the fuel cell enclosure temperature was held in the 55 °C to 65 °C band, the efficiency variation was small. When the temperature moved outside this band, the BESS controller corrected the loss coefficient and adjusted the fuel cell operating point. The temperature correction improved the accuracy of the power balance and reduced unnecessary battery cycling.
| Test condition | Observed effect | Adjustment by the BESS controller | Result |
|---|---|---|---|
| Low load, 20 kW to 30 kW | Surplus fuel cell energy available | Derated fuel cell output and controlled battery charging | Reduced energy waste and avoided overcharge |
| Medium load, 30 kW to 45 kW | Fuel cell near full output | Direct load matching and battery state monitoring | Stable operation and retained reserve |
| High load, 45 kW to 50 kW | Fast peak demand | Supercapacitor discharge and battery supplement | Peak met without deep battery discharge |
| Start-stop operation | Large load derivative | Supercapacitor priority and fuel cell ramp limiting | Fewer fuel cell start-stop events |
| Thermal variation | Loss coefficient change | Temperature-dependent loss correction | More accurate power balance |
The application results show that the BESS controller is not merely a monitoring program. It is the coordinating layer that links the fuel cell, battery, supercapacitor, converters, fault diagnosis, data analytics, and user interface. By keeping the fuel cell in its efficient region and using the hybrid storage units for transients, the BESS controller reduced the conflict between dynamic load following and long-term economy.
Software Engineering and Deployment Considerations
I structured the software for deterministic behavior and maintainability. The BESS controller uses a cyclic executive for supervisory tasks and event-driven handlers for faults and operator commands. Critical variables are protected by range checks before they are written to the converter interfaces. The software keeps a nonvolatile event log and a rolling parameter history so that field failures can be reconstructed.
| Software concern | Design choice | Benefit | BESS controller relevance |
|---|---|---|---|
| Task scheduling | Cyclic supervisory loop plus event-driven fault tasks | Predictable timing | Maintains deterministic control response |
| Data integrity | Range checks, checksums, and timestamp validation | Reduces bad-data propagation | Protects allocation and diagnosis logic |
| Fault recovery | State machine with confirmation window | Avoids premature restart | Ensures safe re-entry to normal mode |
| Human intervention | Permission-controlled parameter writes | Reduces misconfiguration risk | Keeps the BESS controller inside validated limits |
| Maintainability | Modular services and structured logs | Simplifies updates | Supports algorithm tuning and field diagnosis |
I used a modular service boundary between the BESS controller core and the visualization layer. The core publishes state through a message interface, and the interface subscribes to the required topics. This separation allows the monitoring screen to be updated without changing the control logic. It also allows the remote platform to receive only the data it needs, which reduces communication load.
For future extension, the BESS controller can accept additional energy sources or loads through the same allocation interface. The power balance equation and constraint set can be extended without redesigning the entire software. I also included a mode for multi-energy fusion studies, where the allocation coefficient and efficiency map can be replaced by a new optimization model. This makes the software architecture suitable for larger machinery and intelligent transportation applications beyond the tested vehicle project.
Further Analysis of Efficiency and Fault Response
I decomposed the efficiency result into fuel cell operation, converter conversion, and storage utilization. The fuel cell was kept in the high-efficiency band for most of the cycle. The DC/DC converter efficiency was 94% at the specified operating range. The BESS controller reduced unnecessary charging and discharging by using the predicted load and the state-of-charge constraints. The combined effect produced a measured system efficiency of 91.5%.
$$
\eta_{\mathrm{sys}}\approx\eta_{\mathrm{fc}}\eta_{\mathrm{conv}}\eta_{\mathrm{storage}}
$$
I used this product form as a diagnostic approximation rather than a exact loss model. It helped me identify which subsystem caused an efficiency drop during tuning. When the converter efficiency decreased, the BESS controller adjusted the bus voltage and power split. When the fuel cell efficiency decreased, the BESS controller moved the operating point toward the high-efficiency band. When storage losses increased, the BESS controller reduced high-frequency cycling and relied more on the supercapacitor for short peaks.
For fault response, I modeled the detection delay as the sum of sampling delay, validation delay, and actuation delay:
$$
t_{\mathrm{resp}}=t_{\mathrm{sample}}+t_{\mathrm{validate}}+t_{\mathrm{act}}
$$
The measured response remained at or below 0.8 s for the defined fault set. The BESS controller achieved this by using a short sliding window for rate validation and by prioritizing fault tasks over noncritical display updates. When a severe fault is detected, the BESS controller immediately isolates the affected unit and enters the emergency mode. The recovery sequence is intentionally slower than the trip sequence so that the system does not repeatedly re-enter a fault condition.
Operational Summary
I summarize the operational logic of the BESS controller as a repeated sequence: acquire data, estimate state, select mode, allocate power, regulate current, validate faults, update the data model, and publish the human-machine interface state. This sequence is simple enough for deterministic implementation and rich enough to support advanced optimization. The BESS controller is therefore the common thread that connects the hardware units, the energy management module, the control algorithm module, the fault diagnosis module, the big data layer, the artificial intelligence layer, and the visualization layer.
| Operational step | Main input | Main output | Time scale | BESS controller function |
|---|---|---|---|---|
| Acquire data | Power, temperature, state of charge, fault signals | Validated measurements | 1 s supervisory | Collects and checks system state |
| Estimate state | Measurements and models | State-of-charge and residual estimates | 100 ms to 1 s | Provides the basis for allocation |
| Select mode | Load range, state of charge, fault state | Normal, energy-saving, or emergency mode | 1 s | Chooses the supervisory policy |
| Allocate power | Load demand and constraints | Fuel cell, battery, and supercapacitor references | 100 ms to 1 s | Coordinates the hybrid sources |
| Regulate current | Current error and limits | Converter current command | 10 ms to 100 ms | Stabilizes battery charging and discharging |
| Validate faults | Residuals and rate of change | Fault flags and handling commands | 100 ms to 0.8 s | Protects the system and triggers recovery |
| Update data model | Historical and current data | Predicted load and tuned parameters | Minutes to hours | Improves future allocation decisions |
| Publish interface | State and event data | Monitoring display and logs | 450 ms or less | Provides situational awareness |
I conclude that the software-defined hybrid energy storage approach is effective for the target application. The BESS controller improved energy allocation rationality, reduced application cost, achieved 91.5% operating efficiency, and kept fault diagnosis response within 0.8 s. The use of hierarchical energy management, PI current regulation, efficiency optimization, two-stage fault validation, big data preprocessing, neural-network prediction, reinforcement learning, and real-time visualization created a coherent operating framework. I will extend the BESS controller to multi-energy fusion scenarios and more complex duty cycles in future work, with the aim of supporting larger machinery and intelligent transportation systems while preserving the same safety and efficiency principles.
</soc_{\mathrm{bat}}
