Energy storage system, charging and discharging current calculation method and device thereof and medium

By employing multi-point current sampling and dynamic selection of current calculation methods, the problem of inaccurate calculation of charging and discharging current in portable energy storage systems is solved, achieving high-precision calculation of the state of charge of energy storage batteries and flexible adaptability of the system.

CN120879855APending Publication Date: 2025-10-31SHENZHEN HELLO TECH ENERGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511026734.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-23
Publication Date
2025-10-31

AI Technical Summary

Technical Problem

The lack of accurate charging and discharging current calculation methods in existing portable energy storage systems makes it impossible to accurately determine the state of charge of the energy storage battery, making it difficult to optimize energy management and improve charging and discharging efficiency.

Method used

By acquiring the current operating status of the energy storage battery and sampling current at multiple points, including the sampling current of the main circuit, auxiliary power supply circuit and DC charging and discharging branch, the current calculation current is dynamically selected to ensure calculation accuracy and adapt to various discharge scenarios.

Benefits of technology

It enables precise calculation of the charging and discharging current of energy storage batteries, improves the calculation accuracy of the state of charge, covers both small and large current ranges, adapts to various discharge scenarios, and enhances the reliability and safety of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120879855A_ABST
    Figure CN120879855A_ABST
Patent Text Reader

Abstract

The invention discloses an energy storage system, a charging and discharging current calculation method and device thereof and a medium, and relates to the technical field of energy storage batteries. The energy storage system comprises an energy storage battery, and an auxiliary power supply loop and a charging and discharging loop which are electrically connected with the energy storage battery respectively; the charging and discharging loop comprises a main loop and a direct current charging and discharging branch electrically connected with the main loop; the charging and discharging current calculation method comprises the steps of obtaining a current working state and a current sampling current of an energy storage battery; the working state comprises a charging state and a discharging state; the sampling current comprises a request current, a sampling current of a main loop, a sampling current of an auxiliary power supply loop and a sampling current of a direct current charging and discharging branch; determining the current calculation current in the current request current and the current sampling current according to the current working state of the energy storage battery; and determining the current working current of the energy storage battery according to the current calculation current. According to the invention, accurate calculation of the charging and discharging current of the energy storage battery is realized, and the calculation accuracy of the state of charge of the energy storage battery is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of energy storage battery technology, and in particular to an energy storage system and its charging and discharging current calculation method, device and medium. Background Technology

[0002] With social development and the continuous improvement of people's living standards, portable energy storage systems perfectly meet the needs of short-distance travel, making them increasingly popular. High-voltage portable energy storage systems, as an efficient and flexible energy solution, have been widely used in outdoor tourism, home emergency power supply, and new energy fields. Their portability and high capacity meet diverse electricity demands.

[0003] In existing technologies, portable energy storage systems typically include an energy storage battery and a charging / discharging circuit electrically connected to the battery. The charging / discharging circuit includes a current sampling resistor to collect current data. Current technologies often employ low-voltage techniques, and simple current sampling only enables basic monitoring of the battery's charging / discharging current. The lack of precise calculation methods for this current makes it impossible to accurately determine the battery's state of charge, hindering the optimization of energy management and the improvement of the system's charging / discharging efficiency. Summary of the Invention

[0004] This invention provides an energy storage system and its charging and discharging current calculation method, device and medium. By realizing the accurate calculation of the charging and discharging current of the energy storage battery, the calculation accuracy of the state of charge of the energy storage battery is effectively improved.

[0005] The first aspect of this invention provides a method for calculating the charging and discharging current of an energy storage system. The energy storage system includes an energy storage battery, and an auxiliary power supply circuit and a charging and discharging circuit electrically connected to the charging and discharging terminals of the energy storage battery, respectively. The charging and discharging circuit includes a main circuit and at least two charging and discharging branches electrically connected to the main circuit. The at least two charging and discharging branches include at least one DC charging and discharging branch. The method for calculating the charging and discharging current includes:

[0006] The current operating state and current sampling current of the energy storage battery are obtained; the operating state includes charging state and discharging state; the sampling current includes the request current, the sampling current of the main circuit, the sampling current of the auxiliary power supply circuit and the sampling current of the DC charging and discharging branch.

[0007] Based on the current operating state of the energy storage battery, determine the current calculated current in the current sampled current;

[0008] The current operating current of the energy storage battery is determined based on the current calculated current.

[0009] Optionally, determining the current calculated current in the current sampled current based on the current operating state of the energy storage battery includes:

[0010] When the energy storage battery is determined to be in a charging state based on its current operating state, the current sampling current and the current requested current of the main circuit are used as the current calculated current.

[0011] When the energy storage battery is determined to be in a discharging state based on its current operating state, the current sampling current of the main circuit, the current sampling current of the auxiliary power supply circuit, and the current sampling current of the DC charging and discharging branch are all used as the current calculated current.

[0012] Optionally, the sampling current of the main circuit includes a main circuit sampling current with a first accuracy value and a main circuit sampling current with a second accuracy value; the first accuracy value is less than the second accuracy value.

[0013] Determining the current operating current of the energy storage battery based on the current calculated current includes:

[0014] When the current operating state of the energy storage battery is charging, it is determined whether the main circuit current sampling current of the first accuracy value, the main circuit current sampling current of the second accuracy value, and the current requested current meet a first preset condition; the first preset condition includes that the absolute value of the difference between the main circuit current sampling current of the first accuracy value and the current requested current is less than or equal to a first current threshold, the absolute value of the difference between the main circuit current sampling current of the second accuracy value and the current requested current is less than or equal to the first current threshold, and the absolute value of the difference between the main circuit current sampling current of the first accuracy value and the main circuit current sampling current of the second accuracy value is less than or equal to a second current threshold;

[0015] If so, determine whether the current sampling current of the main path with the first precision value and the current sampling current of the main path with the second precision value are both greater than or equal to the third current threshold.

[0016] If so, the current sampling current of the main path of the first accuracy value is determined as the current operating current of the energy storage battery.

[0017] Optionally, determining the current operating current of the energy storage battery based on the current calculated current further includes:

[0018] When at least one of the main circuit current sampling current of the first accuracy value and the main circuit current sampling current of the second accuracy value is less than the third current threshold, the main circuit current sampling current of the second accuracy value is determined as the current operating current of the energy storage battery.

[0019] Optionally, determining the current operating current of the energy storage battery based on the current calculated current further includes:

[0020] When the main current sampling current of the first accuracy value, the main current sampling current of the second accuracy value, and the current requested current do not meet the first preset condition, the energy storage battery is controlled to stop charging.

[0021] Optionally, the energy storage system further includes a switching module, an alarm module, and a protection module; the switching module and the protection module are both electrically connected to the main circuit.

[0022] After requesting the energy storage battery to stop charging, the process also includes:

[0023] When both the main current sampled current of the first precision value and the main current sampled current of the second precision value are greater than 0, the switch module is controlled to open, and it is determined whether both the main current sampled current of the first precision value and the main current sampled current of the second precision value are greater than 0. If so, the protection module is controlled to open.

[0024] When either the main current sampled current of the first precision value or the main current sampled current of the second precision value is 0, and the other is greater than 0, the alarm module is controlled to trigger an alarm.

[0025] Optionally, the sampling current of the main circuit includes a main circuit sampling current with a first accuracy value and a main circuit sampling current with a second accuracy value; the first accuracy value is less than the second accuracy value; the at least two charging and discharging branches also include at least one AC charging and discharging branch;

[0026] Determining the current operating current of the energy storage battery based on the current calculated current includes:

[0027] When the current operating state of the energy storage battery is in a discharge state, the discharge type of the energy storage battery is obtained; the discharge type includes a first discharge type, a second discharge type, and a third discharge type; when the energy storage battery is in the first discharge type, the DC charging and discharging branch is started to discharge; when the energy storage battery is in the second discharge type, the AC charging and discharging branch is started to discharge; when the energy storage battery is in the third discharge type, both the DC charging and discharging branch and the AC charging and discharging branch are started to discharge simultaneously.

[0028] The current operating current of the energy storage battery is determined based on the discharge type of the energy storage battery, the current sampling current of the main circuit with the first accuracy value, the current sampling current of the main circuit with the second accuracy value, the current sampling current of the auxiliary power supply circuit, and the current sampling current of the DC charging and discharging branch.

[0029] Optionally, the current operating current of the energy storage battery is determined based on the discharge type of the energy storage battery, the current sampling current of the main circuit with the first accuracy value, the current sampling current of the main circuit with the second accuracy value, the current sampling current of the auxiliary power supply circuit, and the current sampling current of the DC charging and discharging branch, including:

[0030] When the discharge type of the energy storage battery is the first discharge type, it is determined whether the current sampling current of the main circuit with the first accuracy value, the current sampling current of the main circuit with the second accuracy value, and the current sampling current of the DC charging and discharging branch meet the second preset condition; the second preset condition includes that the difference between the current sampling current of the main circuit with the first accuracy value and the current sampling current of the DC charging and discharging branch is less than or equal to a fourth current threshold, the difference between the current sampling current of the main circuit with the second accuracy value and the current sampling current of the DC charging and discharging branch is less than or equal to the fourth current threshold, and the absolute value of the difference between the current sampling current of the main circuit with the first accuracy value and the current sampling current of the main circuit with the second accuracy value is less than or equal to the second current threshold;

[0031] If so, determine whether the current sampling current of the main path with the first precision value and the current sampling current of the main path with the second precision value are both greater than or equal to the third current threshold.

[0032] If so, the sum of the current sampling current of the main circuit and the current sampling current of the auxiliary power supply circuit of the first accuracy value is determined as the current operating current of the energy storage battery.

[0033] Optionally, the current operating current of the energy storage battery is determined based on the discharge type of the energy storage battery, the current sampling current of the main circuit with the first accuracy value, the current sampling current of the main circuit with the second accuracy value, the current sampling current of the auxiliary power supply circuit, and the current sampling current of the DC charging and discharging branch, including:

[0034] When the discharge type of the energy storage battery is the second discharge type, determine whether the absolute value of the difference between the main current sampled current of the first accuracy value and the main current sampled current of the second accuracy value is less than or equal to the second current threshold.

[0035] If so, determine whether the current sampling current of the main path with the first precision value and the current sampling current of the main path with the second precision value are both greater than or equal to the third current threshold.

[0036] If so, the sum of the current sampling current of the main circuit of the first accuracy value, the current sampling current of the DC charging and discharging branch, and the current sampling current of the auxiliary power supply circuit is determined as the current operating current of the energy storage battery.

[0037] Optionally, the current operating current of the energy storage battery is determined based on the discharge type of the energy storage battery, the current sampling current of the main circuit with the first accuracy value, the current sampling current of the main circuit with the second accuracy value, the current sampling current of the auxiliary power supply circuit, and the current sampling current of the DC charging and discharging branch, including:

