Electric power data analysis and control method and system, medium and product

By monitoring the AC bus voltage and equipment power in real time and calculating the power correction amount of the energy storage device, the voltage jump problem caused by the start-up and shutdown of high-power loads in the user-side energy management system is solved, and the coordination of rapid and stable control and economic dispatch is achieved.

CN122052101APending Publication Date: 2026-05-15XIAMEN JOINT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
XIAMEN JOINT TECH CO LTD
Filing Date
2026-02-05
Publication Date
2026-05-15

AI Technical Summary

Technical Problem

The user-side energy management system cannot quickly respond to AC bus voltage jumps caused by the start-up and shutdown of high-power loads, affecting system stability and energy utilization efficiency.

Method used

By monitoring the AC bus voltage and equipment power in real time, calculating the voltage deviation and generating power correction commands for the energy storage device, a millisecond-level response is achieved, and the charging and discharging power of the energy storage device is quickly adjusted to balance the system.

Benefits of technology

This effectively avoids the AC bus voltage rise triggering the photovoltaic inverter protection, improves the stability and power utilization of the user-side micro energy system, and maintains economical operation over a long period.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122052101A_ABST
    Figure CN122052101A_ABST
Patent Text Reader

Abstract

The invention discloses a power data analysis and control method and system, a medium and a product, and relates to the technical field of power system control. The method comprises the following steps: acquiring AC bus voltage and equipment power in real time; calculating a voltage deviation value, and determining a power correction value of the energy storage device according to the voltage deviation value and the equipment power when the voltage deviation value is greater than a preset deviation threshold value; and generating a real-time power control instruction in combination with the reference charging and discharging power instruction and the power correction amount, and adjusting the charging and discharging power of the energy storage device. According to the scheme, sudden power change caused by starting and stopping of a high-power load and the like in the user-side micro energy system can be responded at a millisecond-level speed, and rapid power support is realized through the energy storage device; the technical problem that a related energy management system is long in decision-making period, voltage fluctuation cannot be suppressed in time, and consequently the photovoltaic inverter is off-grid is effectively solved, rapid and stable control over the internal voltage of the user side micro energy system is achieved, and the power supply reliability is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of power system control technology, and in particular to a method, system, medium and product for the analysis and control of power data. Background Technology

[0002] With the widespread application of distributed energy systems on the user side, more and more households and small businesses are installing photovoltaic power generation equipment, energy storage devices, and smart electrical appliances. These devices constitute user-side micro-energy systems, enabling the coordinated operation of local power generation, consumption, and storage. In such micro-energy systems, rationally allocating the relationship between power generation, consumption, and storage, avoiding power waste caused by over-generation, and improving the system's economy and energy utilization efficiency have become important goals of user-side energy management.

[0003] Currently, user-side energy management systems generally employ methods based on multi-data source integration and cross-correlation analysis to coordinate the operation of micro-energy systems. These systems typically deploy optimization algorithms in the main controller. These algorithms collect data such as photovoltaic power generation, electricity load, and energy storage status at second- or minute-level intervals. Then, based on multi-source data including electricity prices, weather forecasts, and user energy consumption habits, they calculate the optimal charging and discharging power commands for the energy storage devices.

[0004] However, the start-up and shutdown of high-power loads on the user side can cause sudden changes in system power within milliseconds, a rate of change far faster than the decision-making cycles of existing user-side energy management systems, which are based on seconds or minutes. Specifically, when a high-power load is suddenly shut down, the sudden drop in load creates an instantaneous power surplus. Because the energy storage device is still executing the charging command from the previous cycle, it cannot immediately absorb this surplus, causing the AC bus voltage of the user-side energy management system to rise rapidly. This triggers the millisecond-response overvoltage protection mechanism built into the photovoltaic inverter, forcing it to reduce its output power or even disconnect from the grid, thus affecting the energy utilization efficiency and stability of the user-side micro-energy system. Summary of the Invention

[0005] This application provides a method, system, medium, and product for analyzing and controlling power data, used to avoid AC bus voltage fluctuations in the user-side energy management system caused by the start-up and shutdown behavior of high-power loads.

[0006] In a first aspect, this application provides a method for analyzing and controlling power data, applied to an energy management system, comprising: acquiring the AC bus voltage of a user-side micro-energy system in real time and calculating the voltage deviation of the AC bus voltage relative to a preset voltage reference value; monitoring the power of equipment in the user-side micro-energy system in real time, the equipment power including photovoltaic power generation, load power, and charging and discharging power of an energy storage device; when the voltage deviation is greater than a preset deviation threshold, determining the power correction amount of the energy storage device based on the voltage deviation and the equipment power, and generating a power correction command; generating a real-time power control command for the energy storage device based on the power correction command and a preset reference charging and discharging power command; and adjusting the charging and discharging power of the energy storage device according to the real-time power control command so that the voltage deviation is lower than the preset deviation threshold.

[0007] By adopting the above technical solution, the energy management system can monitor the AC bus voltage in real time at a high frequency. When it detects that the voltage deviation caused by sudden load changes exceeds the preset deviation threshold, the energy management system no longer relies on slow, minute-level economic dispatch but immediately activates a rapid response mechanism. By comprehensively evaluating the current voltage deviation and equipment power status, the required power correction is calculated, and the energy storage device is instructed to perform power throughput. The millisecond-level rapid charging and discharging behavior of the energy storage device directly compensates for the power imbalance in the user-side micro-energy system, thereby preventing the AC bus voltage from rising to the photovoltaic inverter protection threshold, effectively avoiding the photovoltaic grid disconnection problem, and improving the stability and energy utilization rate of the user-side micro-energy system when facing internal power disturbances.

[0008] In conjunction with some embodiments of the first aspect, in some embodiments, after adjusting the charging and discharging power of the energy storage device according to the real-time power control command, the method further includes: obtaining the actual charging and discharging power of the energy storage device in the current scheduling cycle; calculating the actual charging and discharging capacity of the energy storage device in the current scheduling cycle based on the actual charging and discharging power; calculating the planned charging and discharging capacity based on the reference charging and discharging power command and the duration of the current scheduling cycle; calculating the difference between the actual charging and discharging capacity and the planned charging and discharging capacity to obtain a capacity correction value; dividing the capacity correction value by the preset duration of the next scheduling cycle to obtain a power compensation value; and updating the reference charging and discharging power command for the next scheduling cycle based on the power value corresponding to the reference charging and discharging power command and the power compensation value.

[0009] By adopting the above technical solution, the energy management system achieves closed-loop correction of the energy storage device's power. The energy management system accurately calculates the deviation between the actual charging / discharging power caused by emergency power regulation and the originally planned power, obtaining a power correction value, which is then converted into a power compensation value for the next scheduling cycle. By superimposing the power compensation value into the baseline charging / discharging command for the next scheduling cycle, the economic scheduling plan sacrificed to maintain voltage stability in the current scheduling cycle is compensated. This ensures that the energy management system can achieve millisecond-level rapid voltage support without affecting its overall energy management and economic operation goals over long periods, achieving an effective combination of transient stability and long-term economic efficiency.

