A method, apparatus, equipment, and medium for output control of a photovoltaic-storage hybrid inverter.

By collecting battery parameters and identifying internal resistance inflection points in real time, and combining SOC and mains power status, a power supply strategy is formulated, which solves the output oscillation problem caused by SOC switching in the photovoltaic-storage hybrid inverter, and achieves stable power supply and extended battery life.

CN122553304BActive Publication Date: 2026-11-10LEI ZERO TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202610673179.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2026-05-15
Publication Date
2026-11-10
Estimated Expiration
2046-05-15

AI Technical Summary

Technical Problem

In a photovoltaic-storage hybrid inverter, when switching between mains power and battery state of charge, the transformer output oscillates due to load power fluctuations and a fixed SOC switching threshold, which shortens the equipment lifespan.

Method used

By collecting battery parameters in real time, dynamically calculating the current AC internal resistance of the battery, identifying the internal resistance inflection point, and combining real-time SOC and mains power on/off status, a power supply strategy is formulated to avoid traditional single fixed SOC threshold switching. The internal resistance inflection point value is used as the switching criterion to select actions such as direct switching, derating power supply, or delayed switching to prevent drastic fluctuations in output voltage.

Benefits of technology

It significantly reduces the back-and-forth oscillation between mains power and battery mode, prevents drastic fluctuations in output voltage, ensures uninterrupted power supply to critical loads, extends battery life, and improves operational stability and reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122553304B_ABST
    Figure CN122553304B_ABST
Patent Text Reader

Abstract

This invention discloses an output control method, apparatus, device, and storage medium for a photovoltaic-storage hybrid inverter. The method includes: acquiring real-time battery parameters of the energy storage battery; identifying the internal resistance state of the energy storage battery based on the real-time battery parameters; if the energy storage battery exhibits an internal resistance inflection point, determining the corresponding internal resistance inflection point value and identifying the on / off state of the mains power; determining the power supply strategy of the photovoltaic-storage hybrid inverter based on the internal resistance inflection point value, the real-time SOC of the energy storage battery, and the real-time AC internal resistance, according to the mains power on / off state; and supplying power to the load devices based on the power supply strategy. This achieves adaptive selection of direct switching, derating power supply, or delayed switching, significantly reducing the back-and-forth oscillation between mains power and battery modes, preventing drastic fluctuations in output voltage, and ensuring uninterrupted power supply to critical loads.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of inverter technology, and in particular to an output control method, apparatus, equipment, and storage medium for a photovoltaic-storage hybrid inverter. Background Technology

[0002] In the application of photovoltaic-storage hybrid energy storage inverters, when switching between mains power and battery state of charge (SOC), transformer output oscillations are prone to occur due to load power fluctuations and a fixed SOC switching threshold. For example, if the battery SOC is near the switching threshold at the moment of mains power restoration, the system may frequently switch between mains power supply and battery discharge mode, resulting in drastic fluctuations in output voltage and a significant reduction in equipment lifespan. Summary of the Invention

[0003] This invention provides an output control method, device, equipment, and storage medium for a photovoltaic-storage hybrid inverter to solve the technical problem of power supply switching oscillation caused by a fixed SOC threshold.

[0004] In a first aspect, the present invention provides an output control method for a photovoltaic-storage hybrid inverter, wherein the DC side of the photovoltaic-storage hybrid inverter is connected to a photovoltaic array and an energy storage battery, and the AC side is connected to mains power and load equipment, the method comprising: Obtain the real-time battery parameters of the energy storage battery; Based on the real-time battery parameters, the internal resistance state of the energy storage battery is identified; If the energy storage battery has an internal resistance inflection point, then the internal resistance inflection point value corresponding to the internal resistance inflection point is determined, and the on / off state of the mains power is identified. Based on the on / off state of the mains power, and using the internal resistance inflection point value, the real-time SOC of the energy storage battery, and the real-time AC internal resistance, the power supply strategy of the photovoltaic-storage hybrid inverter is determined. Based on the power supply strategy, power is supplied to the load device.

[0005] In some embodiments, the real-time battery parameters include battery terminal voltage, battery open-circuit voltage, and charging / discharging current. Identifying the internal resistance state of the energy storage battery based on these real-time battery parameters includes: Calculate the first internal resistance value of the energy storage battery at the current moment based on the battery terminal voltage, battery open circuit voltage, and charging / discharging current; If each first internal resistance value within a preset sampling period is not less than the target internal resistance value, then the energy storage battery is determined to have an internal resistance inflection point. The target internal resistance value is a preset multiple of the second internal resistance value, and the second internal resistance value is the internal resistance value of the previous time corresponding to the current time.

[0006] This embodiment calculates the current first internal resistance value in real time and compares the internal resistance value within multiple consecutive sampling periods with the internal resistance value at the previous moment by a preset multiple. This can reliably capture the nonlinear change point of the battery internal resistance, i.e., the internal resistance inflection point, eliminate misjudgments caused by instantaneous disturbances, and ensure the accuracy and robustness of inflection point identification.

[0007] In some embodiments, the photovoltaic-storage hybrid inverter integrates a voltage sensor, a current sensor, and a BMS port. The acquisition of real-time battery parameters of the energy storage battery includes: The battery terminal voltage is acquired through the voltage sensor, the charging and discharging current is acquired through the current sensor, and the battery open-circuit voltage and real-time AC internal resistance are acquired through the BMS port.

[0008] This embodiment requires no additional complex hardware modifications to provide a high-precision data source for internal resistance calculation and inflection point identification, and directly reads AC internal resistance through the BMS port, ensuring the timeliness and accuracy of internal resistance data.

