Control method of energy storage machine and no-load mains supply loss detection method

By using carrier synchronization signals in the energy storage machine system to synchronize the carrier synchronization bus between the master and slave, detecting the loss of mains power and performing off-grid switching, the timeliness problem caused by CAN bus occupation is solved and the message is ensured timely delivery and equipment stability.

CN118983860APending Publication Date: 2024-11-19SOLAR POWER NETWORK TECHNOLOGY (ZHEJIANG) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411073333.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-06
Publication Date
2024-11-19

AI Technical Summary

Technical Problem

In the energy storage system, the CAN communication bus is easily occupied, which will affect the timeliness of the lost messages of the mains power and may lead to overload and damage to the equipment.

Method used

Synchronize the carrier synchronization bus between the master and slave through the carrier synchronization signal. After delay, the mains loss is detected, and the grid-connected relay is disconnected and the off-grid relay is closed to avoid sending mains loss messages using the CAN bus, realizing timely and switch off the grid.

Benefits of technology

It realizes the purpose of sending lost messages from the mains power supply without using the CAN bus, ensuring timely delivery of messages and avoiding equipment failures caused by the mains power supply.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118983860A_ABST
    Figure CN118983860A_ABST
Patent Text Reader

Abstract

The invention relates to a control method of an energy storage machine. The method comprises the following steps: a slave in a plurality of energy storage machines receives a carrier synchronization signal sent by a host in the plurality of energy storage machines; when it is detected that the carrier synchronization signal is set to be a high level, after a first preset duration is delayed, the slave machine detects whether the mains supply of the slave machine is lost or not; if it is detected that the mains supply of the slave machine is lost, the slave machine sets the carrier synchronizing signal output by the slave machine to be high level and then outputs the carrier synchronizing signal, the grid-connected relay connected with the power grid is disconnected, and the off-grid relay connected with the load is closed. The timeliness is influenced, and the overload damage of the equipment is possibly caused.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of energy storage machines, and in particular to a control method for an energy storage machine, a method for detecting a loss of mains power, and an energy storage machine system. Background Art

[0002] Figure 1 It is an architecture diagram of an energy storage system, such as Figure 1 As shown, the energy storage machines are connected in parallel and decentralized bypass. When any machine detects that the mains power is lost, in order to avoid overloading of the bypass relay, all machines should be switched to off-grid mode. Generally, other machines are notified through the Controller Area Network (CAN) communication bus. However, the CAN communication bus is easily occupied, affecting timeliness. In addition, when there are more energy storage machines in parallel, there is more bus data and longer delay. Summary of the invention

[0003] The embodiments of the present application provide a control method for an energy storage machine, a detection method for mains power loss, and an energy storage machine system, which at least solve the problem that when the energy storage machine uses the CAN communication bus to send a message of mains power loss, the CAN communication bus is easily occupied, affecting timeliness and possibly causing equipment overload and damage.

[0004] According to one aspect of an embodiment of the present application, a control method for an energy storage machine is provided, including: a slave machine among multiple energy storage machines receives a carrier synchronization signal sent by a master machine among multiple energy storage machines; when it is detected that the carrier synchronization signal is set to a high level, after a first preset delay, the slave machine detects whether the AC power of the local machine is lost; if it is detected that the AC power of the local machine is lost, the slave machine sets the carrier synchronization signal output by the local machine to a high level and then outputs it, and disconnects the grid-connected relay connected to the power grid, and closes the off-grid relay connected to the load.

[0005] Optionally, the carrier synchronization signal is sent via a carrier synchronization bus, and the carrier synchronization bus is connected to the input and output interfaces of the host and the slave, so as to achieve carrier synchronization between the host and the slave.

[0006] Optionally, after the slave sets the carrier synchronization signal output by the local machine to a high level, the above method also includes: after a delay of a second preset time length, the slave sets the carrier synchronization signal output by the local machine to a low level, wherein when the slave and the host detect that the mains power is lost, the output carrier synchronization signal is set to a low level at the same time.

[0007] Optionally, the method further includes: after detecting that the carrier synchronization signal output by the slave is set to a high level for a duration exceeding a third preset duration, other devices connected to the slave enter an off-grid working mode.

[0008] Optionally, the host, the slave, and other devices connected to the slave use an interrupt program of a processor to determine the duration of the carrier synchronization signal being set to a high level.