[0010] In conjunction with some embodiments of the first aspect, in some embodiments, before updating the reference charge / discharge power command for the next scheduling cycle based on the power value corresponding to the reference charge / discharge power command and the power compensation value, the method further includes: obtaining the current state of charge (SOC) value of the energy storage device; determining the operating range of the energy storage device from a preset SOC range based on the current SOC value, the SOC range including an over-discharge protection range, a normal discharge range, a normal charging range, and an overcharge protection range; setting the negative value of the power compensation value to zero when the energy storage device is in the over-discharge protection range; setting the positive value of the power compensation value to zero when the energy storage device is in the overcharge protection range; and correcting the power compensation value according to a preset SOC correction coefficient when the energy storage device is in the normal charging range or the normal discharge range.

[0011] By adopting the above technical solution, the energy management system first performs a safety check on the current state of charge of the energy storage device before implementing power deviation compensation. By establishing overcharge and over-discharge protection zones, when the energy storage device's power level is at its limit, the energy management system will forcibly cancel any compensation adjustments that may endanger battery safety, thereby avoiding physical damage to the energy storage device. Within the normal operating range, by introducing a state of charge correction coefficient, the power compensation amplitude can be finely adjusted according to the remaining battery power. While ensuring the effective execution of power compensation, this ensures the safe and reliable operation of the energy storage device, improving the long-term stability and overall efficiency of the user-side micro-energy system.

[0012] In conjunction with some embodiments of the first aspect, in some embodiments, when the voltage deviation is greater than a preset deviation threshold, the power correction amount of the energy storage device is determined based on the voltage deviation and the device power, and a power correction command is generated. Specifically, this includes: calculating the power change rate of the device power based on a preset number of historical sampling points; determining the correction coefficient corresponding to the power change rate from a preset correction coefficient table based on the absolute value of the power change rate; calculating the power correction amount based on the voltage deviation and the correction coefficient; and generating the power correction command based on the power correction amount.

[0013] By adopting the above technical solution, the energy management system determines the severity of power changes by calculating the power change rate when calculating power correction. Drastic power changes indicate that the current voltage rise is an unstable transient process. In such cases, large-scale power adjustments may exacerbate oscillations in the user-side micro-energy system. Therefore, by correlating the power change rate with the correction coefficient table, the adjustment amplitude can be appropriately reduced during periods of drastic power fluctuations, while more precise adjustments can be made during periods of stable power changes. This effectively avoids secondary disturbances caused by aggressive adjustments, thereby improving the robustness and stability of the power regulation process.

[0014] In conjunction with some embodiments of the first aspect, in some embodiments, after multiplying the voltage deviation by the correction coefficient to obtain the power correction amount, the method further includes: when the power correction amount is greater than the rated power of the energy storage device, determining the rated power as the power correction amount.

[0015] By adopting the above technical solution, after calculating the theoretical power correction amount, an additional verification step is added to check the physical limits of the energy storage device. No matter how large the correction requirement calculated by the front-end algorithm based on voltage deviation and power change rate is, the final command issued to the energy storage device cannot exceed its rated power handling capacity. This effectively prevents the issuance of overpower commands due to abnormal operating conditions or extreme values ​​calculated by the algorithm, avoiding impact and damage to critical equipment such as energy storage converters.

[0016] In conjunction with some embodiments of the first aspect, in some embodiments, before determining the power correction amount of the energy storage device based on the voltage deviation and the device power, and generating a power correction command, the method further includes: acquiring the voltage value at the connection point between the user-side bus and the grid in real time, and determining it as the grid voltage; calculating the difference between the grid voltage and the user-side bus voltage to obtain the grid voltage difference; if the absolute value of the grid voltage difference is less than the preset voltage difference threshold, calculating a first change value of the voltage deviation within a preset time window and a second change value of the device power within the preset time window; if the product of the first change value and the second change value is less than the preset change threshold, calculating the power correction amount, wherein the preset change threshold is negative; if the absolute value of the grid voltage difference is greater than or equal to the preset voltage difference threshold, or the product of the first change value and the second change value is greater than or equal to the preset change threshold, setting the power correction amount to zero.

[0017] By adopting the above technical solution, the energy management system diagnoses and identifies the source of the fault before initiating power correction. First, by comparing the user-side bus voltage with the grid connection point voltage, it can accurately determine whether the voltage anomaly is caused by internal disturbances on the user side or external grid fluctuations, avoiding ineffective responses to grid faults. Second, by analyzing the product of voltage change and equipment power change, it can determine whether voltage fluctuations are strongly correlated with internal power surges. Adjustment is only initiated when the fault source is confirmed to originate from within the user-side micro-energy system, avoiding resource waste and misoperation, making the entire control strategy more targeted and intelligent.

[0018] In conjunction with some embodiments of the first aspect, in some embodiments, adjusting the charging and discharging power of the energy storage device according to the real-time power control command specifically includes: calculating the real-time power difference between the power value corresponding to the real-time power control command and the current charging and discharging power; determining the charging and discharging adjustment direction based on the sign of the real-time power difference; gradually adjusting the charging and discharging power of the energy storage device according to a preset power adjustment step size and the charging and discharging adjustment direction; calculating the updated voltage deviation after each adjustment of the charging and discharging power; and stopping the adjustment of the charging and discharging power when the updated voltage deviation is lower than the preset deviation threshold.

[0019] By adopting the above technical solution, the energy management system employs a gradual closed-loop adjustment method to achieve the specific adjustment process of the charging and discharging power of the energy storage device. The energy management system first calculates the difference between the target power and the current power, and then gradually and repeatedly approaches the target value using a preset power adjustment step size. After each adjustment step, the energy management system immediately recalculates the voltage deviation and determines whether it has returned to within the safe threshold. Once the voltage meets the target, the adjustment process immediately stops. This gradual adjustment method avoids the system overshoot or oscillation problems that may occur in the user-side micro-energy system due to a single large-amplitude power adjustment, making the power adjustment process smoother and more stable, achieving efficient and stable control.

[0020] In a second aspect, embodiments of this application provide an energy management system, which includes: one or more processors and a memory; the memory is coupled to the one or more processors, and the memory is used to store computer program code, the computer program code including computer instructions, and the one or more processors call the computer instructions to cause the energy management system to perform the methods described in the first aspect and any possible implementation thereof.

[0021] Thirdly, embodiments of this application provide a computer program product containing instructions that, when the computer program product is run on an energy management system, cause the energy management system to perform the method described in the first aspect and any possible implementation thereof.

[0022] Fourthly, embodiments of this application provide a computer-readable storage medium including instructions that, when executed on an energy management system, cause the energy management system to perform the method described in the first aspect and any possible implementation thereof.

[0023] Understandably, the energy management system provided in the second aspect, the computer program product provided in the third aspect, and the computer storage medium provided in the fourth aspect are all used to execute the methods provided in the embodiments of this application. Therefore, the beneficial effects they can achieve can be referred to the beneficial effects in the corresponding methods, and will not be repeated here.

[0024] One or more technical solutions provided in the embodiments of this application have at least the following technical effects or advantages: 1. By adopting a technical solution that acquires AC bus voltage in real time and calculates voltage deviation, and determines the power correction amount of the energy storage device based on the voltage deviation and equipment power when the voltage deviation exceeds a preset deviation threshold, and adjusts its charging and discharging power, the energy management system can respond quickly to power surges caused by the start-up and shutdown of high-power loads at millisecond speeds. It actively balances the system through the rapid power throughput of the energy storage device, effectively solving the problem in related technologies where the energy management system has an excessively long decision cycle, cannot suppress voltage fluctuations in time, and causes AC bus voltage jumps and triggers protective disconnection of the photovoltaic inverter. This achieves rapid and stable control of the voltage of the user-side micro energy system, ensuring the system's power supply reliability and photovoltaic energy utilization efficiency.