[0009] In some embodiments, the mains power supply status is mains power interruption. The step of determining the power supply strategy for the photovoltaic-storage hybrid inverter based on the mains power supply status, the internal resistance inflection point value, real-time SOC, and real-time AC internal resistance includes: If the real-time SOC is within the first preset value range and the real-time AC internal resistance is less than the internal resistance inflection point value, then the power supply strategy is determined to be to directly switch to the energy storage battery to supply power to all load devices. If the real-time SOC is within the second preset range and the real-time AC internal resistance is not less than the internal resistance inflection point value, then the power supply strategy is determined to control the energy storage battery to supply full power to rigid load devices and to supply power to flexible load devices at a preset derating power. If the real-time SOC is within the third preset value range, then the power supply strategy is determined to maintain the power supply status of the current load device until the energy storage battery is charged to the real-time SOC within the second preset value range. Wherein, the first preset value range is greater than the third preset value range, and the second preset value range is between the first preset value range and the third preset value range.

[0010] In the event of a mains power outage, this embodiment divides different power supply strategies based on a comparison between the SOC range and the relative inflection point value of the real-time AC internal resistance. This strategy proactively reduces the discharge intensity when the battery internal resistance increases, preventing voltage drops and output oscillations, while ensuring uninterrupted power supply to critical equipment. This makes the battery discharge process smoother, effectively extending battery life and improving the quality of off-grid power supply.

[0011] In some embodiments, the mains power on / off state is mains power restoration. The step of determining the power supply strategy for the photovoltaic-storage hybrid inverter based on the mains power on / off state, the internal resistance inflection point value, real-time SOC, and real-time AC internal resistance includes: If the real-time SOC is within the range of the fourth preset value and the real-time AC internal resistance is less than the internal resistance inflection point value, then the power supply strategy is determined to be to switch to mains power to supply power to the load device after a first preset time delay. If the real-time SOC is within the fifth preset value range, or the real-time AC internal resistance is not less than the internal resistance inflection point value, then the power supply strategy is determined to maintain the energy storage battery supply until the real-time SOC is greater than the target preset value, and then switch to the mains power to supply power to the load device. Wherein, the fourth preset value range is greater than the fifth preset value range, and the target preset value is within the fourth preset value range.

[0012] In this embodiment, under the scenario of mains power restoration, the system determines whether to switch to mains power immediately or with a delay based on the SOC and AC internal resistance conditions. This eliminates the reciprocating oscillations caused by parameter fluctuations during mains power restoration, improves the smoothness of grid switching, and protects the inverter and load from frequent shocks.

[0013] In some embodiments, supplying power to the load device based on the power supply strategy includes: Based on the power supply strategy, the system switches to mains power to supply power to the load device and identifies the latest internal resistance state of the energy storage battery. If the latest internal resistance decrease of the energy storage battery is not greater than a preset percentage of the internal resistance inflection point value, then the second preset duration of the current power supply strategy is locked.

[0014] This embodiment uses hysteresis and locking mechanisms to prevent rapid reverse switching caused by critical fluctuations in internal resistance, forming a stable output buffer, effectively eliminating the possibility of residual oscillations, enabling the system to operate stably after mode changes, significantly reducing the number of mode switching times, and extending the lifespan of the inverter and battery.

[0015] In some embodiments, after supplying power to the load device based on the power supply strategy, the method further includes: Monitor the output voltage fluctuation value of the photovoltaic-storage hybrid inverter; If the output voltage fluctuation value is greater than the first preset fluctuation value, the flexible load device is dynamically derating by a preset step size until the output voltage fluctuation value is no greater than the second preset fluctuation value.

[0016] This embodiment uses dynamic load adjustment as a closed-loop compensation method, which can automatically smooth out instantaneous voltage fluctuations caused by load changes or switching without interrupting the power supply to rigid loads, maintain the output power quality at a high level, and ensure the safe operation of sensitive equipment.

[0017] In a second aspect, the present invention provides an output control device for a photovoltaic-storage hybrid inverter, wherein the DC side of the photovoltaic-storage hybrid inverter is connected to a photovoltaic array and an energy storage battery, and the AC side is connected to mains power and load equipment, the device comprising: The acquisition module is used to acquire the real-time battery parameters of the energy storage battery; An identification module is used to identify the internal resistance state of the energy storage battery based on the real-time battery parameters. The determination module is used to determine the internal resistance inflection point value corresponding to the internal resistance inflection point if the energy storage battery has an internal resistance inflection point, and to identify the on / off state of the mains power. The strategy module is used to determine the power supply strategy of the photovoltaic-storage hybrid inverter based on the on / off state of the mains power, the internal resistance inflection point value, the real-time SOC of the energy storage battery, and the real-time AC internal resistance. The control module is used to supply power to the load device based on the power supply strategy.

[0018] Thirdly, the present invention provides an inverter device, including a processor and a memory, wherein the memory is used to store a computer program, and the computer program, when executed by the processor, implements the output control method of the above-described photovoltaic-storage hybrid inverter.

[0019] Fourthly, the present invention provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the output control method of the above-described photovoltaic-storage hybrid inverter.

[0020] Compared with the prior art, the present invention has the following beneficial effects: By collecting battery parameters in real time, the current AC internal resistance of the battery is dynamically calculated, and the inflection point of the internal resistance in a specific SOC range is identified. During output switching control, the inflection point value of the internal resistance is introduced as a switching criterion. Combined with real-time SOC, AC internal resistance, and mains power on / off status, the power supply strategy is comprehensively decided, abandoning the traditional single fixed SOC threshold switching method. The dynamic characteristics of internal resistance are used to predict the voltage instability caused by strong discharge of the battery with high internal resistance in advance. According to different scenarios of mains power interruption or recovery, actions such as direct switching, derating power supply, or delayed switching are adaptively selected to significantly reduce the back-and-forth oscillation between mains power and battery mode, prevent drastic fluctuations in output voltage, and ensure uninterrupted power supply to critical loads. At the same time, the battery is prevented from being frequently charged and discharged with high current in a high internal resistance state, which effectively extends the battery cycle life and improves the operational stability and reliability of the hybrid inverter under complex operating conditions. Attached Figure Description