[0009] According to another aspect of the embodiment of the present application, a method for detecting no-load AC power loss is also provided, including: when the energy storage machine is not connected to a load, detecting the output voltage of the three-phase phase-locked loop in the inverter; if the absolute value of the output voltage is higher than the first voltage threshold, calculating the minimum value of the absolute values ​​of the three-phase AC power voltage, and obtaining the bus voltage; if the minimum value of the absolute values ​​of the three-phase AC power voltage is less than the second voltage threshold, or the bus voltage is higher than the second voltage threshold, shutting down the drive of the inverter, and determining the instantaneous value of the three-phase AC power voltage; if the absolute value of the instantaneous value of any phase AC power voltage is less than the fourth voltage threshold, and the duration exceeds the fourth preset duration, determining that the AC power is lost.

[0010] According to another aspect of the embodiment of the present application, there is also provided an energy storage machine system, comprising: an inverter and multiple energy storage machines, wherein the inverter is connected to the AC power supply and is configured to detect whether the AC power is lost; the energy storage machine comprises a host and multiple slaves, wherein the host is connected to the inverter, receives information about the loss of AC power sent by the inverter, and sends a carrier synchronization signal to the multiple slaves, wherein the carrier synchronization signal carries the information about the loss of AC power; multiple slaves are connected to the host and are configured to receive the carrier synchronization signal; when it is detected that the carrier synchronization signal is set to a high level, after a delay of a first preset time length, it is detected whether the AC power of the local machine is lost; if it is detected that the AC power of the local machine is lost, the grid-connected relay connected to the power grid is disconnected, and the off-grid relay connected to the load is closed.

[0011] Optionally, a carrier synchronization bus is connected between the input and output interfaces of the host and the plurality of slaves, and the carrier synchronization bus is used to transmit a carrier synchronization signal.

[0012] Optionally, multiple slave machines are also configured to set the carrier synchronization signal output by the local machine to a high level, and after a second delay, set the carrier synchronization signal output by the local machine to a low level, wherein when multiple slave machines and the host machine detect that the mains power is lost, the output carrier synchronization signal is set to a low level at the same time.

[0013] Optionally, the energy storage system further includes: other devices connected to the multiple slaves, configured to enter an off-grid working mode after detecting that the carrier synchronization signals output by the multiple slaves are set to a high level for a duration exceeding a third preset duration.

[0014] Optionally, the inverter is configured to detect the output voltage of the three-phase phase-locked loop when the energy storage machine is not connected to a load; if the output voltage is higher than a first voltage threshold, the minimum value of the absolute values ​​of the three-phase mains voltage is calculated, and the bus voltage is obtained; if the minimum value of the absolute values ​​of the three-phase mains voltage is less than a second voltage threshold, or the bus voltage is higher than the second voltage threshold, the drive of the inverter is turned off, and the instantaneous value of the three-phase mains voltage is determined; if the absolute value of any instantaneous value of the mains voltage is less than a fourth voltage threshold, and the duration exceeds a fourth preset duration, it is determined that the mains power is lost.

[0015] According to another aspect of the embodiments of the present application, there is also provided an electronic device, comprising: a processor, and a memory for storing a program, wherein the program comprises instructions, and when the instructions are executed by the processor, the processor executes the above method.

[0016] According to another aspect of the embodiments of the present application, a non-transitory machine-readable medium storing computer instructions is also provided, where the computer instructions are used to enable a computer to execute the above method.

[0017] According to another aspect of the embodiments of the present application, a computer program product is provided, including a computer program, which is used to enable the computer to execute the above method when executed by a processor of the computer.

[0018] Beneficial effects of the embodiments of the present application:

[0019] In an embodiment of the present application, a slave machine among multiple energy storage machines is used to receive a carrier synchronization signal sent by a master machine among multiple energy storage machines; when it is detected that the carrier synchronization signal is set to a high level, after a delay of a first preset time, the slave machine detects whether the AC power of the local machine is lost; if it is detected that the AC power of the local machine is lost, the slave machine sets the carrier synchronization signal output by the local machine to a high level and then outputs it, and disconnects the grid-connected relay connected to the power grid, and closes the off-grid relay connected to the load, and sends a message of AC power loss through the carrier synchronization bus between the energy storage machines, thereby achieving the purpose of not using the CAN bus to send the message of AC power loss, and realizing the technical effect of timely sending the message of AC power loss to each energy storage machine, avoiding equipment failure due to AC power loss.