[0025] 2. By employing a technical solution that calculates the difference between the actual and planned charge / discharge capacity to obtain a power correction value, and then generates a power compensation value to update the benchmark charge / discharge power command for the next scheduling cycle, the energy management system can perform closed-loop correction on the economic scheduling plan that deviates due to transient response after completing rapid voltage regulation. This compensates for the current cycle's power deviation in the next cycle, effectively solving the problem of conflict between rapid voltage support and long-term economic scheduling in related technologies, and the issue of sacrificing overall operational economy to ensure transient stability. This achieves the coordinated unity of transient voltage stability control and long-term energy optimization management, ensuring system safety while also considering operational economic benefits.

[0026] 3. By employing a technical solution that determines the grid voltage difference and the product of voltage change and equipment power change before calculating the power correction, and decides whether to set the power correction to zero based on the judgment result, the energy management system can intelligently diagnose the source and nature of voltage anomalies before responding, distinguishing between external grid fluctuations and internal power surges. This effectively solves the problem in related technologies where control strategies do not distinguish the source of disturbances and blindly execute power regulation, leading to ineffective responses to grid faults or inappropriate interventions in the normal dynamic processes of the system. As a result, it achieves precise triggering of power regulation actions, avoids unnecessary energy storage calls and potential control conflicts, and significantly improves the intelligence level and robustness of the entire control system. Attached Figure Description

[0027] Figure 1 This is a schematic diagram of a scenario for the analysis and control method of power data in an embodiment of this application; Figure 2 This is a flowchart illustrating a method for analyzing and controlling power data in an embodiment of this application; Figure 3 This is another flowchart illustrating the power data analysis and control method in the embodiments of this application; Figure 4 This is a schematic diagram of the physical device structure of an energy management system in an embodiment of this application. Detailed Implementation

[0028] The terminology used in the following embodiments of this application is for the purpose of describing particular embodiments only and is not intended to be limiting of this application. As used in the specification of this application, the singular expressions “a,” “an,” “the,” “the,” and “this” are intended to include the plural expressions as well, unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used in this application refers to any or all possible combinations including one or more of the listed items.

[0029] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as implying or suggesting relative importance or implicitly indicating the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature, and in the description of the embodiments of this application, unless otherwise stated, "multiple" means two or more.

[0030] To facilitate understanding, the following will be combined with Figure 1 This section introduces application scenarios for embodiments of this application. Please refer to [link / reference]. Figure 1This is a schematic diagram of a scenario for the analysis and control method of power data in an embodiment of this application. The user-side micro energy system 100 includes: power generation equipment 101, energy storage device 102, power consumption equipment 103, photovoltaic inverter 104, and AC bus voltage 105.

[0031] In related technologies, energy storage devices can be controlled by using economical dispatch commands with cycles of seconds or minutes to achieve economical operation of the user-side micro energy system 100. The following describes a scenario using power data analysis and control methods from related technologies. When a high-power load in the electrical equipment 103 suddenly starts or stops, it causes a sudden change in system power within milliseconds. Because existing energy management systems have excessively long decision-making cycles and cannot respond quickly, the AC bus voltage 105 rapidly rises or falls, triggering the overvoltage protection of the photovoltaic inverter 104, causing it to reduce power or even disconnect from the grid.

[0032] The power data analysis and control method described in this application, by acquiring the AC bus voltage 105 and the power of each device in real time, can quickly calculate the power correction required by the energy storage device 102 at millisecond speeds when voltage fluctuations exceed a preset deviation threshold, and generate real-time power control commands to rapidly adjust its charging and discharging power. This achieves rapid compensation for system power imbalance, not only maintaining the AC bus voltage 105 within a stable range but also preventing the protective disconnection of the photovoltaic inverter 104 from the grid. The following describes a scenario where the power data analysis and control method of this application is used.

[0033] As can be seen, by adopting the power data analysis and control method in the embodiments of this application, stable control of the user-side micro energy system 100 can be achieved, while effectively solving the problem that the existing energy management system has a slow response speed and cannot cope with millisecond-level power surges that cause the photovoltaic inverter 104 to disconnect from the grid. This achieves the continuity and stability of the system power supply and improves the utilization efficiency of distributed energy sources such as the power generation equipment 101.

[0034] To facilitate understanding, the method provided in this implementation will be described in detail below, using the above scenario as an example. Please refer to [link / reference]. Figure 2 This is a flowchart illustrating a method for analyzing and controlling power data in an embodiment of this application.

[0035] S201. Real-time acquisition of the AC bus voltage of the user-side micro energy system, and calculation of the voltage deviation of the AC bus voltage relative to the preset voltage reference value. Among them, the user-side micro energy system refers to a small power system composed of distributed generation equipment, energy storage devices and electrical loads; the AC bus voltage refers to the voltage value of the common AC electrical node connected to each device in the user-side micro energy system; the preset voltage reference value represents the standard voltage value when the system is operating normally, usually set to 220V or 380V; the voltage deviation is used to represent the difference between the actual AC bus voltage and the preset voltage reference value.

[0036] The energy management system continuously monitors the AC bus voltage during system operation. Specifically, the energy management system first needs to set the voltage reference value: (1) Select the initial voltage reference value according to the rated operating voltage level of the user-side micro energy system, such as 220V for a single-phase system and 380V for a three-phase system; (2) Consider the allowable voltage fluctuation range of the user-side micro energy system, which is usually ±7% of the rated voltage; (3) Adjust the initial voltage reference value in combination with the local power grid operation requirements to obtain the voltage reference value. At the same time, the energy management system collects AC bus voltage data in real time with a high-precision voltage sensor at a millisecond sampling period. The collected voltage data is digitally filtered to eliminate high-frequency interference and measurement noise. Then, the difference between the processed voltage value and the pre-set voltage reference value is calculated to obtain the voltage deviation at the current moment.

[0037] In some embodiments, the real-time acquisition of AC bus voltage and the calculation of voltage deviation can be achieved in various ways: Optionally, the energy management system may: (1) acquire voltage data through smart meters; (2) verify the validity of the data; and (3) calculate the deviation based on the verified data.

[0038] It is understandable that other methods can be used to acquire voltage data and calculate deviations, and no limitation is made here.

[0039] S202. Monitor the power of equipment in the user-side micro energy system in real time, including photovoltaic power generation, load power and energy storage device charging and discharging power; Among them, equipment power represents the real-time power value of various electrical devices in the system; photovoltaic power generation power refers to the output power of the photovoltaic power generation system; load power represents the power consumed by the electrical load; and the charging and discharging power of the energy storage device is used to represent the power value when the energy storage system is charging or discharging.

[0040] The energy management system needs to monitor the power status of each device in the system in real time. Specifically, the energy management system first plans and configures the power measurement points for various devices: power sensors are installed at the output of the photovoltaic inverter, the input of the main loads, and the AC side of the energy storage converter. The power data acquisition period needs to be synchronized with the voltage sampling, also using millisecond-level sampling. For photovoltaic power generation, the energy management system records active and reactive power in real time; for load power, critical and non-critical loads are monitored separately; for energy storage devices, charging and discharging power and state of charge (SOC) are monitored simultaneously. The energy management system comprehensively analyzes the collected power data, calculates the power balance state at the current moment, and uses the analysis results for subsequent power regulation decisions.