[0038] When the discharge type of the energy storage battery is the third discharge type, it is determined whether the current sampling current of the main circuit with the first accuracy value, the current sampling current of the main circuit with the second accuracy value, and the current sampling current of the DC charging and discharging branch meet a third preset condition; the third preset condition includes that the current sampling current of the main circuit with the first accuracy value is greater than the current sampling current of the DC charging and discharging branch, the current sampling current of the main circuit with the second accuracy value is greater than the current sampling current of the DC charging and discharging branch, and the absolute value of the difference between the current sampling current of the main circuit with the first accuracy value and the current sampling current of the main circuit with the second accuracy value is less than or equal to a second current threshold.

[0039] If so, determine whether the current sampling current of the main path with the first precision value and the current sampling current of the main path with the second precision value are both greater than or equal to the third current threshold.

[0040] If so, the sum of the current sampling current of the main circuit and the current sampling current of the auxiliary power supply circuit of the first accuracy value is determined as the current operating current of the energy storage battery.

[0041] Optionally, determining the current operating current of the energy storage battery based on the discharge type of the energy storage battery, the current sampling current of the main circuit with the first accuracy value, the current sampling current of the main circuit with the second accuracy value, the current sampling current of the auxiliary power supply circuit, and the current sampling current of the DC charging and discharging branch further includes:

[0042] When at least one of the main circuit current sampling current of the first accuracy value and the main circuit current sampling current of the second accuracy value is less than the third current threshold, the sum of the main circuit current sampling current of the second accuracy value, the current sampling current of the DC charging and discharging branch, and the current sampling current of the auxiliary power supply circuit is determined as the current operating current of the energy storage battery.

[0043] A second aspect of the present invention provides a charging and discharging current calculation device for an energy storage system, the energy storage system including an energy storage battery, and an auxiliary power supply circuit and a charging and discharging circuit electrically connected to the charging and discharging terminals of the energy storage battery respectively; the charging and discharging circuit includes a main circuit and at least two charging and discharging branches electrically connected to the main circuit; the at least two charging and discharging branches include at least one DC charging and discharging branch; the charging and discharging current calculation device includes:

[0044] The data acquisition module is used to acquire the current operating state and current sampling current of the energy storage battery; the operating state includes charging state and discharging state; the sampling current includes the request current, the sampling current of the main circuit, the sampling current of the auxiliary power supply circuit and the sampling current of the DC charging and discharging branch.

[0045] The current calculation current determination module is used to determine the current calculation current in the current sampled current based on the current operating state of the energy storage battery.

[0046] The current operating current determination module is used to determine the current operating current of the energy storage battery based on the current calculated current.

[0047] A third aspect of the present invention provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the charging and discharging current calculation method of the energy storage system as described above.

[0048] A fourth aspect of the present invention provides an energy storage system, the energy storage system comprising: an energy storage battery, an auxiliary power supply circuit and a charging and discharging circuit respectively electrically connected to the charging and discharging terminals of the energy storage battery, and a controller;

[0049] The charging and discharging circuit includes a main circuit and at least two charging and discharging branches electrically connected to the main circuit.

[0050] The at least two charging and discharging branches include at least one DC charging and discharging branch;

[0051] The controller is electrically connected to the auxiliary power supply circuit and is used to execute the charging and discharging current calculation method of the energy storage system as described above.

[0052] Optionally, the energy storage system may also include: a switching module, an alarm module, and a protection module;

[0053] Both the switch module and the protection module are electrically connected to the main circuit;

[0054] The controller is electrically connected to the switch module, the alarm module, and the protection module, respectively.

[0055] The technical solution of this invention acquires the current operating state and current sampling current of the energy storage battery, enabling it to determine whether the battery is currently charging or discharging, and the current requested current, current sampling current of the main circuit, current sampling current of the auxiliary power supply circuit, and current sampling current of the DC charging / discharging branch when the battery is in its current operating state. By determining the current calculated current from the current requested current, current sampling current of the main circuit, current sampling current of the auxiliary power supply circuit, and current sampling current of the DC charging / discharging branch based on the current operating state of the energy storage battery, the matching between the current calculated current and the current operating state of the energy storage battery is ensured. Furthermore, by determining the current operating current of the energy storage battery based on the current calculated current, the current charging current and current discharging current of the energy storage battery can be determined separately. Through multi-point current sampling and dynamic selection of the current calculated current, the reliability of the current sampling data is ensured, and the calculation of the current operating current of the energy storage battery can comprehensively cover both small and large current ranges, and flexibly adapt to various discharge scenarios. This achieves accurate calculation of the charging and discharging current of the energy storage battery and improves the accuracy of the calculation of the battery's state of charge.

[0056] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description

[0057] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0058] Figure 1 A schematic diagram of the structure of an energy storage system provided in Embodiment 1 of the present invention;

[0059] Figure 2 This is a flowchart illustrating a method for calculating the charging and discharging current of an energy storage system according to Embodiment 2 of the present invention.

[0060] Figure 3 This is a flowchart illustrating a method for calculating the charging and discharging current of an energy storage system according to Embodiment 3 of the present invention.

[0061] Figure 4 This is a flowchart illustrating a method for calculating the charging and discharging current of an energy storage system according to Embodiment 4 of the present invention.

[0062] Figure 5This is a schematic diagram of the structure of a charging and discharging current calculation device for an energy storage system provided in Embodiment 5 of the present invention;

[0063] Figure 6 This is a schematic diagram of the structure of a controller for an energy storage system provided in Embodiment Six of the present invention. Detailed Implementation

[0064] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. 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 should fall within the scope of protection of the present invention.

[0065] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0066] Example 1

[0067] Figure 1 A schematic diagram of an energy storage system provided in Embodiment 1 of the present invention is shown. Figure 1 As shown, the energy storage system includes: an energy storage battery 1, an auxiliary power supply circuit and a charging and discharging circuit electrically connected to the charging and discharging terminals 11 of the energy storage battery 1, and a controller 01; the charging and discharging circuit includes a main circuit and at least two charging and discharging branches electrically connected to the main circuit; the at least two charging and discharging branches include at least one DC charging and discharging branch.

[0068] Specifically, the energy storage battery 1 is used to store electrical energy and can output electrical energy to power the load when needed. The energy storage battery 1 can also accept external power from an external power source, thus enabling energy storage. For example, the energy storage battery 1 may include a high-voltage lithium battery with a capacity of 5 kWh, suitable for portable applications. Furthermore, the energy storage battery 1 may also include a Battery Management System (BMS), which monitors parameters such as battery voltage, current, and temperature in real time to optimize the charging and discharging process of the energy storage battery and prevent faults such as overcharging, over-discharging, and overheating.

[0069] Specifically, the charging / discharging terminal 11 of the energy storage battery 1 is electrically connected to a charging / discharging circuit. The charging / discharging circuit includes a main circuit and at least two charging / discharging branches electrically connected to the main circuit. This allows the energy output from the energy storage battery 1 to be input into the charging / discharging branches via the main circuit, or the energy input into the charging / discharging branches to be input into the energy storage battery 1 via the main circuit, thereby realizing the charging / discharging process of the energy storage battery 1. The at least two charging / discharging branches include at least one DC charging / discharging branch. For example, a DC-DC bidirectional converter 2 may be electrically connected to the DC charging / discharging branch. The DC-DC bidirectional converter 2 can be electrically connected to a DC load, enabling it to convert the high-voltage DC output from the energy storage battery 1 into a low-voltage output suitable for the DC load, thus powering a DC load such as a USB device. Simultaneously, the DC-DC bidirectional converter 2 can also convert DC power supplied by an external power source into high-voltage DC power to charge the energy storage battery 1. Optionally, at least two charging / discharging branches may further include at least one AC charging / discharging branch. For example, an inverter 3 may be electrically connected to the AC charging / discharging branch. The inverter 3 can be electrically connected to an AC load so that it can convert the DC power output from the energy storage battery 1 into AC power, such as 220V or 110V AC power, to power AC loads, such as household appliances. Simultaneously, the inverter 3 can also convert external AC power, such as AC power supplied by the mains, into DC power to charge the energy storage battery 1.

[0070] The charging and discharging terminal 11 of the energy storage battery 1 is also electrically connected to the auxiliary power supply circuit. For example, the auxiliary power supply circuit is electrically connected to the flyback power module 4. The flyback power module 4 can be electrically connected to the controller 01 and the distribution box so that the flyback power module 4 can convert the high voltage output by the energy storage battery 1 into low voltage and output the converted low voltage to the controller 01 or the distribution box with lower power consumption. For example, the converted 33V low voltage is output to the controller 01, or the converted 24V low voltage is output to the distribution box, thereby providing a stable power supply to the controller 01 and the distribution box and ensuring the normal operation of the controller 01.

[0071] In addition, the energy storage system may also include an analog front-end chip 5, a first sampling resistor R1, a second sampling resistor R2, and a third sampling resistor R3. The first sampling resistor R1 is electrically connected to the main circuit, and the controller 01 is electrically connected to both ends of the first sampling resistor R1. This allows the controller to calculate the current sampling current of the main circuit by measuring the voltage drop across the first sampling resistor R1. The current sampling current of the main circuit reflects the current consumption of the DC-DC bidirectional converter 2 and the inverter 3. Simultaneously, the analog front-end chip 5 is also electrically connected to both ends of the first sampling resistor R1, and the analog front-end chip 5 is electrically connected to the controller 01. This allows the analog front-end chip 5 to also obtain the current sampling current of the main circuit through the first sampling resistor R1 and transmit the current sampling current of the main circuit to the controller 01 for processing. Understandably, controller 01 possesses high resolution and low noise characteristics, making it suitable for fine-grained monitoring of small current changes, enabling controller 01 to acquire the main circuit current sampling current of a second precision value. Analog front-end chip 5 has a wider dynamic range and higher noise immunity, ensuring measurement accuracy under high current conditions, allowing analog front-end chip 5 to acquire the main circuit current sampling current of a first precision value, which is less than the second precision value. By connecting both analog front-end chip 5 and controller 01 to the first sampling resistor R1, controller 01 can determine the main circuit current sampling current based on either the first precision value or the second precision value, according to the magnitude of the acquired main circuit current sampling current. For example, when the acquired main circuit current sampling current is small, the second precision value is used; when the acquired main circuit current sampling current is large, the first precision value is used. This avoids the limitations of a single sampling method, improves the accuracy of the current sampling current of the energy storage system's main circuit, and lays the foundation for subsequent accurate calculation of the energy storage battery's charging and discharging currents.