[0020] Details of one or more embodiments of the present application are set forth in the following drawings and description to make other features, objects, and advantages of the present application more readily apparent. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other embodiments can be obtained based on these drawings without creative work.

[0022] Figure 1 It is an architectural diagram of an energy storage system;

[0023] Figure 2 is a circuit schematic diagram of an energy storage system according to an embodiment of the present application;

[0024] Figure 3 is a flow chart of a control method of an energy storage machine according to an embodiment of the present application;

[0025] Figure 4 is a schematic diagram of a carrier synchronization signal sent by a host and a slave according to an embodiment of the present application;

[0026] Figure 5 is a schematic diagram of a carrier synchronization bus signal according to an embodiment of the present application;

[0027] Figure 6 It is a structural diagram of an energy storage machine;

[0028] Figure 7 This is a schematic diagram of the voltage change across the filter capacitor in the energy storage machine under no-load condition when the mains power is lost;

[0029] Figure 8 This is a schematic diagram of the change of mains voltage when mains power is lost;

[0030] Fig. 9 This is a schematic diagram of the change of mains voltage when the mains phase changes suddenly;

[0031] Fig.10 is a flow chart of a method for detecting no-load mains loss according to an embodiment of the present application;

[0032] Fig.11 is a schematic diagram of a three-phase phase-locked loop in an inverter according to an embodiment of the present application;

[0033] Fig.12 is a structural block diagram of an energy storage system according to an embodiment of the present application;

[0034] Fig.13 Schematic diagram of the structure of the electronic device of this embodiment. DETAILED DESCRIPTION

[0035] Embodiments of the present embodiment will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present embodiment are shown in the accompanying drawings, it should be understood that the present embodiment can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein, which are instead provided for a more thorough and complete understanding of the present embodiment. It should be understood that the drawings and embodiments of the present embodiment are only for exemplary purposes and are not intended to limit the scope of protection of the present embodiment.

[0036] In order to better understand the embodiments of the present application, the technical terms involved in the embodiments of the present application are explained as follows:

[0037] Energy storage is a device that stores energy through a medium or device and releases it when needed. It mainly plays the role of regulating the balance of energy production and consumption and ensuring the stability and reliability of the energy system.

[0038] On-grid and off-grid switching refers to the process in which a microgrid or energy storage system in a power system switches from a on-grid state to an off-grid state or from an off-grid state to a on-grid state.

[0039] Carrier synchronization means that in a digital communication system, the receiving end needs to provide a coherent carrier with the same frequency and phase as the modulated carrier in the received signal to achieve a correct demodulation process. The realization of this synchronization is crucial to ensure the quality of communication because it directly affects the demodulation performance and bit error rate. In the inverter parallel system, it specifically refers to the carrier triangular wave that generates the duty cycle to maintain the same frequency and phase to reduce the high-frequency circulating current between machines.

[0040] In the related art, when the energy storage machine uses the CAN communication bus to send a message of mains power loss, the CAN communication bus is easily occupied, which affects timeliness and may cause equipment overload and damage. In order to solve this problem, the embodiments of the present application provide a related solution, which is described in detail below.

[0041] Figure 2 is a circuit schematic diagram of an energy storage system according to an embodiment of the present application, such as Figure 2 As shown, the energy storage machine is off-grid and paralleled using droop control. Figure 2 The processor represents the energy storage machine. Among multiple energy storage machines, one energy storage machine is determined as the host, and the other energy storage machines are slaves. The host and the slave are connected through a carrier synchronization bus. The carrier synchronization bus is connected through the input / output (IO) interface on the host and the slave, which is a physical line. The carrier synchronization bus is used to ensure that the carriers of all slaves and the host are synchronized and eliminate high-frequency circulating currents. The carrier synchronization bus is a 50% square wave signal of a certain frequency.

[0042] The host sends the square wave signal, and the slave can use the carrier synchronization signal to send out the information of the loss of the mains power. The principle is that after the slave detects that the square wave signal is set high, it will delay for a period of time (for example, half a cycle of the square wave signal) and then set the synchronization signal of the local machine high. It is necessary to avoid the rising edge of the signal sent by the host, because the rising edge is used to achieve carrier synchronization, and its frequency and rising edge time cannot be changed. Delay for a period of time (for example, half a cycle of the square wave signal) and then set the signal low. If any machine sends a high level, the bus will become a high level, so the bus level will become a square wave with a duty cycle of 75% (when the delay time is half a cycle of the square wave signal, the duty cycle is 75%). When other machines detect that the square wave has become a 75% duty cycle, they will enter the off-grid working mode at the same time as the machine.