[0041] S203. When the voltage deviation exceeds the preset deviation threshold, determine the power correction amount of the energy storage device based on the voltage deviation and the device power, and generate a power correction command. Among them, the preset deviation threshold represents the maximum voltage deviation allowed by the system, which is used to determine whether voltage regulation is required. This deviation threshold is usually set to ±5% of the rated voltage; the power correction amount refers to the power value of the energy storage device that needs to be adjusted; the power correction command is used to instruct the energy storage device to perform corresponding power regulation.

[0042] When the voltage deviation exceeds the allowable range, the energy management system needs to calculate the correction amount and issue an adjustment command. Specifically, the energy management system first needs to set a preset deviation threshold, including: (1) analyzing the voltage tolerance of the equipment in the user-side micro energy system, especially the overvoltage protection threshold of the photovoltaic inverter; (2) considering the voltage deviation requirements in the power quality standards, which are usually ±5% of the rated voltage; (3) leaving a certain margin so that the deviation threshold is less than the equipment protection value. During operation, the energy management system continuously compares the voltage deviation with the preset deviation threshold. When the deviation exceeds the preset deviation threshold, the energy management system immediately starts the correction calculation process: first, it analyzes the current power status of each device, and then, based on the direction and magnitude of the voltage deviation and combined with the pre-established voltage-power characteristic curve, calculates the power correction amount that the energy storage device needs to adjust. After calculating the correction amount, the energy management system generates a power correction command containing the adjustment direction and amount, and sends the command to the controller of the energy storage device through the communication interface.

[0043] In some embodiments, the power correction amount can be determined in a variety of ways: Optionally, the energy management system may: (1) determine the correction factor based on the voltage deviation; (2) calculate the correction amount in combination with the equipment power; and (3) generate correction instructions.

[0044] It is understandable that other methods can be used to determine the power correction amount, and no limitation is made here.

[0045] S204. Generate a real-time power control command for the energy storage device based on the power correction command and the preset reference charge / discharge power command. Among them, the power correction command represents the control signal for adjusting the power of the energy storage device, including the adjustment direction and adjustment amount information; the reference charge and discharge power command refers to the standard operating power command of the energy storage device pre-formulated by the energy management system according to the day-ahead optimization plan; the real-time power control command is used to represent the actual execution command finally sent to the energy storage device, which comprehensively considers the reference control command and correction requirements.

[0046] Upon receiving a power correction command, the energy management system needs to coordinate it with a reference charge / discharge power command. Specifically, the energy management system first checks the currently executing reference charge / discharge power command, then algebraically superimposes the correction amount in the power correction command with the reference command, while considering constraints such as power limitations and state of charge of the energy storage device. Based on the superposition result, the energy management system generates a new real-time power control command that ensures timely voltage regulation while maintaining the original optimized scheduling plan as much as possible.

[0047] In some embodiments, the generation of real-time power control commands can be achieved in a variety of ways: Optionally, the energy management system may: (1) establish an adjustable range for the baseline command; (2) map the power correction amount to the adjustable range; (3) make corrections in conjunction with the state of charge of the energy storage device; (4) calculate the final control power value; and (5) generate real-time power control commands.

[0048] It is understandable that other methods can be used to generate and issue real-time power control commands, and no specific method is specified here.

[0049] S205. Adjust the charging and discharging power of the energy storage device according to the real-time power control command so that the voltage deviation is lower than the preset deviation threshold.

[0050] The energy management system executes power regulation immediately after generating a real-time power control command. Specifically, the energy management system first sends the real-time power control command to the local controller of the energy storage device via the communication network. After receiving the command, the energy storage device gradually adjusts its charging and discharging power according to the power value in the real-time power control command. The adjustment process uses ramp control to avoid sudden power changes. During the adjustment process, the energy management system continuously monitors changes in the AC bus voltage, calculates the voltage deviation in real time, and compares it with a preset deviation threshold. When the voltage deviation is detected to decrease below the threshold, it indicates that the voltage regulation has achieved the expected target, and the energy storage device will maintain the current charging and discharging power operation.

[0051] In some embodiments, the charging and discharging power of the energy storage device can be regulated and controlled in a variety of ways: Optionally, the energy management system may: (1) divide the target power into multiple adjustment ranges; (2) adopt different adjustment strategies in each range; (3) evaluate the adjustment effect in real time; (4) dynamically adjust the power change rate; and (5) stop adjustment after confirming that the voltage deviation is lower than the preset deviation threshold.

[0052] It is understandable that other methods can be used to adjust the charging and discharging power of energy storage devices, which are not limited here.

[0053] In this embodiment, by acquiring the AC bus voltage and equipment power of the user-side micro energy system in real time, when the voltage deviation exceeds a preset deviation threshold, the power correction amount of the energy storage device can be quickly determined. Combined with the preset reference charging and discharging power command, a real-time power control command is generated to adjust the charging and discharging power of the energy storage device. Therefore, the energy management system can quickly and proactively intervene in power imbalances caused by internal disturbances such as the start-up and shutdown of high-power loads at the millisecond time scale. This effectively solves the problem in related technologies where energy management systems rely only on slow economic scheduling at the second or minute level, which cannot cope with millisecond-level power mutations, leading to AC bus voltage exceeding limits and triggering photovoltaic inverter disconnection. This achieves rapid and stable control of the bus voltage of the user-side micro energy system, ensuring the continuity and stability of power supply under severe internal power fluctuations and improving the utilization efficiency of distributed energy sources such as photovoltaics.

[0054] In light of the above scenarios, the method provided in this implementation will now be described in more detail. Please refer to [link / reference]. Figure 3 This is another flowchart illustrating the power data analysis and control method in this application embodiment.

[0055] S301. Real-time acquisition of the AC bus voltage of the user-side micro energy system, and calculation of the voltage deviation of the AC bus voltage relative to the preset voltage reference value. S302. Real-time monitoring of the equipment power in the user-side micro energy system, including photovoltaic power generation, load power, and energy storage device charging and discharging power; Steps S301 and S302 and Figure 2 The steps S201 and S202 of the embodiment are described similarly and will not be repeated here. Please refer to the description of the corresponding steps.

[0056] S303. When the voltage deviation is greater than the preset deviation threshold, the voltage value at the connection point between the user-side bus and the power grid is obtained in real time and determined as the power grid voltage; the difference between the power grid voltage and the voltage of the user-side bus is calculated to obtain the power grid voltage difference. Among them, grid voltage represents the real-time voltage value at the grid connection point; grid voltage difference is used to represent the degree of difference between grid voltage and user-side bus voltage.

[0057] When the energy management system detects a voltage deviation exceeding a preset deviation threshold, it needs to further determine the source of the voltage anomaly. Specifically, the energy management system uses voltage sensors to collect the voltage value at the grid connection point in real time and identifies this voltage value as the grid voltage. Then, it calculates the difference between the grid voltage and the acquired user-side bus voltage to obtain the grid voltage difference, which is used to determine whether the voltage anomaly is caused by grid fluctuations or by internal factors within the user-side micro-energy system.