[0021] Figure 1 This is a schematic flowchart illustrating the output control method of a photovoltaic-storage hybrid inverter according to an embodiment of the present invention; Figure 2 This is a structural block diagram of the output control device of a photovoltaic-storage hybrid inverter according to an embodiment of the present invention; Figure 3 This is a structural block diagram of an inverter device shown in an embodiment of the present invention. Detailed Implementation

[0022] 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. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0023] Please refer to Figure 1 , Figure 1 This is a flowchart illustrating an output control method for a photovoltaic-storage hybrid inverter according to an embodiment of the present invention. In this embodiment, the DC side of the photovoltaic-storage hybrid inverter is connected to a photovoltaic array and an energy storage battery, while the AC side is connected to the mains power supply and the load device. The output control method of this embodiment includes steps S101 to S105, detailed below: Step S101: Obtain the real-time battery parameters of the energy storage battery.

[0024] In this step, real-time battery parameters are dynamic physical quantities that reflect the current operating state of the energy storage battery. These mainly include battery terminal voltage, battery open-circuit voltage, charging and discharging current, and AC internal resistance. Battery terminal voltage is the actual voltage between the positive and negative terminals of the battery, which varies with the load due to the voltage drop caused by internal resistance. Battery open-circuit voltage is the voltage of the battery under steady-state conditions without load, and it has a fixed relationship with SOC (State of Charge). Charging and discharging current reflects the battery's energy throughput rate. AC internal resistance is the battery's impedance to alternating current, and it changes non-linearly with decreasing SOC and aging.

[0025] Optionally, the above parameters can be synchronously collected at a sampling frequency of 10Hz or higher through the voltage sensor, current sensor and BMS communication port integrated in the inverter, so as to provide a real-time and accurate data basis for subsequent internal resistance status identification and power supply strategy decision-making.

[0026] Step S102: Based on the real-time battery parameters, identify the internal resistance state of the energy storage battery.

[0027] In this step, the internal resistance inflection point is the point where, during battery discharge, the SOC drops to a specific range (typically 30%~20%), and the internal resistance abruptly changes from a slow increase to a rapid increase—a nonlinear inflection point. This phenomenon stems from the intensified polarization of the internal electrochemical reaction and the sharp reduction in the available area of ​​the active material. By calculating the current AC internal resistance value in real time and comparing it with the previous sampled value over multiple consecutive cycles, the inflection point is determined to have occurred when the internal resistance value in multiple consecutive sampling cycles meets the preset increase condition. This effectively filters out instantaneous disturbances and measurement noise, avoiding misjudgments caused by single data anomalies. The identification of the internal resistance inflection point in this step incorporates the battery's dynamic characteristics into the switching criteria, enabling the system to predict the risk of voltage drop caused by strong discharge under high internal resistance conditions from the root cause.

[0028] Step S103: If the energy storage battery has an internal resistance inflection point, determine the internal resistance inflection point value corresponding to the internal resistance inflection point and identify the on / off state of the mains power.

[0029] In this step, the internal resistance inflection point value is the benchmark threshold compared with the real-time internal resistance; the mains power on / off status refers to whether the power supply on the grid side is normal, including two operating conditions: mains power interruption and mains power restoration; mains power interruption may be caused by grid faults or active off-grid operation, while mains power restoration is the grid resuming power supply.

[0030] Optionally, depending on the actual application requirements, the internal resistance inflection point value can be the first internal resistance value corresponding to the last sampling period, or it can be the homogeneity of all first internal resistance values ​​within multiple sampling periods.

[0031] Step S104: Based on the on / off state of the mains power, and using the internal resistance inflection point value, the real-time SOC of the energy storage battery, and the real-time AC internal resistance, determine the power supply strategy of the photovoltaic-storage hybrid inverter.

[0032] In this step, the power supply strategy is a decision-making scheme that controls the inverter to obtain power from the mains or energy storage batteries and to allocate power differently to different types of load devices. Real-time SOC reflects the remaining battery capacity, real-time AC internal resistance reflects the battery's current power output capability, and the internal resistance inflection point serves as a warning threshold for abnormal internal resistance. When the mains power is interrupted, the strategy focuses on extending the power supply time as much as possible while ensuring critical loads; when the mains power is restored, the strategy focuses on smooth switching and preventing oscillations. This step upgrades the traditional single SOC threshold to a joint SOC and internal resistance criterion, achieving multi-dimensional decision-making and making power supply mode switching more intelligent and refined.

[0033] Step S105: Power supply is provided to the load device based on the power supply strategy.

[0034] In this step, the load devices include rigid loads that cannot be interrupted (such as refrigerators) and flexible loads that can be temporarily dated (such as lighting). Power supply control includes operations such as switching power sources, adjusting output power, and locking operating modes. This step is the execution link of the control closed loop, directly acting on the inverter's power switching devices to ultimately achieve anti-oscillation power supply.

[0035] In some embodiments, the real-time battery parameters include battery terminal voltage, battery open-circuit voltage, and charging / discharging current. Step S102 includes: Calculate the first internal resistance value of the energy storage battery at the current moment based on the battery terminal voltage, battery open circuit voltage, and charging / discharging current; If each first internal resistance value within a preset sampling period is not less than the target internal resistance value, then the energy storage battery is determined to have an internal resistance inflection point. The target internal resistance value is a preset multiple of the second internal resistance value, and the second internal resistance value is the internal resistance value of the previous time corresponding to the current time.

[0036] In this embodiment, the battery terminal voltage is collected in each sampling period. Battery open circuit voltage and charging / discharging current And through the formula Calculate the first internal resistance value, and multiply the second internal resistance value of the previous sampling period by a preset multiple to obtain the target internal resistance value. If the first internal resistance value is greater than or equal to the target internal resistance value for a consecutive preset number of sampling periods, it indicates that the internal resistance has entered a stage of rapid growth, which meets the inflection point determination condition, and an inflection point trigger signal is output.