[0043] The specific implementation steps are as follows: Figure 3 shown.

[0044] Figure 3 is a flow chart of a control method of an energy storage machine according to an embodiment of the present application, such as Figure 3 As shown, the method comprises the following steps:

[0045] Step S302: A slave among the multiple energy storage machines receives a carrier synchronization signal sent by a master among the multiple energy storage machines.

[0046] According to an optional embodiment of the present application, the carrier synchronization signal is sent via a carrier synchronization bus, and the carrier synchronization bus is connected to the input and output interfaces of the host and the slave to achieve carrier synchronization between the host and the slave.

[0047] In an embodiment of the present application, a carrier synchronous bus connected between the IO interfaces of the host and the slave is used to send information about the loss of the mains power. By multiplexing the IO interfaces, the use of the IO ports can be reduced, and there is no need to use the CAN communication bus. The information about the loss of the mains power can be sent out in a timely manner. "Loss of the mains power" usually means that the inverter cannot detect the AC power supply at the input end.

[0048] In this step, the slave receives the carrier synchronization signal (ie, the square wave signal mentioned above) sent by the master.

[0049] Step S304, when it is detected that the carrier synchronization signal is set to a high level, after a delay of a first preset time, the slave device detects whether the AC power of the slave device is lost.

[0050] In this step, when the slave detects that the carrier synchronization signal is set to a high level, it starts timing, and after a delay of a period of time (for example, half a cycle of the square wave signal), it detects whether the mains power of the local machine is lost.

[0051] If the slave does not detect that the carrier synchronization signal is set to a high level, the subsequent steps will not be executed.

[0052] Step S306, if it is detected that the mains power of the slave is lost, the slave sets the carrier synchronization signal output by the slave to a high level and then outputs it, disconnects the grid-connected relay connected to the grid, and closes the off-grid relay connected to the load.

[0053] If the slave detects that the local power supply is lost, the slave sets the carrier synchronization signal output by the local machine to a high level. At this time, the host does not act (that is, the carrier synchronization signal output by the host is continuously set to a high level). Then after a delay, the slave sets the carrier synchronization signal output by the local machine to a low level (described below) and enters the off-grid mode.

[0054] It should be noted that entering the off-grid mode here means disconnecting the grid-connected relay connected to the grid and closing the off-grid relay connected to the load.

[0055] Figure 4 is a schematic diagram of a carrier synchronization signal sent by a host and a slave according to an embodiment of the present application, such as Figure 4 As shown, the carrier synchronization signal sent by the slave is delayed by a period of time compared with the carrier synchronization signal sent by the host, that is, the first preset duration in step S304. It should be noted that the first preset duration cannot exceed the duration of the high level of the square wave signal.

[0056] Figure 5 is a schematic diagram of a carrier synchronization bus signal according to an embodiment of the present application, such as Figure 5 As shown in the figure, since the bus level is obtained after all machines synchronize the signals, that is, if any machine sends a high level, the bus will become a high level, so the high level duration of the bus signal will be longer. If the slave delays the square wave signal for half a cycle and sets the signal output by the slave to a high level, the bus level will become a square wave signal with a duty cycle of 75%.

[0057] If the slave detects that the local AC power is not lost, the subsequent steps will not be executed.

[0058] According to an optional embodiment of the present application, after executing step S306, the slave sets the carrier synchronization signal output by the local machine to a high level, and after a delay of a second preset time length, the slave sets the carrier synchronization signal output by the local machine to a low level, wherein when the slave and the host detect that the AC power is lost, both the output carrier synchronization signal is set to a low level.

[0059] After the slave sets the carrier synchronization signal output by the slave to a high level, it sets the output carrier synchronization signal to a low level after a delay (i.e., the second preset duration mentioned above). The carrier synchronization signal output by the master is also synchronously set to a low level. It should be noted that the second preset duration mentioned above cannot exceed the duration of the high level of the square wave signal.

[0060] At this time, the slave and the master enter the off-grid working mode at the same time, that is, the bypass relay (i.e., the grid-connected relay) is disconnected at the same time, and then the off-grid relay is closed to complete the on-grid and off-grid switching.

[0061] According to another optional embodiment of the present application, other devices connected to the slave enter an off-grid working mode after detecting that the carrier synchronization signal output by the slave is set to a high level for a duration exceeding a third preset duration.