[0072] The second sampling resistor R2 is electrically connected in the auxiliary power supply circuit. The controller 01 can also be electrically connected to both ends of the second sampling resistor R2, so that the controller 01 can calculate the current sampling current of the auxiliary power supply circuit by measuring the voltage drop across the second sampling resistor R2. The current sampling current of the auxiliary power supply circuit reflects the power consumption of the controller 01 and the distribution box. Sampling the current sampling current of the auxiliary power supply circuit through the second sampling resistor R2 lays the foundation for subsequent accurate calculation of the charging and discharging current of the energy storage battery.

[0073] The third sampling resistor R3 is electrically connected in the DC charging / discharging branch. The controller 01 can also be electrically connected to both ends of the third sampling resistor R3, allowing the controller 01 to calculate the current sampling current of the DC charging / discharging branch by measuring the voltage drop across R3. This current sampling current reflects the current consumption of the DC-DC bidirectional converter 2. Sampling the current sampling current of the DC charging / discharging branch through the third sampling resistor R3 lays the foundation for subsequent accurate calculations of the charging and discharging currents of the energy storage battery.

[0074] Optional, continue to refer to Figure 1 The energy storage system also includes a switch module 6, an alarm module 7, and a protection module 8; both the switch module 6 and the protection module 8 are electrically connected to the main circuit; the controller 01 is electrically connected to the switch module 6, the alarm module 7, and the protection module 8 respectively.

[0075] Specifically, the switch module 6 is electrically connected to the main circuit, and the analog front-end chip 5 is electrically connected to the switch module 6, so that the analog front-end chip 5 can control the on / off state of the switch module 6 according to the control signal output by the controller 01, thereby controlling the on / off state of the main circuit. For example, the switch module 6 may include a charging MOSFET 61 and a discharging MOSFET 62 connected back-to-back, so that when a fault occurs in the energy storage system, the controller 01 can, according to whether the energy storage battery 1 is in a charging or discharging state, control the analog front-end chip 5 to disconnect the charging MOSFET 61 or the discharging MOSFET 62 accordingly, thereby cutting off the main circuit and protecting the energy storage battery 1.

[0076] The protection module 8 is electrically connected to the main circuit to provide protection for the energy storage battery 1 when the current value in the main circuit exceeds a preset safety threshold. For example, the protection module 8 may include a fuse. The controller 01 is electrically connected to the protection module 8. When a fault in the switching module 6 causes the current value in the main circuit to far exceed the rated value, the fuse will melt due to overheating, or the controller 01 will control the fuse to disconnect, thereby disconnecting the main circuit and achieving physical isolation to prevent the abnormal current from continuing to flow, thus avoiding damage to the energy storage battery 1 caused by overcurrent. By setting up the protection module 8, backup protection is ensured in the event of a fault in the switching module 6, improving the reliability and safety of the energy storage system.

[0077] The alarm module 7 may specifically include a liquid crystal display (LCD), an organic light-emitting diode screen (OLED), an LED indicator, or a buzzer. The controller 01 is electrically connected to the alarm module 7 so that when the controller detects a fault in the current data sampled by the analog front-end chip 5, the first sampling resistor R1, the second sampling resistor R2, or the third sampling resistor R3, it can control the alarm module 7 to present the information to the operator in the form of text, graphics, indicator lights, or sound to remind the operator that there is a fault in the energy storage system, thereby facilitating the operator to perform timely maintenance on the energy storage system.

[0078] It is understood that the controller 01 in the energy storage system can execute the energy storage system charging and discharging current calculation method provided in the embodiments of the present invention, and has the corresponding functional modules and beneficial effects of the method. For technical details not described in detail in this embodiment, please refer to the energy storage system charging and discharging current calculation method described in the following embodiments.

[0079] Example 2

[0080] Figure 2 This is a flowchart illustrating a method for calculating the charging and discharging current of an energy storage system according to Embodiment 2 of the present invention. This embodiment can be used to control the energy storage system described in the above embodiments. The method can be executed by a charging and discharging current calculation device for the energy storage system. This device can be implemented in software and / or hardware, and is generally integrated into the controller of the energy storage system. Correspondingly, as... Figure 2 As shown, the method for calculating the charging and discharging current of this energy storage system may include:

[0081] S101. Obtain the current operating status and current sampling current of the energy storage battery.

[0082] The operating states include charging and discharging states; the sampling current includes the request current, the sampling current of the main circuit, the sampling current of the auxiliary power supply circuit, and the sampling current of the DC charging and discharging branch.

[0083] Specifically, to determine the charging and discharging currents of the energy storage battery, it's essential to first determine whether the battery is currently charging or discharging. For example, the controller can obtain the battery's current operating state through the Battery Management System (BMS). The controller can also obtain the current sampled current when the battery is in its current operating state. For instance, the controller can obtain the current requested current (e.g., the current requested charging current) through the BMS. Furthermore, the controller can obtain the current sampled current of the main circuit (with different precision values) through a first sampling resistor and an analog front-end chip, the current sampled current of the auxiliary power supply circuit through a second sampling resistor, and the current sampled current of the DC charging / discharging branch through a third sampling resistor. Obtaining the battery's current operating state and current sampled current lays the foundation for subsequently determining the current calculated current from the current requested current and the current sampled current based on the battery's current operating state.

[0084] S102. Determine the current calculated current in the current sampled current based on the current operating state of the energy storage battery.

[0085] Specifically, after acquiring the current operating state and current sampling current of the energy storage battery, the controller will also determine the current calculated current in the current sampling current based on the current operating state of the energy storage battery, so as to lay the foundation for subsequently determining the current charging current and current discharging current of the energy storage battery based on the current calculated current.

[0086] Optionally, the current calculated current in the current sampled current is determined based on the current operating state of the energy storage battery, including: when the energy storage battery is determined to be in a charging state based on the current operating state of the energy storage battery, the current sampled current of the main circuit and the current requested current are used as the current calculated current; when the energy storage battery is determined to be in a discharging state based on the current operating state of the energy storage battery, the current sampled current of the main circuit, the current sampled current of the auxiliary power supply circuit, and the current sampled current of the DC charging and discharging branch are all used as the current calculated current.

[0087] Understandably, the current sampled current of the main circuit reflects the current consumption of the DC-DC bidirectional converter and inverter, the current sampled current of the auxiliary power supply circuit reflects the power consumption of the motherboard and distribution box, and the current sampled current of the DC charging and discharging branch reflects the current consumption of the DC-DC bidirectional converter. When determining that the current operating state of the energy storage battery is charging, i.e., when the energy storage battery is powered by an external power source, it is important to focus on the consistency between the current sampled current of the main circuit and the current requested current. The current sampled current of the auxiliary power supply circuit and the current sampled current of the DC charging and discharging branch are usually not used as primary data when the energy storage battery is charging. Therefore, the current requested current and the current sampled current of the main circuit can be determined as the current calculated current when the energy storage battery is in the charging state.

[0088] It's also understandable that when the current operating state of the energy storage battery is determined to be discharge, i.e., when the energy storage battery is supplying power to the load, it's necessary to comprehensively monitor the load power consumption of the energy storage system. This includes the total power consumption of the DC-DC bidirectional converter and inverter, the power consumption of the controller and distribution box, and the independent power consumption of the DC-DC bidirectional converter. This is to support the calculation of the current operating current in various discharge scenarios of the energy storage system, such as supplying power to a DC load alone, supplying power to an AC load alone, or supplying power to both DC and AC loads simultaneously. Therefore, the current sampled current of the main circuit, the current sampled current of the auxiliary power supply circuit, and the current sampled current of the DC charging and discharging branch can be determined as the current calculated current when the energy storage battery is in a discharge state. This ensures the matching between the current calculated current and the current operating state of the energy storage battery.

[0089] S103. Determine the current operating current of the energy storage battery based on the current calculated current.

[0090] Specifically, after determining the calculated current from the current requested current and the current sampled current based on the current operating state of the energy storage battery, the controller can determine the current charging current and the current discharging current of the energy storage battery based on the determined current calculated current. For example, when the current operating state of the energy storage battery is determined to be charging, the controller can determine the current operating current of the energy storage battery by judging the magnitude of the current sampled current of the main circuit, and selecting one of the current sampled currents of the main circuit with different accuracy values ​​as the current operating current of the energy storage battery, thus improving the accuracy of the current operating current calculation. When the current operating state of the energy storage battery is determined to be discharging, the controller can comprehensively monitor the load power consumption of the energy storage system based on the current sampled current of the main circuit, the current sampled current of the auxiliary power supply circuit, and the current sampled current of the DC charging and discharging branch, so as to accurately calculate the current operating current of the energy storage system under various discharging scenarios.

[0091] Furthermore, the controller can record the charging and discharging durations of the energy storage battery in real time via its internal clock module. This allows the controller to accurately calculate the current charging and discharging currents of the energy storage battery and then calculate the battery's charge change using an ampere-hour integration algorithm. For example, the controller can calculate the battery's charge change by multiplying the charging duration by the current charging current or by multiplying the discharging duration by the current discharging current. After determining the battery's charge change, the controller can also determine the battery's current state of charge based on its initial state of charge and the charge change.

[0092] By using multi-point current sampling and dynamic selection of the current to be calculated, the reliability of the current sampling data is ensured, and the calculation of the current operating current of the energy storage battery can fully cover the range of small and large currents, as well as flexibly adapt to various discharge scenarios. This enables accurate calculation of the charging and discharging current of the energy storage battery and improves the accuracy of the calculation of the state of charge of the energy storage battery.

[0093] In this embodiment, by acquiring the current operating state and current sampling current of the energy storage battery, it is possible to obtain whether the energy storage battery is currently in a charging or discharging state, and the current requested current, the current sampling current of the main circuit, the current sampling current of the auxiliary power supply circuit, and the current sampling current of the DC charging / discharging branch when the energy storage battery is in its current operating state. By determining the current calculated current from the current requested current, the current sampling current of the main circuit, the current sampling current of the auxiliary power supply circuit, and the current sampling current of the DC charging / discharging branch based on the current operating state of the energy storage battery, the matching between the current calculated current and the current operating current of the energy storage battery is ensured. Furthermore, by determining the current operating current of the energy storage battery based on the current calculated current, the current charging current and the current discharging current of the energy storage battery can be determined separately. Through multi-point current sampling and dynamic selection of the current calculated current, the reliability of the current sampling data is ensured, and the calculation of the current operating current of the energy storage battery can comprehensively cover both small and large current ranges, and flexibly adapt to various discharge scenarios. This achieves accurate calculation of the charging and discharging current of the energy storage battery and improves the accuracy of the calculation of the state of charge of the energy storage battery.

[0094] Example 3