[0058] S304. If the absolute value of the grid voltage difference is less than the preset voltage difference threshold, calculate the first change value of the voltage deviation within the preset time window and the second change value of the equipment power within the preset time window. Among them, the preset voltage difference threshold represents the standard value for judging the impact of grid voltage fluctuations, and is used to distinguish the source of voltage anomalies. The setting method of the voltage difference threshold includes: (1) analyzing the historical fluctuation range of grid voltage; (2) considering the ability of the user-side micro energy system to withstand grid fluctuations; (3) combining the power quality standard requirements, it is usually set to ±3% of the rated voltage; the preset time window refers to the time range for calculating the change value. The setting method of the time window includes: (1) selecting the reference window length according to the control response speed of the user-side micro energy system; (2) considering the integer multiple of the data sampling period; (3) combining the dynamic characteristics of the system to determine the final window length; the first change value represents the change amplitude of the voltage deviation within the time window; the second change value is used to represent the change amplitude of the equipment power within the time window.

[0059] When the absolute value of the grid voltage difference is less than a preset voltage difference threshold, the energy management system needs to further analyze the dynamic characteristics of voltage and power changes. Specifically, the energy management system first collects sampling data of voltage deviation and equipment power within the preset time window. For voltage deviation, the difference between the last sampling point and the first sampling point within the window is calculated to obtain the first change value; for equipment power, the difference between the first and last sampling points within the window is similarly calculated to obtain the second change value. These two change values ​​reflect the relationship between system voltage and power changes when a voltage anomaly occurs.

[0060] In some embodiments, the change value can be calculated in a variety of ways: Optionally, the energy management system may: (1) establish a data buffer queue of fixed length; (2) update the queue data according to the sampling period; (3) extract the first and last data of the queue and calculate the difference; (4) perform digital filtering on the difference; and (5) output the final change value result.

[0061] Optionally, the energy management system may also: (1) set a sliding time window; (2) collect and store data in real time; (3) calculate the average slope of the data within the window; (4) convert the slope into a change value; and (5) update the change value calculation result.

[0062] It is understandable that other methods can be used to calculate the change value, and no limitation is made here.

[0063] S305. If the product of the first change value and the second change value is less than a preset change threshold, then the power correction amount is calculated, and the preset change threshold is a negative value. The preset change threshold represents the standard value for judging the correlation between voltage and power changes. The change threshold is negative and is set through the following steps: (1) collecting historical data during normal system operation; (2) analyzing typical characteristics of voltage and power changes; (3) determining the initial threshold based on expert experience; and (4) verifying and optimizing the threshold through actual operation. The power correction amount refers to the power value of the energy storage device that needs to be adjusted.

[0064] When the product of the first and second changes is less than a preset threshold, the energy management system needs to confirm whether the internal voltage disturbance is caused by an internal power surge to determine whether to initiate power correction calculations. Specifically, the energy management system analyzes the relationship between voltage and power changes to accurately identify voltage fluctuation events caused by power surges. The preset threshold is a negative number (e.g., -100 kW·V) as a quantitative standard for judging the severity of the disturbance. In user-side micro-energy systems, there is a clear physical relationship between voltage and power changes: when the system power balance is disrupted, the voltage fluctuates accordingly, and the two exhibit a negative correlation.

[0065] In a power shortage scenario (voltage sag), when a high-power inductive load (such as a large motor or air conditioner compressor) in a user-side micro-energy system suddenly starts, a momentary power shortage occurs. At this time, the net power consumption of the user-side micro-energy system increases sharply, making the second change value (i.e., power change) a positive number; simultaneously, due to the insufficient power supply, the user-side bus voltage drops rapidly, making the first change value (i.e., voltage change) a negative number. Calculating the product of the first and second change values ​​yields a negative number less than a preset change threshold (the absolute value of this negative number is greater than the absolute value of the preset change threshold).

[0066] Similarly, in a power surplus scenario (voltage surge), when a high-power load in a user-side micro-energy system is suddenly disconnected, a momentary power surplus occurs. This results in the second change value being negative, while the first change value is positive. Calculating the product of the first and second change values ​​will also yield a negative number that is less than the preset change threshold.

[0067] Therefore, when the energy management system confirms that the product of the first change value and the second change value is less than the preset change threshold, it determines that the current voltage disturbance is caused by an internal power mutation event and begins to calculate the specific power correction amount.

[0068] S306. If the absolute value of the grid voltage difference is greater than or equal to the preset voltage difference threshold, or the product of the first change value and the second change value is greater than or equal to the preset change threshold, then the power correction amount is set to zero.

[0069] When the grid voltage difference is large or the voltage-power changes are strongly correlated, the energy management system needs to suspend power regulation. Specifically, the energy management system sets the power correction to zero in two situations: The first scenario: The absolute value of the grid voltage difference is greater than or equal to the preset voltage difference threshold. This scenario indicates that the significant fluctuations in the user-side bus voltage are highly synchronized with and similar in magnitude to the voltage fluctuations at the grid connection point. The root cause lies in voltage disturbances in the external grid (such as upstream line faults or large impact loads), rather than power imbalances within the user-side micro-energy system. For the user-side micro-energy system, the capacity and power of its internal energy storage devices are far insufficient to combat voltage fluctuations in the entire large grid. If the energy management system were to attempt power regulation under these circumstances, it would be ineffective and uneconomical, and might even conflict with the voltage regulation strategy of the upstream grid. Therefore, based on this judgment, the energy management system identifies that the disturbance originates from the outside and decisively sets the power correction to zero, choosing not to respond.

[0070] In the second scenario, the product of the first change value and the second change value is greater than or equal to a preset negative change threshold. This indicates that even if the disturbance originates internally, its characteristics do not conform to the typical pattern requiring energy storage for rapid power intervention. This scenario can be further subdivided into two distinct sub-scenarios: Sub-scenario 1: The product is positive or zero. This indicates that voltage changes and power changes are either in the same direction or unrelated, completely violating the physical law that voltage fluctuations are caused by internal power surges. This signal pattern is highly likely an abnormal signal caused by noise in the measuring device, errors in data transmission, minor oscillations in the control loop, or other non-power disturbance factors. The energy management system will identify this as an invalid "false alarm," and responding to it will not only be erroneous but may also negatively impact the stability of the user-side micro-energy system.

[0071] Sub-scenario 2: The product is negative, but its absolute value is small (i.e., numerically greater than or equal to the preset negative value change threshold). This indicates that power-voltage fluctuations conforming to physical laws have indeed occurred within the user-side micro-energy system, but the disturbance amplitude is very weak, falling within the background fluctuations of the system's normal operating range. These fluctuations are insufficient to damage electrical equipment or cause the photovoltaic inverter to disconnect from the grid. If the energy management system responds to every such minor disturbance, it will lead to frequent shallow charging and discharging of the energy storage device, which will significantly increase equipment wear, reduce energy conversion efficiency, and shorten its cycle life.

[0072] In both cases, the energy management system sets the power correction to zero, records relevant event information, and waits for the next opportunity to make a judgment.

[0073] S307. Determine the power correction amount of the energy storage device based on the voltage deviation and the device power, and generate a power correction command; This step specifically includes: Based on a preset number of historical sampling points, calculate the power change rate of the device. Based on the absolute value of the power change rate, determine the correction coefficient corresponding to the power change rate from the preset correction coefficient table; The power correction amount is calculated based on the voltage deviation and the correction factor. When the power correction amount is greater than the rated power of the energy storage device, the rated power is determined as the power correction amount. The power correction command is generated based on the power correction amount.