[0062] In the embodiment of the present application, when other devices connected to the slave detect that the duration of the high-level signal is greater than half a period of the square wave signal, the device enters the off-grid working mode. At this point, the energy storage system has completed the on-grid and off-grid switching.

[0063] As an optional embodiment of the present application, the host, the slave, and other devices connected to the slave use the interrupt program of the processor to determine the duration of the carrier synchronization signal being set to a high level.

[0064] In an embodiment of the present application, since the period of the carrier synchronization signal is set to the millisecond (ms) level, the high-level duration can be timed and determined through the processor interruption without using the processor capture module. The interruption is generated through the carrier. Since the carrier is synchronized, the interruption is also synchronized. Therefore, there will be no time difference in judging the high-level duration, and simultaneous switching on and off the network can be achieved.

[0065] Through the above scheme, by using the synchronous interrupt timing to judge the high level duration, it is possible to ensure that all machines, namely the host and the slave, can be connected to the grid and disconnected from the grid at the same time without using a capture module.

[0066] The above-mentioned technical scheme provided in the embodiment of the present application sends the message of the loss of AC power through the carrier synchronization bus between the energy storage machines, thereby achieving the purpose of sending the message of the loss of AC power without using the CAN bus, and realizing the technical effect of timely sending the message of the loss of AC power to each energy storage machine, thereby avoiding equipment failure due to the loss of AC power.

[0067] As mentioned above, when the loss of mains power is detected, the energy storage machine needs to be switched from the grid-connected working mode to the off-grid working mode. Figure 6 It is a structural diagram of an energy storage machine, such as Figure 6 As shown in the figure, when the AC power is lost, the phase-lock failure will be triggered. When no-load, the voltage on the capacitor C1 of the LCL filter drops very slowly, such as Figure 7 As shown, the processor cannot judge the loss of mains power in time, thus affecting the switching time between the grid and the grid. To solve this technical problem, the present application also proposes a solution for quickly detecting the loss of mains power.

[0068] Three-phase electric phase locking generally adopts the dq phase locking method. When the output voltage Vq of the three-phase phase-locked loop in the inverter is controlled to within the first threshold, the calculated angle is the angle of the grid voltage phase A. When Va, Vb, and Vc are lost, Vq will suddenly increase or decrease. When its absolute value is greater than the first threshold, it is determined that the phase lock has failed. At this time, the drive is not turned off, the inverter forms an island, and a voltage is formed at the mains port. When the voltage of any phase is less than the second threshold, the drive is turned off. According to the alternation of the three-phase mains to 0, it can be known that the maximum waiting time is 3.3ms, which will not cause unsafe effects on the system. At this time, if the mains is really lost, the output voltage will remain very low, such as Figure 8 As shown, the mains undervoltage is triggered to disconnect from the grid. If the mains phase changes suddenly, the mains voltage will gradually increase and will not be mistakenly judged as mains loss. Fig. 9 If the phase of the mains electricity changes too much, causing the bus voltage to be charged much higher, and the battery in the energy storage machine is already full and cannot absorb energy, the drive needs to be closed for safety reasons.

[0069] The specific implementation steps are as follows: Fig.10 shown.

[0070] Fig.10 is a flow chart of a method for detecting no-load mains loss according to an embodiment of the present application, such as Fig.10 As shown, the method comprises the following steps:

[0071] Step S1002, when the energy storage machine is not connected to a load, detecting the output voltage of the three-phase phase-locked loop in the inverter.

[0072] Fig.11 is a schematic diagram of a three-phase phase-locked loop in an inverter according to an embodiment of the present application, such as Fig.11 As shown, when the energy storage machine is unloaded, the three-phase phase-locked loop output voltage Vq is detected in real time.

[0073] Step S1004: if the absolute value of the output voltage is higher than the first voltage threshold, the minimum absolute value of the three-phase mains voltage is calculated, and the bus voltage is obtained.

[0074] If it is detected that the absolute value of Vq is greater than the first voltage threshold, it is determined that the phase lock fails, and the minimum value of the absolute values ​​of the three-phase mains voltages is calculated.

[0075] In an embodiment of the present application, the first voltage threshold is 50V.

[0076] Step S1006: If the minimum value of the absolute value of the three-phase mains voltage is less than the second voltage threshold, or the bus voltage is higher than the second voltage threshold, the inverter is turned off and the instantaneous value of the three-phase mains voltage is determined.