[0095] Figure 3 This is a flowchart illustrating a method for calculating the charging and discharging current of an energy storage system according to Embodiment 3 of the present invention. Based on the above embodiments, this embodiment provides a detailed description of a method for determining the current operating current of an energy storage battery when the battery is in a charging state. Accordingly, as shown... Figure 3 As shown, the method for calculating the charging and discharging current of this energy storage system may include:

[0096] S201. Obtain the current operating status and current sampling current of the energy storage battery.

[0097] S202. Determine the current calculated current in the current sampled current based on the current operating state of the energy storage battery.

[0098] S203. When the current working state of the energy storage battery is charging, determine whether the main current sampling current of the first precision value, the main current sampling current of the second precision value, and the current requested current meet the first preset condition; if so, execute S204.

[0099] The first preset condition includes the absolute value of the difference between the current sampled current and the current requested current of the main circuit with the first precision value being less than or equal to the first current threshold, the absolute value of the difference between the current sampled current and the current requested current of the main circuit with the second precision value being less than or equal to the first current threshold, and the absolute value of the difference between the current sampled current of the main circuit with the first precision value and the current sampled current of the main circuit with the second precision value being less than or equal to the second current threshold.

[0100] The sampling current of the main circuit includes the main circuit sampling current with a first accuracy value obtained by the controller through the first sampling resistor and the main circuit sampling current with a second accuracy value obtained by the controller through the analog front-end chip. The analog front-end chip has a wider dynamic range and higher noise immunity, ensuring measurement accuracy under high current. The controller has high resolution and low noise characteristics, which are suitable for fine monitoring of small current changes. Therefore, the first accuracy value is smaller than the second accuracy value.

[0101] Specifically, before determining the current operating current of the energy storage battery based on the current sampled current and the current requested current of the main circuit, it is first possible to determine whether the absolute value of the difference between the first-precision value of the current sampled current of the main circuit and the second-precision value of the current sampled current of the main circuit obtained by the analog front-end chip is less than or equal to a first current threshold. For example, the first current threshold can be 3A. It is understood that when the absolute value of the difference between the first-precision value of the current sampled current of the main circuit and the second-precision value of the current sampled current of the main circuit is less than or equal to the first current threshold, it indicates that the current sampled current of the main circuit with the first precision value and the second precision value is consistent with the expected charging current of the energy storage system, thereby ensuring the charging accuracy of the energy storage system and ensuring that the subsequent calculation of the current operating current is based on reliable data.

[0102] After determining that the absolute values ​​of the differences between the first-precision value of the current sampled current on the main circuit and the second-precision value of the current sampled current on the main circuit, and the currently requested current, are both less than or equal to a first current threshold, the controller can further determine whether the absolute value of the difference between the first-precision value of the current sampled current on the main circuit and the second-precision value of the current sampled current on the main circuit is less than or equal to a second current threshold. For example, the second current threshold can be 0.2A. It can also be understood that when the absolute value of the difference between the first-precision value of the current sampled current on the main circuit and the second-precision value of the current sampled current on the main circuit is less than or equal to the second current threshold, it indicates that the measurement results of the current consumption of the DC-DC bidirectional converter and inverter by the analog front-end chip and the controller are highly consistent, thereby eliminating deviations or noise interference between sampling modules, and ensuring that the subsequent calculation of the current operating current is based on consistent data.

[0103] S204. Determine whether the current sampling current of the main path with the first precision value and the current sampling current of the main path with the second precision value are both greater than or equal to the third current threshold; if so, execute S205.

[0104] Specifically, after determining that the absolute values ​​of the differences between the main circuit current sampling current (first precision value) and the current requested current (second precision value) are both less than or equal to a first current threshold, and that the absolute value of the difference between the main circuit current sampling current (first precision value) and the current current sampling current (second precision value) is less than or equal to a second current threshold, the controller can determine the current operating current of the energy storage battery by comparing the magnitudes of the main circuit current sampling current (first precision value) and the third current threshold, as well as the magnitudes of the main circuit current sampling current (second precision value) and the third current threshold. For example, the third current threshold can be 2A.

[0105] S205. Determine the current sampling current of the main circuit with the first accuracy value as the current operating current of the energy storage battery.

[0106] Understandably, when both the first-precision value and the second-precision value of the main circuit current sampling current are greater than or equal to the third current threshold, it indicates that both the first-precision value and the second-precision value of the main circuit current sampling current are relatively large, and the energy storage battery is in a fast-charging state. The analog front-end chip has a wider dynamic range and higher noise immunity, ensuring measurement accuracy under high current. Therefore, the first-precision value of the main circuit current sampling current is determined as the current operating current of the energy storage battery.

[0107] Optionally, determining the current operating current of the energy storage battery based on the current calculated current further includes: when at least one of the main current sampling current of the first precision value and the main current sampling current of the second precision value is less than a third current threshold, determining the main current sampling current of the second precision value as the current operating current of the energy storage battery.

[0108] It is also understandable that when at least one of the main circuit current sampling current of the first precision value and the main circuit current sampling current of the second precision value is less than the third current threshold, it indicates that both the main circuit current sampling current of the first precision value and the main circuit current sampling current of the second precision value are relatively small, and the energy storage battery is in a stable charging state. The controller has high resolution and low noise characteristics, making it suitable for fine-tuning small current changes. Therefore, the main circuit current sampling current of the second precision value is determined as the current operating current of the energy storage battery.

[0109] By analyzing the relationship between the current sampled current of the main circuit with a first precision value, the current sampled current of the main circuit with a second precision value, and a third current threshold, the current operating current of the energy storage battery is determined. This fully leverages the hardware advantages of the analog front-end chip and controller, ensuring the accuracy of the current operating current calculation. Simultaneously, it enables the energy storage system's charging and discharging current calculation method to adapt to various usage scenarios, from low-current charging to high-current charging, thus meeting the diverse needs of energy storage systems.

[0110] Optionally, determining the current operating current of the energy storage battery based on the current calculated current further includes: controlling the energy storage battery to stop charging when the current sampled current of the main circuit with the first accuracy value, the current sampled current of the main circuit with the second accuracy value, and the current requested current do not meet the first preset condition.

[0111] Specifically, when the energy storage battery is currently in a charging state, if the controller determines that the absolute value of the difference between the main circuit current sampling current (first precision value) or the main circuit current sampling current (second precision value) and the currently requested current is greater than the first current threshold, it indicates that the main circuit current sampling current (first precision value) or the main circuit current sampling current (second precision value) is inconsistent with the expected charging current of the energy storage system. In this case, the external power supply may be outputting abnormally, such as overcurrent or runaway, or there may be a fault in the BMS setting the current requested current. Therefore, it is necessary to control the BMS to request the energy storage battery to stop charging to avoid damage to the energy storage battery due to the fault. Furthermore, if the controller determines that the absolute value of the difference between the main circuit current sampling current (first precision value) and the main circuit current sampling current (second precision value) is greater than the second current threshold, it indicates that the current sampling results of the analog front-end chip and the controller are inconsistent. In this case, there may be hardware faults in the analog front-end chip, poor contact of the first sampling resistor, or noise interference causing data distortion. The sampling results of the main circuit current sampling current (first precision value) and the main circuit current sampling current (second precision value) are unreliable. Therefore, it is necessary to control the BMS to request the energy storage battery to stop charging to ensure the safety of the energy storage battery. The multi-judgment mechanism effectively ensures the safety of the energy storage system and extends the service life of the energy storage battery. At the same time, it ensures that the sampling results of the main circuit current sampling current with the first accuracy value and the main circuit current sampling current with the second accuracy value can truly reflect the current operating current of the energy storage battery, and significantly improves the calculation accuracy of the current operating current of the energy storage battery.

[0112] Optionally, after requesting the energy storage battery to stop charging, the method further includes: when both the main circuit current sampling current with the first accuracy value and the main circuit current sampling current with the second accuracy value are greater than 0, controlling the switch module to open, and determining whether both the main circuit current sampling current with the first accuracy value and the main circuit current sampling current with the second accuracy value are greater than 0; if so, controlling the protection module to open; when one of the main circuit current sampling current with the first accuracy value and the main circuit current sampling current with the second accuracy value is 0 and the other is greater than 0, controlling the alarm module to sound an alarm.

[0113] Specifically, after the BMS requests the energy storage battery to stop charging, the controller will continuously monitor the main circuit current sampling current with both first and second precision values. If the controller detects that both the first and second precision values ​​of the main circuit current sampling current are greater than 0, it indicates that the external power supply has not responded to the stop charging command, posing a risk of loss of control. Therefore, the controller will control the analog front-end chip control switch module to disconnect, cutting off the charging circuit and preventing current from continuing to flow into the energy storage battery. After the controller controls the analog front-end chip control switch module to disconnect, if the controller still detects that both the first and second precision values ​​of the main circuit current sampling current are greater than 0, it indicates that the switch module is also faulty. In this case, the controller will trigger the protection module, such as controlling the fuse to automatically blow, to disconnect the main circuit and completely terminate the charging process of the energy storage battery.

[0114] It is also understandable that after the BMS requests the energy storage battery to stop charging, or after the controller controls the analog front-end chip to disconnect the control switch module, if the controller detects that one of the first-precision value of the main circuit current sampling current and the second-precision value of the main circuit current sampling current is 0, while the other is greater than 0, it indicates that the current sampling results of the analog front-end chip and the controller are inconsistent, and there may be a fault in the analog front-end chip or the first sampling resistor. The controller will then control the alarm module to issue an alarm, so that the alarm module can notify the operator in the form of text, graphics, indicator lights, or sound, to remind the operator that there is a current sampling fault in the energy storage system, thereby facilitating timely maintenance of the energy storage system. Through real-time monitoring by the controller and multiple protection mechanisms, the safety and fault handling capabilities of the energy storage system are significantly improved, and the service life of the energy storage battery is extended.

[0115] In this embodiment, by determining the consistency between the first-precision value of the current main circuit sampling current and the second-precision value of the current main circuit sampling current with the expected charging current of the energy storage system when the current operating state of the energy storage battery is charging, and by determining the consistency between the first-precision value of the current main circuit sampling current and the second-precision value of the current main circuit sampling current, abnormal sampling data is effectively filtered out. This ensures that the sampling results of the first-precision value of the current main circuit sampling current and the second-precision value of the current main circuit sampling current can truly reflect the current operating current of the energy storage battery, significantly improving the calculation accuracy of the current operating current of the energy storage battery. Furthermore, by using the relationship between the first-precision value of the current main circuit sampling current, the second-precision value of the current main circuit sampling current, and a third current threshold, the current operating current of the energy storage battery is determined. This fully utilizes the hardware advantages of the analog front-end chip and the controller, ensuring the accuracy of the current operating current calculation. Therefore, the charging and discharging current calculation method of the energy storage system can adapt to various usage scenarios of the energy storage battery from low-current charging to high-current charging, thus meeting the diverse needs of the energy storage system. In addition, when the current sampling current of the main circuit with the first accuracy value and the current sampling current of the main circuit with the second accuracy value are inconsistent with the expected charging current of the energy storage system, or when the current sampling current of the main circuit with the first accuracy value and the current sampling current of the main circuit with the second accuracy value are inconsistent, the energy storage battery is requested to stop charging, and multiple protection mechanisms are set to ensure the safety of the energy storage system and extend the service life of the energy storage battery.