[0037] Optionally, the preset number of cycles can be 3 to 5, the sampling frequency is 10Hz, and the corresponding detection delay is 0.3s to 0.5s; the preset multiplier can be calibrated according to the battery model, for example, the typical value of lithium iron phosphate battery is 1.2 to 1.5; historical internal resistance values ​​can be temporarily stored through a sliding window queue or a circular buffer to reduce memory usage; the judgment logic can be written into the MCU firmware timer interrupt service function to ensure real-time performance.

[0038] Optionally, the future evolution trend of the battery's internal resistance can be predicted before identifying the internal resistance state. Specifically, the rate of change of internal resistance is calculated based on the internal resistance values ​​obtained from multiple consecutive sampling periods. Simultaneously, the current temperature T and SOC decay rate of the energy storage battery are obtained. The internal resistance change rate, temperature, SOC decrease rate, and current internal resistance value are used to construct a feature vector, which is then input into a pre-trained logistic regression or lightweight gradient boosting tree classifier. The classifier outputs a prediction of whether an output voltage drop risk will occur within the next N seconds (N is 5-10 seconds). If the prediction indicates a risk, the derating or switching action in the power supply strategy is triggered in advance, rather than waiting for the internal resistance inflection point to actually occur.

[0039] Optionally, the preset multiple and the SOC preset value range can be adaptively adjusted according to the current state of health (SOH) of the energy storage battery. Specifically, the SOH of the energy storage battery is estimated: within a complete charge-discharge cycle, the actual capacity discharged by the battery is calculated using coulomb integration, and the ratio of this to the nominal capacity is used to obtain the estimated SOH value. A mapping table between SOH and the optimal internal resistance multiple is established. For example: when SOH ≥ 90%, the preset multiple is 1.3; when 80% ≤ SOH < 90%, the preset multiple is 1.2; when SOH < 80%, the preset multiple is 1.15. Simultaneously, the lower the SOH, the smaller the usable capacity area of ​​the battery, and the high internal resistance warning SOC range shifts towards the high SOC side: for example, when SOH ≥ 90%, the second preset value range is 20%~30%; when SOH < 80%, the second preset value range is adjusted to 25%~35%. This embodiment enables the internal resistance inflection point criterion to be automatically corrected as the battery ages, avoiding missed or false judgments caused by fixed thresholds and extending the effective lifespan of the control strategy.

[0040] In some embodiments, multiple photovoltaic-storage hybrid inverters operate in parallel, with each inverter sharing status information via a communication bus and dynamically electing a master inverter. The master inverter generates a unified power supply strategy based on the cluster's average SOC and the number of internal resistance inflection points and distributes it to all slave inverters. When multiple slave inverters simultaneously reach their internal resistance inflection points, the master inverter locks the global derating factor and prohibits any slave inverter from switching independently. The master inverter performs circulating current suppression, switching to degraded mode when the circulating current exceeds a threshold.

[0041] Specifically, each inverter shares its real-time SOC, internal resistance inflection point flag, and power supply strategy status via a high-speed communication bus (such as EtherCAT). A master inverter is dynamically elected (based on device ID or SOC balance). The master inverter aggregates data from all slaves and calculates the cluster's average SOC, minimum internal resistance margin, and the number of slaves with the most internal resistance inflection points. The master inverter generates a unified power supply strategy command based on the cluster status and broadcasts it to all slaves for execution. When at least two slaves in the cluster report internal resistance inflection points, the master inverter proactively sets the cluster's global derating factor to the median of all requested derating factors and locks the cluster power supply mode for at least 30 seconds, prohibiting any slave from switching independently. The master inverter also performs circulating current suppression: in battery discharge mode, it calculates the deviation of the output current of each slave and fine-tunes the voltage reference value of each slave (within ±0.5V) to evenly distribute the current. When circulating current is detected to exceed 5% of the rated current, the cluster power supply strategy is temporarily switched to a degraded mode of "master-only power supply, other slaves shut down output," and parallel connection is restored after the circulating current is eliminated.

[0042] This embodiment extends the single-machine anti-vibration control to a multi-machine parallel system. Through host arbitration and unified strategy distribution, it avoids circulating current and mode oscillation caused by independent decision-making of each machine, thus ensuring the stable operation of the parallel system and battery consistency.

[0043] In some embodiments, the photovoltaic-storage hybrid inverter integrates a voltage sensor, a current sensor, and a BMS port. Step S101 includes: The battery terminal voltage is acquired through the voltage sensor, the charging and discharging current is acquired through the current sensor, and the battery open-circuit voltage and real-time AC internal resistance are acquired through the BMS port.

[0044] In this embodiment, a voltage sensor is connected in parallel to the positive and negative terminals of the battery, and the high-voltage signal is converted into a low-voltage analog quantity that can be sampled by the MCU through a resistor divider network and an isolation operational amplifier; a current sensor is connected in series to the main circuit of the battery, and the charging and discharging current is measured in real time using a Hall effect or shunt scheme; the battery open-circuit voltage and AC internal resistance data are periodically read through the BMS port.

[0045] In some embodiments, the mains power supply status is a mains power outage, and step S104 includes: If the real-time SOC is within the first preset value range and the real-time AC internal resistance is less than the internal resistance inflection point value, then the power supply strategy is determined to be to directly switch to the energy storage battery to supply power to all load devices. If the real-time SOC is within the second preset range and the real-time AC internal resistance is not less than the internal resistance inflection point value, then the power supply strategy is determined to control the energy storage battery to supply full power to rigid load devices and to supply power to flexible load devices at a preset derating power. If the real-time SOC is within the third preset value range, then the power supply strategy is determined to maintain the power supply status of the current load device until the energy storage battery is charged to the real-time SOC within the second preset value range. Wherein, the first preset value range is greater than the third preset value range, and the second preset value range is between the first preset value range and the third preset value range.