[0074] Among them, historical sampling points represent historical measurement data of equipment power, usually selecting the most recent 10-20 sampling points; power change rate refers to the rate of change of equipment power per unit time; correction coefficient table is used to store correction coefficients corresponding to different power change rates; correction coefficients represent the degree of suppression of voltage regulation based on the severity of power change; rated power represents the maximum allowable charging and discharging power of the energy storage device.

[0075] The correction coefficient table is established through the following steps: (1) Analyze the power change characteristics under typical operating conditions of the user-side micro energy system; (2) Determine the segmented intervals and corresponding coefficients of the power change characteristics; (3) Verify and optimize through actual operation to obtain a feasible correction coefficient table.

[0076] After confirming the need for power correction, the energy management system immediately initiates the calculation process for the correction amount. Specifically, the energy management system first calculates the rate of change of equipment power based on a preset number of historical sampling points: first, the most recent historical sampling points are selected, with the number of sampling points determined according to the dynamic characteristics of the user-side micro-energy system; then, a differential method is used to calculate the power change between adjacent sampling points; finally, the change is divided by the sampling time interval to obtain the power change rate. Then, based on the absolute value of the power change rate, the corresponding correction coefficient is looked up from a preset correction coefficient table. The larger the power change rate, the smaller the correction coefficient, in order to reduce the adjustment amplitude. For example, this correction coefficient table can be set as follows: when the absolute value of the power change rate is in the range [0, 100kW / s), the correction coefficient is 1.0; in the range [100kW / s, 300kW / s), the correction coefficient is 0.8; and in the range [300kW / s, ∞), the correction coefficient is 0.5. Through this setting, the adjustment amplitude can be reduced when the power changes drastically, preventing system oscillation. Those skilled in the art will understand that the specific values ​​in this table can be adjusted according to the actual system parameters and are not limited to this example. Next, the voltage deviation is multiplied by a correction factor to obtain a preliminary power correction. If the calculated power correction exceeds the rated power of the energy storage device, the correction is limited to within the rated power range. Finally, the energy management system generates a power correction command, including the adjustment direction and amount, based on the final determined power correction.

[0077] Optionally, the power of the device can be the algebraic sum of the photovoltaic power generation power, the load power, and the charging and discharging power of the energy storage device, that is, the net power of the user-side micro energy system, so as to more accurately reflect the power change state of the user-side micro energy system.

[0078] S308. Generate a real-time power control command for the energy storage device based on the power correction command and the preset reference charge / discharge power command. Step S308 and Figure 2The description of step S204 in the embodiment is similar and will not be repeated here. Please refer to the description of the corresponding step.

[0079] S309. Adjust the charging and discharging power of the energy storage device according to the real-time power control command so that the voltage deviation is lower than the preset deviation threshold. This step specifically includes: Calculate the power difference between the power value corresponding to the real-time power control command and the current real-time power of the charge / discharge. The direction of charge and discharge adjustment is determined based on the sign of the real-time power difference; the charge and discharge power of the energy storage device is gradually adjusted according to the preset power adjustment step size and the direction of charge and discharge adjustment. After each adjustment of the charging / discharging power, the updated voltage deviation is calculated; when the updated voltage deviation is lower than the preset deviation threshold, the adjustment of the charging / discharging power is stopped.

[0080] Among them, the benchmark charging and discharging power instruction refers to the standard operating power instruction of the energy storage device pre-formulated by the energy management system according to the day-ahead optimization plan. The benchmark charging and discharging power instruction is generated through the following steps: (1) collecting load forecast and electricity price data; (2) performing day-ahead optimization scheduling calculations; and (3) generating time-of-use power instructions.

[0081] After generating a power correction command, the energy management system needs to coordinate it with the baseline charge / discharge power command. Specifically, the energy management system first checks the baseline charge / discharge power command for the current period. This command is pre-planned and generated based on factors such as electricity prices and load forecasts, representing the most economically optimal operating scheme. Then, the correction amount in the power correction command is algebraically superimposed with the baseline command, while considering the following constraints: power limitations of the energy storage device, state of charge range, and charge / discharge conversion characteristics. Based on the superposition result, the energy management system generates a new real-time power control command.

[0082] S310. Obtain the actual charging and discharging power of the energy storage device in the current scheduling cycle; and calculate the actual charging and discharging capacity of the energy storage device in the current scheduling cycle based on the actual charging and discharging power. Among them, actual charging and discharging power represents the real-time power value of the energy storage device during operation; the current scheduling cycle refers to the time interval for the energy management system to perform power scheduling, which is usually 15 minutes or 30 minutes; actual charging and discharging capacity represents the actual charging or discharging amount completed by the energy storage device within the current scheduling cycle.

[0083] After completing voltage regulation, the energy management system needs to assess the actual operating status of the energy storage device. Specifically, the energy management system first acquires real-time charging and discharging power data of the energy storage device through power sensors, with a sampling period typically on the order of milliseconds. The acquired power data undergoes digital filtering to eliminate measurement noise. Then, the processed power value is multiplied by the sampling time interval and summed to obtain the actual charging and discharging capacity of the energy storage device within the current scheduling cycle. This calculation process needs to consider the direction of charging and discharging; charging is typically defined as positive and discharging as negative.

[0084] S311. Calculate the planned charging and discharging capacity based on the baseline charging and discharging power command and the duration of the current scheduling cycle; Among them, the reference charge and discharge power command represents the standard operating power value of the energy storage device pre-planned by the energy management system; the duration of the dispatch cycle refers to the time span of each dispatch cycle; and the planned charge and discharge capacity is used to represent the target charge and discharge capacity that the energy storage device should complete within the current dispatch cycle.

[0085] The energy management system needs to calculate the target power volume based on a pre-defined dispatch plan. Specifically, the energy management system first identifies the baseline charge / discharge power command for the current dispatch cycle. This baseline command is typically generated in advance based on factors such as electricity prices and load forecasts. Then, the baseline command is multiplied by the duration of the dispatch cycle to obtain the planned charge / discharge power volume. This planned charge / discharge power volume reflects the target charge / discharge volume that the energy storage device should achieve under the most economically optimal operating scheme.

[0086] S312. Calculate the difference between the actual charge / discharge capacity and the planned charge / discharge capacity to obtain the power correction value; and divide the power correction value by the preset duration of the next scheduling cycle to obtain the power compensation value. Among them, the power correction value represents the difference between the actual charging and discharging power and the planned charging and discharging power; the preset duration refers to the length of the next scheduling cycle; and the power compensation value is used to represent the power value that needs to be adjusted in the next cycle in order to compensate for the power difference.

[0087] After obtaining the actual and planned electricity consumption, the energy management system needs to calculate a compensation value for subsequent adjustments. Specifically, the energy management system first calculates the difference between the actual and planned charging / discharging capacity to obtain a power correction value. This correction value reflects the deviation in the execution of the charging / discharging plan due to voltage regulation. Then, the power correction value is divided by the preset duration of the next scheduling cycle to obtain a power compensation value. This power compensation value will be used to correct the baseline charging / discharging power command in the next cycle to compensate for the power deviation generated in the current cycle.

