Parallel operation control method, energy storage system and energy storage equipment
By sending messages with preset serial numbers between energy storage devices, the master and slave machines are automatically determined, which solves the problems in the existing technology of user operation complexity and system inability to operate after the master is offline, and realizes automatic master generation and system Stable operation.
Patent Information
- Application Number
- CN202410789149.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-18
- Publication Date
- 2024-10-11
AI Technical Summary
The parallel control method of existing energy storage equipment is complicated, which increases the complexity of user operations. Moreover, a new host cannot be automatically generated after the host communication is disconnected, causing the system to fail to operate normally.
By sending messages with preset serial numbers between energy storage devices, the master and slave are automatically determined, ensuring that even if the master communication is disconnected, a new master can be automatically generated to ensure the normal operation of the system.
It simplifies user operations, reduces the complexity of device type determination, and automatically generates a new host when host communication is interrupted to ensure stable operation of the system.
Smart Images

Figure CN118763759A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of energy storage technology, and in particular, relates to a parallel control method, an energy storage system and an energy storage device. Background Art
[0002] In order to meet the user's demand for battery capacity expansion, energy storage devices are usually connected in parallel in the prior art. For example, multiple battery clusters are connected in parallel, and each branch has a physical dial. The master and slave are set by setting different dial values. However, this method increases the complexity of user use. Summary of the invention
[0003] The embodiments of the present application provide a parallel control method, an energy storage system, and an energy storage device, which can automatically determine the master and slave machines and reduce user operations.
[0004] A first aspect provides a parallel control method, which is applied to an energy storage device, wherein the energy storage device is used to connect to other energy storage devices, and the method includes: based on the initial device type being a host, sending a first message, wherein when the device type is a host, sending the first message according to a preset period, and the first message includes a preset sequence number; when the preset sequence number in the received first message is greater than or equal to the preset sequence number in the sent first message, determining that the device type is a slave, wherein when the device type is a slave, not sending the first message; when the device type is a slave and the first message is not received within the preset period, determining that the device type is a host.
[0005] In the embodiment of the present application, based on the default initial device type of the energy storage device as the host, a first message is sent to compete for the first message, and the first message includes a preset sequence number, so that each energy storage device can automatically determine the host and slave according to the preset sequence number, reducing the user's operation. When the device type is a slave and the first message is not received within a preset period, the device type is determined to be a host, so that even if the host loses communication during operation, a new host can be automatically generated to ensure the normal operation of the system.
[0006] In a possible implementation, the method further includes: when the device type is a slave and the first message is received within a preset period, maintaining the device type as a slave.
[0007] In one possible implementation, the method further includes: when the device type is a host, sending a first instruction a preset number of times, the first instruction is used to indicate a request to read a target random number, the target random number being a random number generated by other energy storage devices whose device type is a slave; determining a target random array with the largest number of responses among the preset number of times; and assigning addresses to other energy storage devices that respond to the first instruction according to the target random array.
[0008] In a possible implementation, the method further includes: in response to the received target random number being repeated, resending the first instruction.
[0009] In a possible implementation, the method further includes: when the device type is a slave and no address is assigned within a preset time, sending an address request to other energy storage devices whose device type is a host, the address request is used to instruct other energy storage devices whose device type is a host to send a first instruction.
[0010] A second aspect provides an energy storage system, which includes a first energy storage device and a second energy storage device; the first energy storage device is used to send a first message based on an initial device type of a host, wherein when the device type is a host, the first message is sent according to a preset period, and the first message sent by the first energy storage device includes a preset serial number of the first energy storage device; the second energy storage device is used to send a first message based on an initial device type of a host, and the first message sent by the second energy storage device includes a preset serial number of the second energy storage device; when the preset serial number in the first message received by the first energy storage device is less than the preset serial number in the first message sent by the first energy storage device, the first energy storage device is also used to determine that its own device type is a host; when the preset serial number in the first message received by the second energy storage device is greater than or equal to the preset serial number in the first message sent by the second energy storage device, the second energy storage device is also used to determine that its own device type is a slave.
[0011] In one possible implementation, the energy storage system also includes a third energy storage device; the third energy storage device is used to send a first message based on the initial device type being a host, and the first message sent by the third energy storage device includes a preset sequence number of the third energy storage device; when the preset sequence number in the first message received by the first energy storage device is greater than the preset sequence number in the first message sent by the first energy storage device, the first energy storage device is further used to determine that its own device type is a slave; when the preset sequence number in the first message received by the third energy storage device is less than the preset sequence number in the first message sent by the third energy storage device, the third energy storage device is further used to determine that its own device type is a host.
[0012] In one possible implementation, when the device type of the first energy storage device is a slave and the first message is not received within a preset period, the first energy storage device is further used to determine that its own device type is a host and sends the first message; when the device type of the second energy storage device is a slave and the first message is not received within the preset period, the second energy storage device is further used to determine that its own device type is a host and sends the first message; when the preset sequence number in the first message received by the first energy storage device is less than the preset sequence number in the first message sent by the first energy storage device, the first energy storage device is further used to determine that its own device type is a host; when the preset sequence number in the first message received by the second energy storage device is greater than the preset sequence number in the first message sent by the second energy storage device, the second energy storage device is further used to determine that its own device type is a slave.
[0013] In one possible implementation, the energy storage system also includes a third energy storage device; when the communication of the first energy storage device is interrupted and the third energy storage device sends a first message within a preset period, and the preset sequence number in the first message received by the second energy storage device is less than the preset sequence number of the second energy storage device, the second energy storage device is also used to maintain its own device type as a slave.
[0014] A third aspect provides an energy storage device, the energy storage device comprising a processor and a memory, the processor being used to implement any one of the above parallel control methods when executing a computer program stored in the memory.
[0015] It can be understood that the energy storage system provided in the second aspect and the energy storage device provided in the third aspect correspond to the method in the first aspect. Therefore, the beneficial effects or various implementation methods that can be achieved can be referred to above and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 The application environment of the energy storage system provided in the embodiment of the present application.
[0017] Figure 2 A schematic diagram of the structure of the energy storage device provided in an embodiment of the present application.
[0018] Figure 3 A schematic flow chart of a parallel control method provided in an embodiment of the present application.
[0019] Figure 4 A schematic flow chart of another parallel control method provided in an embodiment of the present application.
[0020] Figure 5 A schematic flow chart of another parallel control method provided in an embodiment of the present application. DETAILED DESCRIPTION
[0021] It should be noted that the terms "first" and "second" in the specification, claims and drawings of this application are used to distinguish similar objects, rather than to describe a specific order or sequence. In the specification, claims and drawings of this application, unless otherwise specified, " / " means or, for example, A / B can mean A or B. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, the term "plurality" in the specification, claims and drawings of this application refers to two or more than two.
[0022] It should also be noted that the method disclosed in the embodiments of the present application or the method shown in the flowchart includes one or more steps for implementing the method. Without departing from the scope of the claims, the execution order of multiple steps can be interchangeable with each other, and some of the steps can also be deleted.
[0023] Some embodiments will be described below in conjunction with the accompanying drawings. In the absence of conflict, the following embodiments and features in the embodiments may be combined with each other.
[0024] Energy storage devices usually store electrical energy through battery modules first, and then release the electrical energy stored in the battery modules when needed. When the AC power output by an energy storage device cannot meet the power demand of the load, multiple energy storage devices can be connected in parallel to jointly provide electrical energy to the load to meet the power demand of the load. In order to ensure that multiple energy storage devices can operate in parallel safely and stably to achieve the purpose of improving power generation efficiency and enhancing system reliability, it is usually necessary to confirm the host and the slave. However, the prior art usually sets the host and its own communication address by setting different dial values. This method increases the complexity of user use. If the dial settings are repeated, the system will not operate normally. There is also a method of confirming the host by long pressing the button, but in this way, once the communication is disconnected during the operation of the host, the system cannot automatically generate a new host, resulting in the system being unable to operate.
[0025] In view of this, the embodiments of the present application provide a parallel control method, an energy storage system, and an energy storage device, which can automatically determine the host and the slave, reduce user operations, and even if the host loses communication during operation, a new host can be automatically generated to ensure the normal operation of the system.
[0026] The technical solution of the present application is further described in detail below in conjunction with the accompanying drawings.
[0027] See also Figure 1 , exemplarily introduces the application environment of the energy storage system 10 provided in an embodiment of the present application, which includes the energy storage system 10 and the load 20.
[0028] In the embodiment of the present application, the energy storage system 10 includes two or more energy storage devices. The two or more energy storage devices are communicatively connected to receive messages (such as the first message) sent by each other.
[0029] like Figure 1 As shown, the energy storage system 10 includes a first energy storage device 11, a second energy storage device 12, and a third energy storage device 13. The first energy storage device 11, the second energy storage device 12, and the third energy storage device 13 are all electrically connected to the parallel end through power lines, and the power lines can be used to transmit electric energy, that is, each energy storage device outputs electric energy through the parallel end to the load 20 for power supply through the power lines.
[0030] It can be understood that the embodiments of the present application do not limit the function and type of the power line, that is, in addition to being used to transmit electrical energy, the power line can also be used to establish a communication connection between energy storage devices.
[0031] Understandably, Figure 1 The number of energy storage devices in the energy storage system 10 shown is only an example. In actual applications, the number of energy storage devices for parallel operation can be set according to actual needs, and this application does not make any specific restrictions on this.
[0032] The types of energy storage devices include, but are not limited to, household energy storage devices, mobile energy storage devices, self-driving devices, smart home devices, vehicle-mounted devices, and any other device equipped with a battery module.
[0033] In the embodiment of the present application, each energy storage device in the energy storage system 10 can execute the parallel control method provided in the embodiment of the present application.
[0034] Example 1, taking the energy storage system 10 including the first energy storage device 11 and the second energy storage device 12 as an example. The first energy storage device 11 is used to send a first message based on the initial device type being a host. Wherein, when the device type is a host, the first message is sent according to a preset period. The first message sent by the first energy storage device 11 includes a preset serial number of the first energy storage device 11. The second energy storage device 12 is used to send a first message based on the initial device type being a host. The first message sent by the second energy storage device 12 includes a preset serial number of the second energy storage device 12. When the preset serial number in the first message received by the first energy storage device 11 is less than the preset serial number in the first message sent by the first energy storage device 11, the first energy storage device 11 is also used to determine that its own device type is a host. When the preset serial number in the first message received by the second energy storage device 12 is greater than or equal to the preset serial number in the first message sent by the second energy storage device 12, the second energy storage device 12 is also used to determine that its own device type is a slave.
[0035] Example 2, based on the above example 1, takes the energy storage system 10 also including the third energy storage device 13 as an example. The third energy storage device 13 is newly started during the operation of the energy storage system 10. The third energy storage device 13 is used to send a first message based on the initial device type being a host. The first message sent by the third energy storage device 13 includes a preset serial number of the third energy storage device 13. When the preset serial number in the first message received by the first energy storage device 11 is greater than the preset serial number in the first message sent by the first energy storage device 11, the first energy storage device 11 is also used to determine that its own device type is a slave. When the preset serial number in the first message received by the third energy storage device 13 is less than the preset serial number in the first message sent by the third energy storage device 13, the third energy storage device 13 is also used to determine that its own device type is a host.
[0036] Example three, based on the above example two, the device type of the third energy storage device 13 is a host, and the third energy storage device 13 sends a first message. The device types of the first energy storage device 11 and the second energy storage device 12 are both slaves, and the first energy storage device 11 and the second energy storage device 12 both receive the first message sent by the third energy storage device 13. When the device type of the first energy storage device 11 is a slave and the first message is not received within a preset period, the first energy storage device 11 is also used to determine that its own device type is a host and sends a first message. When the device type of the second energy storage device 12 is a slave and the first message is not received within a preset period, the second energy storage device 12 is also used to determine that its own device type is a host and sends a first message. When the preset sequence number in the first message of the second energy storage device 12 received by the first energy storage device 11 is less than the preset sequence number in the first message sent by the first energy storage device 11, the first energy storage device 11 is also used to determine that its own device type is a host. When the preset sequence number in the first message of the first energy storage device 11 received by the second energy storage device 12 is greater than the preset sequence number in the first message sent by the second energy storage device 12, the second energy storage device 12 is further used to determine that its own device type is a slave.
[0037] Example 4, based on the above example 1, the device type of the first energy storage device 11 is a host, and the device type of the second energy storage device 12 is a slave. When the communication of the first energy storage device 11 is interrupted and the third energy storage device 13 sends a first message within a preset period, the second energy storage device 12 receives the first message sent by the third energy storage device 13, and the preset sequence number in the first message received by the second energy storage device 12 is less than the preset sequence number of the second energy storage device 12, the second energy storage device 12 is also used to maintain its own device type as a slave. The third energy storage device 13 does not receive the first message and maintains its own device type as a host.
[0038] Specifically, the energy storage system 10 includes three branches, namely a branch where the first energy storage device 11 is located, a branch where the second energy storage device 12 is located, and a branch where the third energy storage device 13 is located.
[0039] The default initial device type of each branch is the host. The host has a specific message sending cycle (i.e., a preset cycle). The host sends the first message according to the preset cycle. The first message includes the preset serial number of the energy storage device. When the energy storage device is turned on, each branch sends its own SN code. If the SN code value received from the other party is greater than or equal to its own SN code value, its own device type is a slave. If the slave does not receive the first message sent by the host for a continuous preset period, the device type becomes the host.
[0040] Working condition 1:
[0041] The first energy storage device 11 and the second energy storage device 12 are turned on in sequence and report their own SN codes. The SN code of the second energy storage device 12 received by the first energy storage device 11 is larger than its own SN code, and the device type of the first energy storage device 11 becomes a slave, and the device type of the second energy storage device 12 remains a master.
[0042] Working condition 2:
[0043] The device type of the first energy storage device 11 that has been generated is a slave, and the device type of the second energy storage device 12 is a master. During the operation of the energy storage system 10, a branch third energy storage device 13 is turned on. The default initial device type of the third energy storage device 13 is a master, and the third energy storage device 13 reports its own SN code. The SN code received by the second energy storage device 12 from the third energy storage device 13 is larger than its own SN code, and the device type of the second energy storage device 12 is changed to a slave. The SN code received by the third energy storage device 13 from the second energy storage device 12 is smaller than its own SN code, and its own device type is maintained as a master.
[0044] Working condition three:
[0045] A host has been generated in the three branches of the first energy storage device 11, the second energy storage device 12, and the third energy storage device 13, and the third energy storage device 13 is the host. Then, a problem with the communication line of the third energy storage device 13 causes communication loss, and the first energy storage device 11 and the second energy storage device 12, whose device type is a slave, do not receive the first message sent by the third energy storage device 13 within a preset period. The device type of the first energy storage device 11 and the second energy storage device 12 is changed from a slave to a host, and the first energy storage device 11 and the second energy storage device 12 send their own SN codes to regenerate a new host.
[0046] Working condition 4:
[0047] If the SN code of the first energy storage device 11 is 120, the SN code of the second energy storage device 12 is 121, and the SN code of the third energy storage device 13 is 121, the SN codes of the second energy storage device 12 and the third energy storage device 13 are the same, and the third energy storage device 13 first receives the SN code of the second energy storage device 12 and compares it with its own SN and finds that it is the same, then the device type of the third energy storage device 13 becomes a slave. Based on the device type of the third energy storage device 13 being a slave, the third energy storage device 13 does not send the first message, and the second energy storage device 12 cannot receive the first message sent by the third energy storage device 13.
[0048] Working condition five:
[0049] If the SN code of the first energy storage device 11 is 120, the SN code of the second energy storage device 12 is 121, and the SN code of the third energy storage device 13 is 122, if the second energy storage device 12 and the third energy storage device 13 are powered on first, the device type of the third energy storage device 13 is a host, and the device type of the second energy storage device 12 is a slave. The communication of the third energy storage device 13 is lost, and the first energy storage device 11 is powered on within a preset period, such as 20S. The initial device type of the first energy storage device 11 is defaulted to a host, and the first energy storage device 11 sends a first message. Because the second energy storage device 12 receives the first message within a preset period, such as 20s, the second energy storage device 12 is not triggered to send the first message. Even if the second energy storage device 12 receives the first message sent by the first energy storage device 11, although the SN code is smaller than its own, it will no longer participate in the host election. The first energy storage device 11 does not receive the first message sent by other energy storage devices, and defaults to its own device type as a host. The second energy storage device 12 receives the first message within the preset period and maintains its own device type as a slave.
[0050] It can be understood that the initial device type of the first energy storage device 11 is the host by default. The first energy storage device 11 starts to request to read the random number allocation address, and only the host can send a request to read the random number. The second energy storage device 12 receives the first message, although it is smaller than its own SN code, but it does not participate in the parallel host election, because the loss of the first message does not exceed the preset period, and does not trigger its device type to become the host. The second energy storage device 12 does not send the first message and does not participate in the parallel host election.
[0051] The structures of the energy storage devices in the embodiments of the present application are similar. The structure of the energy storage device in the embodiments of the present application is introduced below by taking the first energy storage device 11 as an example.
[0052] See also Figure 2 , exemplarily introduces the structure of the first energy storage device 11 provided in an embodiment of the present application.
[0053] The first energy storage device 11 includes a processor 111 and a memory 112. The processor 111 is connected to the memory 112.
[0054] The processor 111 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. For example, the processor 111 is the computing core and control center of the first energy storage device 11, and uses various interfaces and lines to connect various parts of the entire first energy storage device 11, and obtain the operating system of the first energy storage device 11 and various installed applications, program codes, etc.
[0055] It can be understood that the above-mentioned memory 112 mainly includes a program storage area and a data storage area. Among them, the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 112 can include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other non-volatile solid-state storage devices.
[0056] For example, the memory 112 may be an external memory and / or an internal memory of the first energy storage device 11. Furthermore, the memory 112 may be a memory in a physical form, such as a memory stick, a TF card (Trans-flash Card), and the like.
[0057] If the program code and various data in the memory 112 are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the parallel control method provided in the embodiment of the present application, and can also be completed by instructing related hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and when the computer program is executed by the processor 111, the parallel control method provided in the embodiment of the present application can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form, etc. Computer-readable media may include: any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), etc.
[0058] In some embodiments, the first energy storage device 11 may further include a battery module (not shown), a power conversion circuit (not shown), an output switching circuit (not shown), and an output interface (not shown).
[0059] The input end of the power conversion circuit is electrically connected to the battery module, the output end of the power conversion circuit is electrically connected to the first end of the output switch circuit, and the control end of the power conversion circuit is electrically connected to the processor 111. The second end of the output switch circuit is electrically connected to the first end of the output interface, and the second end of the output interface is used to electrically connect to the output interface of the load and / or other energy storage devices, wherein the other energy storage devices can be energy storage devices other than the first energy storage device 11 in the energy storage system 10, such as the second energy storage device 12 and the third energy storage device 13.
[0060] Among them, the battery module is used to store electrical energy and output direct current.
[0061] The power conversion circuit is used to realize power conversion. In the embodiment of the present application, the power conversion circuit is taken as a power inverter circuit as an example, and the power conversion circuit inverts the direct current output by the battery module to obtain alternating current.
[0062] The output switch circuit is used to conduct or disconnect the electrical connection between the power conversion circuit and the output interface. The output switch circuit can be implemented as a relay or the like.
[0063] In some embodiments, the output switch circuit is electrically connected to the processor 111, and is used to receive a switch control signal output by the processor 111. The output switch circuit switches on or off the electrical connection between the power conversion circuit and the output interface according to the switch control signal.
[0064] The output interface is used to electrically connect to the output interface of the load and / or other energy storage devices. There can be one or more output interfaces.
[0065] It can be understood that the first energy storage device 11 may also include more functional modules or fewer functional modules, and this application does not make any specific limitation on this.
[0066] The parallel control method provided in the embodiment of the present application can be applied to the above-mentioned energy storage system 10, and can be executed by the above-mentioned energy storage device, specifically, can be executed by a processor in the energy storage device.
[0067] The following takes the first energy storage device 11 as an example to execute the parallel control method provided in the embodiment of the present application. It can be understood that the specific contents of the parallel control method provided in the embodiment of the present application executed by other energy storage devices in the energy storage system 10, such as the second energy storage device 12 and the third energy storage device 13, can refer to the first energy storage device 11, and will not be repeated here.
[0068] See also Figure 3 , exemplarily introduces the parallel control method provided in the embodiment of the present application, the method is applied to an energy storage device, and the energy storage device is used to connect other energy storage devices. The parallel control method includes steps S30 to S34.
[0069] Step S30, based on the initial device type being a host, sending a first message, wherein when the device type is a host, sending the first message according to a preset period, and the first message includes a preset sequence number.
[0070] In the embodiment of the present application, the energy storage devices in the energy storage system all have an initial device type, and the initial device type is a host. When the device type of the energy storage device is a host, the energy storage device sends a first message according to a preset period, and the first message sent may include but is not limited to a preset serial number of the energy storage device.
[0071] Among them, the preset period can be 20s, 30s, etc. The preset period can be set according to actual conditions, and the embodiment of the present application does not make specific limitations on this.
[0072] The serial number is also called the SN (Serial Number) code, which is a unique identifier used to distinguish different individuals or units of the same type.
[0073] In the embodiment of the present application, the preset serial number included in the first message sent by the energy storage device is a specific number in the serial number of the energy storage device. Exemplarily, the preset serial number is the first three numbers, the last three numbers, or the middle three numbers in the serial number of the energy storage device.
[0074] It can be understood that the preset serial number is a number at any position or in any number in the serial number of the energy storage device.
[0075] In some embodiments, the preset serial number included in the first message sent by the energy storage device is the serial number of the energy storage device.
[0076] In the embodiment of the present application, based on the default initial device type being the host, the energy storage device sends the first message after being powered on.
[0077] Step S32, when the preset sequence number in the received first message is greater than or equal to the preset sequence number in the sent first message, determine that the device type is a slave, wherein when the device type is a slave, do not send the first message.
[0078] In an embodiment of the present application, the energy storage device obtains a first message sent by other energy storage devices based on a communication connection with other energy storage devices. When the preset sequence number in the first message received by the energy storage device is greater than or equal to the preset sequence number in the first message sent, the energy storage device determines that its device type is a slave.
[0079] In the embodiment of the present application, when the device type of the energy storage device is a slave, the energy storage device does not send the first message.
[0080] Step S34: when the device type is a slave and the first message is not received within a preset period, it is determined that the device type is a master.
[0081] In an embodiment of the present application, the energy storage device whose device type is a host sends a first message according to a preset period. If the energy storage device whose device type is a slave does not receive the first message sent by the host within the preset period, it is determined that the energy storage device whose device type is a host may have a fault, such as communication interruption.
[0082] In an embodiment of the present application, when the device type of the energy storage device is a slave and the first message is not received within a preset period, the energy storage device determines that its device type is a host, and the energy storage device sends a first message to avoid a situation where communication is disconnected during the operation of the host and a new host cannot be generated in time, thereby ensuring the normal operation of the system.
[0083] In an embodiment of the present application, when the device type of the energy storage device is a slave and the first message is received within a preset period, the energy storage device maintains its device type as a slave. Exemplarily, when the device type of energy storage device a is a slave and the first message A is received within a preset period, the preset sequence number in the first message is 120, the preset sequence number of energy storage device a is 121, and the energy storage device a maintains its device type as a slave.
[0084] See also Figure 4, another parallel control method provided in an embodiment of the present application is exemplarily introduced, the method is applied to an energy storage device, and the energy storage device is used to connect other energy storage devices. The parallel control method includes steps S41 to S50.
[0085] Step S41, the energy storage device is started and operated.
[0086] Step S42: The energy storage device determines whether its own device type is a host.
[0087] In step S42, the energy storage device determines that its own device type is a host, and executes step S43. In step S42, the energy storage device determines that its own device type is not a host, that is, determines that its own device type is a slave, and executes step S47.
[0088] Step S43: the energy storage device sends a first message according to a preset period.
[0089] Exemplarily, taking the preset serial number as the last three digits of the serial number of the energy storage device itself and the preset period as 20s, the energy storage device sends a first message every 20s, and the first message includes the last three digits of the serial number of the energy storage device itself.
[0090] Step S44, the energy storage device receives a first message sent by other energy storage devices on the CAN bus, and determines whether the preset sequence number in the received first message is greater than or equal to its own preset sequence number.
[0091] In step S44, the energy storage device determines that the received preset sequence number is greater than or equal to its own preset sequence number, and executes step S45. In step S44, the preset sequence number received by the energy storage device is less than its own preset sequence number, and executes step S46.
[0092] Step S45: The energy storage device determines that the device type is a slave.
[0093] Step S46: the energy storage device maintains the device type as host.
[0094] Step S47, when the energy storage device determines that the device type is a slave and receives a preset sequence number sent by other energy storage devices within a preset period, it does not participate in the host competition and waits for the first instruction.
[0095] Step S48: The energy storage device determines whether the first message is received within a preset period.
[0096] In step S48, the energy storage device determines that the first message is not received within the preset period, and executes step S49. In step S48, the energy storage device determines that the first message is received within the preset period, and executes step S50.
[0097] Step S49: The energy storage device determines that the device type is a host.
[0098] Step S50: the energy storage device maintains the device type as a slave.
[0099] See also Figure 5 , another parallel control method provided in an embodiment of the present application is exemplarily introduced, the method is applied to an energy storage device, and the energy storage device is used to connect other energy storage devices. The parallel control method includes steps S501 to S503.
[0100] Step S501, when the device type is a host, a first instruction is sent a preset number of times, the first instruction is used to indicate a request to read a target random number, and the target random number is a random number generated by other energy storage devices whose device type is a slave.
[0101] The preset number of times may be a positive integer greater than or equal to 1.
[0102] Step S502, determining a target random number array with the largest number of responses in a preset number of times.
[0103] For example, taking the preset number of times as 3, the first instruction is sent for the first time, 3 responses are received, the first instruction is sent for the second time, 4 responses are received, and the first instruction is sent for the third time, 3 responses are received. Then the target random number array is determined to be the random number received when the first instruction is sent for the second time.
[0104] Step S503: assigning addresses to other energy storage devices that respond to the first instruction according to the target random number array.
[0105] In the embodiment of the present application, the energy storage device whose device type is a host allocates addresses to the branches that respond to the random numbers in sequence according to the order in which the random numbers are received.
[0106] In the embodiment of the present application, in response to the received target random number being repeated, the first instruction is resent.
[0107] In an embodiment of the present application, when the device type is a slave and no address is assigned within a preset time, an address request is sent to other energy storage devices whose device type is a host, and the address request is used to instruct other energy storage devices whose device type is a host to send a first instruction.
[0108] The preset time can be 20s or 30s, which can be set according to actual conditions, and this application does not make any specific limitation on this.
[0109] Specifically, taking the preset number of times as 3 as an example, in the first step, if the energy storage device with the device type of the host does not assign an address to the energy storage device with the device type of the slave, a request to read a random number instruction (i.e., the first instruction) is sent to the CAN bus. In the second step, the energy storage device with the device type of the slave receives the first instruction and sends a random number generated by itself to the CAN bus as its own identification. In the third step, the energy storage device with the device type of the host records the number of different random numbers received, and the energy storage device with the device type of the host requests to read the random number three times, and takes the group of data with the largest number of responses (i.e., the target random number array). In the fourth step, if there are repeated random numbers in the received data, the energy storage device with the device type of the host sends a re-generation random number instruction, and the energy storage device with the device type of the slave will regenerate the random number and send it, and the process jumps to the third step, otherwise execute the fifth step. In the fifth step, addresses are assigned to the branches that respond to the random numbers in the order in which the random numbers are received. Step 6: During the operation of the system, if it is found that the number of response messages of an address exceeds a certain number of host request reads, it is determined that the address is duplicated, and the process of allocating addresses is repeated.
[0110] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present application and are not intended to limit it. Although the present application has been described in detail with reference to the preferred embodiments, a person of ordinary skill in the art should understand that the technical solution of the present application may be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present application.
Claims
1. A parallel control method, applied to energy storage equipment, characterized in that: The energy storage device is used to connect to other energy storage devices, and the method includes: Based on the initial device type being a host, sending a first message, wherein when the device type is a host, sending the first message according to a preset period, the first message including a preset sequence number; When the preset sequence number in the received first message is greater than or equal to the preset sequence number in the sent first message, determining that the device type is a slave, wherein when the device type is a slave, not sending the first message; When the device type is a slave and the first message is not received within the preset period, it is determined that the device type is a master.
2. The method according to claim 1, wherein The method further comprises: When the device type is a slave and the first message is received within the preset period, the device type is maintained as a slave.
3. The method according to claim 1, wherein The method further comprises: When the device type is a master, sending a first instruction a preset number of times, where the first instruction is used to instruct a request to read a target random number, where the target random number is a random number generated by another energy storage device whose device type is a slave; Determine a target random array having the largest number of responses among the preset number of times; Allocate addresses to other energy storage devices that respond to the first instruction according to the target random number array.
4. The method according to claim 3, wherein The method further comprises: In response to the received target random number being repeated, the first instruction is resent.
5. The method according to claim 3, wherein The method further comprises: When the device type is a slave and no address is assigned within a preset time, an address request is sent to other energy storage devices whose device type is a master, where the address request is used to instruct the other energy storage devices whose device type is a master to send the first instruction.
6. An energy storage system, characterized in that: The energy storage system includes a first energy storage device and a second energy storage device; The first energy storage device is configured to send a first message based on an initial device type of a host, wherein when the device type is a host, the first message is sent according to a preset period, and the first message sent by the first energy storage device includes a preset serial number of the first energy storage device; The second energy storage device is configured to send a first message based on an initial device type of a host, wherein the first message sent by the second energy storage device includes a preset serial number of the second energy storage device; When the preset sequence number in the first message received by the first energy storage device is smaller than the preset sequence number in the first message sent by the first energy storage device, the first energy storage device is further configured to determine that its own device type is a host; When the preset sequence number in the first message received by the second energy storage device is greater than or equal to the preset sequence number in the first message sent by the second energy storage device, the second energy storage device is further configured to determine that its own device type is a slave.
7. The energy storage system according to claim 6, characterized in that: The energy storage system further includes a third energy storage device; The third energy storage device is configured to send a first message based on an initial device type of a host, wherein the first message sent by the third energy storage device includes a preset serial number of the third energy storage device; When the preset sequence number in the first message received by the first energy storage device is greater than the preset sequence number in the first message sent by the first energy storage device, the first energy storage device is further configured to determine that its own device type is a slave; When the preset sequence number in the first message received by the third energy storage device is smaller than the preset sequence number in the first message sent by the third energy storage device, the third energy storage device is further configured to determine that its own device type is a host.
8. The energy storage system according to claim 7, characterized in that: When the device type of the first energy storage device is a slave and the first message is not received within the preset period, the first energy storage device is further configured to determine that its own device type is a master and send the first message; When the device type of the second energy storage device is a slave and the first message is not received within the preset period, the second energy storage device is further configured to determine that its own device type is a master and send the first message; When the preset sequence number in the first message received by the first energy storage device is smaller than the preset sequence number in the first message sent by the first energy storage device, the first energy storage device is further configured to determine that its own device type is a host; When the preset sequence number in the first message received by the second energy storage device is greater than the preset sequence number in the first message sent by the second energy storage device, the second energy storage device is further configured to determine that its own device type is a slave.
9. The energy storage system according to claim 6, wherein: The energy storage system further includes a third energy storage device; When the communication of the first energy storage device is interrupted and the third energy storage device sends a first message within the preset period, and the preset sequence number in the first message received by the second energy storage device is smaller than the preset sequence number of the second energy storage device, the second energy storage device is further used to maintain its own device type as a slave.
10. An energy storage device, characterized in that: The energy storage device includes a processor and a memory, and the processor is configured to implement the parallel control method according to any one of claims 1 to 5 when executing a computer program stored in the memory.