[0046] In this embodiment, the first preset value range can be set to ≥30%, the second preset value range is 20%~30%, and the third preset value range is <20%. Flexible load derating can be achieved through PWM dimming, power reduction via communication commands, or relay switching, for example, a derating range of 10%. The SOC threshold can be configured through the human-machine interface to adapt to different battery types.

[0047] For scenarios involving mains power outages, this embodiment divides the power supply strategy into three branches based on the combination of real-time SOC and internal resistance inflection point values, achieving layered control for different battery states. Specifically, after a mains power outage signal is triggered, the controller first reads the current SOC and AC internal resistance values. If SOC ≥ 30% and internal resistance is below the inflection point value, the battery is in excellent condition, and the system directly switches to battery power supply, with both rigid and flexible loads operating at full capacity. If SOC is between 20% and 30% and internal resistance has reached the inflection point, the battery is in a high internal resistance critical region. The system maintains full power supply to the rigid load and reduces the power of the flexible load to 50% to mitigate discharge current surges and suppress voltage drops. If SOC < 20%, the battery is close to being depleted. The system maintains the current power supply state and waits for mains power to be restored before charging resumes. The three-tiered strategy with progressively decreasing discharge intensity achieves a balance between power supply continuity, equipment safety, and battery protection during off-grid operation.

[0048] Optionally, derating power supply is applied to flexible load devices, including load characteristic sensing and user priority optimization steps. By detecting the current waveform of each load branch at startup, it is identified whether there are rotating motor loads (such as compressors and water pumps). If a rotating motor is identified, a soft-start command is sent or a minimum sustaining power (typically 30% of the rated power) is maintained when derating is required to prevent stall damage due to sudden derating. Secondly, the interruptible duration (0-300 seconds) and minimum sustaining power set by the user for each load are received through a human-machine interface (such as a mobile app or display screen). When the system determines that derating is required, a uniform derating ratio is not applied to all flexible loads. Instead, the total power limit is used as a constraint, and a discrete optimization allocation scheme is solved with the goal of maximizing user satisfaction score. The user satisfaction score can be defined as the weighted sum of the ratio of the actual power supplied to the requested power for each load, with the weights set by the user.

[0049] In some embodiments, the mains power supply status is mains power restoration, and step S104 includes: If the real-time SOC is within the range of the fourth preset value and the real-time AC internal resistance is less than the internal resistance inflection point value, then the power supply strategy is determined to be to switch to mains power to supply power to the load device after a first preset time delay. If the real-time SOC is within the fifth preset value range, or the real-time AC internal resistance is not less than the internal resistance inflection point value, then the power supply strategy is determined to maintain the energy storage battery supply until the real-time SOC is greater than the target preset value, and then switch to the mains power to supply power to the load device. The fourth preset value range is greater than the fifth preset value range, and the target preset value is within the fourth preset value range.

[0050] In this embodiment, the fourth preset value range can be set to ≥25%, the fifth preset value range to <25%, and the target preset value to 30%. The delay timing can be implemented using an MCU timer, with a configurable delay duration of 2-3 seconds. SOC recovery detection employs hysteresis comparison to avoid frequent flipping near the threshold.

[0051] For mains power recovery scenarios, this embodiment sets fourth and fifth preset value ranges for SOC classification judgment and introduces two processing strategies: delayed switching and charging wait, to prevent instantaneous fluctuations and back-switching oscillations during mains power recovery. Specifically, when a mains power recovery signal is detected, the controller judges the current battery state. If SOC ≥ 25% and internal resistance has not reached the inflection point, the battery still has sufficient capacity and low internal resistance. In this case, switching is not performed immediately, but a 2-3 second delay timer is started to wait for the load power and mains voltage to stabilize before performing the switching operation to mains power, avoiding false switching caused by transient interference. If SOC < 25% or internal resistance is still higher than the inflection point value, it indicates that the battery is depleted or the internal resistance is too high. In this case, battery power is maintained, and mains power is started to charge the battery. After the SOC recovers to above 30% and the internal resistance decreases, mains power switching is performed. This strategy can eliminate the problem of abnormal voltage or repeated fluctuations after switching due to poor battery state.

[0052] Optionally, a reinforcement learning agent is used to optimize the power supply strategy. The agent's state space includes the real-time SOC of the energy storage battery, real-time AC internal resistance, internal resistance inflection point, mains power on / off status, current load power distribution, timestamps (distinguishing between peak and off-peak electricity price periods), and historical switching counts. The action space includes: switching delay duration (0~10 seconds), flexible load derating ratio (0~100%, discretized into 10 levels), and whether to trigger a switch prematurely. The reward function is designed as follows: power supply continuity reward (positive reward for uninterrupted power supply to critical loads), output voltage stability reward (higher reward for smaller fluctuations), battery health penalty (greater penalty for longer discharge time with high internal resistance), and switching count penalty (negative reward for each switch). An offline pre-training plus online fine-tuning approach is adopted: a deep Q-network or near-end strategy optimization model is pre-trained in the cloud using a large amount of historical operating data, deployed locally to the inverter, and continuously fine-tuned in small batches using actual equipment operating data. The strategy network parameters are updated every 7-day operating cycle. This embodiment enables the system to autonomously learn the optimal switching strategy for a specific usage environment. For example, if users are accustomed to mains power outages during peak evening hours, the agent will proactively maintain the SOC at a high level in advance; if user satisfaction is low after derating a certain type of flexible load, the agent will adjust its derating weight.

[0053] In some embodiments, step S105 includes: Based on the power supply strategy, the system switches to mains power to supply power to the load device and identifies the latest internal resistance state of the energy storage battery. If the latest internal resistance decrease of the energy storage battery is not greater than a preset percentage of the internal resistance inflection point value, then the second preset duration of the current power supply strategy is locked.