[0088] S313. Obtain the current state of charge value of the energy storage device; based on the current state of charge value, determine the operating range of the energy storage device from a preset state of charge range, the state of charge range including an over-discharge protection range, a normal discharge range, a normal charging range and an overcharge protection range. The current state of charge (SBC) value represents the current battery charge level of the energy storage device. The SBC range refers to the range of charge levels corresponding to different operating states of the energy storage device. This SBC range is set through the following steps: (1) analyzing battery performance parameters; (2) considering service life requirements; and (3) combining safe operation requirements. The over-discharge protection range represents the range where the battery charge is too low and discharge needs to be limited, usually 0-10%. The normal discharge range represents the range where discharge can be safely carried out, usually 10-40%. The normal charging range represents the range where normal charging can be carried out, usually 40-90%. The overcharge protection range represents the range where the battery charge is too high and charging needs to be limited, usually 90-100%.

[0089] After calculating the power compensation value, the energy management system needs to determine the practically executable compensation strategy based on the current state of the energy storage device. Specifically, the energy management system first obtains the real-time state of charge (SOC) value of the energy storage device through the battery management system. This SOC value reflects the remaining percentage of battery capacity. Then, it compares this SOC value with preset interval boundaries to determine the current operating interval of the energy storage device. Different operating intervals correspond to different charge and discharge limits: the over-discharge protection interval prohibits discharge, the normal discharge interval allows discharge but the rate must be controlled, the normal charging interval allows free charging and discharging, and the overcharge protection interval prohibits charging. Based on the determined operating interval, the energy management system provides a basis for subsequent power compensation value adjustments.

[0090] S314. When the energy storage device is in the over-discharge protection zone, the negative value of the power compensation value is set to zero. When an energy storage device is in the over-discharge protection zone, the energy management system needs to limit the compensation for discharge power. Specifically, the energy management system first checks the sign of the power compensation value and identifies negative compensation amounts that indicate increased discharge. Since the energy storage device's state of charge is already in the over-discharge protection zone at this time, continued discharge may damage the battery. Therefore, the energy management system forcibly sets all negative compensation amounts to zero, while retaining positive compensation amounts to allow charging operations. This approach ensures the safe operation of the energy storage device and avoids the risk of over-discharge.

[0091] S315. When the energy storage device is in the overcharge protection range, the positive value of the power compensation value is set to zero. When an energy storage device is in the overcharge protection zone, the energy management system needs to limit the charging power compensation. Specifically, the energy management system first checks the sign of the power compensation value to identify the positive compensation amount indicating increased charging. Since the energy storage device's state of charge is already in the overcharge protection zone at this time, continuing to charge may cause the battery to overcharge. Therefore, the energy management system forcibly sets all positive compensation amounts to zero, while retaining negative compensation amounts to allow discharging operation. This approach protects the energy storage device from overcharge damage and extends battery life.

[0092] S316. When the energy storage device is in the normal charging range or the normal discharging range, the power compensation value is corrected according to the preset state of charge correction coefficient.

[0093] Among them, the state of charge correction factor represents the coefficient for adjusting the power compensation value according to the current state of charge of the energy storage device. The state of charge correction factor is determined by the following steps: (1) analyzing the battery charging and discharging characteristics; (2) establishing the relationship curve between the state of charge and the allowable charging and discharging power; (3) determining the correction factor value in different intervals.

[0094] After confirming that the energy storage device is within its normal operating range, the energy management system needs to perform fine-grained power compensation adjustments based on the specific state of charge (SOC). Specifically, the energy management system first looks up the corresponding correction coefficient from a pre-established correction coefficient table based on the current SOC value of the energy storage device. In the normal charging range, the charging correction coefficient gradually decreases as the SOC increases to achieve a smooth reduction in charging power; in the normal discharging range, the discharging correction coefficient gradually decreases as the SOC decreases to achieve a smooth reduction in discharging power. The energy management system multiplies the found correction coefficient by the power compensation value to obtain the final corrected compensation value. This approach ensures both power compensation and prevents the energy storage device from operating at its limits.

[0095] In some embodiments, the correction process for the power compensation value can be implemented in a variety of ways: Optionally, the energy management system may: (1) establish a piecewise linear correspondence between the state of charge and the correction coefficient; (2) calculate the correction coefficient by linear interpolation based on the current state of charge; (3) multiply the correction coefficient by the original compensation value; (4) check whether the corrected compensation value meets the power limit of the energy storage device; and (5) output the final correction result.

[0096] It is understandable that other methods can be used to correct the power compensation value, which are not limited here.

[0097] S317. Update the reference charge / discharge power command for the next scheduling cycle based on the power value corresponding to the reference charge / discharge power command and the power compensation value.

[0098] Among them, the reference charge and discharge power command represents the standard operating power value of the energy storage device pre-planned by the energy management system; the power compensation value refers to the power value that needs to be adjusted to compensate for the power deviation; the next scheduling cycle represents the new time interval to be executed, which usually has the same duration as the current cycle.

[0099] After correcting the power compensation value, the energy management system needs to update the operating instructions for the next scheduling cycle. Specifically, the energy management system first obtains the original reference charge / discharge power instruction for the next cycle, which comes from the day-ahead optimized scheduling plan. Then, it algebraically superimposes the corrected power compensation value with the reference instruction to obtain the updated power instruction. During the superposition process, the energy management system needs to check: (1) whether the superposition result exceeds the rated power limit of the energy storage device; (2) whether it meets the minimum time interval requirement for charge / discharge conversion; and (3) whether it meets the ramp rate limit of the energy storage device. If the limit is exceeded, the superposition result needs to be trimmed or smoothed. Finally, the energy management system stores the updated power instruction in the scheduling instruction queue, waiting to be executed at the beginning of the next cycle.

[0100] In some embodiments, the update of the reference charge / discharge power command can be implemented in a variety of ways: Optionally, the energy management system may: (1) divide the baseline command into multiple time periods; (2) superimpose compensation values ​​for each time period; (3) check the power change rate of adjacent time periods; (4) perform power smoothing processing; (5) synthesize the final power command sequence; and (6) store the updated command.

[0101] It is understandable that other methods can be used to implement the update process of the reference charge and discharge power command, which are not limited here.

[0102] In this embodiment, the energy management system employs a technical solution that involves intelligently diagnosing disturbance sources using information such as grid voltage difference before power correction, adaptively calculating the power correction amount based on the equipment power change rate, and then performing closed-loop control of the energy storage device through gradual adjustment. Finally, it can calculate the power correction value and combine it with the energy storage state of charge to provide safety compensation for the reference charging and discharging power command for the next scheduling cycle. Therefore, the energy management system constructs a complete control logic of "precise diagnosis, adaptive decision-making, stable execution, and post-compensation," realizing intelligent closed-loop management of the user-side micro energy system under multiple objectives such as safety, efficiency, and economy, and improving the overall stability and robustness of the energy management system in dealing with complex operating conditions.

[0103] The energy management system in the embodiments of this invention is described below from the perspective of hardware processing. Please refer to [link / reference]. Figure 4This is a schematic diagram of the physical device structure of an energy management system in an embodiment of this application.

[0104] It should be noted that, Figure 4 The structure of the energy management system shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of the present invention.