[0116] Example 4

[0117] Figure 4 This is a flowchart illustrating a method for calculating the charging and discharging current of an energy storage system according to Embodiment 4 of the present invention. Based on the above embodiments, this embodiment provides a detailed description of a method for determining the current operating current of an energy storage battery when the battery is in a discharging state. Accordingly, as shown... Figure 4 As shown, the method for calculating the charging and discharging current of this energy storage system may include:

[0118] S301. Obtain the current operating status and current sampling current of the energy storage battery.

[0119] S302. Determine the current calculated current in the current sampled current based on the current operating state of the energy storage battery.

[0120] S303. When the current operating state of the energy storage battery is the discharge state, obtain the discharge type of the energy storage battery.

[0121] The discharge types include a first discharge type, a second discharge type, and a third discharge type. When the energy storage battery is in the first discharge type, the DC charging and discharging branch is activated to discharge. When the energy storage battery is in the second discharge type, the AC charging and discharging branch is activated to discharge. When the energy storage battery is in the third discharge type, both the DC charging and discharging branch and the AC charging and discharging branch are activated to discharge.

[0122] Specifically, before determining the current operating current of the energy storage battery based on the current sampled current of the main circuit, the current sampled current of the auxiliary power supply circuit, and the current sampled current of the DC charging / discharging branch, the controller can first obtain the discharge type of the energy storage battery. The discharge type reflects the mode in which the energy storage battery supplies power to a DC or AC load, laying the foundation for subsequently determining the method for calculating the current operating current of the energy storage battery based on its discharge type. For example, the controller may include a DC load power supply button and an AC load power supply button, allowing the operator to select the discharge type of the energy storage battery by pressing the DC load power supply button, pressing the AC load power supply button, or pressing both buttons simultaneously. Simultaneously, the controller can obtain the discharge type of the energy storage battery by detecting the button states of the DC load power supply button and the AC load power supply button.

[0123] For example, when the controller detects that the DC load power supply button is pressed, it will determine that the energy storage battery is in the first discharge type, and the energy storage battery supplies power to the DC load through the DC charging and discharging branch; when the controller detects that the AC load power supply button is pressed, it will determine that the energy storage battery is in the second discharge type, and the energy storage battery supplies power to the AC load through the AC charging and discharging branch; when the controller detects that both the DC load power supply button and the AC load power supply button are pressed, it will determine that the energy storage battery is in the third discharge type, and the energy storage battery supplies power to the DC load through the DC charging and discharging branch and to the AC load through the AC charging and discharging branch, respectively.

[0124] S304. Determine the current operating current of the energy storage battery based on the discharge type of the energy storage battery, the current sampling current of the main circuit with the first accuracy value, the current sampling current of the main circuit with the second accuracy value, the current sampling current of the auxiliary power supply circuit, and the current sampling current of the DC charging and discharging branch.

[0125] Specifically, after the controller obtains the discharge type of the energy storage battery, it determines the current operating current of the energy storage battery based on the discharge type of the energy storage battery, the current sampling current of the main circuit with the first accuracy value, the current sampling current of the main circuit with the second accuracy value, the current sampling current of the auxiliary power supply circuit, and the current sampling current of the DC charging and discharging branch. This enables the energy storage system's charging and discharging current calculation method to adapt to various power consumption modes of the load, effectively improving the accuracy of the energy storage system's discharge current calculation and the applicability of the energy storage system.

[0126] Optionally, the current operating current of the energy storage battery is determined based on the discharge type of the energy storage battery, the current sampling current of the main circuit with a first accuracy value, the current sampling current of the main circuit with a second accuracy value, the current sampling current of the auxiliary power supply circuit, and the current sampling current of the DC charging and discharging branch. This includes: when the energy storage battery is in the first discharge type, determining whether the current sampling current of the main circuit with a first accuracy value, the current sampling current of the main circuit with a second accuracy value, and the current sampling current of the DC charging and discharging branch meet a second preset condition; the second preset condition includes that the difference between the current sampling current of the main circuit with a first accuracy value and the current sampling current of the DC charging and discharging branch is small. If the difference between the current sampling current of the main circuit and the current sampling current of the DC charging / discharging branch is less than or equal to the fourth current threshold, and the absolute value of the difference between the current sampling current of the main circuit with the first precision value and the current sampling current of the main circuit with the second precision value is less than or equal to the second current threshold; if so, then determine whether the current sampling current of the main circuit with the first precision value and the current sampling current of the main circuit with the second precision value are both greater than or equal to the third current threshold; if so, then determine the sum of the current sampling current of the main circuit with the first precision value and the current sampling current of the auxiliary power supply circuit as the current operating current of the energy storage battery.

[0127] Specifically, when the controller determines that the energy storage battery is in the first discharge type, i.e., the energy storage battery supplies power to the DC load through the DC charging and discharging branch, the controller can first determine whether the difference between the current sampling current of the main circuit with the first accuracy value and the current sampling current of the DC charging and discharging branch, and the difference between the current sampling current of the main circuit with the second accuracy value and the current sampling current of the DC charging and discharging branch, are both less than or equal to the fourth current threshold. For example, the fourth current threshold can be 0.5A. It can be understood that when the difference between the current sampling current of the main circuit with the first accuracy value and the current sampling current of the DC charging and discharging branch, and the difference between the current sampling current of the main circuit with the second accuracy value and the current sampling current of the DC charging and discharging branch, are both less than or equal to the fourth current threshold, it indicates that the current sampling current of the main circuit with the second accuracy value is mainly consumed by the DC-DC bidirectional converter, excluding the influence of the inverter or other abnormal loads, ensuring matching with the discharge type of the energy storage battery.

[0128] After determining that the differences between the current sampling current of the main circuit (first precision value) and the current sampling current of the DC charging / discharging branch, as well as the differences between the current sampling current of the main circuit (second precision value) and the current sampling current of the DC charging / discharging branch, are both less than or equal to the fourth current threshold, the controller can further determine whether the absolute value of the difference between the current sampling current of the main circuit (first precision value) and the current sampling current of the main circuit (second precision value) is less than or equal to the second current threshold. It can also be understood that when the absolute value of the difference between the current sampling current of the main circuit (first precision value) and the current sampling current of the main circuit (second precision value) is less than or equal to the second current threshold, it indicates that the measurement results of the current consumption of the DC-DC bidirectional converter by the analog front-end chip and the controller are highly consistent, thereby eliminating deviations or noise interference between sampling modules, ensuring that subsequent calculations of the current operating current are based on consistent data.

[0129] After determining that the differences between the main circuit current sampling current (first precision value) and the DC charging / discharging branch current sampling current, as well as the differences between the main circuit current sampling current (second precision value) and the DC charging / discharging branch current sampling current, are both less than or equal to a fourth current threshold, and the absolute value of the difference between the main circuit current sampling current (first precision value) and the main circuit current sampling current (second precision value) is less than or equal to the second current threshold, the controller can determine the current operating current of the energy storage battery by comparing the magnitudes of the main circuit current sampling current (first precision value) and the third current threshold, as well as the magnitudes of the main circuit current sampling current (second precision value) and the third current threshold. It is understood that when both the main circuit current sampling current (first precision value) and the main circuit current sampling current (second precision value) are greater than or equal to the third current threshold, it indicates that both the main circuit current sampling current (first precision value) and the main circuit current sampling current (second precision value) are relatively large, resulting in significant DC load consumption. The analog front-end chip ensures measurement accuracy under high current. The first-precision value of the main circuit's current sampling current includes the current consumption of the DC-DC bidirectional converter, implicitly containing the current sampling current of the DC charging / discharging branch. Therefore, the current operating current of the energy storage battery can be determined by simply calculating the sum of the first-precision value of the main circuit's current sampling current and the current sampling current of the auxiliary power supply circuit. It can also be understood that when at least one of the first-precision value of the main circuit's current sampling current and the second-precision value of the main circuit's current sampling current is less than a third current threshold, it indicates that both the first-precision value and the second-precision value of the main circuit's current sampling current are relatively small, resulting in low DC load consumption. The controller is suitable for fine-tuning small current changes. Since the second-precision value of the main circuit's current sampling current is small and does not fully reflect the consumption of the DC-DC bidirectional converter, it is necessary to calculate the sum of the second-precision value of the main circuit's current sampling current, the current sampling current of the DC charging / discharging branch, and the current sampling current of the auxiliary power supply circuit to determine the current operating current of the energy storage battery.

[0130] Furthermore, during the initial sampling current matching and consistency verification process when the energy storage battery is in the first discharge type, if the controller determines that the current sampling current of the main circuit with the first accuracy value, the current sampling current of the main circuit with the second accuracy value, and the current sampling current of the DC charging and discharging branch do not meet the second preset condition, it indicates that there is a fault in the energy storage system at this time, and the controller will request the energy storage battery to stop charging. The same applies as described above, and will not be repeated here.

[0131] Optionally, determining the current operating current of the energy storage battery based on the discharge type of the energy storage battery, the current sampling current of the main circuit with a first precision value, the current sampling current of the main circuit with a second precision value, the current sampling current of the auxiliary power supply circuit, and the current sampling current of the DC charging and discharging branch further includes: when the energy storage battery is in the second discharge type, determining whether the absolute value of the difference between the current sampling current of the main circuit with a first precision value and the current sampling current of the main circuit with a second precision value is less than or equal to a second current threshold; if so, determining whether the current sampling current of the main circuit with a first precision value and the current sampling current of the main circuit with a second precision value are both greater than or equal to a third current threshold; if so, determining the sum of the current sampling current of the main circuit with a first precision value, the current sampling current of the DC charging and discharging branch, and the current sampling current of the auxiliary power supply circuit as the current operating current of the energy storage battery.

[0132] Specifically, when the controller determines that the energy storage battery is in the second discharge type, i.e., the energy storage battery supplies power to the AC load through the AC charging and discharging branch, the controller can determine whether the absolute value of the difference between the first-precision value of the current sampled current of the main circuit and the second-precision value of the current sampled current of the main circuit is less than or equal to a second current threshold. It can also be understood that when the absolute value of the difference between the first-precision value of the current sampled current of the main circuit and the second-precision value of the current sampled current of the main circuit is less than or equal to the second current threshold, it indicates that the measurement results of the inverter's current consumption by the analog front-end chip and the controller are highly consistent, thus eliminating deviations or noise interference between sampling modules, ensuring that subsequent calculations of the current operating current are based on consistent data.