[0054] In this embodiment, the preset percentage can be set to 15%; the second preset cooling time is set to 20-30 seconds, implemented through a watchdog timer or a software timer. The locked state can be managed through a global flag, which is checked in the interrupt service function to block switching requests.

[0055] This embodiment introduces an internal resistance decrease verification and cooling lockout mechanism after the mains power restoration switchover. By detecting whether the internal resistance decrease meets the hysteresis condition, and locking the power supply mode for a certain period after the condition is met, residual oscillations are fundamentally eliminated. Specifically, for a short period after the mains power switchover is completed, the latest internal resistance value of the battery is continuously monitored, and the internal resistance decrease is calculated. .like Greater than the inflection point value If the internal resistance drops by 15%, it indicates that the internal resistance has significantly recovered, confirming the switching condition is valid. A cooling timer is then started, prohibiting any further switching of power supply modes for 20-30 seconds. If the internal resistance decreases insufficiently, monitoring continues. Even if the mains power fluctuates again during the cooling period, the system will not respond, ensuring stable output.

[0056] In some embodiments, after step S105, the method further includes: Monitor the output voltage fluctuation value of the photovoltaic-storage hybrid inverter; If the output voltage fluctuation value is greater than the first preset fluctuation value, the flexible load device is dynamically derating by a preset step size until the output voltage fluctuation value is not greater than the second preset fluctuation value.

[0057] In this embodiment, the first preset fluctuation value can be set to ±5%, the second preset fluctuation value can be set to ±3%, and the derating step size is 10%. Voltage fluctuation monitoring can adopt the sliding window root mean square value algorithm, with a window width of 2 to 5 power frequency cycles. Flexible load derating can be achieved by adjusting the inverter output voltage amplitude or PWM duty cycle. The prompting function can be executed by LCD driver or LED indicator.

[0058] This embodiment adds an output voltage fluctuation monitoring stage after the power supply strategy is executed. For operating conditions exceeding the preset fluctuation threshold, the flexible load is gradually derated to form a closed-loop compensation control, converging the output power quality to the target range. Specifically, the AC side voltage sampling circuit continuously monitors the effective value or peak value of the inverter output voltage. If a fluctuation exceeding ±5% is detected, a derating process is triggered, reducing the power supply to the flexible load in 10% steps; after derating, the fluctuation is reassessed to see if it has converged to within ±3%. If it still does not meet the requirement, the derating continues step by step until the fluctuation meets the standard. During the derating process, the power supply to the rigid load is not affected, and the display screen outputs a "Load Adjustment in Progress" message.

[0059] As an example, and not a limitation, a residential hybrid power system is configured with a 5kW hybrid inverter, a 10kWh lithium iron phosphate battery pack, and a 3kW photovoltaic array. The load side is divided into rigid loads (refrigerator, router, security camera, totaling 300W) and flexible loads (living room lighting, air conditioner, totaling 1.5kW). The system collects battery parameters at a frequency of 10Hz.

[0060] In the evening, the mains power was interrupted due to line maintenance. At that time, the battery's SOC was 28% and its internal resistance was 45mΩ, not yet reaching the inflection point. The system directly switched to battery power, and all equipment operated normally. One hour later, the SOC dropped to 23%, and the internal resistance suddenly increased to 78mΩ. For three consecutive sampling cycles, the increase in internal resistance exceeded 1.2 times, indicating that the internal resistance inflection point had been reached. The inverter immediately reduced the power of flexible loads to 50%, the air conditioner entered low-power mode, the lighting brightness was halved, and the refrigerator and router continued to operate at full power, with output voltage fluctuations controlled within 2.8%.

[0061] Two hours later, mains power was restored. At this point, the battery's SOC was 22%, and its internal resistance was still above the inflection point. The system determined that the immediate switching conditions were not met, maintained battery power supply, and started mains charging. After 40 minutes of charging, the SOC rose to 32%, and the internal resistance dropped to 52mΩ, meeting the hysteresis condition. The system smoothly switched back to mains power after a 2.5-second delay, locking the switching mode for 30 seconds without any oscillations. Throughout the entire process, the power supply to critical loads remained uninterrupted, and the battery did not suffer from high internal resistance and strong discharge shocks.

[0062] To implement the output control method of the photovoltaic-storage hybrid inverter corresponding to the above method embodiments, in order to achieve the corresponding functions and technical effects. See also Figure 2 , Figure 2 This diagram illustrates a structural block diagram of an output control device for a photovoltaic-storage hybrid inverter according to an embodiment of the present invention. For ease of explanation, only the parts relevant to this embodiment are shown. The output control device for the photovoltaic-storage hybrid inverter provided in this embodiment of the present invention includes: The acquisition module 201 is used to acquire the real-time battery parameters of the energy storage battery; The identification module 202 is used to identify the internal resistance state of the energy storage battery based on the real-time battery parameters. The determination module 203 is used to determine the internal resistance inflection point value corresponding to the internal resistance inflection point if the energy storage battery has an internal resistance inflection point, and to identify the on / off state of the mains power. Strategy module 204 is used to determine the power supply strategy of the photovoltaic-storage hybrid inverter based on the on / off state of the mains power, the internal resistance inflection point value, the real-time SOC of the energy storage battery, and the real-time AC internal resistance. The control module 205 is used to supply power to the load device based on the power supply strategy.

[0063] In some embodiments, the real-time battery parameters include battery terminal voltage, battery open-circuit voltage, and charging / discharging current. The identification module 202 is specifically used for: Calculate the first internal resistance value of the energy storage battery at the current moment based on the battery terminal voltage, battery open circuit voltage, and charging / discharging current; If each first internal resistance value within a preset sampling period is not less than the target internal resistance value, then the energy storage battery is determined to have an internal resistance inflection point. The target internal resistance value is a preset multiple of the second internal resistance value, and the second internal resistance value is the internal resistance value of the previous time corresponding to the current time.