[0077] If the minimum value of the absolute value of the three-phase mains voltage obtained in step S1004 is less than the second voltage threshold, or the bus voltage is greater than the third voltage threshold, the inverter drive is turned off, and the instantaneous value of the three-phase mains voltage is obtained.

[0078] In an embodiment of the present application, the second voltage threshold is 15V, and the third voltage threshold is 900V.

[0079] Step S1008: If the absolute value of the instantaneous value of the mains voltage of any phase is less than the fourth voltage threshold and the duration exceeds the fourth preset duration, it is determined that the mains is lost.

[0080] In this step, if the absolute value of the instantaneous value of the mains voltage of any phase is lower than the fourth voltage threshold and lasts for a period of time, it is determined that the mains is lost.

[0081] In an embodiment of the present application, the fourth voltage threshold is 10V.

[0082] Through the above technical solution, it is possible to quickly detect the loss of mains power under no-load conditions.

[0083] Fig.12 is a structural block diagram of an energy storage system according to an embodiment of the present application, such as Fig.12 As shown, the energy storage system includes: an inverter 120 and a plurality of energy storage machines 122, wherein:

[0084] The inverter 120 is connected to the mains power supply and is configured to detect whether the mains power is lost.

[0085] The energy storage machine 122 includes a host machine 1220 and multiple slave machines 1222, wherein:

[0086] The host 1220 is connected to the inverter 120, receives the information of the loss of the mains power sent from the inverter 120, and sends a carrier synchronization signal to the plurality of slaves 1222, wherein the carrier synchronization signal carries the information of the loss of the mains power.

[0087] Multiple slave machines 1222 are connected to the host machine 1220 and are configured to receive a carrier synchronization signal. When the carrier synchronization signal is detected to be set to a high level, after a first preset delay, it is detected whether the AC power of the local machine is lost; if it is detected that the AC power of the local machine is lost, the grid-connected relay connected to the power grid is disconnected, and the off-grid relay connected to the load is closed.

[0088] According to an optional embodiment of the present application, a carrier synchronization bus is connected between the input and output interfaces of the host 1220 and the plurality of slaves 1222, and the carrier synchronization bus is used to transmit a carrier synchronization signal.

[0089] According to another optional embodiment of the present application, multiple slave machines 1222 are also configured to set the carrier synchronization signal output by the local machine to a high level, and after a delay of a second time period, set the carrier synchronization signal output by the local machine to a low level, wherein when multiple slave machines 1222 and the host machine 1220 detect that the mains power is lost, the output carrier synchronization signal is set to a low level at the same time.

[0090] As an optional embodiment of the present application, the above-mentioned energy storage system also includes: other devices, connected to multiple slaves 1222, and configured to enter an off-grid working mode after detecting that the carrier synchronization signals output by multiple slaves 1222 are set to a high level for a duration exceeding a third preset duration.

[0091] According to another optional embodiment of the present application, the inverter 120 is configured to detect the output voltage of the three-phase phase-locked loop when the energy storage machine is not connected to a load; if the output voltage is higher than a first voltage threshold, the minimum value of the absolute values ​​of the three-phase mains voltage is calculated, and the bus voltage is obtained; if the minimum value of the absolute values ​​of the three-phase mains voltage is less than a second voltage threshold, or the bus voltage is higher than the second voltage threshold, the drive of the inverter is turned off, and the instantaneous value of the three-phase mains voltage is determined; if the absolute value of any instantaneous value of the mains voltage is less than a fourth voltage threshold, and the duration exceeds a fourth preset duration, it is determined that the mains is lost.

[0092] It should be noted that Fig.12 The preferred implementation of the embodiment shown can be referred to Figure 3 as well as Fig.10 The description related to the illustrated embodiment will not be repeated here.

[0093] The embodiment of the present application also provides an electronic device, comprising: at least one processor; and a memory connected to the at least one processor in communication. The memory stores a computer program executable by the at least one processor, and the computer program is used to enable the electronic device to perform the method of the embodiment of the present application when executed by the at least one processor.

[0094] An embodiment of the present application also provides a non-transitory machine-readable medium storing a computer program, wherein the computer program, when executed by a processor of a computer, is used to cause the computer to execute the method of the embodiment of the present application.

[0095] The embodiment of the present application also provides a computer program product, including a computer program, wherein the computer program, when executed by a processor of a computer, is used to cause the computer to execute the method of the embodiment of the present application.