[0133] After determining that the absolute value of the difference between the main circuit current sampling current of the first precision value and the main circuit current sampling current of the second precision value is less than or equal to the second current threshold, the controller can determine the current operating current of the energy storage battery by comparing the magnitudes of the main circuit current sampling current of the first precision value and the third current threshold, as well as the magnitudes of the main circuit current sampling current of the second precision value and the third current threshold. It is understood that when both the main circuit current sampling current of the first precision value and the main circuit current sampling current of the second precision value are greater than or equal to the third current threshold, it indicates that both the main circuit current sampling current of the first precision value and the main circuit current sampling current of the second precision value are relatively large, resulting in high AC load consumption. Since the analog front-end chip can ensure measurement accuracy under high current, and the DC-DC bidirectional converter has a certain self-power consumption, it is necessary to calculate the sum of the main circuit current sampling current of the first precision value, the current sampling current of the DC charging / discharging branch, and the current sampling current of the auxiliary power supply circuit to determine the current operating current of the energy storage battery. It is also understandable that when at least one of the main circuit current sampling current of the first precision value and the main circuit current sampling current of the second precision value is less than the third current threshold, it indicates that both the main circuit current sampling current of the first precision value and the main circuit current sampling current of the second precision value are relatively small, and the AC load consumption is relatively small. The controller is suitable for fine monitoring of small current changes, and the DC-DC bidirectional converter has a certain self-power consumption. Therefore, it is necessary to calculate the sum of the main circuit current sampling current of the second precision value, the current sampling current of the DC charging and discharging branch, and the current sampling current of the auxiliary power supply circuit to determine the current operating current of the energy storage battery.

[0134] Furthermore, during the initial sampling current matching and consistency verification process when the energy storage battery is in the second discharge type, if the controller determines that the absolute value of the difference between the main current sampling current of the first accuracy value and the main current sampling current of the second accuracy value is greater than the second current threshold, it indicates that there is a fault in the energy storage system at this time, and the controller will request the energy storage battery to stop charging. The same applies as described above, and will not be repeated here.

[0135] Optionally, determining the current operating current of the energy storage battery based on the discharge type of the energy storage battery, the current sampling current of the main circuit with a first precision value, the current sampling current of the main circuit with a second precision value, the current sampling current of the auxiliary power supply circuit, and the current sampling current of the DC charging and discharging branch further includes: when the energy storage battery is in the third discharge type, determining whether the current sampling current of the main circuit with a first precision value, the current sampling current of the main circuit with a second precision value, and the current sampling current of the DC charging and discharging branch meet a third preset condition; the third preset condition includes that the current sampling current of the main circuit with a first precision value is greater than the current sampling current of the DC charging and discharging branch, the current sampling current of the main circuit with a second precision value is greater than the current sampling current of the DC charging and discharging branch, and the absolute value of the difference between the current sampling current of the main circuit with a first precision value and the current sampling current of the main circuit with a second precision value is less than or equal to a second current threshold; if so, determining whether the current sampling current of the main circuit with a first precision value and the current sampling current of the main circuit with a second precision value are both greater than or equal to the third current threshold; if so, determining the sum of the current sampling current of the main circuit with a first precision value and the current sampling current of the auxiliary power supply circuit as the current operating current of the energy storage battery.

[0136] Specifically, when the controller determines that the energy storage battery is in the third discharge type—that is, the energy storage battery simultaneously supplies power to a DC load through a DC charging / discharging branch and to an AC load through an AC charging / discharging branch—the controller can first determine whether both the first-precision value and the second-precision value of the main circuit's current sampling current are greater than the current sampling current of the DC charging / discharging branch. It can be understood that when both the first-precision value and the second-precision value of the main circuit's current sampling current are greater than the current sampling current of the DC charging / discharging branch, it indicates that the first-precision value and the second-precision value of the main circuit's current sampling current include not only the power consumption of the DC-DC bidirectional converter but also the current consumption of the inverter. This verifies that the energy storage system is operating in a parallel state of supplying power to both DC and AC loads, thus ensuring that the sampling current matches the discharge type of the energy storage battery.

[0137] After determining that both the primary circuit current sampling current with a first precision value and the primary circuit current sampling current with a second precision value are greater than the current sampling current of the DC charging / discharging branch, the controller can further determine whether the absolute value of the difference between the primary circuit current sampling current with a first precision value and the primary circuit current sampling current with a second precision value is less than or equal to a second current threshold. It can also be understood that when the absolute value of the difference between the primary circuit current sampling current with a first precision value and the primary circuit current sampling current with a second precision value is less than or equal to the second current threshold, it indicates that the measurement results of the current consumption of the DC-DC bidirectional converter and inverter by the analog front-end chip and the controller are highly consistent, thus eliminating deviations or noise interference between sampling modules, and ensuring that subsequent calculations of the current operating current are based on consistent data.

[0138] After determining that both the primary circuit current sampling current (first accuracy value) and the primary circuit current sampling current (second accuracy value) are greater than the current sampling current of the DC charging / discharging branch, and that the absolute value of the difference between the primary circuit current sampling current (first accuracy value) and the primary circuit current sampling current (second accuracy value) is less than or equal to the second current threshold, the controller can determine the current operating current of the energy storage battery by comparing the primary circuit current sampling current (first accuracy value) with the third current threshold, and the primary circuit current sampling current (second accuracy value) with the third current threshold. It is understood that when both the primary circuit current sampling current (first accuracy value) and the primary circuit current sampling current (second accuracy value) are greater than or equal to the third current threshold, it indicates that both the primary circuit current sampling current (first accuracy value) and the primary circuit current sampling current (second accuracy value) are relatively large, resulting in high DC and AC load consumption. The analog front-end chip can ensure measurement accuracy under high current conditions, and the primary circuit current sampling current (first accuracy value) includes the combined current consumption of the DC-DC two-wire converter and the inverter, implicitly including the current sampling current of the DC charging / discharging branch. Therefore, the current operating current of the energy storage battery can be determined simply by calculating the sum of the primary circuit current sampling current (first accuracy value) and the current sampling current of the auxiliary power supply circuit. It is also understandable that when at least one of the main circuit current sampling current of the first precision value and the main circuit current sampling current of the second precision value is less than the third current threshold, it indicates that both the main circuit current sampling current of the first precision value and the main circuit current sampling current of the second precision value are relatively small, and the DC load and AC load consumption are relatively small. The controller is suitable for fine monitoring of small current changes. However, since the main circuit current sampling current of the second precision value is relatively small, it does not fully reflect the consumption of the DC-DC bidirectional converter. Therefore, it is necessary to calculate the sum of the main circuit current sampling current of the second precision value, the current sampling current of the DC charging and discharging branch, and the current sampling current of the auxiliary power supply circuit to determine the current operating current of the energy storage battery.

[0139] Furthermore, during the initial sampling current matching and consistency verification process when the energy storage battery is in the third discharge type, if the controller determines that the current sampling current of the main circuit with the first accuracy value, the current sampling current of the main circuit with the second accuracy value, and the current sampling current of the DC charging and discharging branch do not meet the third preset condition, it indicates that there is a fault in the energy storage system at this time, and the controller will request the energy storage battery to stop charging. The same applies as described above, and will not be repeated here.

[0140] In this embodiment, by obtaining the discharge type of the energy storage battery when its current operating state is discharge, it is possible to determine whether the energy storage battery is supplying power to a DC load through a DC charging / discharging branch, an AC load through an AC charging / discharging branch, or both through a DC charging / discharging branch and an AC load. Based on the discharge type of the energy storage battery, the current sampling current of the main circuit (first accuracy value), the current sampling current of the main circuit (second accuracy value), the current sampling current of the auxiliary power supply circuit, and the current sampling current of the DC charging / discharging branch, the current operating current of the energy storage battery can be determined, enabling the energy storage system's charging / discharging current calculation method to adapt to various power consumption modes of the load. By determining whether the second-precision value of the main circuit current sampling current is mainly consumed by the DC-DC bidirectional converter when the energy storage battery supplies power to a DC load through the DC charging and discharging branch, and by assessing the consistency between the first-precision value and the second-precision value of the main circuit current sampling current; by determining the consistency between the first-precision value and the second-precision value of the main circuit current sampling current when the energy storage battery supplies power to an AC load through the AC charging and discharging branch; and by determining whether the second-precision value of the main circuit current sampling current is consumed by both the DC-DC bidirectional converter and the inverter when the energy storage battery supplies power to a DC load through the DC charging and discharging branch and to an AC load through the AC charging and discharging branch, and by assessing the consistency between the first-precision value and the second-precision value of the main circuit current sampling current, abnormal sampling data is effectively filtered out. This ensures that the sampling results of the first-precision value and the second-precision value of the main circuit current sampling current can truly reflect the current operating current of the energy storage battery, significantly improving the calculation accuracy of the current operating current of the energy storage battery. Furthermore, by determining the relationship between the current sampled current of the main circuit with the first precision value, the current sampled current of the main circuit with the second precision value, and the third current threshold, the current operating current of the energy storage battery is determined. This fully utilizes the hardware advantages of the analog front-end and controller, ensuring the accuracy of the current operating current calculation. Simultaneously, it enables the energy storage system's charging and discharging current calculation method to adapt to various discharging scenarios, from low-power loads to high-power loads, thus meeting the diverse needs of energy storage systems.

[0141] Example 5

[0142] Figure 5 This is a schematic diagram of the structure of a charging and discharging current calculation device for an energy storage system provided in Embodiment 5 of the present invention. This device can implement the charging and discharging current calculation method for the energy storage system provided in this embodiment of the invention. The device can be implemented by software and / or hardware, and is generally integrated into the controller of the energy storage system. Figure 5As shown, the device includes: a data acquisition module 401, a current calculation current determination module 402, and a current operating current determination module 403. The specific structure of the device is as follows:

[0143] The data acquisition module 401 is used to acquire the current operating status and current sampling current of the energy storage battery. The operating status includes charging status and discharging status; the sampling current includes the requested current, the sampling current of the main circuit, the sampling current of the auxiliary power supply circuit, and the sampling current of the DC charging and discharging branch.

[0144] The current calculation current determination module 402 is used to determine the current calculation current in the current sampled current based on the current operating state of the energy storage battery.

[0145] The current operating current determination module 403 is used to determine the current operating current of the energy storage battery based on the current calculated current.

[0146] In an optional embodiment of the present invention, the current operating current determination module 403 may also be used to: when the energy storage battery is determined to be in a charging state based on the current operating state of the energy storage battery, use the current sampling current and the current requested current of the main circuit as the current calculated current; when the energy storage battery is determined to be in a discharging state based on the current operating state of the energy storage battery, use the current sampling current of the main circuit, the current sampling current of the auxiliary power supply circuit, and the current sampling current of the DC charging and discharging branch as the current calculated current.