[0064] In some embodiments, the photovoltaic-storage hybrid inverter integrates a voltage sensor, a current sensor, and a BMS port. The acquisition module 201 is specifically used for: The battery terminal voltage is acquired through the voltage sensor, the charging and discharging current is acquired through the current sensor, and the battery open-circuit voltage and real-time AC internal resistance are acquired through the BMS port.

[0065] In some embodiments, the mains power supply status is a mains power interruption, and the strategy module 204 is specifically used for: If the real-time SOC is within the first preset value range and the real-time AC internal resistance is less than the internal resistance inflection point value, then the power supply strategy is determined to be to directly switch to the energy storage battery to supply power to all load devices. If the real-time SOC is within the second preset range and the real-time AC internal resistance is not less than the internal resistance inflection point value, then the power supply strategy is determined to control the energy storage battery to supply full power to rigid load devices and to supply power to flexible load devices at a preset derating power. If the real-time SOC is within the third preset value range, then the power supply strategy is determined to maintain the power supply status of the current load device until the energy storage battery is charged to the real-time SOC within the second preset value range. Wherein, the first preset value range is greater than the third preset value range, and the second preset value range is between the first preset value range and the third preset value range.

[0066] In some embodiments, the mains power on / off state is mains power restoration, and the strategy module 204 is specifically used for: If the real-time SOC is within the range of the fourth preset value and the real-time AC internal resistance is less than the internal resistance inflection point value, then the power supply strategy is determined to be to switch to mains power to supply power to the load device after a first preset time delay. If the real-time SOC is within the fifth preset value range, or the real-time AC internal resistance is not less than the internal resistance inflection point value, then the power supply strategy is determined to maintain the energy storage battery supply until the real-time SOC is greater than the target preset value, and then switch to the mains power to supply power to the load device. The fourth preset value range is greater than the fifth preset value range, and the target preset value is within the fourth preset value range.

[0067] In some embodiments, the control module 205 is specifically used for: Based on the power supply strategy, the system switches to mains power to supply power to the load device and identifies the latest internal resistance state of the energy storage battery. If the latest internal resistance decrease of the energy storage battery is not greater than a preset percentage of the internal resistance inflection point value, then the second preset duration of the current power supply strategy is locked.

[0068] In some embodiments, the apparatus further includes: The monitoring module is used to monitor the output voltage fluctuation value of the photovoltaic-storage hybrid inverter. The adjustment module is used to dynamically derating the flexible load device with a preset step size if the output voltage fluctuation value is greater than a first preset fluctuation value, until the output voltage fluctuation value is not greater than a second preset fluctuation value.

[0069] The output control device for the photovoltaic-storage hybrid inverter described above can implement the output control method for the photovoltaic-storage hybrid inverter described in the above method embodiments. The options in the above method embodiments are also applicable to this embodiment, and will not be detailed here. The remaining contents of this embodiment can be referred to the contents of the above method embodiments, and will not be repeated in this embodiment.

[0070] Figure 3 This is a schematic diagram of the structure of an inverter device provided in an embodiment of the present invention. Figure 3 As shown, the inverter device 3 of this embodiment includes: at least one processor 30 ( Figure 3(Only one is shown in the diagram), memory 31, and computer program 32 stored in said memory 31 and executable on said at least one processor 30, wherein said processor 30 executes said computer program 32 to implement the steps in any of the above method embodiments.

[0071] The inverter device may include, but is not limited to, processor 30 and memory 31. Those skilled in the art will understand that... Figure 3 This is merely an example of inverter device 3 and does not constitute a limitation on inverter device 3. It may include more or fewer components than shown, or combine certain components, or different components, such as input / output devices, network access devices, etc.

[0072] The processor 30 may be a Central Processing Unit (CPU), or it may be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor.

[0073] In some embodiments, the memory 31 may be an internal storage unit of the inverter device 3, such as a hard disk or memory of the inverter device 3. In other embodiments, the memory 31 may be an external storage device of the inverter device 3, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc., equipped on the inverter device 3. Furthermore, the memory 31 may include both internal and external storage units of the inverter device 3. The memory 31 is used to store operating systems, applications, bootloaders, data, and other programs, such as the program code of computer programs. The memory 31 can also be used to temporarily store data that has been output or will be output.

[0074] In addition, embodiments of the present invention also provide a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps in any of the above method embodiments.

[0075] This invention provides a computer program product that, when run on an inverter device, enables the inverter device to implement the steps described in the various method embodiments above.

[0076] In the several embodiments provided by this invention, it will be understood that each block in the flowchart or block diagram may represent a module, segment, or portion of code, which contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than those shown in the figures. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved.

[0077] If the aforementioned functions are implemented as software functional modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, essentially, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause an inverter device to execute all or part of the steps of the methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0078] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above descriptions are merely specific embodiments of the present invention and are not intended to limit the scope of protection of the present invention. In particular, it should be noted that any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention for those skilled in the art.

Claims

1. An output control method for a photovoltaic-storage hybrid inverter, characterized in that, The photovoltaic-storage hybrid inverter has its DC side connected to a photovoltaic array and an energy storage battery, and its AC side connected to mains power and load devices. The method includes: Obtain the real-time battery parameters of the energy storage battery; Based on the real-time battery parameters, the internal resistance state of the energy storage battery is identified; If the energy storage battery has an internal resistance inflection point, then the internal resistance inflection point value corresponding to the internal resistance inflection point is determined, and the on / off state of the mains power is identified. Based on the on / off state of the mains power, and using the internal resistance inflection point value, the real-time SOC of the energy storage battery, and the real-time AC internal resistance, the power supply strategy of the photovoltaic-storage hybrid inverter is determined. Based on the power supply strategy, power is supplied to the load device; The real-time battery parameters include battery terminal voltage, battery open-circuit voltage, and charging / discharging current. Identifying the internal resistance state of the energy storage battery based on these real-time battery parameters includes: Calculate the first internal resistance value of the energy storage battery at the current moment based on the battery terminal voltage, battery open circuit voltage, and charging / discharging current; If each first internal resistance value within a preset sampling period is not less than the target internal resistance value, then the energy storage battery is determined to have an internal resistance inflection point. The target internal resistance value is a preset multiple of the second internal resistance value, and the second internal resistance value is the internal resistance value of the previous time corresponding to the current time.