[0096] refer to Fig.13, the structural block diagram of the electronic device that can be used as the server or client of the embodiment of the present application will now be described, which is an example of the hardware device that can be applied to various aspects of the present application. The electronic device is intended to represent various forms of digital electronic computer equipment, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices and other similar computing devices. The components shown herein, their connections and relationships, and their functions are only examples, and are not intended to limit the implementation of the present application described and / or required herein.

[0097] like Fig.13 As shown, the electronic device includes a computing unit 1301, which can store data stored in a read-only memory (ROM)

[0098] The computer program in the computer program 1302 or the computer program loaded from the storage unit 1308 into the random access memory (RAM) 1303 is used to perform various appropriate actions and processes. In the RAM 1303, various programs and data required for the operation of the electronic device can also be stored. The computing unit 1301, the ROM 1302 and the RAM 1303 are connected to each other via a bus 1304. An input / output (I / O) interface 1305 is also connected to the bus 1304.

[0099] Multiple components in the electronic device are connected to the I / O interface 1305, including: an input unit 1306, an output unit 1307, a storage unit 1308, and a communication unit 1309. The input unit 1306 can be any type of device that can input information to the electronic device, and the input unit 1306 can receive input digital or character information, and generate key signal input related to user settings and / or function control of the electronic device. The output unit 1307 can be any type of device that can present information, and can include but is not limited to a display, a speaker, a video / audio output terminal, a vibrator, and / or a printer. The storage unit 1308 can include but is not limited to a disk, an optical disk. The communication unit 1309 allows the electronic device to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks, and can include but is not limited to a modem, a network card, an infrared communication device, a wireless communication transceiver, and / or a chipset, such as a Bluetooth device, a WiFi device, a WiMax device, a cellular communication device, and / or the like.

[0100] The computing unit 1301 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 1301 include, but are not limited to, a CPU, a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 1301 performs the various methods and processes described above. For example, in some embodiments, the method embodiments of the present application may be implemented as a computer program, which is tangibly contained in a machine-readable medium, such as a storage unit 1308. In some embodiments, part or all of the computer program may be loaded and / or installed on an electronic device via ROM 1302 and / or communication unit 1309. In some embodiments, the computing unit 1301 may be configured to perform the above method in any other appropriate manner (e.g., by means of firmware).

[0101] The computer program for implementing the method of the embodiment of the present application can be written in any combination of one or more programming languages. These computer programs can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor or controller, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program can be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or server.

[0102] In the context of the present application embodiment, machine-readable medium can be a tangible medium that can contain or store a program for use by an instruction execution system, device or equipment or used in combination with an instruction execution system, device or equipment. Machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. Machine-readable signal medium can include but is not limited to electronic, magnetic, optical, electromagnetic or infrared systems, devices or equipment, or any suitable combination of the above. More specific examples of machine-readable storage media can include electrical connections based on one or more lines, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above.

[0103] It should be noted that the term "including" and its variations used in the embodiments of the present application are open inclusions, that is, "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one other embodiment"; the term "some embodiments" means "at least some embodiments". The modifications of "one" and "multiple" mentioned in the embodiments of the present application are illustrative and not restrictive. Those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0104] The user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in the embodiments of the present application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0105] The various steps described in the method implementation methods provided in the embodiments of the present application can be performed in different orders and / or in parallel. In addition, the method implementation methods may include additional steps and / or omit the steps shown. The scope of protection of the present application is not limited in this respect.

[0106] The term "embodiment" in this specification refers to specific features, structures or characteristics described in conjunction with the embodiment that can be included in at least one embodiment of the present application. The appearance of this phrase in various places in the specification does not necessarily mean the same embodiment, nor does it mean that it is mutually exclusive with other embodiments and is independent or optional. The various embodiments in this specification are described in a related manner, and the same or similar parts between the various embodiments refer to each other. In particular, for the device, equipment, and system embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts refer to the partial description of the method embodiment.

[0107] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of patent protection. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the scope of protection of the present application. Therefore, the scope of protection of the present application shall be subject to the attached claims.

Claims

1. A control method for an energy storage machine, characterized in that: include: A slave among the multiple energy storage machines receives a carrier synchronization signal sent by a master among the multiple energy storage machines; When it is detected that the carrier synchronization signal is set to a high level, after a delay of a first preset time, the slave detects whether the mains power of the slave is lost; If the mains power loss of the slave is detected, the slave sets the carrier synchronization signal output by the slave to a high level and then outputs it, disconnects the grid-connected relay connected to the grid, and closes the off-grid relay connected to the load.