[0147] In an optional embodiment of the present invention, the sampling current of the main circuit includes a main circuit sampling current with a first precision value and a main circuit sampling current with a second precision value, wherein the first precision value is less than the second precision value. The current operating current determination module 403 can also be used to: when the current operating state of the energy storage battery is a charging state, determine whether the main circuit current sampling current with the first precision value, the main circuit current sampling current with the second precision value, and the current requested current meet a first preset condition; the first preset condition includes that the absolute value of the difference between the main circuit current sampling current with the first precision value and the current requested current is less than or equal to a first current threshold, the absolute value of the difference between the main circuit current sampling current with the second precision value and the current requested current is less than or equal to the first current threshold, and the absolute value of the difference between the main circuit current sampling current with the first precision value and the main circuit current sampling current with the second precision value is less than or equal to the second current threshold; if so, determine whether the main circuit current sampling current with the first precision value and the main circuit current sampling current with the second precision value are both greater than or equal to a third current threshold; if so, determine the main circuit current sampling current with the first precision value as the current operating current of the energy storage battery.

[0148] In an optional embodiment of the present invention, the current operating current determination module 403 may also be used to: determine the current operating current of the energy storage battery as the current operating current of the main circuit with the second precision value when at least one of the current sampling current of the main circuit with the first precision value and the current sampling current of the main circuit with the second precision value is less than a third current threshold.

[0149] In an optional embodiment of the present invention, the current operating current determination module 403 may also be used to: control the energy storage battery to stop charging when the main current sampling current of the first accuracy value, the main current sampling current of the second accuracy value, and the current requested current do not meet the first preset condition.

[0150] In an optional embodiment of the present invention, the current operating current determination module 403 may further be used to: after requesting the energy storage battery to stop charging, further include: when both the main current sampling current of the first precision value and the main current sampling current of the second precision value are greater than 0, control the switch module to open, and determine whether both the main current sampling current of the first precision value and the main current sampling current of the second precision value are greater than 0; if so, control the protection module to open; when one of the main current sampling current of the first precision value and the main current sampling current of the second precision value is 0 and the other is greater than 0, control the alarm module to sound an alarm.

[0151] In an optional embodiment of the present invention, the sampling current of the main circuit includes a main circuit sampling current with a first precision value and a main circuit sampling current with a second precision value, wherein the first precision value is less than the second precision value. The current operating current determination module 403 can also be used to: obtain the discharge type of the energy storage battery when the current operating state of the energy storage battery is a discharge state; the discharge type includes a first discharge type, a second discharge type, and a third discharge type; when the energy storage battery is in the first discharge type, start the DC charging and discharging branch to discharge; when the energy storage battery is in the second discharge type, start the AC charging and discharging branch to discharge; when the energy storage battery is in the third discharge type, start both the DC charging and discharging branch and the AC charging and discharging branch to discharge; and determine the current operating current of the energy storage battery based on the discharge type of the energy storage battery, the current sampling current of the main circuit with the first precision value, the current sampling current of the main circuit with the second precision value, the current sampling current of the auxiliary power supply circuit, and the current sampling current of the DC charging and discharging branch.

[0152] In an optional embodiment of the present invention, the current operating current determination module 403 may further be used to: when the discharge type of the energy storage battery is a first discharge type, determine whether the current sampling current of the main circuit with a first precision value, the current sampling current of the main circuit with a second precision value, and the current sampling current of the DC charging and discharging branch satisfy a second preset condition; the second preset condition includes that the difference between the current sampling current of the main circuit with a first precision value and the current sampling current of the DC charging and discharging branch is less than or equal to a fourth current threshold, the difference between the current sampling current of the main circuit with a second precision value and the current sampling current of the DC charging and discharging branch is less than or equal to a fourth current threshold, and the absolute value of the difference between the current sampling current of the main circuit with a first precision value and the current sampling current of the main circuit with a second precision value is less than or equal to a second current threshold; if so, determine whether the current sampling current of the main circuit with a first precision value and the current sampling current of the main circuit with a second precision value are both greater than or equal to a third current threshold; if so, determine the sum of the current sampling current of the main circuit with a first precision value and the current sampling current of the auxiliary power supply circuit as the current operating current of the energy storage battery.

[0153] In an optional embodiment of the present invention, the current operating current determination module 403 may further be used to: determine the current operating current of the energy storage battery based on the discharge type of the energy storage battery, the current sampling current of the main circuit with a first precision value, the current sampling current of the main circuit with a second precision value, the current sampling current of the auxiliary power supply circuit, and the current sampling current of the DC charging and discharging branch, including: when the discharge type of the energy storage battery is the second discharge type, determining whether the absolute value of the difference between the current sampling current of the main circuit with a first precision value and the current sampling current of the main circuit with a second precision value is less than or equal to a second current threshold; if so, determining whether the current sampling current of the main circuit with a first precision value and the current sampling current of the main circuit with a second precision value are both greater than or equal to a third current threshold; if so, determining the sum of the current sampling current of the main circuit with a first precision value, the current sampling current of the DC charging and discharging branch, and the current sampling current of the auxiliary power supply circuit as the current operating current of the energy storage battery.

[0154] In an optional embodiment of the present invention, the current operating current determination module 403 may further be used to: when the discharge type of the energy storage battery is the third discharge type, determine whether the current sampling current of the main circuit with the first precision value, the current sampling current of the main circuit with the second precision value, and the current sampling current of the DC charging and discharging branch satisfy a third preset condition; the third preset condition includes that the current sampling current of the main circuit with the first precision value is greater than the current sampling current of the DC charging and discharging branch, the current sampling current of the main circuit with the second precision value is greater than the current sampling current of the DC charging and discharging branch, and the absolute value of the difference between the current sampling current of the main circuit with the first precision value and the current sampling current of the main circuit with the second precision value is less than or equal to a second current threshold; if so, determine whether the current sampling current of the main circuit with the first precision value and the current sampling current of the main circuit with the second precision value are both greater than or equal to the third current threshold; if so, determine the sum of the current sampling current of the main circuit with the first precision value and the current sampling current of the auxiliary power supply circuit as the current operating current of the energy storage battery.

[0155] In an optional embodiment of the present invention, the current operating current determination module 403 may also be used to: determine the sum of the current sampling current of the main circuit with the second accuracy value, the current sampling current of the DC charging and discharging branch, and the current sampling current of the auxiliary power supply circuit as the current operating current of the energy storage battery when at least one of the current sampling current of the main circuit with the first accuracy value and the current sampling current of the main circuit with the second accuracy value is less than a third current threshold.

[0156] The charging and discharging current calculation device for the energy storage system described above can execute the charging and discharging current calculation method for the energy storage system provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the method. Technical details not described in detail in this embodiment can be found in the charging and discharging current calculation method for the energy storage system provided in any embodiment of the present invention.

[0157] Since the energy storage system charging and discharging current calculation device described above is capable of executing the energy storage system charging and discharging current calculation method in the embodiments of the present invention, those skilled in the art can understand the specific implementation and various variations of the energy storage system charging and discharging current calculation device in this embodiment based on the energy storage system charging and discharging current calculation method described in the embodiments of the present invention. Therefore, how the energy storage system charging and discharging current calculation device implements the energy storage system charging and discharging current calculation method in the embodiments of the present invention will not be described in detail here. Any device used by those skilled in the art to implement the energy storage system charging and discharging current calculation method in the embodiments of the present invention falls within the scope of protection of this application.

[0158] Example 6

[0159] Figure 6A schematic diagram of a controller for an energy storage system that can be used to implement embodiments of the present invention is shown. The controller can take various forms to suit the environment and requirements within the energy storage system, such as portable computing devices, system controllers, embedded smart terminals, embedded energy storage systems, and energy storage control units. These devices are specifically designed to calculate the charging and discharging current of the energy storage system, ensuring accurate calculation of the charging and discharging current. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.

[0160] like Figure 6 As shown, the controller 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 can also store various programs and data required for the operation of the controller 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0161] Multiple components in the controller 10 are connected to the I / O interface 15, including: an input unit 16, such as energy storage system control buttons, operation panel switches, etc.; an output unit 17, such as an energy storage system display screen, voice prompt system, etc.; a storage unit 18, such as an embedded hard disk, flash memory, etc.; and a communication unit 19, such as an energy storage system communication module, energy storage system Wi-Fi device, etc. The communication unit 19 allows the controller 10 to exchange information / data with other devices through, for example, an internal energy storage system network and / or an energy storage system communication system.

[0162] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as the method for calculating the charging and discharging current of an energy storage system.

[0163] In some embodiments, the method for calculating the charging and discharging current of the energy storage system can be implemented as a computer program tangibly contained in a computer-readable storage medium, such as a storage unit. In some embodiments, part or all of the computer program can be loaded into and / or installed onto the energy storage system of the above embodiments via a ROM and / or a communication unit. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the method for calculating the charging and discharging current of the energy storage system described above can be performed. Alternatively, in other embodiments, processor 11 can be configured to execute the method for calculating the charging and discharging current of the energy storage system by any other suitable means (e.g., by means of firmware).

[0164] Optionally, a method for calculating the charging and discharging current of an energy storage system may include: obtaining the current operating state of the energy storage battery and the current sampling current; the operating state includes charging state and discharging state; the sampling current includes the request current, the sampling current of the main circuit, the sampling current of the auxiliary power supply circuit and the sampling current of the DC charging and discharging branch; determining the current calculated current in the current sampling current based on the current operating state of the energy storage battery; and determining the current operating current of the energy storage battery based on the current calculated current.

[0165] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0166] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0167] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0168] To provide user interaction, the systems and techniques described herein can be implemented on a controller having: an energy storage system display device (e.g., an energy storage system liquid crystal display) for displaying information to the user; and an energy storage system keypad and pointing device (e.g., an operation panel or touchscreen) through which the user can provide input to the controller. Other types of devices can also be used to provide user interaction; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0169] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.

[0170] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.

[0171] It should be understood that the various forms of processes shown above can be used to reorder, add, or delete steps. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution disclosed in this invention can be achieved, and this is not limited herein.

[0172] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.

Claims

1. A method for calculating the charging and discharging current of an energy storage system, characterized in that, The energy storage system includes an energy storage battery, and an auxiliary power supply circuit and a charging / discharging circuit that are electrically connected to the charging / discharging terminals of the energy storage battery, respectively; the charging / discharging circuit includes a main circuit and at least two charging / discharging branches that are electrically connected to the main circuit; The at least two charging / discharging branches include at least one DC charging / discharging branch; the method for calculating the charging / discharging current includes: The current operating state and current sampling current of the energy storage battery are obtained; the operating state includes charging state and discharging state; the sampling current includes the request current, the sampling current of the main circuit, the sampling current of the auxiliary power supply circuit and the sampling current of the DC charging and discharging branch. Based on the current operating state of the energy storage battery, determine the current calculated current in the current sampled current; The current operating current of the energy storage battery is determined based on the current calculated current.

