Off-grid and on-grid dual-mode adaptive balancing control method and system for residential energy storage
By acquiring data on cell status and load demand, and combining it with a long short-term memory network model, the balance control intensity of the home energy storage system is dynamically adjusted. This solves the coordination problem between balance control and power supply guarantee in both grid-connected and off-grid modes, thereby improving the system's power supply reliability and energy utilization efficiency.
Patent Information
- Application Number
- CN202611483164.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-22
- Publication Date
- 2026-11-10
AI Technical Summary
In both grid-connected and off-grid modes, home energy storage systems struggle to dynamically coordinate balancing control and power supply assurance, making it impossible to adaptively adjust the balancing intensity based on future load demands.
By acquiring the cell's state of charge, temperature, operating mode, total available energy of the battery pack, and predicted future load demand, the cell inconsistency and backup power adequacy are calculated. Combined with a long short-term memory network model, load demand is predicted, a balancing cost factor is constructed, and a balancing current limit is determined to achieve dynamic adjustment of the balancing intensity.
It significantly improves the power supply reliability, energy utilization efficiency and balance security of home energy storage systems in dual-mode operation, avoiding energy loss caused by excessive balancing in grid-connected mode and insufficient backup power caused by excessive balancing in off-grid mode.
Smart Images

Figure CN123074040A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of home energy storage system technology, specifically to a method and system for adaptive balance control of home energy storage in both off-grid and grid-connected modes. Background Technology
[0002] With the popularization of distributed photovoltaic power generation and the increasing household electricity load, home energy storage systems, as important devices for improving electricity economy and power supply reliability, have been increasingly widely used. Home energy storage systems typically have two operating modes: grid-connected and off-grid. In grid-connected mode, the energy storage system operates in parallel with the grid, charging during off-peak hours and discharging during peak hours to achieve peak-valley arbitrage. In off-grid mode, the energy storage system serves as the sole source of electricity for the household load, ensuring continuous power supply to critical loads in the event of a grid outage.
[0003] In the actual operation of a home energy storage system, due to slight differences in the manufacturing process of each battery cell, as well as the effects of uneven temperature distribution and different depths of charge and discharge during operation, the state of charge of each cell will gradually become inconsistent. This inconsistency leads to a decrease in the overall usable capacity of the battery pack, reduced charge and discharge efficiency, and in severe cases, accelerated cell aging and even safety hazards. Therefore, balancing control of the battery pack is an essential function of a home energy storage system. Summary of the Invention
[0004] This invention provides a method and system for adaptive balancing control of residential energy storage in both grid-connected and off-grid modes. This invention solves the technical problem of the difficulty in dynamically coordinating balancing control and power supply assurance, and the inability to adaptively adjust the balancing intensity according to future load demand, when residential energy storage operates in both grid-connected and off-grid modes.
[0005] In view of the above problems, the present invention provides an adaptive balancing control method for dual-mode (off-grid and grid-connected) residential energy storage, comprising: Obtain the state of charge value of each cell in the home energy storage, the temperature value of each cell, the current working mode indicator, the total available energy of the current battery pack, the predicted value of the home load energy demand in the future preset period, and the rated capacity of the battery pack; Calculate the cell inconsistency based on the maximum and minimum values of the state of charge of each cell; Based on the current total available energy of the battery pack and the predicted energy demand of household load in the future preset period, the backup power adequacy is calculated, and the trend of backup power adequacy is calculated based on the backup power adequacy of the current control cycle and the backup power adequacy of the previous control cycle. Based on the current working mode identifier, cell inconsistency, backup power adequacy and its changing trend, and combined with the current off-grid and grid-connected modes, the equilibrium cost factor is analyzed and obtained. Based on the balancing cost factor and the temperature value of each cell, the balancing current limit for the current control cycle is determined, and the balancing control command is output.
[0006] This invention also provides a dual-mode (off-grid and grid-connected) adaptive balancing control system for residential energy storage, comprising: The data acquisition module is used to acquire the state of charge value of each cell in the home energy storage, the temperature value of each cell, the current working mode identifier, the total available energy of the current battery pack, the predicted value of the home load energy demand in the future preset period, and the rated capacity of the battery pack. The cell inconsistency calculation module is used to calculate the cell inconsistency based on the maximum and minimum values of the state of charge of each cell. The backup power adequacy calculation module is used to calculate the backup power adequacy based on the current total available energy of the battery pack and the predicted energy demand of household load in the future preset period, and to calculate the trend of backup power adequacy changes based on the backup power adequacy of the current control cycle and the backup power adequacy of the previous control cycle. The equilibrium cost factor analysis module is used to analyze and obtain equilibrium cost factors based on the current working mode identifier, cell inconsistency, backup power adequacy and backup power adequacy trend, and in combination with the current off-grid and grid-connected modes. The equalization current limit determination module is used to determine the equalization current limit within the current control cycle based on the equalization cost factor and the temperature value of each cell, and output equalization control commands.
[0007] One or more technical solutions provided in this invention have at least the following technical effects or advantages: This invention combines multi-source data acquisition with a future load prediction model based on a long short-term memory network to provide a precise data foundation for balancing control, encompassing cell status, operating mode, and future load demand. Building upon this, by normalizing the cell state-of-charge range into an inconsistency index and combining it with dual quantitative assessments of backup power adequacy and its changing trends, the balancing control acquires both static supply and demand judgment and dynamic trend perception capabilities. Furthermore, differentiated mapping rules are established for grid-connected and off-grid modes respectively. In grid-connected mode, economic efficiency is prioritized, while in off-grid mode, safety is prioritized for adaptive reasoning of the balancing cost factor. Finally, the balancing current limit is determined by multiplying the balancing cost factor by a temperature derating coefficient, where a three-stage linear transition mechanism is used for temperature derating to achieve smooth thermal management of the balancing current. The entire scheme works in synergy, enabling the balancing control system to dynamically adjust the balancing intensity based on the actual battery status and future power demand. This avoids energy loss caused by over-balancing in grid-connected mode and prevents insufficient backup power due to over-balancing in off-grid mode, significantly improving the power supply reliability, energy utilization efficiency, and balancing safety of home energy storage in dual-mode operation.
[0008] In summary, this invention solves the technical problem that home energy storage is unable to dynamically coordinate balance control and power supply guarantee under both grid-connected and off-grid dual-mode operation, and is unable to adaptively adjust the balance intensity according to future load demand. Attached Figure Description
[0009] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0010] Figure 1 This is a flowchart illustrating the adaptive balancing control method for dual-mode (off-grid and grid-connected) residential energy storage provided in an embodiment of the present invention. Figure 2 This is a flowchart illustrating the process of obtaining the equilibrium cost factor in the off-grid and grid-connected dual-mode adaptive equilibrium control method for home energy storage provided in this embodiment of the invention. Figure 3 This is a schematic diagram of the structure of the off-grid and on-grid dual-mode home energy storage adaptive balancing control system provided in this embodiment of the invention.
[0011] The components represented by each number in the attached diagram are explained below: Data acquisition module 11, cell inconsistency calculation module 12, backup power adequacy calculation module 13, balancing cost factor analysis module 14, and balancing current limit determination module 15. Detailed Implementation
[0012] This invention provides an adaptive balancing control method and system for residential energy storage in both grid-connected and off-grid modes, which specifically addresses the technical problem that it is difficult to dynamically coordinate balancing control and power supply guarantee, and the inability to adaptively adjust the balancing intensity according to future load demand when residential energy storage operates in both grid-connected and off-grid modes.
[0013] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative effort are within the scope of protection of the present invention.
[0014] Example 1, as Figure 1 As shown, this invention provides an adaptive balancing control method for dual-mode (off-grid and grid-connected) residential energy storage, including: S100: Obtain the state of charge value of each cell in the home energy storage, the temperature value of each cell, the current operating mode indicator, the total available energy of the current battery pack, the predicted energy demand of the home load in the future preset period, and the rated capacity of the battery pack.
[0015] In existing home energy storage systems, balancing control strategies typically determine whether to initiate balancing and the magnitude of the balancing current solely based on the differences in the state of charge (SOC) of the battery cells, neglecting the dual-mode switching requirements faced by home energy storage systems in actual operation. In grid-connected mode, the energy storage system can obtain supplemental power from the grid, making balancing operations less urgent; however, excessive balancing current can lead to unnecessary energy loss and economic damage. In off-grid mode, the energy storage system is the sole source of power for the household load, and excessive consumption of available battery energy during balancing operations directly threatens the reliability of the household power supply.
[0016] Meanwhile, most existing load balancing control methods employ fixed-parameter strategies, failing to dynamically adjust the balancing intensity based on future trends in household load. This leads to a disconnect between balancing operations and actual household electricity demand. Furthermore, household load exhibits significant temporal and periodic characteristics, and existing methods lack accurate forecasting tools for future load energy, making it difficult to coordinate and unify load balancing control with backup power assurance. Therefore, how to adaptively adjust the load balancing control strategy in both off-grid and grid-connected modes, taking into account future household load demand, to achieve a dynamic balance between cell consistency and power supply reliability, has become a pressing technical problem to be solved.
[0017] Step S100 in the method provided in this embodiment of the invention includes: Collect the state of charge (SOC) value of each cell in the home energy storage system to obtain the SOC value of each cell. The SOC value is the percentage of the cell's remaining charge relative to its rated capacity. Collect the temperature value of each battery cell and integrate the temperature values of all battery cells; Read the current operating mode identifier, which includes either the grid-connected mode identifier or the off-grid mode identifier; Read the current total available energy of the battery pack and the rated capacity of the battery pack. The current total available energy of the battery pack is the sum of the energy that all cells of the home energy storage can release at the current moment. By using a pre-built future load demand forecasting model, the predicted values of household load energy demand for a preset period of time can be obtained.
[0018] In this embodiment of the invention, the home energy storage system is equipped with a Battery Management System (BMS). The BMS collects the terminal voltage of each cell through a voltage sampling circuit, and simultaneously accumulates the charged and discharged electricity in real time through a current integration circuit, calculating the state of charge (SOC) value of each cell based on the ampere-hour integration method. The SOC value is defined as the percentage of the cell's remaining charge relative to its rated capacity, ranging from 0% to 100%. The SOC value of each cell is read from the BMS register according to a preset control cycle. The duration of this control cycle can be set to any value between 1 second and 10 seconds; in this embodiment, it is preferably set to 5 seconds to balance data real-time performance and system computational load.
[0019] Simultaneously, the temperature value of each battery cell is collected. Specifically, a negative temperature coefficient thermistor temperature sensor is mounted on the surface of each battery cell, and the signal lines of each sensor are connected to the analog-to-digital conversion interface of the BMS. The BMS periodically reads the resistance value of each channel and converts it into the corresponding temperature value according to the built-in temperature-resistance characteristic curve, thereby obtaining the temperature value of each battery cell. This temperature reading cycle is consistent with the state-of-charge reading cycle, both using the aforementioned control cycle.
[0020] Furthermore, the BMS is equipped with a grid voltage detection interface, which is connected to the input terminal of the household power grid via a voltage transformer or a voltage divider resistor. The BMS monitors the effective value of the AC voltage on the grid side in real time. When the voltage value is consistently higher than a preset power outage threshold, it determines that the grid power supply is normal and sets the operating mode identifier to the grid-connected mode identifier, represented by the number 1 in this embodiment. When the detected voltage value is lower than the power outage threshold or there is a complete power outage, it determines that the grid is abnormal and sets the operating mode identifier to the off-grid mode identifier, represented by the number 0. The power outage threshold can be set to 70% to 80% of the grid rated voltage, and is preferably set to 75% of the rated voltage in this embodiment. The continuous judgment time can be set to 1 second to 3 seconds to prevent misjudgment caused by instantaneous fluctuations.
[0021] Furthermore, the BMS internally stores the rated capacity value of each cell. After obtaining the current state of charge (SOC) value of each cell, it treats the SOC value of each cell as a fractional proportion, for example, taking 0.8 when the SOC value is 80%, and then multiplies it by the rated capacity corresponding to that cell to obtain the current release capacity of that cell. The BMS sums up the above calculation values of all cells, and the sum is the total usable energy of the current battery pack.
[0022] For example, if a battery cell has a state of charge of 80% and a rated capacity of 100 amp-hours, then the current available energy of that cell is 0.8 × 100 = 80 amps. When a battery pack consists of multiple cells connected in series and parallel, the total available energy of the entire battery pack is obtained by calculating the energy of each cell in this way and then adding them together.
[0023] It should be noted that the above values are for illustrative purposes only and do not constitute a limitation on the present invention.
[0024] Finally, the predicted household load energy demand for a preset future period is obtained through a pre-constructed future load demand prediction model. This future load demand prediction model is deployed as a software program in the microprocessor inside the BMS, or in the system controller that communicates with the BMS. The preset future period can be set according to actual application needs, for example, it can be set to the next 1 hour, 2 hours, or 4 hours. In this embodiment of the invention, it is preferably set to the next 2 hours, which can cover the main fluctuation cycle of household electricity consumption without causing a decrease in accuracy due to an excessively long prediction time. The load power sequence and corresponding time characteristic data collected before the current moment are input into the prediction model. After the model runs, it outputs the predicted household load energy demand for the preset future period. This predicted value is the cumulative value of load power over time within the preset future period, in kilowatt-hours.
[0025] The pre-construction of the future load demand forecasting model includes: Obtain the historical load power sequence of household energy storage. The historical load power sequence is a sequence formed by arranging household load power values recorded at fixed time intervals within a preset number of days in chronological order. Obtain time feature data corresponding to the historical load power sequence. The time feature data includes time identifier, date type identifier and month identifier. The date type identifier includes weekdays and holidays. The training sample set is composed of historical load power sequence and time feature data. The load power value and corresponding time feature data within a preset window length before each historical moment are used as input features. The actual value of household load energy demand within a preset future period after the historical moment is used as output label. The actual value of household load energy demand is the cumulative value of load power value over time within the preset future period. A future load demand forecasting model is constructed. The future load demand forecasting model is a regression model based on a long short-term memory network structure. The future load demand forecasting model takes load power value sequence and time characteristic data as input and household load energy demand forecast as output. The training objective is to minimize the mean square error between the predicted household load energy demand output by the future load demand forecasting model and the output label. The parameters of the future load demand forecasting model are iteratively updated until the mean square error converges, thus obtaining the pre-constructed future load demand forecasting model.
[0026] In this embodiment of the invention, the historical load power sequence of the household energy storage is first obtained. The BMS or system controller continuously records the real-time power value of the household load during operation, with a fixed sampling interval, which can be set to 1 minute, 5 minutes, or 15 minutes; in this embodiment, it is preferably set to 5 minutes. The load power values recorded within a preset number of past days are arranged in chronological order to form a historical load power sequence. The preset number of past days can be set according to seasonal changes and the stability of users' electricity consumption habits, typically ranging from 30 to 90 days; in this embodiment, it is preferably set to 60 days to fully cover load variation characteristics under various time patterns such as weekdays and holidays, and different months.
[0027] Simultaneously, time characteristic data corresponding to historical load power sequences is acquired. This time characteristic data includes time markers, date type markers, and month markers. The time marker is a specific time of day, such as from 00:00 to 23:55, discretized according to sampling intervals. The date type marker distinguishes between weekdays and holidays; weekday markers can be set to "0" and holiday markers to "1," with holidays including national statutory holidays and weekends. The month marker is a numerical code from January to December, used to characterize the impact of different seasons on household electricity consumption patterns.
[0028] Then, the historical load power sequence and time feature data are used to construct a training sample set. When constructing the training samples, the load power value within a preset window length at each historical moment is used as one part of the input features, and the corresponding time feature data is used as another part of the input features, together forming the input feature vector. The preset window length can be set according to the autocorrelation of the load data, and is typically set to 6 to 24 sampling points. When the sampling interval is 5 minutes, the preset window length is preferably set to 12 sampling points, covering the load change history of the past hour.
[0029] The output label represents the actual household load energy demand within a preset future time period following this historical moment. This actual value is the sum of the load power values at each sampling point within the preset future time period over time. If the preset future time period is 2 hours and the sampling interval is 5 minutes, then the preset future time period contains 24 sampling points. The actual household load energy demand within this preset future time period is obtained by multiplying the load power values of these 24 sampling points by the sampling interval and then summing them.
[0030] Subsequently, a regression model based on a long short-term memory network structure is constructed as a future load demand prediction model. This model consists of an input layer, an LSTM hidden layer, and an output layer. The input layer receives an input feature vector, which is composed of a load power sequence within a preset window length and the corresponding time feature data. The LSTM hidden layer can be set to one or two layers, with the number of neurons in each layer ranging from 32 to 128; in this embodiment, 64 neurons are preferred. The output layer is a fully connected layer that outputs a scalar value, namely the predicted household load energy demand.
[0031] Then, the model is trained with the goal of minimizing the mean squared error between the predicted value and the output label, and the Adam optimization algorithm is used to iteratively update the model parameters. The learning rate of the Adam optimization algorithm can be set to 0.001. During training, the training sample set is divided into a training set and a validation set according to a preset ratio, with the training set accounting for 70% to 80% and the validation set accounting for 20% to 30%. In each iteration, a batch of samples is randomly selected from the training set for forward and backward propagation, with the batch size set to 32 or 64. During forward propagation, the input features are sequentially processed through the temporal recursive calculation of the LSTM hidden layer and the fully connected calculation of the output layer to obtain the predicted values corresponding to the batch of samples. The predicted values and output labels are substituted into the mean squared error loss function to calculate the loss value of the current batch. During backward propagation, the gradients of each weight parameter and bias parameter in the network are calculated based on the loss value. The Adam optimizer uses these gradients, combined with the momentum estimation of each parameter and the adaptive learning rate, to update the parameters.
[0032] Each training round refers to traversing all training set samples once. After each training round, the current model is validated using validation set samples, and the mean squared error (MSE) value on the validation set is calculated. When the MSE on the validation set no longer decreases for several consecutive training rounds, the model is considered converged, and training stops. The number of consecutive training rounds can be set to 10 to 20 rounds, and in this embodiment, it is preferably set to 10 rounds. If the number of training rounds reaches the preset maximum number of training rounds and the validation set error still has not converged, training stops, and the model parameters with the smallest validation set error are retained as the final model parameters. The maximum number of training rounds can be set to 100 to 200 rounds, and in this embodiment, it is preferably set to 100 rounds. Finally, a pre-built future load demand prediction model is obtained.
[0033] After the model is trained, it is deployed in the controller of the home energy storage system. During operation, the controller calls the model in real time to obtain the predicted values of future load energy demand, providing data support for subsequent balancing cost factor analysis and determination of balancing current limits.
[0034] This invention employs a multi-source data acquisition mechanism to simultaneously acquire key parameters such as the state of charge (SOC) value, temperature value, current operating mode identifier, total available energy of the battery pack, and rated capacity of each cell. It also introduces a future load demand prediction model based on a long short-term memory (LSTM) network, enabling the balancing control to anticipate future household electricity demand. This prioritizes economic efficiency in grid-connected mode and ensures power supply security in off-grid mode. By constructing an LSTM prediction model with historical load power sequences and time characteristic data as input, the model fully explores the changing patterns of household load across multiple time dimensions, including time of day, weekdays and holidays, and months, significantly improving the accuracy and stability of load prediction. The balancing control system dynamically adjusts the balancing strategy based on accurate cell SOC data and reliable future load prediction results. This avoids energy waste caused by over-balancing in grid-connected mode and prevents insufficient backup power due to over-balancing in off-grid mode, ultimately achieving efficient, safe, and adaptive balancing management of household energy storage in both modes.
[0035] S200: Calculate the cell inconsistency based on the maximum and minimum values of the state of charge of each cell.
[0036] In the equalization control of home energy storage systems, quantifying cell inconsistency is a crucial prerequisite for determining the timing and intensity of equalization initiation. Existing technologies employ various methods to measure cell inconsistency. Some directly use the difference between the maximum and minimum state of charge (SOC) values as the inconsistency level, while others use variance or standard deviation. However, directly using the range as the inconsistency level results in an absolute value, whose magnitude is influenced by the cell's rated capacity and the current absolute level of SOC. This lacks a unified measurement standard across different battery packs or operating stages, making it difficult to serve as a universal quantitative indicator for equalization control. While using variance or standard deviation can reflect the overall dispersion, the calculation involves all cell data, resulting in a large computational load, and the physical meaning of the output value is not intuitive, hindering efficient execution in embedded controllers.
[0037] Furthermore, most existing methods fail to normalize inconsistency to a unified reference range, making it difficult to set consistent equalization start-up thresholds and control parameters under different operating conditions, thus increasing the difficulty of system debugging and parameter tuning. Therefore, how to obtain a cell inconsistency index with clear physical meaning and normalization using a simple and efficient calculation method, so that it can be applied to home energy storage systems of different capacities and different series-parallel structures, has become an urgent technical problem to be solved.
[0038] Step S200 in the method provided in this embodiment of the invention includes: The maximum value among the state of charge values of each cell is selected as the maximum state of charge value of the cell, and the minimum value among the state of charge values of each cell is selected as the minimum state of charge value of the cell. The difference between the maximum cell state of charge value and the minimum cell state of charge value is taken as the cell state of charge range. Dividing the cell state of charge range by the preset cell state of charge reference value yields the cell inconsistency, where the preset cell state of charge reference value is the cell state of charge reference value corresponding to the cell's fully charged state.
[0039] In this embodiment of the invention, the BMS reads all cell state-of-charge values collected during the current control cycle from the register, obtaining a data set containing all cell state-of-charge values. The maximum value is selected from this data set as the maximum cell state-of-charge value, and the minimum value is selected from the same data set as the minimum cell state-of-charge value.
[0040] For example, assuming a home energy storage battery pack consists of 8 cells connected in series, and the state of charge values of each cell read in the current control cycle are 85%, 82%, 78%, 80%, 83%, 75%, 81%, and 79%, then the maximum state of charge value of the cell is 85%, and the minimum state of charge value of the cell is 75%.
[0041] It should be noted that the above values are for illustrative purposes only and do not constitute a limitation on the present invention.
[0042] Furthermore, the difference between the maximum and minimum state of charge (SOC) values of the battery cells is defined as the cell SOC range. For example, if the maximum SOC value is 85% and the minimum SOC value is 75%, subtracting 75% from 85% yields a cell SOC range of 10%. This range directly reflects the degree of deviation between the cells with the highest and lowest SOC values in the battery pack and is a fundamental indicator for measuring cell consistency.
[0043] It should be noted that the above values are for illustrative purposes only and do not constitute a limitation on the present invention.
[0044] Further, a preset cell state of charge (SOC) reference value is obtained, which corresponds to the SOC reference value of the cell at full charge. In this field, a cell at full charge typically refers to the moment when the cell's SOC reaches 100%, therefore the preset SOC reference value is set to 100%. The cell SOC range is divided by the preset SOC reference value to obtain the cell inconsistency. This cell inconsistency is a dimensionless normalized value, ranging from 0 to 1; a larger value indicates a more significant difference in SOC between cells.
[0045] It should be noted that the preset cell state of charge reference value is fixed at 100% in this invention. However, in other embodiments, if the definition of a fully charged cell is different from 100%, for example, in some battery systems the fully charged state corresponds to a state of charge of 95%, then this value can be used as the preset reference value. In this embodiment, 100% is used as the preset reference value, making the calculation of inconsistency based on the fully charged state a unified standard, facilitating horizontal comparisons between different operating stages and different battery systems. The calculated cell inconsistency is fed into the equilibrium cost analysis model as a basic input to measure the current equilibrium demand.
[0046] This invention uses the difference between the maximum and minimum state of charge (SOC) values as the range, directly reflecting the degree of deviation between the initial and final states of charge (SOC) of the cells in the battery pack. The calculation requires only comparison and subtraction operations, resulting in minimal computational load, making it highly suitable for real-time execution in the embedded controller of a battery management system. Dividing the range by a preset SOC reference value maps the inconsistency value to a uniform range of 0 to 1, eliminating the influence of battery pack capacity differences and absolute SOC levels on the numerical value. This normalization process allows for the use of the same threshold standard for balancing control judgment across different energy storage systems and different operating stages, simplifying the system parameter configuration process and improving the versatility and engineering practicality of the balancing control strategy. Furthermore, this inconsistency, based on a fully charged state, directly reflects the percentage difference in charge level among the cells in the battery pack at full charge, providing a unified and easily understood input parameter for subsequent quantitative analysis of balancing cost factors.
[0047] S300: Based on the current total available energy of the battery pack and the predicted energy demand of household load in the future preset period, calculate the backup power adequacy, and calculate the trend of backup power adequacy change based on the backup power adequacy of the current control cycle and the backup power adequacy of the previous control cycle.
[0048] In the balancing control of home energy storage systems, the magnitude of the balancing current directly consumes the total available energy of the battery pack, and this energy consumption competes with the electricity demand of the household load. Most existing balancing control methods only focus on the differences in state of charge between cells, ignoring the impact of balancing operations on the overall backup power capacity of the battery pack. Especially in off-grid mode, the energy consumed during balancing directly reduces the amount of electricity available for household load. Current technology lacks quantitative assessment methods for the matching relationship between the available energy of the battery pack and future load demand, making it impossible to determine whether the current energy storage level can meet the household electricity demand for a period of time in the future, and also failing to reflect forward-looking considerations of future power supply conditions in balancing control.
[0049] Meanwhile, the reserve power adequacy ratio itself is a static ratio, reflecting only the supply and demand relationship at the current moment. However, the direction of this ratio's change over time—whether the reserve power adequacy ratio tends to increase or decrease—contains dynamic information about the evolution of the power supply and demand situation. Existing methods have failed to capture and utilize this dynamic trend. Therefore, how to construct an evaluation index that can both quantify the supply and demand matching relationship between current energy storage and future load and reflect the dynamic evolution trend of this matching relationship, so as to provide a forward-looking basis for determining the subsequent equilibrium cost factor, has become an urgent technical problem to be solved.
[0050] Step S300 in the method provided in this embodiment of the invention includes: Divide the current total available energy of the battery pack by the predicted energy demand of the household load in the future preset period to obtain the backup power adequacy for the current control cycle; Obtain the backup power adequacy of the previous control cycle, subtract the backup power adequacy of the previous control cycle from the backup power adequacy of the current control cycle, divide the difference by the control cycle duration, and obtain the trend of backup power adequacy change.
[0051] In this embodiment of the invention, the backup power adequacy is first calculated based on the current total available energy of the battery pack and the predicted energy demand of household load in the future preset period.
[0052] Specifically, the total available energy of the current battery pack is read from a designated register of the BMS, in kilowatt-hours (kWh). Simultaneously, the projected energy demand for the household load over a preset period is obtained from the output of the future load demand forecasting model, also in kilowatt-hours. The total available energy of the current battery pack is divided by the projected load demand; the quotient is defined as the backup power adequacy for the current control cycle, i.e., Backup Power Adequacy = Total Available Energy of Current Battery Pack / Projected Load Demand. Backup power adequacy is a dimensionless ratio, physically representing the multiple by which the current energy storage system's available energy can meet the household load demand over a preset future period.
[0053] For example, assuming the current total available energy of the battery pack is 10 kWh, and the predicted household energy demand for the next 2 hours is 2 kWh, then the backup power adequacy is equal to 10 divided by 2, which equals 5, indicating that the current available energy storage can meet the household's electricity demand for the next 2 hours 5 times. If the current total available energy of the battery pack is 3 kWh, and the predicted household energy demand for the next 2 hours is 5 kWh, then the backup power adequacy is equal to 3 divided by 5, which equals 0.6, indicating that the current available energy storage is insufficient to meet the household's electricity demand for the next 2 hours.
[0054] It should be noted that the above values are for illustrative purposes only and do not constitute a limitation on the present invention.
[0055] Furthermore, the backup power adequacy ratio of the previous control cycle is obtained, and this value is stored in the historical data cache. The backup power adequacy ratio of the current control cycle is subtracted from the backup power adequacy ratio of the previous control cycle, and the difference is divided by the control cycle duration to obtain the backup power adequacy ratio change trend. The unit of the backup power adequacy ratio change trend is the reciprocal of the ratio per second or per minute, representing the rate of change of the backup power adequacy ratio over time. The backup power adequacy ratio change trend is a signed value; a positive value indicates that the backup power adequacy ratio is improving, a negative value indicates that the backup power adequacy ratio is deteriorating, and a larger absolute value indicates a faster rate of change.
[0056] For example, let's set the control cycle length to 5 seconds. The backup power adequacy ratio in the previous control cycle was 5.0, and the current control cycle's backup power adequacy ratio is 4.9. Subtracting the previous value of 5.0 from the current value of 4.9 yields a difference of -0.1. Dividing -0.1 by the control cycle length of 5 seconds gives a backup power adequacy ratio change trend of -0.02 / s, indicating that the backup power adequacy ratio is decreasing at a rate of 0.02 / s, and the adequacy of energy storage relative to load demand is gradually weakening. If the backup power adequacy ratio in the previous control cycle was 4.0, and the current control cycle's backup power adequacy ratio is 4.2, then the difference is +0.2. Dividing +0.2 by the control cycle length of 5 seconds gives a backup power adequacy ratio change trend of +0.04 / s, indicating that the backup power adequacy ratio is increasing at a rate of 0.04 / s, and the adequacy of energy storage relative to load demand is gradually increasing.
[0057] It should be noted that the above values are for illustrative purposes only and do not constitute a limitation on the present invention.
[0058] This invention provides a quantitative indicator for balanced control that combines static supply and demand assessment with dynamic trend prediction capabilities through dual calculations of backup power adequacy and its changing trend. On one hand, dividing the current total available energy of the battery pack by the predicted energy demand of household loads over a preset future period yields a ratio that intuitively expresses the multiple by which the current energy storage level can meet future load demands. A ratio greater than 1 indicates sufficient energy storage, while a ratio less than 1 indicates insufficient energy storage. This clear physical meaning provides direct data support for decisions on the degree of balanced control under different modes.
[0059] On the other hand, by calculating the difference between the reserve power adequacy of the current control cycle and the reserve power adequacy of the previous control cycle and dividing it by the control cycle duration, the rate of change of reserve power adequacy over time is obtained. The sign and magnitude of this rate of change directly reflect the future evolution of the power supply and demand situation. When the rate of change is positive, it indicates that energy storage is relatively abundant relative to load demand, and balancing operations can be appropriately strengthened; when the rate of change is negative, it indicates that energy storage is relatively strained relative to load demand, and balancing operations should be moderately weakened to avoid excessive consumption of reserve power. The combination of these two factors gives the balancing control feedforward adjustment capabilities, enabling adjustments to the balancing intensity in advance before changes in the power supply and demand situation occur, thereby maximizing the balancing effect while ensuring the reliability of household power supply.
[0060] S400: Based on the current working mode identifier, cell inconsistency, backup power adequacy and backup power adequacy trend, and combined with the current off-grid and grid-connected modes, analyze and obtain the equilibrium cost factor.
[0061] In the balancing control of residential energy storage systems, the determination of the balancing cost factor directly determines the magnitude of the balancing current and the intensity of the balancing operation, making it a core link connecting state perception and balancing execution. Current technologies mostly use a single rule to calculate the balancing cost factor, failing to differentiate based on the grid-connected or off-grid operation mode of the energy storage system. In grid-connected mode, the grid serves as a supplementary energy source, and the impact of balancing operations on power supply reliability is relatively small. In this case, the energy loss and economic benefits of balancing should be prioritized, but existing methods lack quantification tools for balancing costs under economic constraints. In off-grid mode, the energy storage system is the sole energy source for the household load, and the energy consumed by balancing operations directly reduces the available power for the load. In this case, ensuring power supply security should be prioritized, but existing methods lack security constraint assessments of backup power adequacy, potentially leading to excessive energy consumption during balancing control even when backup power is insufficient.
[0062] Furthermore, the determination of the balancing cost factor in existing technologies is usually static, failing to integrate multi-dimensional information such as cell inconsistency, backup power adequacy, and their changing trends, thus failing to achieve adaptive matching between balancing strength and system state. Therefore, how to construct a mapping rule that can adapt to different grid-connected and off-grid modes, integrating multi-dimensional state information such as cell inconsistency, backup power adequacy, and their changing trends into a unified balancing cost factor, enabling balancing control to balance economy and safety under different modes, has become a pressing technical problem to be solved.
[0063] In step S400 of the method provided in this embodiment of the invention, the pre-construction of the equilibrium cost analysis model includes: Acquire historical operating data, which includes cell inconsistency, backup power adequacy, backup power adequacy trend, current operating mode identifier, and cell inconsistency reduction value after balanced execution in the corresponding historical control cycle. Historical operational data is divided into grid-connected mode historical data and off-grid mode historical data according to the current working mode identifier; Based on historical data of grid connection mode, the grid connection mode mapping rule is constructed with the cell inconsistency, backup power adequacy and backup power adequacy trend as inputs and the cell inconsistency reduction value after equalization execution in the corresponding historical control cycle as the output reference. The grid connection mode mapping rule is a piecewise linear mapping with multiple inputs and a single output, which divides the cell inconsistency, backup power adequacy and backup power adequacy trend into multiple intervals. For each interval combination, calculate the arithmetic mean of the reduction values of cell inconsistency in all historical control cycles within that interval combination. Divide the arithmetic mean by the preset maximum inconsistency reduction reference value to obtain the output value of the equilibrium cost factor corresponding to the interval combination. When the backup power adequacy increases or the backup power adequacy trend is positive, the corresponding equilibrium cost factor output value increases. Based on historical data of off-grid mode, with cell inconsistency and off-grid correction margin as inputs, and the cell inconsistency reduction value after equalization execution within the corresponding historical control cycle as the output reference, an off-grid mode mapping rule is constructed. The off-grid mode mapping rule is a piecewise linear mapping with multiple inputs and a single output, which divides cell inconsistency and off-grid correction margin into multiple intervals respectively. Calculate the arithmetic mean of the cell inconsistency reduction values of all historical control cycles within the interval combination, divide the arithmetic mean by the preset maximum inconsistency reduction reference value, and use it as the output value of the equilibrium cost factor corresponding to the interval combination. When the off-grid correction adequacy is less than or equal to 0, the corresponding equilibrium cost factor output value is set to the minimum equilibrium cost factor value. When the off-grid correction adequacy is greater than 0, the corresponding equilibrium cost factor output value is positively correlated with the off-grid correction adequacy. The grid-connected mode mapping rules and the off-grid mode mapping rules are combined into an equilibrium cost analysis model.
[0064] In this embodiment of the invention, historical operating data is first obtained from the historical operating database. The historical operating data includes cell inconsistency, backup power adequacy, backup power adequacy trend, current operating mode identifier, and the reduction in cell inconsistency after equalization execution within the corresponding historical control cycle, all within multiple historical control cycles. The longer the historical operating data is accumulated, the higher the accuracy of the model mapping rules; typically, 90 to 180 days of operating data can be accumulated for model construction.
[0065] The calculation method for the reduction in cell inconsistency is as follows: The cell inconsistency recorded at the beginning of the historical control cycle is used as the initial inconsistency. The cell inconsistency recorded at the end of the cycle is then used as the final inconsistency. The difference between the initial and final inconsistencies is the reduction in cell inconsistency after balancing within that cycle. This value reflects the consistency improvement achieved by balancing under specific backup power adequacy and trend conditions within the historical control cycle, and is a direct quantitative indicator of the balancing benefits under these conditions.
[0066] Furthermore, the historical operating data is divided into two groups based on the current working mode: grid-connected mode historical data and off-grid mode historical data.
[0067] Specifically, based on historical data of grid-connected modes, a grid-connected mode mapping rule is constructed using cell inconsistency, backup power adequacy, and the trend of backup power adequacy as input variables, and the reduction in cell inconsistency after equalization execution within the corresponding historical control cycle as the output reference. This mapping rule is a piecewise linear mapping with multiple inputs and a single output. Specifically, the cell inconsistency, backup power adequacy, and the trend of backup power adequacy are divided into multiple intervals. The cell inconsistency intervals are divided as follows: the value range from 0 to 1 is divided into several intervals with intervals of 0.05 or 0.1, for example, 0 to 0.05, 0.05 to 0.10, 0.10 to 0.15, 0.15 to 0.20, and above 0.20, totaling 5 intervals. The backup power adequacy intervals are divided as follows: the value range from 0 to 10 is divided into several intervals with intervals of 0.5 or 1. The intervals for the change trend of backup power adequacy are divided into: negative value interval, zero value interval, and positive value interval, or further subdivided into negative value magnitude and positive value magnitude.
[0068] Furthermore, for each combination of cell inconsistency, backup power adequacy, and backup power adequacy trend, the cell inconsistency reduction value for all historical control cycles within that combination is found, and the arithmetic mean of these reduction values is calculated. This arithmetic mean is divided by a preset maximum inconsistency reduction reference value, and the quotient is used as the output value of the equilibrium cost factor corresponding to that combination. The maximum inconsistency reduction reference value can be set to 0.2 or 0.3, representing the maximum inconsistency reduction that can be achieved under optimal conditions. In this mapping rule, when backup power adequacy increases or the backup power adequacy trend is positive, the corresponding equilibrium cost factor output value increases, because ample energy storage and a positive trend mean lower economic costs for equilibrium operations, allowing for stronger equilibrium efforts.
[0069] For example, assuming that in grid-connected mode, the cell inconsistency is in the range of 0.10 to 0.15, the backup power adequacy is in the range of 3 to 4, and the backup power adequacy changes in a positive range, the average reduction value of cell inconsistency in all historical control cycles within this combination is 0.08, and the maximum inconsistency reduction reference value is set to 0.2. Then, 0.08 / 0.2=0.4, and the output value of the equilibrium cost factor corresponding to this range combination is 0.4.
[0070] It should be noted that the above values are for illustrative purposes only and do not constitute a limitation on the present invention.
[0071] Furthermore, based on historical data of off-grid mode, cell inconsistency and off-grid correction adequacy are used as input variables, and the reduction value of cell inconsistency after equalization execution within the corresponding historical control cycle is used as the output reference to construct off-grid mode mapping rules.
[0072] The off-grid correction margin is the difference between the backup power margin and the preset off-grid safety margin. The off-grid safety margin can be set according to the importance of the household load and the user's requirements for power supply reliability, and is typically set to a value between 1.2 and 1.5. In this embodiment, it is preferably set to 1.3. The mapping rule is also a piecewise linear mapping with multiple inputs and a single output, dividing the cell inconsistency and off-grid correction margin into multiple intervals. The interval division method for the off-grid correction margin is as follows: intervals less than or equal to 0 are treated as a single interval, and intervals greater than 0 are divided into several sub-intervals at intervals of 0.5 or 1.
[0073] For each interval combination in off-grid mode, the arithmetic mean of the reduction values of cell inconsistency over all historical control cycles within that combination is calculated. This average is then divided by a preset maximum inconsistency reduction reference value to obtain the corresponding balancing cost factor output value for that interval combination. That is, the balancing cost factor output value = the arithmetic mean of the reduction values of cell inconsistency over all historical control cycles / the preset maximum inconsistency reduction reference value. When the off-grid correction margin is less than or equal to 0, the corresponding balancing cost factor output value is set to the minimum balancing cost factor value. This minimum value can be set to 0, indicating that balancing operations are completely stopped when backup power is insufficient to meet safety margin requirements. When the off-grid correction margin is greater than 0, the balancing cost factor output value is positively correlated with the off-grid correction margin; that is, the larger the off-grid correction margin, the higher the balancing cost factor output value.
[0074] Combining the above-mentioned grid-connected mode mapping rules and off-grid mode mapping rules and storing them in memory constitutes a pre-built equilibrium cost analysis model.
[0075] Step S400 in the method provided in this embodiment of the invention, as follows: Figure 2 As shown, it includes: The current working mode identifier, cell inconsistency, backup power adequacy, and backup power adequacy trend are input into the pre-built equilibrium cost analysis model, and the equilibrium cost analysis model outputs the equilibrium cost factor. Among them, the equilibrium cost analysis model is a reasoning model based on rule mapping. When the current working mode is identified as the grid connection mode, the equilibrium cost factor is obtained by mapping under economic constraints based on the cell inconsistency degree and the backup power adequacy and the trend of backup power adequacy. When the current working mode is identified as the off-grid mode, the preset off-grid safety margin is obtained, and the preset off-grid safety margin is subtracted from the backup power adequacy margin to obtain the off-grid correction adequacy margin. When the off-grid correction margin is less than or equal to 0, the output equilibrium cost factor is the lowest equilibrium cost factor value. When the off-grid correction margin is greater than 0, the balance cost factor is obtained by mapping under safety constraints based on the cell inconsistency and the off-grid correction margin. The safety constraints include the off-grid correction margin being greater than 0, the reserve power margin changing trend being non-negative, and the highest cell temperature being lower than the preset balance safety temperature upper limit. When the reserve power margin changing trend is negative, the output balance cost factor is the lowest balance cost factor value.
[0076] In this embodiment of the invention, the current working mode identifier, cell inconsistency, backup power adequacy, and backup power adequacy trend obtained in the current control cycle are first input into a pre-constructed equilibrium cost analysis model, and the model outputs the corresponding equilibrium cost factor based on the input data.
[0077] Specifically, when the current operating mode is identified as the grid-connected mode, the equilibrium cost analysis model uses the grid-connected mode mapping rules for inference. The model searches for the corresponding combination of the three intervals—the interval containing the current cell inconsistency, the interval containing the current reserve power adequacy, and the interval containing the current reserve power adequacy trend—within the grid-connected mode mapping rules. Once a matching interval combination is found, the model directly outputs the pre-stored equilibrium cost factor value for that combination. This output value increases with the increase in reserve power adequacy and with a positive trend in reserve power adequacy, reflecting the principle that the more abundant the energy storage and the better the situation under the grid-connected mode, the greater the permissible economic cost and the stronger the equilibrium effect.
[0078] When the current operating mode is identified as off-grid mode, the balance cost analysis model first obtains the preset off-grid safety margin. The off-grid safety margin is read from the configuration parameters; this value can be set between 1.2 and 1.5, and is preferably set to 1.3 in this embodiment. The preset off-grid safety margin is subtracted from the current backup power adequacy to obtain the off-grid correction adequacy.
[0079] For example, if the current backup power margin is 2.0 and the off-grid safety margin is 1.3, then the off-grid correction margin = 2.0 - 1.3 = 0.7. If the current backup power margin is 1.0 and the off-grid safety margin is 1.3, then the off-grid correction margin = 1.0 - 1.3 = -0.3.
[0080] It should be noted that the above values are for illustrative purposes only and do not constitute a limitation on the present invention.
[0081] Furthermore, it is determined whether the off-grid correction margin is less than or equal to 0. When the off-grid correction margin is less than or equal to 0, the model directly outputs the minimum balancing cost factor value. The minimum balancing cost factor value can be set to 0, indicating that the backup power energy cannot even meet the safety margin, and the balancing operation will consume valuable energy storage in addition. At this time, balancing should be completely stopped, and all available energy should be reserved for household loads.
[0082] When the off-grid correction margin is greater than 0, the model uses the off-grid mode mapping rule for inference. The model searches for the corresponding combination of the current cell inconsistency interval and the current off-grid correction margin interval in the off-grid mode mapping rule. After finding a matching interval combination, the model outputs the pre-stored equilibrium cost factor value for that combination. During this inference process, the model simultaneously verifies whether the safety constraints are met. The safety constraints include three conditions: the off-grid correction margin is greater than 0, the backup power margin change trend is not negative, and the highest cell temperature value is lower than the preset equilibrium safety temperature upper limit. When the backup power margin change trend is negative, regardless of whether the off-grid correction margin is greater than 0, the model outputs the lowest equilibrium cost factor value to reflect the principle of prioritizing power supply and suspending equilibrium when the energy storage situation deteriorates.
[0083] For example, assuming the off-grid safety margin is 1.3 and the current backup power adequacy is 2.0, then the off-grid correction adequacy is 0.7. If the current backup power adequacy trend is positive and the highest cell temperature is below the upper limit of the equilibrium safety temperature, then all three safety constraints are satisfied. If the current cell inconsistency is in the range of 0.10 to 0.15 and the off-grid correction adequacy is in the range of 0.5 to 1.0, the equilibrium cost factor output value corresponding to this combination in the off-grid mode mapping rule is 0.35, then the model outputs 0.35. If the current backup power adequacy trend is negative, then regardless of other conditions, the model outputs the lowest equilibrium cost factor value of 0.
[0084] It should be noted that the above values are for illustrative purposes only and do not constitute a limitation on the present invention.
[0085] This invention constructs a rule-based equilibrium cost analysis model and establishes differentiated mapping rules for grid-connected and off-grid modes, achieving adaptive determination of the equilibrium cost factor. In grid-connected mode, based on cell inconsistency, economic constraints are mapped by combining backup power adequacy and its changing trend. When backup power adequacy is high and trending upwards, it indicates sufficient energy storage and grid replenishment; in this case, the equilibrium cost factor is increased to enhance the equilibrium effect. When backup power adequacy is low or trending downwards, the equilibrium cost factor is reduced to save energy, fully reflecting the principle of prioritizing economy during grid-connected operation. In off-grid mode, an off-grid safety margin is introduced to correct backup power adequacy. Equilibrium operation is only allowed when the corrected adequacy is greater than zero and the changing trend is non-negative; otherwise, the lowest equilibrium cost factor is directly output to stop equilibrium, fully ensuring power supply safety during off-grid operation.
[0086] Meanwhile, by using interval division and statistical averaging methods based on historical operating data, each input variable is divided into multiple intervals, and a corresponding output value is configured for each interval combination. This achieves the quantitative construction of mapping rules, ensuring that the determination of the balancing cost factor has clear data basis and reproducibility. The combination of these two methods enables the balancing cost factor to dynamically and adaptively adjust according to the operating mode and state, achieving an economic balance between balancing effect and energy loss in grid-connected mode, and ensuring the safety coordination between balancing operation and power supply guarantee in off-grid mode.
[0087] S500: Based on the balancing cost factor and the temperature value of each cell, determine the balancing current limit within the current control cycle and output the balancing control command.
[0088] In the equalization control of home energy storage systems, after determining the equalization cost factor, this abstract cost indicator needs to be transformed into an executable equalization current limit. This transformation process directly determines the final execution strength of the equalization operation. In existing technologies, the equalization current is mostly determined by using a fixed value or simply by classifying differences in state of charge, without incorporating the comprehensive indicator of the equalization cost factor into the quantitative calculation of the current limit. This results in the equalization current being unable to adaptively adjust with changes in the system's operating state. During the equalization operation, the battery cells generate additional heat. Continuing high-current equalization when the cell temperature is too high will accelerate cell aging and may even lead to safety hazards such as thermal runaway. Existing methods often consider temperature factors with simple on / off protection, meaning that equalization stops directly when the temperature exceeds a certain threshold, lacking a smooth transition mechanism and easily causing the equalization current to jump drastically near the threshold.
[0089] Furthermore, the current technology lacks a unified quantitative calculation formula for determining the final equilibrium current limit, and the various influencing factors lack clear mathematical relationships, making the control logic unclear and difficult to reproduce. Therefore, how to organically integrate the equilibrium cost factor with the temperature protection mechanism, and determine the equilibrium current limit that can both reflect the system state and ensure temperature safety through explicit mathematical calculations, has become an urgent technical problem to be solved.
[0090] Step S500 in the method provided in this embodiment of the invention includes: Obtain the equilibrium cost factor within the current control cycle; The highest value among all cell temperature values is selected as the highest cell temperature value. Obtain the preset upper limit of the balanced safety temperature and the preset lower limit of the balanced safety temperature, and calculate the temperature derating factor based on the highest cell temperature value; Obtain the preset maximum equalization current reference value, multiply the maximum equalization current reference value by the equalization cost factor, and then multiply by the temperature derating factor. The product is used as the equalization current limit in the current control cycle. The equalization current limit is output to the active equalization circuit. The equalization current limit is the maximum equalization current value that the active equalization circuit is allowed to pass through in the current control cycle.
[0091] In this embodiment of the invention, the equilibrium cost factor within the current control cycle is first obtained from the output of the equilibrium cost analysis model. This equilibrium cost factor is a dimensionless numerical value, typically ranging from 0 to 1, reflecting the comprehensive demand for equilibrium operation under the current state after comprehensively considering the operating mode, cell inconsistency, backup power adequacy, and their changing trends.
[0092] Simultaneously, the temperature values of each cell are read from the BMS registers, and the temperature data of all cells are iterated through to select the maximum value as the highest cell temperature. This highest cell temperature represents the worst thermal state of the battery pack and is the main basis for determining the temperature derating factor.
[0093] Furthermore, the system obtains a preset upper limit and a preset lower limit for the equalization safety temperature. These two temperature values are fixed values pre-stored in the system configuration parameters. The lower limit for the equalization safety temperature can be set to any value between 35 degrees Celsius and 40 degrees Celsius, and is preferably set to 38 degrees Celsius in this embodiment. This temperature value indicates that below this temperature, the thermal state of the battery cell does not pose any restriction on the equalization operation, and the equalization current can be output in full as needed. The upper limit for the equalization safety temperature can be set to any value between 45 degrees Celsius and 50 degrees Celsius, and is preferably set to 48 degrees Celsius in this embodiment. This temperature value indicates that above this temperature, the thermal state of the battery cell has reached a dangerous level, and the equalization operation must be stopped immediately to ensure safety.
[0094] Furthermore, the preset upper limit of the balanced safety temperature and the preset lower limit of the balanced safety temperature are obtained, and the temperature derating factor is calculated based on the highest cell temperature, including: When the highest cell temperature is less than or equal to the lower limit of the balanced safe temperature, the temperature derating factor is 1; when the highest cell temperature is greater than or equal to the upper limit of the balanced safe temperature, the temperature derating factor is 0; when the highest cell temperature is greater than the lower limit of the balanced safe temperature but less than the upper limit of the balanced safe temperature, the difference between the upper limit of the balanced safe temperature and the highest cell temperature is calculated to obtain the first temperature difference, and the difference between the upper limit of the balanced safe temperature and the lower limit of the balanced safe temperature is calculated as the second temperature difference. Divide the first temperature difference by the second temperature difference to obtain the temperature derating factor.
[0095] Specifically, when the highest cell temperature is less than or equal to the lower limit of the equalization safety temperature, the temperature derating factor is 1. For example, if the lower limit of the equalization safety temperature is 38 degrees Celsius, and the current highest cell temperature is 36 degrees Celsius, then this temperature is less than 38 degrees Celsius, and the temperature derating factor is 1, indicating that the temperature has virtually no impact on the output of the equalization current.
[0096] When the highest cell temperature is greater than or equal to the upper limit of the equalization safety temperature, the temperature derating factor is 0. For example, if the upper limit of the equalization safety temperature is 48 degrees Celsius, and the current highest cell temperature is 50 degrees Celsius, then this temperature is greater than 48 degrees Celsius, the temperature derating factor is 0, and it means that the equalization current must be completely turned off.
[0097] When the highest cell temperature is greater than the lower limit of the balanced safe temperature but less than the upper limit of the balanced safe temperature, the temperature derating factor is calculated using linear interpolation. First, the difference between the upper limit of the balanced safe temperature and the highest cell temperature is calculated to obtain the first temperature difference. Then, the difference between the upper limit of the balanced safe temperature and the lower limit of the balanced safe temperature is calculated to obtain the second temperature difference. Finally, the first temperature difference is divided by the second temperature difference, and the quotient is the temperature derating factor.
[0098] For example, suppose the lower limit of the balanced safe temperature is 38 degrees Celsius, and the upper limit is 48 degrees Celsius. If the current highest cell temperature is 42 degrees Celsius, this temperature is greater than 38 degrees Celsius but less than 48 degrees Celsius. The first temperature difference is 48 - 42 = 6 degrees Celsius, and the second temperature difference is 48 - 38 = 10 degrees Celsius. The temperature derating factor is 6 / 10 = 0.6. If the current highest cell temperature is 45 degrees Celsius, then the first temperature difference is 48 - 45 = 3 degrees Celsius, and the temperature derating factor is 3 / 10 = 0.3. It can be seen that as the temperature rises from 38 degrees Celsius to 48 degrees Celsius, the temperature derating factor decreases linearly from 1 to 0, achieving smooth thermal management of the balanced current.
[0099] It should be noted that the above values are for illustrative purposes only and do not constitute a limitation on the present invention.
[0100] Further, a preset maximum balancing current reference value is obtained. This maximum balancing current reference value is determined by the hardware design parameters of the active balancing circuit, and specifically, it is the maximum continuous operating current value allowed by the active balancing circuit. This value range is mainly based on the common specifications of mainstream active balancing chips and mature products on the market. Under different hardware design schemes, this value can be set to 1 amp, 2 amp, or 5 amps. In this embodiment of the invention, it is assumed that the maximum continuous operating current of the active balancing circuit is 2 amps, so the maximum balancing current reference value is set to 2 amps.
[0101] Furthermore, the maximum equilibrium current reference value is multiplied by the equilibrium cost factor, and then by the temperature derating factor. The resulting product is the equilibrium current limit for the current control cycle.
[0102] For example, suppose the maximum balancing current reference value is 2 amps, the current balancing cost factor is 0.4, the current highest cell temperature is 42 degrees Celsius, and the corresponding temperature derating factor is 0.6. Then the balancing current limit = 2 × 0.4 × 0.6 = 0.48 amps. If the current highest cell temperature is 35 degrees Celsius, the temperature derating factor is 1, and the balancing cost factor is 0.5, then the balancing current limit = 2 × 0.5 × 1 = 1 amp, and temperature does not impose any limitation on balancing. If the current highest cell temperature is 50 degrees Celsius, and the temperature derating factor is 0, then regardless of the value of the balancing cost factor, the balancing current limit = 2 × any value × 0 = 0 amps, and the balancing operation is completely stopped.
[0103] It should be noted that the above values are for illustrative purposes only and do not constitute a limitation on the present invention.
[0104] Finally, the calculated equalization current limit is output to the active equalization circuit. This equalization current limit is the maximum equalization current allowed by the active equalization circuit within the current control cycle. The active equalization circuit typically employs a switching converter topology, adjusting the equalization current by controlling the duty cycle of the power switching transistors using a pulse-width modulation (PWM) signal. Upon receiving the equalization current limit, the active equalization circuit adjusts the PWM duty cycle within the current control cycle to ensure the actual equalization current does not exceed this limit. If the equalization current limit is 0 amperes, the active equalization circuit sets the PWM duty cycle to 0 within the current control cycle, completely stopping the equalization operation. After each control cycle, the above steps are repeated to update the equalization current limit, achieving dynamic adaptive adjustment of the equalization intensity.
[0105] In summary, the embodiments of the present invention have at least the following technical effects: This invention combines multi-source data acquisition with a future load prediction model based on a long short-term memory network to provide a precise data foundation for balancing control, encompassing cell status, operating mode, and future load demand. Building upon this, by normalizing the cell state-of-charge range into an inconsistency index and combining it with dual quantitative assessments of backup power adequacy and its changing trends, the balancing control acquires both static supply and demand judgment and dynamic trend perception capabilities. Furthermore, differentiated mapping rules are established for grid-connected and off-grid modes respectively. In grid-connected mode, economic efficiency is prioritized, while in off-grid mode, safety is prioritized for adaptive reasoning of the balancing cost factor. Finally, the balancing current limit is determined by multiplying the balancing cost factor by a temperature derating coefficient, where a three-stage linear transition mechanism is used for temperature derating to achieve smooth thermal management of the balancing current. The entire scheme works in synergy, enabling the balancing control system to dynamically adjust the balancing intensity based on the actual battery status and future power demand. This avoids energy loss caused by over-balancing in grid-connected mode and prevents insufficient backup power due to over-balancing in off-grid mode, significantly improving the power supply reliability, energy utilization efficiency, and balancing safety of home energy storage in dual-mode operation.
[0106] In summary, this invention solves the technical problem that home energy storage is unable to dynamically coordinate balance control and power supply guarantee under both grid-connected and off-grid dual-mode operation, and is unable to adaptively adjust the balance intensity according to future load demand.
[0107] Example 2, as Figure 3 As shown, based on the same inventive concept as the off-grid and grid-connected dual-mode adaptive balancing control method for residential energy storage provided in Embodiment 1, this embodiment of the invention also provides an off-grid and grid-connected dual-mode residential energy storage adaptive balancing control system, including: Data acquisition module 11 is used to acquire the state of charge value of each cell of the household energy storage, the temperature value of each cell, the current working mode identifier, the total available energy of the current battery pack, the predicted value of household load energy demand in the future preset period, and the rated capacity of the battery pack. The cell inconsistency calculation module 12 is used to calculate the cell inconsistency based on the maximum and minimum values of the state of charge values of each cell. The backup power adequacy calculation module 13 is used to calculate the backup power adequacy based on the current total available energy of the battery pack and the predicted energy demand of household load in the future preset period, and to calculate the trend of backup power adequacy changes based on the backup power adequacy of the current control cycle and the backup power adequacy of the previous control cycle. The equilibrium cost factor analysis module 14 is used to analyze and obtain equilibrium cost factors based on the current working mode identifier, cell inconsistency, backup power adequacy and backup power adequacy trend, and in combination with the current off-grid and grid-connected modes. The equalization current limit determination module 15 is used to determine the equalization current limit in the current control cycle based on the equalization cost factor and the temperature value of each cell, and output the equalization control command.
[0108] In one embodiment, the data acquisition module 11 is specifically used for: Collect the state of charge (SOC) value of each cell in the home energy storage system to obtain the SOC value of each cell. The SOC value is the percentage of the cell's remaining charge relative to its rated capacity. Collect the temperature value of each battery cell and integrate the temperature values of all battery cells; Read the current operating mode identifier, which includes either the grid-connected mode identifier or the off-grid mode identifier; Read the current total available energy of the battery pack and the rated capacity of the battery pack. The current total available energy of the battery pack is the sum of the energy that all cells of the home energy storage can release at the current moment. By using a pre-built future load demand forecasting model, the predicted values of household load energy demand for a preset period of time are obtained.
[0109] Pre-construction of future load demand forecasting models, including: Obtain the historical load power sequence of household energy storage. The historical load power sequence is a sequence formed by arranging household load power values recorded at fixed time intervals within a preset number of days in chronological order. Obtain time feature data corresponding to the historical load power sequence. The time feature data includes time identifier, date type identifier and month identifier. The date type identifier includes weekdays and holidays. The training sample set is composed of historical load power sequence and time feature data. The load power value and corresponding time feature data within a preset window length before each historical moment are used as input features. The actual value of household load energy demand within a preset future period after the historical moment is used as output label. The actual value of household load energy demand is the cumulative value of load power value over time within the preset future period. A future load demand forecasting model is constructed. The future load demand forecasting model is a regression model based on a long short-term memory network structure. The future load demand forecasting model takes load power value sequence and time characteristic data as input and household load energy demand forecast as output. The training objective is to minimize the mean square error between the predicted household load energy demand output by the future load demand forecasting model and the output label. The parameters of the future load demand forecasting model are iteratively updated until the mean square error converges, thus obtaining the pre-constructed future load demand forecasting model.
[0110] In one embodiment, the cell inconsistency calculation module 12 is specifically used for: The maximum value among the state of charge values of each cell is selected as the maximum state of charge value of the cell, and the minimum value among the state of charge values of each cell is selected as the minimum state of charge value of the cell. The difference between the maximum cell state of charge value and the minimum cell state of charge value is taken as the cell state of charge range. Dividing the cell state of charge range by the preset cell state of charge reference value yields the cell inconsistency, where the preset cell state of charge reference value is the cell state of charge reference value corresponding to the cell's fully charged state.
[0111] In one embodiment, the backup power adequacy calculation module 13 is specifically used for: Divide the current total available energy of the battery pack by the predicted energy demand of the household load in the future preset period to obtain the backup power adequacy for the current control cycle; Obtain the backup power adequacy of the previous control cycle, subtract the backup power adequacy of the previous control cycle from the backup power adequacy of the current control cycle, divide the difference by the control cycle duration, and obtain the trend of backup power adequacy change.
[0112] In one embodiment, the equilibrium cost factor analysis module 14 is specifically used for: The current working mode identifier, cell inconsistency, backup power adequacy, and backup power adequacy trend are input into the pre-built equilibrium cost analysis model, and the equilibrium cost analysis model outputs the equilibrium cost factor. Among them, the equilibrium cost analysis model is a reasoning model based on rule mapping. When the current working mode is identified as the grid connection mode, the equilibrium cost factor is obtained by mapping under economic constraints based on the cell inconsistency degree and the backup power adequacy and the trend of backup power adequacy. When the current working mode is identified as the off-grid mode, the preset off-grid safety margin is obtained, and the preset off-grid safety margin is subtracted from the backup power adequacy margin to obtain the off-grid correction adequacy margin. When the off-grid correction margin is less than or equal to 0, the output equilibrium cost factor is the lowest equilibrium cost factor value. When the off-grid correction margin is greater than 0, the balance cost factor is obtained by mapping under safety constraints based on the cell inconsistency and the off-grid correction margin. The safety constraints include the off-grid correction margin being greater than 0, the reserve power margin changing trend being non-negative, and the highest cell temperature being lower than the preset balance safety temperature upper limit. When the reserve power margin changing trend is negative, the output balance cost factor is the lowest balance cost factor value.
[0113] The pre-construction of the equilibrium cost analysis model includes: Acquire historical operating data, which includes cell inconsistency, backup power adequacy, backup power adequacy trend, current operating mode identifier, and cell inconsistency reduction value after balanced execution in the corresponding historical control cycle. Historical operational data is divided into grid-connected mode historical data and off-grid mode historical data according to the current working mode identifier; Based on historical data of grid connection mode, the grid connection mode mapping rule is constructed with the cell inconsistency, backup power adequacy and backup power adequacy trend as inputs and the cell inconsistency reduction value after equalization execution in the corresponding historical control cycle as the output reference. The grid connection mode mapping rule is a piecewise linear mapping with multiple inputs and a single output, which divides the cell inconsistency, backup power adequacy and backup power adequacy trend into multiple intervals. For each interval combination, calculate the arithmetic mean of the reduction values of cell inconsistency in all historical control cycles within that interval combination. Divide the arithmetic mean by the preset maximum inconsistency reduction reference value to obtain the output value of the equilibrium cost factor corresponding to the interval combination. When the backup power adequacy increases or the backup power adequacy trend is positive, the corresponding equilibrium cost factor output value increases. Based on historical data of off-grid mode, with cell inconsistency and off-grid correction margin as inputs, and the cell inconsistency reduction value after equalization execution within the corresponding historical control cycle as the output reference, an off-grid mode mapping rule is constructed. The off-grid mode mapping rule is a piecewise linear mapping with multiple inputs and a single output, which divides cell inconsistency and off-grid correction margin into multiple intervals respectively. Calculate the arithmetic mean of the cell inconsistency reduction values of all historical control cycles within the interval combination, divide the arithmetic mean by the preset maximum inconsistency reduction reference value, and use it as the output value of the equilibrium cost factor corresponding to the interval combination. When the off-grid correction adequacy is less than or equal to 0, the corresponding equilibrium cost factor output value is set to the minimum equilibrium cost factor value. When the off-grid correction adequacy is greater than 0, the corresponding equilibrium cost factor output value is positively correlated with the off-grid correction adequacy. The grid-connected mode mapping rules and the off-grid mode mapping rules are combined into an equilibrium cost analysis model.
[0114] In one embodiment, the equalization current limit determination module 15 is specifically used for: Obtain the equilibrium cost factor within the current control cycle; The highest value among all cell temperature values is selected as the highest cell temperature value. Obtain the preset upper limit of the balanced safety temperature and the preset lower limit of the balanced safety temperature, and calculate the temperature derating factor based on the highest cell temperature value; Obtain the preset maximum equalization current reference value, multiply the maximum equalization current reference value by the equalization cost factor, and then multiply by the temperature derating factor. The product is used as the equalization current limit in the current control cycle. The equalization current limit is output to the active equalization circuit. The equalization current limit is the maximum equalization current value that the active equalization circuit is allowed to pass through in the current control cycle.
[0115] Obtain the preset upper limit and lower limit of the balanced safety temperature, and calculate the temperature derating factor based on the highest cell temperature, including: When the highest cell temperature is less than or equal to the lower limit of the balanced safe temperature, the temperature derating factor is 1; when the highest cell temperature is greater than or equal to the upper limit of the balanced safe temperature, the temperature derating factor is 0; when the highest cell temperature is greater than the lower limit of the balanced safe temperature but less than the upper limit of the balanced safe temperature, the difference between the upper limit of the balanced safe temperature and the highest cell temperature is calculated to obtain the first temperature difference, and the difference between the upper limit of the balanced safe temperature and the lower limit of the balanced safe temperature is calculated as the second temperature difference. Divide the first temperature difference by the second temperature difference to obtain the temperature derating factor.
[0116] It should be noted that the order of the above embodiments of the present invention is merely for descriptive purposes and does not represent the superiority or inferiority of the embodiments. Furthermore, the above description focuses on specific embodiments of this specification. Additionally, the processes depicted in the accompanying drawings do not necessarily require a specific or sequential order to achieve the desired results. In some embodiments, multitasking and parallel processing are possible or may be advantageous.
[0117] The above are merely preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
[0118] This specification and accompanying drawings are merely illustrative examples of the invention and are intended to cover any and all modifications, variations, combinations, or equivalents within the scope of the invention. Clearly, those skilled in the art can make various alterations and modifications to the invention without departing from its scope. Therefore, if such modifications and modifications fall within the scope of the invention and its equivalents, the invention is intended to include these modifications and modifications.
Claims
1. A dual-mode adaptive balancing control method for residential energy storage, characterized in that, include: Obtain the state of charge value of each cell in the home energy storage, the temperature value of each cell, the current working mode indicator, the total available energy of the current battery pack, the predicted value of the home load energy demand in the future preset period, and the rated capacity of the battery pack; The cell inconsistency is calculated based on the maximum and minimum values of the state of charge of each cell. Based on the current total available energy of the battery pack and the predicted energy demand of household load in the future preset period, the backup power adequacy is calculated, and the trend of backup power adequacy is calculated based on the backup power adequacy of the current control cycle and the backup power adequacy of the previous control cycle. Based on the current working mode identifier, the cell inconsistency, the backup power adequacy and the trend of the backup power adequacy, and in combination with the current off-grid and grid-connected modes, the equilibrium cost factor is analyzed and obtained. Based on the equalization cost factor and the temperature value of each cell, the equalization current limit for the current control cycle is determined, and an equalization control command is output.
2. The adaptive balancing control method for dual-mode (off-grid and grid-connected) residential energy storage according to claim 1, characterized in that, The acquisition of the state of charge (SOC) values of each cell in the home energy storage system, the temperature values of each cell, the current operating mode indicator, the current total available energy of the battery pack, the predicted energy demand of the home load over a preset period, and the rated capacity of the battery pack includes: The state of charge (SOC) value of each cell in the home energy storage is collected to obtain the SOC value of each cell. The SOC value is the percentage of the cell's remaining charge relative to its rated capacity. Collect the temperature value of each battery cell and integrate the temperature values of all battery cells. Read the current operating mode identifier, which includes either the grid-connected mode identifier or the off-grid mode identifier; Read the current total available energy of the battery pack and the rated capacity of the battery pack, wherein the current total available energy of the battery pack is the sum of the energy that all cells of the home energy storage can release at the current moment; The predicted energy demand of households for the future preset period is obtained by using a pre-built future load demand prediction model.
3. The adaptive balancing control method for dual-mode (off-grid and grid-connected) residential energy storage according to claim 2, characterized in that, The pre-construction of the future load demand forecasting model includes: Obtain the historical load power sequence of the household energy storage, which is a sequence formed by arranging household load power values recorded at fixed time intervals within a preset number of days in chronological order. Obtain time feature data corresponding to the historical load power sequence. The time feature data includes a time identifier, a date type identifier, and a month identifier, wherein the date type identifier includes weekdays and holidays. The historical load power sequence and the time feature data constitute a training sample set, wherein the load power value and the corresponding time feature data within a preset window length before each historical moment are used as input features, and the actual value of household load energy demand within a preset future period after the historical moment are used as output labels, wherein the actual value of household load energy demand is the cumulative value of load power value over time within the preset future period. A future load demand forecasting model is constructed. The future load demand forecasting model is a regression model based on a long short-term memory network structure. The future load demand forecasting model takes load power value sequence and time characteristic data as input and household load energy demand forecast as output. With the goal of minimizing the mean square error between the predicted household load energy demand output by the future load demand prediction model and the output label, the parameters of the future load demand prediction model are iteratively updated until the mean square error converges, thus obtaining the pre-constructed future load demand prediction model.
4. The adaptive balancing control method for dual-mode (off-grid and grid-connected) residential energy storage according to claim 1, characterized in that, The step of calculating the cell inconsistency based on the maximum and minimum values of the state of charge values of each cell includes: The maximum value is selected from the state of charge values of each cell as the maximum state of charge value, and the minimum value is selected from the state of charge values of each cell as the minimum state of charge value. The difference between the maximum cell state of charge value and the minimum cell state of charge value is taken as the cell state of charge range. The cell inconsistency is obtained by dividing the cell state of charge range by a preset cell state of charge reference value, wherein the preset cell state of charge reference value is the cell state of charge reference value corresponding to the cell's fully charged state.
5. The adaptive balancing control method for dual-mode (off-grid and grid-connected) residential energy storage according to claim 1, characterized in that, The calculation of backup power adequacy based on the current total available energy of the battery pack and the predicted energy demand of household loads for a preset future period, and the calculation of the backup power adequacy trend based on the backup power adequacy of the current control cycle and the backup power adequacy of the previous control cycle, includes: Divide the total available energy of the current battery pack by the predicted energy demand of the household load in the future preset period to obtain the backup power adequacy of the current control cycle; Obtain the backup power adequacy of the previous control cycle, subtract the backup power adequacy of the previous control cycle from the backup power adequacy of the current control cycle, divide the difference by the control cycle duration, and obtain the trend of the backup power adequacy change.
6. The adaptive balancing control method for dual-mode (off-grid and grid-connected) residential energy storage according to claim 1, characterized in that, The step of analyzing and obtaining the balancing cost factor based on the current operating mode identifier, the cell inconsistency, the backup power adequacy, and the trend of the backup power adequacy, combined with the current off-grid and grid-connected mode, includes: The current working mode identifier, the cell inconsistency, the backup power adequacy, and the trend of the backup power adequacy are input into a pre-built equilibrium cost analysis model, and the equilibrium cost analysis model outputs the equilibrium cost factor. The equilibrium cost analysis model is a rule-based mapping inference model. When the current working mode is identified as the grid connection mode, the equilibrium cost factor is obtained by mapping under economic constraints based on the cell inconsistency, combined with the backup power adequacy and the trend of the backup power adequacy. When the current working mode is identified as the off-grid mode, a preset off-grid safety margin is obtained, and the preset off-grid safety margin is subtracted from the backup power margin to obtain the off-grid correction margin. When the off-grid correction margin is less than or equal to 0, the output equilibrium cost factor is the lowest equilibrium cost factor value. When the off-grid correction margin is greater than 0, the balance cost factor is obtained by mapping under safety constraints based on the cell inconsistency and the off-grid correction margin. The safety constraints include the off-grid correction margin being greater than 0, the backup power margin changing trend being non-negative, and the highest cell temperature being lower than the preset balance safety temperature upper limit. When the backup power margin changing trend is negative, the output balance cost factor is the lowest balance cost factor value.
7. The adaptive balancing control method for dual-mode (off-grid and grid-connected) residential energy storage according to claim 6, characterized in that, The pre-construction of the equilibrium cost analysis model includes: Acquire historical operating data, which includes cell inconsistency, backup power adequacy, backup power adequacy trend, current operating mode identifier, and cell inconsistency reduction value after balanced execution in the corresponding historical control cycle within multiple historical control cycles. The historical operating data is divided into grid-connected mode historical data and off-grid mode historical data according to the current working mode identifier; Based on the historical data of the grid connection mode, the grid connection mode mapping rule is constructed with the cell inconsistency, backup power adequacy, and backup power adequacy trend as inputs and the cell inconsistency reduction value after equalization execution within the corresponding historical control cycle as the output reference. The grid connection mode mapping rule is a piecewise linear mapping with multiple inputs and a single output, which divides the cell inconsistency, backup power adequacy, and backup power adequacy trend into multiple intervals. For each interval combination, calculate the arithmetic mean of the reduction values of cell inconsistency in all historical control cycles within the interval combination, divide the arithmetic mean by the preset maximum inconsistency reduction reference value, and use it as the output value of the equilibrium cost factor corresponding to the interval combination. When the backup power adequacy increases or the backup power adequacy trend is positive, the corresponding equilibrium cost factor output value increases. Based on the historical data of the off-grid mode, with cell inconsistency and off-grid correction adequacy as inputs, and with the cell inconsistency reduction value after equalization execution within the corresponding historical control cycle as the output reference, an off-grid mode mapping rule is constructed. The off-grid mode mapping rule is a piecewise linear mapping with multiple inputs and a single output, which divides cell inconsistency and off-grid correction adequacy into multiple intervals respectively. Calculate the arithmetic mean of the cell inconsistency reduction values of all historical control cycles within the interval combination, divide the arithmetic mean by the preset maximum inconsistency reduction reference value, and use it as the balance cost factor output value corresponding to the interval combination. When the off-grid correction adequacy is less than or equal to 0, the corresponding balance cost factor output value is set to the minimum balance cost factor value. When the off-grid correction adequacy is greater than 0, the corresponding balance cost factor output value is positively correlated with the off-grid correction adequacy. The grid-connected mode mapping rule and the off-grid mode mapping rule are combined to form the equilibrium cost analysis model.
8. The adaptive balancing control method for dual-mode (off-grid and grid-connected) residential energy storage according to claim 1, characterized in that, The step of determining the balancing current limit for the current control cycle based on the balancing cost factor and the temperature values of each cell, and outputting the balancing control command, includes: Obtain the equilibrium cost factor within the current control cycle; The highest value among the cell temperature values is selected as the highest cell temperature value. Obtain the preset upper limit of the balanced safe temperature and the preset lower limit of the balanced safe temperature, and calculate the temperature derating factor based on the highest cell temperature value; Obtain the preset maximum equalization current reference value, multiply the maximum equalization current reference value by the equalization cost factor, and then multiply it by the temperature derating coefficient. The resulting product is used as the equalization current limit value in the current control cycle. The equalization current limit is output to the active equalization circuit, whereby the equalization current limit is the maximum equalization current value that the active equalization circuit is allowed to pass through in the current control cycle.
9. The adaptive balancing control method for dual-mode (off-grid and grid-connected) residential energy storage according to claim 8, characterized in that, The process of obtaining the preset upper limit of the balanced safety temperature and the preset lower limit of the balanced safety temperature, and calculating the temperature derating factor based on the highest cell temperature value, includes: When the highest cell temperature is less than or equal to the lower limit of the balanced safety temperature, the temperature derating factor is 1; when the highest cell temperature is greater than or equal to the upper limit of the balanced safety temperature, the temperature derating factor is 0; when the highest cell temperature is greater than the lower limit of the balanced safety temperature but less than the upper limit of the balanced safety temperature, the difference between the upper limit of the balanced safety temperature and the highest cell temperature is calculated to obtain the first temperature difference, and the difference between the upper limit of the balanced safety temperature and the lower limit of the balanced safety temperature is calculated as the second temperature difference. Divide the first temperature difference by the second temperature difference to obtain the temperature derating factor.
10. A dual-mode (off-grid and grid-connected) residential energy storage adaptive balancing control system, characterized in that: The method for implementing the dual-mode adaptive balancing control of off-grid and on-grid residential energy storage as described in any one of claims 1 to 9 includes: The data acquisition module is used to acquire the state of charge value of each cell in the home energy storage, the temperature value of each cell, the current working mode identifier, the total available energy of the current battery pack, the predicted value of the home load energy demand in the future preset period, and the rated capacity of the battery pack. The cell inconsistency calculation module is used to calculate the cell inconsistency based on the maximum and minimum values of the state of charge values of each cell. The backup power adequacy calculation module is used to calculate the backup power adequacy based on the current total available energy of the battery pack and the predicted energy demand of the household load in the future preset period, and to calculate the trend of backup power adequacy changes based on the backup power adequacy of the current control cycle and the backup power adequacy of the previous control cycle. The equilibrium cost factor analysis module is used to analyze and obtain equilibrium cost factors based on the current working mode identifier, the cell inconsistency, the backup power adequacy and the trend of the backup power adequacy, and in combination with the current off-grid and grid-connected mode. The equalization current limit determination module is used to determine the equalization current limit within the current control cycle based on the equalization cost factor and the temperature value of each cell, and output the equalization control command.