[0105] like Figure 4 As shown, the energy management system includes a CPU 401, which can perform various appropriate actions and processes based on a program stored in the read-only memory ROM 402 or a program loaded from the storage section 408 into the random access memory RAM 403, such as performing the methods described in the above embodiments. The RAM 403 also stores various programs and data required for system operation. The CPU 401, ROM 402, and RAM 403 are interconnected via a bus 404. An I / O interface 405 is also connected to the bus 404.

[0106] The following components are connected to I / O interface 405: input section 406 including audio input devices, push-button switches, etc.; output section 407 including a liquid crystal display (LCD) and audio output devices, indicator lights, etc.; storage section 408 including a hard disk, etc.; and communication section 409 including a network interface card such as a LAN (Local Area Network) card, modem, etc. Communication section 409 performs communication processing via a network such as the Internet. Drive 410 is also connected to I / O interface 405 as needed. Removable media 411, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., are installed on drive 410 as needed so that computer programs read from them can be installed into storage section 408 as needed.

[0107] In particular, according to embodiments of the present invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of the present invention include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing computer programs for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 409, and / or installed from removable medium 411. When the computer program is executed by CPU 401, it performs the various functions defined in the present invention.

[0108] It should be noted that specific examples of computer-readable storage media may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), flash memory, optical fiber, portable compact disc read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this invention, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.

[0109] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. Each block in a flowchart or block diagram may represent a module, program 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 indicated in the blocks may occur in a different order than those shown in the drawings.

[0110] Specifically, the energy management system of this embodiment includes a processor and a memory. The memory stores a computer program, and when the computer program is executed by the processor, it implements the power data analysis and control method provided in the above embodiment.

[0111] In another aspect, the present invention also provides a computer-readable storage medium, which may be included in the energy management system described in the above embodiments; or it may exist independently and not incorporated into the energy management system. The storage medium carries one or more computer programs that, when executed by a processor of the energy management system, cause the energy management system to implement the power data analysis and control methods provided in the above embodiments.

[0112] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit it. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.

[0113] As used in the above embodiments, depending on the context, the term "when..." can be interpreted as meaning "if...", "after...", "in response to determining...", or "in response to detecting...". Similarly, depending on the context, the phrase "when determining..." or "if (the stated condition or event) is interpreted as meaning "if determining...", "in response to determining...", "when (the stated condition or event) is detected", or "in response to detecting (the stated condition or event)".

[0114] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. This program can be stored in a computer-readable storage medium, and when executed, it can include the processes described in the above method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM or random access memory (RAM), magnetic disks, or optical disks.

Claims

1. A method for analyzing and controlling power data, characterized in that, Applications in energy management systems, including: The AC bus voltage of the user-side micro energy system is acquired in real time, and the voltage deviation of the AC bus voltage relative to a preset voltage reference value is calculated. Real-time monitoring of equipment power in the user-side micro energy system, including photovoltaic power generation power, load power, and charging and discharging power of energy storage devices; When the voltage deviation exceeds a preset deviation threshold, the power correction amount of the energy storage device is determined based on the voltage deviation and the device power, and a power correction command is generated. Based on the power correction command and the preset reference charge and discharge power command, a real-time power control command for the energy storage device is generated. The charging and discharging power of the energy storage device is adjusted according to the real-time power control command so that the voltage deviation is lower than the preset deviation threshold.

2. The method according to claim 1, characterized in that, After adjusting the charging and discharging power of the energy storage device according to the real-time power control command, the method further includes: Obtain the actual charging and discharging power of the energy storage device in the current scheduling cycle; and calculate the actual charging and discharging capacity of the energy storage device in the current scheduling cycle based on the actual charging and discharging power. The planned charge / discharge capacity is calculated based on the reference charge / discharge power command and the duration of the current scheduling cycle. Calculate the difference between the actual charge / discharge capacity and the planned charge / discharge capacity to obtain the power correction value; then divide the power correction value by the preset duration of the next scheduling cycle to obtain the power compensation value. The reference charge / discharge power command for the next scheduling cycle is updated based on the power value corresponding to the reference charge / discharge power command and the power compensation value.

3. The method according to claim 2, characterized in that, Before updating the reference charge / discharge power command for the next scheduling cycle based on the power value corresponding to the reference charge / discharge power command and the power compensation value, the method further includes: Obtain the current state of charge value of the energy storage device; based on the current state of charge value, determine the operating range of the energy storage device from a preset state of charge range, the state of charge range including an over-discharge protection range, a normal discharge range, a normal charging range and an overcharge protection range; When the energy storage device is in the over-discharge protection range, the negative value of the power compensation value is set to zero; When the energy storage device is in the overcharge protection range, the positive value of the power compensation value is set to zero; When the energy storage device is in the normal charging range or the normal discharging range, the power compensation value is corrected according to the preset state of charge correction coefficient.

4. The method according to claim 1, characterized in that, When the voltage deviation exceeds a preset deviation threshold, the power correction amount of the energy storage device is determined based on the voltage deviation and the device power, and a power correction command is generated, specifically including: Based on a preset number of historical sampling points, the power change rate of the device power is calculated; Based on the absolute value of the power change rate, a correction coefficient corresponding to the power change rate is determined from a preset correction coefficient table; The power correction amount is calculated based on the voltage deviation and the correction coefficient; the power correction command is generated based on the power correction amount.

5. The method according to claim 4, characterized in that, After multiplying the voltage deviation by the correction coefficient to obtain the power correction, the method further includes: When the power correction amount is greater than the rated power of the energy storage device, the rated power is determined as the power correction amount.

6. The method according to claim 4, characterized in that, Before determining the power correction amount of the energy storage device based on the voltage deviation and the device power, and generating a power correction command, the method further includes: The voltage value at the connection point between the user-side bus and the power grid is acquired in real time and determined as the power grid voltage; the difference between the power grid voltage and the user-side bus voltage is calculated to obtain the power grid voltage difference. If the absolute value of the grid voltage difference is less than the preset voltage difference threshold, then calculate the first change value of the voltage deviation within the preset time window and the second change value of the equipment power within the preset time window; If the product of the first change value and the second change value is less than a preset change threshold, then the power correction amount is calculated, and the preset change threshold is a negative value. If the absolute value of the grid voltage difference is greater than or equal to the preset voltage difference threshold, or the product of the first change value and the second change value is greater than or equal to the preset change threshold, then the power correction amount is set to zero.

7. The method according to claim 1, characterized in that, Adjusting the charging and discharging power of the energy storage device according to the real-time power control command specifically includes: Calculate the real-time power difference between the power value corresponding to the real-time power control command and the current charging / discharging power; The charging and discharging adjustment direction is determined based on the sign of the real-time power difference; the charging and discharging power of the energy storage device is gradually adjusted according to the preset power adjustment step size and the charging and discharging adjustment direction. After each adjustment of the charging and discharging power, the updated voltage deviation is calculated; when the updated voltage deviation is lower than the preset deviation threshold, the adjustment of the charging and discharging power is stopped.

8. An energy management system, characterized in that, The energy management system includes: one or more processors and a memory; the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code including computer instructions, and the one or more processors call the computer instructions to cause the energy management system to perform the method as described in any one of claims 1-7.

9. A computer-readable storage medium comprising instructions, characterized in that, When the instructions are executed on the energy management system, the energy management system performs the method as described in any one of claims 1-7.

10. A computer program product, characterized in that, When the computer program product is run on the energy management system, it causes the energy management system to perform the method as described in any one of claims 1-7.