2. The method for calculating the charging and discharging current of an energy storage system according to claim 1, characterized in that, Based on the current operating state of the energy storage battery, the current calculated current in the current sampled current is determined, including: When the energy storage battery is determined to be in a charging state based on its current operating state, the current sampling current and the current requested current of the main circuit are used as the current calculated current. When the energy storage battery is determined to be in a discharging state based on its current operating state, the current sampling current of the main circuit, the current sampling current of the auxiliary power supply circuit, and the current sampling current of the DC charging and discharging branch are all used as the current calculated current.

3. The method for calculating the charging and discharging current of an energy storage system according to claim 2, characterized in that, The sampling current of the main circuit includes the main circuit sampling current with a first accuracy value and the main circuit sampling current with a second accuracy value; The first precision value is less than the second precision value; Determining the current operating current of the energy storage battery based on the current calculated current includes: When the current operating state of the energy storage battery is charging, it is determined whether the main circuit current sampling current of the first accuracy value, the main circuit current sampling current of the second accuracy value, and the current requested current meet a first preset condition; the first preset condition includes that the absolute value of the difference between the main circuit current sampling current of the first accuracy value and the current requested current is less than or equal to a first current threshold, the absolute value of the difference between the main circuit current sampling current of the second accuracy value and the current requested current is less than or equal to the first current threshold, and the absolute value of the difference between the main circuit current sampling current of the first accuracy value and the main circuit current sampling current of the second accuracy value is less than or equal to a second current threshold; If so, determine whether the current sampling current of the main path with the first precision value and the current sampling current of the main path with the second precision value are both greater than or equal to the third current threshold. If so, the current sampling current of the main path of the first accuracy value is determined as the current operating current of the energy storage battery.

4. The method for calculating the charging and discharging current of the energy storage system according to claim 3, characterized in that, Determining the current operating current of the energy storage battery based on the current calculated current further includes: When at least one of the main circuit current sampling current of the first accuracy value and the main circuit current sampling current of the second accuracy value is less than the third current threshold, the main circuit current sampling current of the second accuracy value is determined as the current operating current of the energy storage battery.

5. The method for calculating the charging and discharging current of the energy storage system according to claim 3, characterized in that, Determining the current operating current of the energy storage battery based on the current calculated current further includes: When the main current sampling current of the first accuracy value, the main current sampling current of the second accuracy value, and the current requested current do not meet the first preset condition, the energy storage battery is controlled to stop charging.

6. The method for calculating the charging and discharging current of an energy storage system according to claim 5, characterized in that, The energy storage system also includes a switching module, an alarm module, and a protection module; the switching module and the protection module are both electrically connected to the main circuit; After requesting the energy storage battery to stop charging, the process also includes: When both the main current sampled current of the first precision value and the main current sampled current of the second precision value are greater than 0, the switch module is controlled to open, and it is determined whether both the main current sampled current of the first precision value and the main current sampled current of the second precision value are greater than 0. If so, the protection module is controlled to open. When either the main current sampled current of the first precision value or the main current sampled current of the second precision value is 0, and the other is greater than 0, the alarm module is controlled to trigger an alarm.

7. The method for calculating the charging and discharging current of an energy storage system according to claim 2, characterized in that, The sampling current of the main circuit includes a main circuit sampling current with a first precision value and a main circuit sampling current with a second precision value; the first precision value is less than the second precision value. The at least two charging and discharging branches also include at least one AC charging and discharging branch; Determining the current operating current of the energy storage battery based on the current calculated current includes: When the current operating state of the energy storage battery is in a discharge state, the discharge type of the energy storage battery is obtained; the discharge type includes a first discharge type, a second discharge type, and a third discharge type; when the energy storage battery is in the first discharge type, the DC charging and discharging branch is started to discharge; when the energy storage battery is in the second discharge type, the AC charging and discharging branch is started to discharge; when the energy storage battery is in the third discharge type, both the DC charging and discharging branch and the AC charging and discharging branch are started to discharge simultaneously. The current operating current of the energy storage battery is determined based on the discharge type of the energy storage battery, the current sampling current of the main circuit with the first accuracy value, the current sampling current of the main circuit with the second accuracy value, the current sampling current of the auxiliary power supply circuit, and the current sampling current of the DC charging and discharging branch.

8. The method for calculating the charging and discharging current of an energy storage system according to claim 7, characterized in that, The current operating current of the energy storage battery is determined based on the discharge type of the energy storage battery, the current sampling current of the main circuit with the first accuracy value, the current sampling current of the main circuit with the second accuracy value, the current sampling current of the auxiliary power supply circuit, and the current sampling current of the DC charging and discharging branch, including: When the discharge type of the energy storage battery is the first discharge type, it is determined whether the current sampling current of the main circuit with the first accuracy value, the current sampling current of the main circuit with the second accuracy value, and the current sampling current of the DC charging and discharging branch meet the second preset condition; the second preset condition includes that the difference between the current sampling current of the main circuit with the first accuracy value and the current sampling current of the DC charging and discharging branch is less than or equal to a fourth current threshold, the difference between the current sampling current of the main circuit with the second accuracy value and the current sampling current of the DC charging and discharging branch is less than or equal to the fourth current threshold, and the absolute value of the difference between the current sampling current of the main circuit with the first accuracy value and the current sampling current of the main circuit with the second accuracy value is less than or equal to the second current threshold; If so, determine whether the current sampling current of the main path with the first precision value and the current sampling current of the main path with the second precision value are both greater than or equal to the third current threshold. If so, the sum of the current sampling current of the main circuit and the current sampling current of the auxiliary power supply circuit of the first accuracy value is determined as the current operating current of the energy storage battery.

9. The method for calculating the charging and discharging current of an energy storage system according to claim 7, characterized in that, The current operating current of the energy storage battery is determined based on the discharge type of the energy storage battery, the current sampling current of the main circuit with the first accuracy value, the current sampling current of the main circuit with the second accuracy value, the current sampling current of the auxiliary power supply circuit, and the current sampling current of the DC charging and discharging branch, including: When the discharge type of the energy storage battery is the second discharge type, determine whether the absolute value of the difference between the main current sampled current of the first accuracy value and the main current sampled current of the second accuracy value is less than or equal to the second current threshold. If so, determine whether the current sampling current of the main path with the first precision value and the current sampling current of the main path with the second precision value are both greater than or equal to the third current threshold. If so, the sum of the current sampling current of the main circuit of the first accuracy value, the current sampling current of the DC charging and discharging branch, and the current sampling current of the auxiliary power supply circuit is determined as the current operating current of the energy storage battery.

10. The method for calculating the charging and discharging current of an energy storage system according to claim 7, characterized in that, The current operating current of the energy storage battery is determined based on the discharge type of the energy storage battery, the current sampling current of the main circuit with the first accuracy value, the current sampling current of the main circuit with the second accuracy value, the current sampling current of the auxiliary power supply circuit, and the current sampling current of the DC charging and discharging branch, including: When the discharge type of the energy storage battery is the third discharge type, it is determined whether the current sampling current of the main circuit with the first accuracy value, the current sampling current of the main circuit with the second accuracy value, and the current sampling current of the DC charging and discharging branch meet a third preset condition; the third preset condition includes that the current sampling current of the main circuit with the first accuracy value is greater than the current sampling current of the DC charging and discharging branch, the current sampling current of the main circuit with the second accuracy value is greater than the current sampling current of the DC charging and discharging branch, and the absolute value of the difference between the current sampling current of the main circuit with the first accuracy value and the current sampling current of the main circuit with the second accuracy value is less than or equal to a second current threshold. If so, determine whether the current sampling current of the main path with the first precision value and the current sampling current of the main path with the second precision value are both greater than or equal to the third current threshold. If so, the sum of the current sampling current of the main circuit and the current sampling current of the auxiliary power supply circuit of the first accuracy value is determined as the current operating current of the energy storage battery.

11. The method for calculating the charging and discharging current of an energy storage system according to any one of claims 8-10, characterized in that, The current operating current of the energy storage battery is determined based on the discharge type of the energy storage battery, the current sampling current of the main circuit with the first accuracy value, the current sampling current of the main circuit with the second accuracy value, the current sampling current of the auxiliary power supply circuit, and the current sampling current of the DC charging and discharging branch. The determination also includes: When at least one of the main circuit current sampling current of the first accuracy value and the main circuit current sampling current of the second accuracy value is less than the third current threshold, the sum of the main circuit current sampling current of the second accuracy value, the current sampling current of the DC charging and discharging branch, and the current sampling current of the auxiliary power supply circuit is determined as the current operating current of the energy storage battery.

12. A charging and discharging current calculation device for an energy storage system, characterized in that, The energy storage system includes an energy storage battery, and an auxiliary power supply circuit and a charging / discharging circuit that are electrically connected to the charging / discharging terminals of the energy storage battery, respectively; the charging / discharging circuit includes a main circuit and at least two charging / discharging branches that are electrically connected to the main circuit; The at least two charging and discharging branches include at least one DC charging and discharging branch; The charging / discharging current calculation device includes: The data acquisition module is used to acquire the current operating state and current sampling current of the energy storage battery; the operating state includes charging state and discharging state; the sampling current includes the request current, the sampling current of the main circuit, the sampling current of the auxiliary power supply circuit and the sampling current of the DC charging and discharging branch. The current calculation current determination module is used to determine the current calculation current in the current sampled current based on the current operating state of the energy storage battery. The current operating current determination module is used to determine the current operating current of the energy storage battery based on the current calculated current.

13. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the method for calculating the charging and discharging current of the energy storage system as described in any one of claims 1-11.

14. An energy storage system, characterized in that, include: The energy storage battery, an auxiliary power supply circuit and a charging / discharging circuit electrically connected to the charging / discharging terminals of the energy storage battery, and a controller; The charging and discharging circuit includes a main circuit and at least two charging and discharging branches electrically connected to the main circuit. The at least two charging and discharging branches include at least one DC charging and discharging branch; The controller is electrically connected to the auxiliary power supply circuit and is used to execute the charging and discharging current calculation method of the energy storage system as described in any one of claims 1-11.

15. The energy storage system according to claim 14, characterized in that, Also includes: Switching module, alarm module, and protection module; Both the switch module and the protection module are electrically connected to the main circuit; The controller is electrically connected to the switch module, the alarm module, and the protection module, respectively.