2. The output control method for a photovoltaic-storage hybrid inverter as described in claim 1, characterized in that, The photovoltaic-storage hybrid inverter integrates a voltage sensor, a current sensor, and a BMS port. The acquisition of real-time battery parameters of the energy storage battery includes: The battery terminal voltage is acquired through the voltage sensor, the charging and discharging current is acquired through the current sensor, and the battery open-circuit voltage and real-time AC internal resistance are acquired through the BMS port.

3. The output control method for a photovoltaic-storage hybrid inverter as described in claim 1, characterized in that, The mains power supply status is mains power interruption. Based on the mains power supply status, and using the internal resistance inflection point value, the real-time SOC of the energy storage battery, and the real-time AC internal resistance, the power supply strategy for the photovoltaic-storage hybrid inverter is determined, including: If the real-time SOC is within the first preset value range and the real-time AC internal resistance is less than the internal resistance inflection point value, then the power supply strategy is determined to be to directly switch to the energy storage battery to supply power to all load devices. If the real-time SOC is within the second preset value range and the real-time AC internal resistance is not less than the internal resistance inflection point value, then the power supply strategy is determined to control the energy storage battery to supply full power to rigid load devices and to supply power to flexible load devices at a preset derating power. If the real-time SOC is within the third preset value range, then the power supply strategy is determined to maintain the power supply status of the current load device until the energy storage battery is charged to the real-time SOC within the second preset value range. Wherein, the first preset value range is greater than the third preset value range, and the second preset value range is between the first preset value range and the third preset value range.

4. The output control method for a photovoltaic-storage hybrid inverter as described in claim 1, characterized in that, The on / off state of the mains power is mains power restoration. Based on the on / off state of the mains power, and using the internal resistance inflection point value, the real-time SOC of the energy storage battery, and the real-time AC internal resistance, the power supply strategy for the photovoltaic-storage hybrid inverter is determined, including: If the real-time SOC is within the range of the fourth preset value and the real-time AC internal resistance is less than the internal resistance inflection point value, then the power supply strategy is determined to be to switch to mains power to supply power to the load device after a first preset time delay. If the real-time SOC is within the fifth preset value range, or the real-time AC internal resistance is not less than the internal resistance inflection point value, then the power supply strategy is determined to maintain the energy storage battery supply until the real-time SOC is greater than the target preset value, and then switch to the mains power to supply power to the load device. The fourth preset value range is greater than the fifth preset value range, and the target preset value is within the fourth preset value range.

5. The output control method for a photovoltaic-storage hybrid inverter as described in claim 4, characterized in that, The step of supplying power to the load device based on the power supply strategy includes: Based on the power supply strategy, the system switches to mains power to supply power to the load device and identifies the latest internal resistance state of the energy storage battery. If the latest internal resistance decrease of the energy storage battery is not greater than a preset percentage of the internal resistance inflection point value, then the second preset duration of the current power supply strategy is locked.

6. The output control method for a photovoltaic-storage hybrid inverter as described in claim 1, characterized in that, After supplying power to the load device based on the power supply strategy, the process further includes: Monitor the output voltage fluctuation value of the photovoltaic-storage hybrid inverter; If the output voltage fluctuation value is greater than the first preset fluctuation value, the flexible load device is dynamically derating by a preset step size until the output voltage fluctuation value is not greater than the second preset fluctuation value.

7. An output control device for a photovoltaic-storage hybrid inverter, characterized in that, The photovoltaic-storage hybrid inverter has its DC side connected to the photovoltaic array and the energy storage battery, and its AC side connected to the mains power and load equipment. The device includes: The acquisition module is used to acquire the real-time battery parameters of the energy storage battery; An identification module is used to identify the internal resistance state of the energy storage battery based on the real-time battery parameters. The determination module is used to determine the internal resistance inflection point value corresponding to the internal resistance inflection point if the energy storage battery has an internal resistance inflection point, and to identify the on / off state of the mains power. The strategy module is used to determine the power supply strategy of the photovoltaic-storage hybrid inverter based on the on / off state of the mains power, the internal resistance inflection point value, the real-time SOC of the energy storage battery, and the real-time AC internal resistance. A control module is used to supply power to the load device based on the power supply strategy; The real-time battery parameters include battery terminal voltage, battery open-circuit voltage, and charging / discharging current. The identification module is specifically used for: Calculate the first internal resistance value of the energy storage battery at the current moment based on the battery terminal voltage, battery open circuit voltage, and charging / discharging current; If each first internal resistance value within a preset sampling period is not less than the target internal resistance value, then the energy storage battery is determined to have an internal resistance inflection point. The target internal resistance value is a preset multiple of the second internal resistance value, and the second internal resistance value is the internal resistance value of the previous time corresponding to the current time.

8. An inverter device, characterized in that, It includes a processor and a memory, the memory being used to store a computer program, which, when executed by the processor, implements the output control method of the photovoltaic-storage hybrid inverter as described in any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, It stores a computer program that, when executed by a processor, implements the output control method for the photovoltaic-storage hybrid inverter as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Battery leakage diagnosis method and device, storage medium and vehicle

    CN118759381A

  • Battery performance detection equipment and detection method

    CN120993212A