2. The method according to claim 1, characterized in that The carrier synchronization signal is sent via a carrier synchronization bus, and the carrier synchronization bus is connected to the input and output interfaces of the host and the slave, so as to achieve carrier synchronization between the host and the slave.

3. The method according to claim 1, characterized in that After the slave sets the carrier synchronization signal output by the slave to a high level, the method further includes: After delaying for a second preset time, the slave sets the carrier synchronization signal output by the slave to a low level, wherein when the slave and the host detect that the mains power is lost, the output carrier synchronization signal is simultaneously set to a low level.

4. The method according to claim 1, characterized in that: The method further comprises: After detecting that the duration of the carrier synchronization signal output by the slave being set to a high level exceeds a third preset duration, other devices connected to the slave enter an off-grid working mode.

5. The method according to claim 4, characterized in that The host, the slave and other devices connected to the slave use the interrupt program of the processor to determine the duration of the carrier synchronization signal being set to a high level.

6. A method for detecting loss of no-load mains power, characterized in that: include: When the energy storage machine is not connected to a load, the output voltage of the three-phase phase-locked loop in the inverter is detected; If the absolute value of the output voltage is higher than the first voltage threshold, the minimum absolute value of the three-phase mains voltage is calculated, and the bus voltage is obtained; If the minimum value of the absolute value of the three-phase mains voltage is less than the second voltage threshold, or the bus voltage is higher than the second voltage threshold, shut down the drive of the inverter and determine the instantaneous value of the three-phase mains voltage; If the absolute value of the instantaneous value of the mains voltage of any phase is less than the fourth voltage threshold and the duration exceeds the fourth preset duration, it is determined that the mains is lost.

7. An energy storage system, characterized in that: include: Inverter and multiple energy storage devices, among which, The inverter is connected to the mains power supply and is configured to detect whether the mains power is lost; The energy storage machine includes a host and multiple slaves, wherein: The host is connected to the inverter, receives the information of the loss of the mains power sent by the inverter, and sends a carrier synchronization signal to the multiple slaves, wherein the carrier synchronization signal carries the information of the loss of the mains power; The multiple slaves are connected to the host and configured to receive the carrier synchronization signal; when the carrier synchronization signal is detected to be set to a high level, after a first preset delay, it is detected whether the AC power of the local machine is lost; if it is detected that the AC power of the local machine is lost, the grid-connected relay connected to the power grid is disconnected, and the off-grid relay connected to the load is closed.

8. The energy storage system according to claim 7, characterized in that: A carrier synchronization bus is connected between the input and output interfaces of the host and the plurality of slaves, and the carrier synchronization bus is used to transmit the carrier synchronization signal.

9. The energy storage system according to claim 7, characterized in that: The multiple slaves are also configured to set the carrier synchronization signal output by the local machine to a high level, and after a delay of a second time period, set the carrier synchronization signal output by the local machine to a low level, wherein when the multiple slaves and the host detect that the mains power is lost, the output carrier synchronization signal is simultaneously set to a low level.

10. The energy storage system according to claim 7, characterized in that: The energy storage system further comprises: The other devices are connected to the multiple slaves and are configured to enter an off-grid working mode after detecting that the carrier synchronization signals output by the multiple slaves are set to a high level for a duration exceeding a third preset duration.

11. The energy storage system according to claim 7, characterized in that: The inverter is configured to detect the output voltage of the three-phase phase-locked loop when the energy storage machine is not connected to a load; if the output voltage is higher than a first voltage threshold, calculate the minimum value of the absolute values ​​of the three-phase mains voltage and obtain the bus voltage; if the minimum value of the absolute values ​​of the three-phase mains voltage is less than a second voltage threshold, or the bus voltage is higher than the second voltage threshold, shut down the drive of the inverter and determine the instantaneous value of the three-phase mains voltage; if the absolute value of any instantaneous value of the mains voltage is less than a fourth voltage threshold and the duration exceeds a fourth preset duration, determine that the mains is lost.

12. An electronic device comprising: A processor and a memory storing a program, wherein the program comprises instructions, which, when executed by the processor, cause the processor to perform the method according to any one of claims 1 to 6.

13. A non-transitory machine-readable medium storing computer instructions, characterized in that: The computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 6.

14. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor of a computer, the computer is used to cause the computer to execute the method according to any one of claims 1 to 6.