Energy storage system and address allocation method and device thereof
Through the introduction of the address distribution method of the main battery pack management in the energy storage system, the problem of limited number of power packages in existing technologies and low address distribution efficiency in existing technologies have been solved, and efficient and flexible address allocation is realized.
Patent Information
- Application Number
- CN202411457072.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-17
- Publication Date
- 2025-01-21
AI Technical Summary
When the existing energy storage system is connected in parallel with power-up packets, the main battery packet needs to be managed and communicated. The existing addressing method limits the number of power-up packets, and re-addresses are required when the power-up packets change, reducing the efficiency of address allocation. .
The address distribution method of an energy storage system is proposed, which is executed by the main battery pack. By receiving the request message of the power supply package, the assignment address is allocated and confirmed to avoid the re -site of the global re -site and improved efficiency.
When the number of power generation packages is increased, it is not restricted by the level of connectors, increasing the number of distributable power supply packages, reducing the addressing conflict, and improving the efficiency of address distribution.
Smart Images

Figure CN119342037A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of battery management, and in particular to an energy storage system and an address allocation method and device thereof. Background Art
[0002] When the power packs in the energy storage system are connected in parallel, the main battery pack, as a home gateway, needs to manage and communicate with smart devices such as the power packs.
[0003] Currently, IO (Input Output) port PWM (Pulse Width Modulation) is used for addressing. This addressing method requires cascade communication and communication is performed by sending PWM signals.
[0004] However, the above-mentioned addressing and communication method can only connect 9 power-on packages in series at most, and the number of power-on packages that can be allocated is limited. Moreover, when the power-on packages change, all power-on packages need to be re-addressed, which reduces the efficiency of address allocation. Summary of the invention
[0005] The present invention aims to solve at least one of the technical problems existing in the prior art or related art.
[0006] To this end, a first aspect of the present invention is to propose an address allocation method for an energy storage system.
[0007] A second aspect of the present invention is to propose another address allocation method for an energy storage system.
[0008] A third aspect of the present invention is to provide an address allocation device for an energy storage system.
[0009] A fourth aspect of the present invention is to provide another address allocation device for an energy storage system.
[0010] A fifth aspect of the present invention is to provide an energy storage system.
[0011] In view of this, according to a first aspect of the present invention, a method for allocating addresses for an energy storage system is proposed, the method being executed by a main battery pack in the energy storage system, the method comprising: receiving a first message broadcast by a power-on pack, the first message comprising first identification information of the power-on pack, the first message being used to request a communication address from the main battery pack; sending a second message to the power-on pack according to the first identification information, the second message comprising address information; receiving a third message sent by the power-on pack, the third message being used to request use of the address information for communication; and sending a fourth message to the power-on pack to allocate the address information to the power-on pack for communication.
[0012] The address allocation method for an energy storage system provided in the first aspect of the present invention is executed by a main battery pack in the energy storage system, and the energy storage system also includes a power-up pack.
[0013] Specifically, in the address allocation method for the energy storage system provided by the present invention, in the process of allocating a communication address for a power-up pack added to the energy storage system, at the main battery pack end, the main battery pack receives a first message broadcast by the power-up pack for requesting a communication address from the main battery pack, and the first message includes the first identification information of the power-up pack. Further, the main battery pack allocates a communication address to the power-up pack, and based on the first identification information of the power-up pack, sends a second message containing address information to the power-up pack. Further, the main battery pack receives a third message sent by the power-up pack for requesting to use the above-mentioned address information for communication. Further, the main battery pack sends a fourth message to the power-up pack to agree to allocate the address information to the power-up pack for communication, and associates the first identification information of the power-up pack with the allocated address information to complete the addressing of the power-up pack. In this way, the power-up pack and the main battery pack complete networking, the power-up pack successfully joins the network of the energy storage system, and communicates with the main battery pack. In this way, when the power-up pack in the energy storage system changes, the newly added power-up pack actively broadcasts to request the main battery pack in the energy storage system to allocate a communication address for it. There is no need to re-address all the power-up packs, which improves the efficiency of address allocation. The number of power-up packs is not limited by cascade communication, which increases the number of allocable power-up packs.
[0014] The address allocation method for the energy storage system according to the present invention may also have the following additional technical features:
[0015] In some technical solutions, optionally, a second message is sent to the power-on package based on the first identification information, including: when the first message does not contain address information, or the first address in the first message is occupied, determining the second address from the free addresses in the address pool, and sending the second message carrying the second address to the power-on package through the CAN communication protocol; when the first address in the first message is a free address, sending the second message carrying the first address to the power-on package through the CAN communication protocol.
[0016] In this technical solution, when the main battery pack sends the second message to the power-on pack, if the first message does not contain address information, or the first address contained in the first message is already occupied, the main battery pack allocates a new communication address to the power-on pack. Specifically, in the energy storage system, the power-on pack is connected and joins the network via CAN (Controller Area Network). When the main battery pack allocates a new communication address to the power-on pack, the main battery pack checks the available free addresses in the address pool, and determines the second address allocated to the power-on pack from the free addresses in the address pool, and then sends the second message carrying the second address to the power-on pack through the CAN communication protocol. In the case where the first address in the first message is an idle address, the main battery pack reallocates the first address to the power-on pack for use. Specifically, the main battery pack directly sends the second message carrying the first address to the power-on pack through the CAN communication protocol. In this way, on the one hand, address conflicts in the addressing process are avoided, ensuring the accuracy and efficiency of addressing; on the other hand, automatic addressing based on CAN communication control technology can complete address allocation in real time and quickly without manual operation, reducing IO usage, effectively reducing wiring harness layout, saving costs, and improving work efficiency.
[0017] In some technical solutions, optionally, after sending the fourth message to the power-on package, the address allocation method further includes: establishing an association relationship between the address information and the first identification information; and saving the association relationship.
[0018] In this technical solution, after the main battery pack sends the fourth message to the power-up pack to allocate the address information to the power-up pack for communication, the main battery pack will also establish and save the association relationship between the address information and the first identification information, so that when the battery pack requests the communication address later, it can determine whether the address information in the address pool is occupied according to the saved association relationship. In this way, it can be ensured that each address information is uniquely allocated to avoid address conflicts.
[0019] In some technical solutions, optionally, before sending the second message to the power-on package according to the first identification information, the address allocation method also includes: when the first message includes the first address, obtaining second identification information associated with the first address; when the first identification information is consistent with the second identification information, determining that the first address is not occupied; when the first identification information is inconsistent with the second identification information, determining that the first address is occupied.
[0020] In this technical solution, before the main battery pack sends the second message to the power-on pack according to the first identification information in the first message, it will also determine whether the first address is carried in the first message. In the case that the first message includes the first address, the main battery pack determines that a communication relationship has been established with the power-on pack before, and the original communication address previously assigned to the power-on pack is the first address. At this time, the main battery pack will obtain the second identification information associated with the first address according to the previously saved association relationship. On this basis, the main battery pack will match the obtained second identification information with the first identification information in the first message. In the case that the first identification information is consistent with the second identification information, that is, in the case that the first identification information matches the second identification information successfully, the main battery pack determines that the first address is not occupied by other power-on packs, and in the case that the first identification information is inconsistent with the second identification information, that is, in the case that the first identification information matches the second identification information unsuccessfully, the main battery pack determines that the first address has been occupied by other power-on packs, and other communication addresses need to be reallocated to the current power-on pack. In this way, it is determined based on the identification information whether the communication address requested by the power-on pack is occupied, and then the address is allocated, which ensures the uniqueness of the address allocation and avoids the problem of address conflict.
[0021] In some technical solutions, optionally, the address information has a usage limit, and the address allocation method also includes: when the usage limit of the address information expires, determining the operating status of the power-on package; when the power-on package is online, extending the usage limit of the address information; when the power-on package is offline, recycling the address information allocated to the power-on package as an idle address.
[0022] In this technical solution, the address information assigned by the main battery pack to the power-up pack has a usage limit. After the main battery pack successfully assigns the communication address information to the power-up pack, the communication address of the power-up pack remains unchanged during the usage period. When the usage period of the address information expires, the main battery pack will determine the operating status of the power-up pack. On this basis, when the power-up pack is online, the main battery pack will extend the usage period of the address information so that the power-up pack continues to use the assigned address information for communication. When the power-up pack is offline, the main battery pack will recycle the address information assigned to the power-up pack as an idle address so as to address other power-up packs. In this way, the main battery pack detects the operating status of the power-up pack through periodic polling, dynamically allocates and recycles address information, and realizes the maintenance of the address pool.
[0023] In some technical schemes, optionally, the operating status of the power-on package is determined, including: when the fifth message of the power-on package is received, determining that the power-on package is in an online state, and the fifth message is used to request to extend the usage limit of the address information; when the fifth message of the power-on package is not received, determining that the power-on package is in an offline state.
[0024] In this technical solution, after the usage period of the address information assigned by the main battery pack to the power-up pack expires, if the main battery pack receives the fifth message from the power-up pack, the fifth message is a renewal request message, and the fifth message is used to request to extend the usage period of the address information, the main battery pack determines that the power-up pack is in an online state, and extends the usage period of the address information of the power-up pack. If the main battery pack does not receive the fifth message from the power-up pack, the main battery pack determines that the power-up pack is in an offline state, and reclaims the address information assigned to the power-up pack. In this way, the address information is dynamically managed, and the maintenance of the address pool is realized.
[0025] According to a second aspect of the present invention, another address allocation method for an energy storage system is proposed. The method is executed by a power-up pack in the energy storage system, and the address allocation method includes: broadcasting a first message, the first message includes first identification information of the power-up pack, and the first message is used to request a communication address from the main battery pack; receiving a second message sent by the main battery pack according to the first identification information, the second message includes address information; sending a third message to the main battery pack, the third message is used to request the use of the address information for communication; receiving a fourth message sent by the main battery pack, and the fourth message is used to allocate the address information to the power-up pack for communication.
[0026] The address allocation method for the energy storage system provided in the second aspect of the present invention is executed by a power-up pack in the energy storage system, and the energy storage system also includes a main battery pack.
[0027] Specifically, in the address allocation method of the energy storage system provided by the present invention, in the process of allocating a communication address for a power-up pack added to the energy storage system, at the power-up pack end, the power-up pack performs a self-check after being powered on. When it is detected that it has no communication address, the power-up pack broadcasts a first message carrying a first identification information to request a communication address from the main battery pack through the first message. Further, the power-up pack receives a second message including address information sent by the main battery pack, and saves the address information. Further, the power-up pack accepts and configures the above address information as a communication address, and sends a third message to the main battery pack to request the main battery pack to use the address information for communication through the third message. Further, the power-up pack receives a fourth message sent by the main battery pack to confirm that the main battery pack allocates the address information to itself for communication. In this way, when the power-up pack in the energy storage system changes, the newly added power-up pack actively broadcasts to request the main battery pack in the energy storage system to allocate a communication address for it, without the need to re-address all the power-up packs, thereby improving the efficiency of address allocation, and the number of power-up packs is not limited by cascade communication, thereby increasing the number of power-up packs that can be allocated.
[0028] The address allocation method for the energy storage system according to the present invention may also have the following additional technical features:
[0029] In some technical solutions, optionally, broadcasting the first message includes: broadcasting the first message after a first time interval after the power-on package is powered on; wherein the first time interval is randomly determined, and the first time interval is greater than or equal to 0.
[0030] In this technical solution, after the power-on pack is powered on, the power-on pack will broadcast the first message after a first time interval. The first time interval is randomly determined and is greater than or equal to 0. In this way, the random delay mechanism is used to control the power-on pack to broadcast the first message requesting addressing, which can avoid multiple power-on packs requesting addressing from the main battery pack at the same time, avoid address conflicts during addressing, and ensure the accuracy and efficiency of addressing.
[0031] In some technical solutions, optionally, after broadcasting the first message, the address allocation method further includes: broadcasting the first message again if address information is not successfully allocated within the second time period.
[0032] In this technical solution, after the power-on packet broadcasts the first message, if the power-on packet still fails to successfully allocate address information within the second time period, the power-on packet will broadcast the first message requesting addressing again. In this way, it is ensured that the power-on packet can eventually obtain a valid communication address, and the success rate of addressing is guaranteed.
[0033] According to a third aspect of the present invention, an address allocation device for an energy storage system is proposed, which is applied to a main battery pack in the energy storage system, and the address allocation device includes: a first communication unit, used to receive a first message broadcast by a power-on pack, the first message including first identification information of the power-on pack, and the first message is used to request a communication address from the main battery pack; the first communication unit is also used to send a second message to the power-on pack according to the first identification information, the second message including address information; the first communication unit is also used to receive a third message sent by the power-on pack, the third message is used to request to use the address information for communication; the first communication unit is also used to send a fourth message to the power-on pack to allocate the address information to the power-on pack for communication.
[0034] The address allocation device of the energy storage system provided in the third aspect of the present invention is applied to a main battery pack in the energy storage system, and the energy storage system also includes a power-up pack.
[0035] Specifically, the address allocation device of the energy storage system provided by the present invention includes a first communication unit. In the process of allocating a communication address for a power-up pack added to the energy storage system, at the main battery pack end, the first communication unit receives a first message broadcast by the power-up pack for requesting a communication address from the main battery pack, and the first message includes the first identification information of the power-up pack. Further, the main battery pack allocates a communication address to the power-up pack, and based on the first identification information of the power-up pack, sends a second message containing address information to the power-up pack through the first communication unit. Further, the first communication unit receives a third message sent by the power-up pack for requesting to use the above-mentioned address information for communication. Further, the first communication unit sends a fourth message to the power-up pack to agree to allocate the address information to the power-up pack for communication, and associates the first identification information of the power-up pack with the allocated address information to complete the addressing of the power-up pack. In this way, the power-up pack and the main battery pack complete networking, the power-up pack successfully joins the network of the energy storage system, and communicates with the main battery pack. In this way, when the power-up pack in the energy storage system changes, the newly added power-up pack actively broadcasts to request the main battery pack in the energy storage system to allocate a communication address for it. There is no need to re-address all the power-up packs, which improves the efficiency of address allocation. The number of power-up packs is not limited by cascade communication, which increases the number of allocable power-up packs.
[0036] According to a fourth aspect of the present invention, another address allocation device for an energy storage system is proposed, which is applied to a power-up pack in the energy storage system, and the address allocation device includes: a second communication unit, used to broadcast a first message, the first message includes first identification information of the power-up pack, and the first message is used to request a communication address from the main battery pack; the second communication unit is also used to receive a second message sent by the main battery pack according to the first identification information, the second message includes address information; the second communication unit is also used to send a third message to the main battery pack, the third message is used to request to use the address information for communication; the second communication unit is also used to receive a fourth message sent by the main battery pack, and the fourth message is used to allocate the address information to the power-up pack for communication.
[0037] The address allocation device for an energy storage system provided in a fourth aspect of the present invention is applied to a power pack in the energy storage system, and the energy storage system also includes a main battery pack.
[0038] Specifically, the address allocation device of the energy storage system provided by the present invention includes a second communication unit. In the process of allocating communication addresses for the power-up pack added to the energy storage system, at the power-up pack end, the power-up pack performs a self-check after being powered on. When it is detected that it has no communication address, the power-up pack broadcasts a first message carrying first identification information through the second communication unit to request a communication address from the main battery pack through the first message. Further, the second communication unit receives a second message including address information sent by the main battery pack, and saves the address information. Further, the power-up pack accepts and configures the above address information as a communication address, and sends a third message to the main battery pack through the second communication unit to request the main battery pack to use the address information for communication through the third message. Further, the second communication unit receives a fourth message sent by the main battery pack to confirm that the main battery pack allocates the address information to itself for communication. In this way, when the power-up pack in the energy storage system changes, the newly added power-up pack actively broadcasts to request the main battery pack in the energy storage system to allocate a communication address for it. There is no need to re-address all the power-up packs, which improves the efficiency of address allocation. The number of power-up packs is not limited by cascade communication, which increases the number of allocable power-up packs.
[0039] According to a fifth aspect of the present invention, an energy storage system is proposed, comprising: a main battery pack, comprising a first processor and a first memory, the first memory storing a program or instruction that can be run on the first processor, and the program or instruction, when executed by the first processor, implements the steps of the address allocation method for the energy storage system in any technical solution of the first aspect mentioned above; a power-up pack, comprising a second processor and a second memory, the second memory storing a program or instruction that can be run on the second processor, and the program or instruction, when executed by the second processor, implements the steps of the address allocation method for the energy storage system in any technical solution of the second aspect mentioned above.
[0040] Therefore, the energy storage system proposed in the fifth aspect of the present invention has all the beneficial effects of the address allocation method for the energy storage system in any of the above technical solutions, which will not be repeated here.
[0041] Additional aspects and advantages of the present invention will become apparent from the following description or may be learned by practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0043] Figure 1 One of the flow charts of the address allocation method for the energy storage system according to the embodiment of the present invention is shown;
[0044] Figure 2A second flow chart of the address allocation method for the energy storage system according to an embodiment of the present invention is shown;
[0045] Figure 3 A schematic diagram of message interaction of an energy storage system according to an embodiment of the present invention is shown;
[0046] Figure 4 A schematic diagram showing the working process of the energy storage system according to an embodiment of the present invention is shown;
[0047] Figure 5 One of the structural block diagrams of the address allocation device of the energy storage system according to the embodiment of the present invention is shown;
[0048] Figure 6 A second structural block diagram of the address allocation device for the energy storage system according to an embodiment of the present invention is shown;
[0049] Figure 7 A structural block diagram of an energy storage system according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0050] In order to more clearly understand the above-mentioned purpose, features and advantages of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present invention and the features in the embodiments can be combined with each other without conflict.
[0051] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways different from those described herein. Therefore, the protection scope of the present invention is not limited to the specific embodiments disclosed below.
[0052] Combine the following Figures 1 to 7 , the energy storage system and its address allocation method and device provided in the embodiments of the present application are described in detail through specific embodiments and their application scenarios.
[0053] In one embodiment of the present invention, a method for allocating addresses of an energy storage system is proposed. The method is executed by a main battery pack in the energy storage system. Figure 1 As shown, the address allocation method of the energy storage system may specifically include the following steps 102 to 108:
[0054] Step 102, receiving a first message broadcast by a power-on packet, the first message including first identification information of the power-on packet;
[0055] Step 104, sending a second message to the power-up package according to the first identification information, the second message including address information;
[0056] Step 106, receiving a third message sent by the power-up package, the third message being used to request communication using address information;
[0057] Step 108, sending a fourth message to the power-up package to assign address information to the power-up package for communication;
[0058] The first message is used to request a communication address from the main battery pack.
[0059] The address allocation method for an energy storage system provided in the first aspect of the present invention is executed by a main battery pack in the energy storage system, and the energy storage system also includes a power-up pack.
[0060] Among them, the main battery pack can specifically be an energy storage battery pack in the energy storage system that mainly performs logic control and provides electricity to users, and the power pack can specifically be an additional battery pack in the energy storage system to expand capacity.
[0061] In the address allocation method of the energy storage system provided by the present invention, in the energy storage system, the main battery pack serves as a host and the power pack serves as a slave.
[0062] Specifically, in the address allocation method for the energy storage system provided by the present invention, in the process of allocating a communication address for a power-up pack added to the energy storage system, at the main battery pack end, the main battery pack receives a first message broadcast by the power-up pack for requesting a communication address from the main battery pack, and the first message includes the first identification information of the power-up pack. Further, the main battery pack allocates a communication address to the power-up pack, and based on the first identification information of the power-up pack, sends a second message containing address information to the power-up pack. Further, the main battery pack receives a third message sent by the power-up pack for requesting to use the above-mentioned address information for communication. Further, the main battery pack sends a fourth message to the power-up pack to agree to allocate the address information to the power-up pack for communication, and associates the first identification information of the power-up pack with the allocated address information to complete the addressing of the power-up pack. In this way, the power-up pack and the main battery pack complete networking, the power-up pack successfully joins the network of the energy storage system, and communicates with the main battery pack. In this way, when the power-up pack in the energy storage system changes, the newly added power-up pack actively broadcasts to request the main battery pack in the energy storage system to allocate a communication address for it. There is no need to re-address all the power-up packs, which improves the efficiency of address allocation. The number of power-up packs is not limited by cascade communication, which increases the number of allocable power-up packs.
[0063] Among them, the first message, the second message, the third message and the fourth message are in CAN message format, and the message formats of the first message, the second message, the third message and the fourth message may be specifically as shown in the following Table 1:
[0064] Table 1: Message format example table
[0065]
[0066] Among them, P represents the communication address of the main battery pack, PF represents the function code field, PS represents the target address field, SA represents the source address field, FSN (Frame Sequence Number) represents the frame sequence number field, and DATA represents the data field, which is used to carry specific message content, such as the first identification information of the power-on package.
[0067] Among them, PF, i.e., the function code field, is used to identify the message type, i.e., to identify the purpose of the message. For example, the function code field of the first message is 0x90, which is used to request the addressing of the main battery pack; the function code field of the second message is 0x91, which is used to send the address information allocated by the main battery pack to the power-up pack; the function code field of the third message is 0x92, which is used to request the use of the allocated address information; the function code field of the fourth message is 0x93, which is used to confirm that the power-up pack uses the allocated address information.
[0068] Furthermore, for the first message, when there is no historically assigned address information for the power-on packet, the source address field of the first message is 0, and the first message appears as a broadcast message; and when there is historically assigned address information for the power-on packet, the source address field is the historically assigned address information for the power-on packet, and the first message appears as a heartbeat message.
[0069] Furthermore, the first message, the second message, the third message and the fourth message all include the first identification information of the power-on packet. In this way, during the address allocation process, each power-on packet can be uniquely identified, and the addresses allocated to different power-on packets will not conflict when addressing, thereby ensuring the accuracy and efficiency of addressing.
[0070] Furthermore, the first identification information may specifically be a unique device identifier of the power-up pack, namely, an SN code.
[0071] In some embodiments of the present invention, optionally, the step of sending the second message to the power-on package according to the first identification information may specifically include the following steps 110 and 112:
[0072] Step 110, when the first message does not contain address information or the first address in the first message is already occupied, determine a second address from the free addresses in the address pool, and send a second message carrying the second address to the power-on package through the CAN communication protocol;
[0073] Step 112: When the first address in the first message is an idle address, a second message carrying the first address is sent to the power-on package through the CAN communication protocol.
[0074] In this embodiment, when the main battery pack sends the second message to the power-on pack, if the first message does not contain address information or the first address contained in the first message is already occupied, the main battery pack allocates a new communication address to the power-on pack. Specifically, in the energy storage system, the power-on pack is connected and joins the network through CAN. When the main battery pack allocates a new communication address to the power-on pack, the main battery pack checks the available free addresses in the address pool, and determines the second address allocated to the power-on pack from the free addresses in the address pool, and then sends the second message carrying the second address to the power-on pack through the CAN communication protocol. In the case where the first address in the first message is a free address, the main battery pack reallocates the first address to the power-on pack for use. Specifically, the main battery pack directly sends the second message carrying the first address to the power-on pack through the CAN communication protocol. In this way, on the one hand, address conflicts in the addressing process are avoided, and the accuracy and efficiency of addressing are guaranteed; on the other hand, automatic addressing based on CAN communication control technology can complete address allocation in real time and quickly, and does not require manual operation, reducing IO usage, effectively reducing wiring harness layout, saving costs, and improving work efficiency.
[0075] For example, the address of the main battery pack is 1, and the power-up packs are addressed starting from 2. Address 1: The address of the main battery pack is 1. Address 2: The first power-up pack, the default address is 2, and the new address is 2. Address 3: The second power-up pack, the default address is 2, and the new address is 3. And so on, address m+1: The nth power-up pack, the default address is 2, and the new address is m+1.
[0076] In some embodiments of the present invention, optionally, the address information has a usage time limit, and the above-mentioned address allocation method may further include the following steps 114 to 118:
[0077] Step 114, when the usage time limit of the address information expires, determining the operation status of the power-up package;
[0078] Step 116, when the power-up package is in an online state, extending the usage time limit of the address information;
[0079] Step 118: When the power-on package is in an offline state, the address information allocated to the power-on package is recovered as a free address.
[0080] In this embodiment, the address information assigned by the main battery pack to the power-up pack has a usage limit. After the main battery pack successfully assigns the address information for communication to the power-up pack, the communication address of the power-up pack remains unchanged during the usage period. When the usage period of the address information expires, the main battery pack will determine the operating status of the power-up pack. On this basis, when the power-up pack is online, the main battery pack will extend the usage period of the address information so that the power-up pack continues to use the assigned address information for communication. When the power-up pack is offline, the main battery pack will recycle the address information assigned to the power-up pack as an idle address so as to address other power-up packs. In this way, the main battery pack detects the operating status of the power-up pack through periodic polling, dynamically allocates and recycles address information, and realizes the maintenance of the address pool.
[0081] In actual application, after the usage period of the address information assigned by the main battery pack to the power-up pack expires, the power-up pack can actively send a renewal request message to the main battery pack. After receiving the renewal request message from the power-up pack, the main battery pack determines that the power-up pack is online and sends a confirmation message to the power-up pack to confirm that the power-up pack extends the use of the assigned address information for communication. Otherwise, the main battery pack determines that the power-up pack is offline and reclaims the address information assigned to the power-up pack.
[0082] In some embodiments of the present invention, optionally, before step 108, the address allocation method may further include the following steps 120 and 122:
[0083] Step 120, establishing an association relationship between the address information and the first identification information;
[0084] Step 122, save the association relationship.
[0085] In this embodiment, after the main battery pack sends the fourth message to the power-up pack to allocate the address information to the power-up pack for communication, the main battery pack will also establish and save the association relationship between the address information and the first identification information, so that when the battery pack requests a communication address later, it can determine whether the address information in the address pool is occupied according to the saved association relationship. In this way, it can be ensured that each address information is uniquely allocated to avoid address conflicts.
[0086] In some embodiments of the present invention, optionally, before step 104, the address allocation method may further include the following steps 124 to 128:
[0087] Step 124: when the first message includes the first address, obtain second identification information associated with the first address;
[0088] Step 126, when the first identification information is consistent with the second identification information, determining that the first address is not occupied;
[0089] Step 128: When the first identification information is inconsistent with the second identification information, determine that the first address is occupied.
[0090] In this embodiment, before the main battery pack sends the second message to the power-on pack according to the first identification information in the first message, it will also determine whether the first address is carried in the first message. In the case that the first message includes the first address, the main battery pack determines that a communication relationship has been established with the power-on pack before, and the original communication address previously assigned to the power-on pack is the first address. At this time, the main battery pack will obtain the second identification information associated with the first address according to the previously saved association relationship. On this basis, the main battery pack will match the obtained second identification information with the first identification information in the first message. In the case that the first identification information is consistent with the second identification information, that is, in the case that the first identification information matches the second identification information successfully, the main battery pack determines that the first address is not occupied by other power-on packs. In the case that the first identification information is inconsistent with the second identification information, that is, in the case that the first identification information matches the second identification information unsuccessfully, the main battery pack determines that the first address has been occupied by other power-on packs, and it is necessary to reallocate other communication addresses for the current power-on pack. In this way, it is determined based on the identification information whether the communication address requested by the power-on pack is occupied, and then the address is assigned, which ensures the uniqueness of the address assignment and avoids the problem of address conflict.
[0091] In some embodiments of the present invention, optionally, the above step of determining the running state of the power-up pack may specifically include the following steps 130 and 132:
[0092] Step 130, upon receiving the fifth message of the power-up package, determining that the power-up package is in an online state;
[0093] Step 132, when the fifth message of the power-up package is not received, determining that the power-up package is in an offline state;
[0094] The fifth message is used to request to extend the usage period of the address information.
[0095] In this embodiment, after the usage period of the address information assigned by the main battery pack to the power-up pack expires, if the main battery pack receives the fifth message from the power-up pack, the fifth message is a renewal request message, and the fifth message is used to request to extend the usage period of the address information, the main battery pack determines that the power-up pack is in an online state, and extends the usage period of the address information by the power-up pack. If the main battery pack does not receive the fifth message from the power-up pack, the main battery pack determines that the power-up pack is in an offline state, and reclaims the address information assigned to the power-up pack. In this way, the address information is dynamically managed, and the maintenance of the address pool is realized.
[0096] Among them, in order to avoid message reception failure, the power pack can send the fifth message to the main battery pack multiple times in succession after the usage period of the address information expires, to ensure that the fifth message can be successfully received by the main battery pack, thereby achieving successful renewal.
[0097] In one embodiment of the present invention, another method for allocating addresses of an energy storage system is also proposed. The method is executed by a power-up package in the energy storage system, such as Figure 2 As shown, the address allocation method of the energy storage system may specifically include the following steps 202 to 208:
[0098] Step 202, broadcasting a first message, the first message including first identification information of the power-up package;
[0099] Step 204, receiving a second message sent by the main battery pack according to the first identification information, where the second message includes address information;
[0100] Step 206, sending a third message to the main battery pack, the third message is used to request to use the address information for communication;
[0101] Step 208, receiving a fourth message sent by the main battery pack, the fourth message being used to assign address information to the power-up pack for communication;
[0102] The first message is used to request a communication address from the main battery pack.
[0103] The address allocation method for the energy storage system provided in the second aspect of the present invention is executed by a power-up pack in the energy storage system, and the energy storage system also includes a main battery pack.
[0104] Among them, the main battery pack can specifically be an energy storage battery pack in the energy storage system that mainly performs logic control and provides electricity to users, and the power pack can specifically be an additional battery pack in the energy storage system to expand capacity.
[0105] In the address allocation method of the energy storage system provided by the present invention, in the energy storage system, the main battery pack serves as a host and the power pack serves as a slave.
[0106] Specifically, in the address allocation method of the energy storage system provided by the present invention, in the process of allocating a communication address for a power-up pack added to the energy storage system, at the power-up pack end, the power-up pack performs a self-check after being powered on. When it is detected that it has no communication address, the power-up pack broadcasts a first message carrying a first identification information to request a communication address from the main battery pack through the first message. Further, the power-up pack receives a second message including address information sent by the main battery pack, and saves the address information. Further, the power-up pack accepts and configures the above address information as a communication address, and sends a third message to the main battery pack to request the main battery pack to use the address information for communication through the third message. Further, the power-up pack receives a fourth message sent by the main battery pack to confirm that the main battery pack allocates the address information to itself for communication. In this way, when the power-up pack in the energy storage system changes, the newly added power-up pack actively broadcasts to request the main battery pack in the energy storage system to allocate a communication address for it, without the need to re-address all the power-up packs, thereby improving the efficiency of address allocation, and the number of power-up packs is not limited by cascade communication, thereby increasing the number of power-up packs that can be allocated.
[0107] Among them, the first message, the second message, the third message and the fourth message are in the CAN message format, and the message formats of the first message, the second message, the third message and the fourth message may be specifically as shown in Table 1 above.
[0108] Furthermore, the first message, the second message, the third message and the fourth message all include the first identification information of the power-on packet. In this way, during the address allocation process, each power-on packet can be uniquely identified, and the addresses allocated to different power-on packets will not conflict when addressing, thereby ensuring the accuracy and efficiency of addressing.
[0109] Furthermore, the first identification information may specifically be a unique device identifier of the power-up pack, namely, an SN code.
[0110] In some embodiments of the present invention, optionally, the step of broadcasting the first message may specifically include the following step 210:
[0111] Step 210, after the power-up package is powered on, broadcast a first message after a first time interval;
[0112] The first duration is determined randomly, and the first duration is greater than or equal to 0.
[0113] In this embodiment, after the power-on pack is powered on, the power-on pack will broadcast the first message after a first time interval. The first time interval is randomly determined, and the first time interval is greater than or equal to 0. In this way, the random delay mechanism is used to control the power-on pack to broadcast the first message requesting addressing, which can avoid multiple power-on packs requesting addressing from the main battery pack at the same time, avoid address conflicts during addressing, and ensure the accuracy and efficiency of addressing.
[0114] In some embodiments of the present invention, optionally, after step 202, the address allocation method of the energy storage system may further include the following step 212:
[0115] Step 212: If the address information is not successfully allocated within the second time period, broadcast the first message again.
[0116] In this embodiment, after the power-on packet broadcasts the first message, if the power-on packet still fails to successfully allocate address information within the second time period, the power-on packet will broadcast the first message requesting addressing again. In this way, it is ensured that the power-on packet can eventually obtain a valid communication address, and the success rate of addressing is guaranteed.
[0117] In summary, if Figure 3 As shown, in the process of address allocation for the energy storage system, the slave battery pack performs a self-check after power-on, and when it has no address, it requests the main battery pack to address by broadcasting a first message. Further, the main battery pack sends a second message containing address information to the slave battery pack based on the first identification information in the first message sent by the slave battery pack to allocate an address for the slave battery pack. Further, after receiving the address information, the power-on pack sends a third message to the main battery pack to request the main battery pack to use the above address information for communication. Further, the main battery pack sends a fourth message to the power-on pack to confirm that the power-on pack uses the above address information for communication and confirms that the address allocation of the power-on pack is successful. Further, the power-on pack responds to the confirmation feedback of the main battery pack, communicates with the main battery pack according to the above address information, and after the address information expires, sends a fifth message, i.e., a renewal request message, to the main battery pack multiple times to request to extend the use time limit of the address information. Further, the main battery pack agrees to the renewal request of the power-on pack, and sends a renewal confirmation message to the power-on pack to confirm that the power-on pack has been successfully renewed. Furthermore, the power-up pack responds to the confirmation feedback from the main battery pack and continues to communicate with the main battery pack according to the above address information.
[0118] Thus, in the address allocation method of the energy storage system provided by the present invention, the idea of DHCP (Dynamic Host Configuration Protocol) in Ethernet is used to dynamically allocate the address or other parameters of the power-up package. The main battery pack is equivalent to the server for address allocation as a home gateway, and manages the address allocation. The power-up package is equivalent to the client as an intelligent device. Only after the power-up package obtains the address can it automatically join the CAN and perform data communication. In this way, an automatic configuration mechanism similar to DHCP in Ethernet is implemented in CAN, and the power-up package address is automatically allocated, which can effectively manage the power-up package address and other configuration parameters. In addition, the above-mentioned addressing mechanism realizes the automated address allocation and confirmation process through message exchange, ensuring that the power-up package newly added to the network can automatically obtain and configure its own communication address, reducing the complexity of manual configuration, and improving the reliability and scalability of the energy storage system. Furthermore, the above-mentioned addressing mechanism can support the dynamic expansion of the power-up package, simplify the installation and configuration process of the power-up package, do not need to pre-configure the power-up package in the energy storage system, support plug-and-play of the power-up package, and in the energy storage system with a spare power-up package, automatic addressing can quickly configure the newly added power-up package.
[0119] Among them, when the main battery pack is turned off and then turned on again, the main battery pack will reallocate addresses for the power packs in the energy storage system to re-establish the network.
[0120] Furthermore, the above-mentioned address allocation method is not limited to allocating addresses for power-up packages. The above-mentioned address allocation method can also be used to address other devices in the energy storage system connected via CAN, and no specific limitation is made here.
[0121] Furthermore, if Figure 4 As shown, the workflow of the energy storage system may specifically include the following steps 302 to 318:
[0122] Step 302, power on the power pack;
[0123] Step 304, determine: the main battery pack address matches, if yes, go to step 306, if no, go to step 312;
[0124] Step 306, the power-up package confirms that the address is correct;
[0125] Step 308, the main battery pack confirms that the data matches;
[0126] Step 310, power-up package response confirmation;
[0127] Step 312, the main battery pack reallocates the address;
[0128] Step 314, the power-up package confirms the assigned address;
[0129] Step 316, the master battery pack confirms that the address allocation is successful;
[0130] Step 318, the power-on package responds to confirmation.
[0131] In step 304, the main battery pack determines whether the communication addresses of the power-on pack and the main battery pack match by matching the saved first identification information with the first identification information of the current power-on pack. If the addresses match, the power-on pack communicates normally with the main battery pack through steps 306 to 310. Otherwise, the main battery pack reassigns a communication address to the power-on pack through steps 312 to 318.
[0132] Specifically, after the power-on package is disconnected and powered on again, if the power-on package has an assigned address information, the power-on package broadcasts a heartbeat message containing the address information and the first identification information, and the main battery package determines whether the communication address of the power-on package matches that of the main battery package based on the first identification information. When the addresses match, it is confirmed that the power-on package has been registered and the communication addresses do not conflict. At this time, the power-on package and the main battery package communicate normally, and the power-on package reports data to the main battery package. After confirming that the data reported by the power-on package matches, the main battery package feeds back a confirmation message to the power-on package, indicating that the data reporting is successful. When the addresses do not match, it is confirmed that the power-on package has been registered but the communication addresses conflict. At this time, the main battery package re-assigns an address to the power-on package through the above-mentioned address allocation method.
[0133] In one embodiment of the present invention, an address allocation device for an energy storage system is also provided, and the device is applied to a main battery pack in the energy storage system. Figure 5 As shown, Figure 5 The structure block diagram of the address allocation device 400 of the energy storage system according to the embodiment of the present invention is shown. The address allocation device 400 of the energy storage system may specifically include the following first communication unit 402:
[0134] A first communication unit 402, configured to receive a first message broadcast by the power-up package, the first message including first identification information of the power-up package, and the first message being used to request a communication address from the main battery package;
[0135] The first communication unit 402 is further configured to send a second message to the power-on package according to the first identification information, wherein the second message includes address information;
[0136] The first communication unit 402 is further used to receive a third message sent by the power-up packet, where the third message is used to request to use the address information for communication;
[0137] The first communication unit 402 is further configured to send a fourth message to the power-on package to assign address information to the power-on package for communication.
[0138] The address allocation device 400 of the energy storage system provided in the embodiment of the present invention is applied to a main battery pack in the energy storage system, and the energy storage system also includes a power-up pack.
[0139] Among them, the main battery pack can specifically be an energy storage battery pack in the energy storage system that mainly performs logic control and provides electricity to users, and the power pack can specifically be an additional battery pack in the energy storage system to expand capacity.
[0140] In the energy storage system, the main battery pack acts as the host and the charging pack acts as the slave.
[0141] Specifically, the address allocation device 400 of the energy storage system provided by the present invention includes a first communication unit 402. In the process of allocating a communication address for a power-up package added to the energy storage system, at the main battery package end, the first communication unit 402 receives a first message broadcast by the power-up package for requesting a communication address from the main battery package, and the first message includes the first identification information of the power-up package. Further, the main battery package allocates a communication address to the power-up package, and based on the first identification information of the power-up package, sends a second message containing address information to the power-up package through the first communication unit 402. Further, the first communication unit 402 receives a third message sent by the power-up package for requesting to use the above-mentioned address information for communication. Further, the first communication unit 402 sends a fourth message to the power-up package to agree to allocate the address information to the power-up package for communication, and associates the first identification information of the power-up package with the allocated address information to complete the addressing of the power-up package. In this way, the power-up package and the main battery package complete networking, the power-up package successfully joins the network of the energy storage system, and communicates with the main battery package. In this way, when the power-up pack in the energy storage system changes, the newly added power-up pack actively broadcasts to request the main battery pack in the energy storage system to allocate a communication address for it. There is no need to re-address all the power-up packs, which improves the efficiency of address allocation. The number of power-up packs is not limited by cascade communication, which increases the number of allocable power-up packs.
[0142] Among them, the first message, the second message, the third message and the fourth message are in the CAN message format, and the message formats of the first message, the second message, the third message and the fourth message may be specifically as shown in Table 1 above.
[0143] Furthermore, the first message, the second message, the third message and the fourth message all include the first identification information of the power-on packet. In this way, during the address allocation process, each power-on packet can be uniquely identified, and the addresses allocated to different power-on packets will not conflict when addressing, thereby ensuring the accuracy and efficiency of addressing.
[0144] Furthermore, the first identification information may specifically be a unique device identifier of the power-up pack, namely, an SN code.
[0145] In some embodiments of the present invention, optionally, the first communication unit 402 is specifically used to: when the first message does not contain address information, or the first address in the first message is occupied, determine the second address from the free addresses in the address pool, and send the second message carrying the second address to the power-on package through the CAN communication protocol; when the first address in the first message is a free address, send the second message carrying the first address to the power-on package through the CAN communication protocol.
[0146] In some embodiments of the present invention, optionally, Figure 5 As shown, the address allocation device 400 of the energy storage system further includes: a processing unit 404, used to establish an association relationship between the address information and the first identification information; and a storage unit 406, used to store the association relationship.
[0147] In some embodiments of the present invention, optionally, before sending a second message to the power-on package based on the first identification information, the processing unit 404 is also used to: when the first message includes the first address, obtain second identification information associated with the first address; when the first identification information is consistent with the second identification information, determine that the first address is not occupied; when the first identification information is inconsistent with the second identification information, determine that the first address is occupied.
[0148] In some embodiments of the present invention, optionally, the address information has a usage limit, and the first communication unit 402 is further used to: determine the operating status of the power-on pack when the usage limit of the address information expires; extend the usage limit of the address information when the power-on pack is online; and recycle the address information allocated to the power-on pack as an idle address when the power-on pack is offline.
[0149] In some embodiments of the present invention, optionally, the first communication unit 402 is specifically used to: when the fifth message of the power-on package is received, determine that the power-on package is in an online state, and the fifth message is used to request to extend the usage limit of the address information; when the fifth message of the power-on package is not received, determine that the power-on package is in an offline state.
[0150] In one embodiment of the present invention, another address allocation device for an energy storage system is also provided, and the device is applied to a power pack in the energy storage system. Figure 6 As shown, Figure 6 The structure block diagram of the address allocation device 500 of the energy storage system according to the embodiment of the present invention is shown. The address allocation device 500 of the energy storage system may specifically include the following second communication unit 502:
[0151] A second communication unit 502, configured to broadcast a first message, the first message including first identification information of the power-up package, the first message being used to request a communication address from the main battery package;
[0152] The second communication unit 502 is further used to receive a second message sent by the main battery pack according to the first identification information, where the second message includes address information;
[0153] The second communication unit 502 is further used to send a third message to the main battery pack, where the third message is used to request to use the address information for communication;
[0154] The second communication unit 502 is further used to receive a fourth message sent by the main battery pack, and the fourth message is used to assign address information to the power-up pack for communication.
[0155] The address allocation device 500 of the energy storage system provided in the embodiment of the present invention is applied to a power pack in the energy storage system, and the energy storage system also includes a main battery pack.
[0156] Among them, the main battery pack can specifically be an energy storage battery pack in the energy storage system that mainly performs logic control and provides electricity to users, and the power pack can specifically be an additional battery pack in the energy storage system to expand capacity.
[0157] In the energy storage system, the main battery pack acts as the host and the charging pack acts as the slave.
[0158] Specifically, the address allocation device 500 of the energy storage system provided by the present invention includes a second communication unit 502. In the process of allocating communication addresses for the power-up pack added to the energy storage system, at the power-up pack end, the power-up pack performs a self-check after being powered on. When it is detected that it has no communication address, the power-up pack broadcasts a first message carrying first identification information through the second communication unit 502 to request a communication address from the main battery pack through the first message. Further, the second communication unit 502 receives a second message including address information sent by the main battery pack, and saves the address information. Further, the power-up pack accepts and configures the above address information as a communication address, and sends a third message to the main battery pack through the second communication unit 502 to request the main battery pack to use the address information for communication through the third message. Further, the second communication unit 502 receives a fourth message sent by the main battery pack, and confirms that the main battery pack allocates the address information to itself for communication. In this way, when the power-up pack in the energy storage system changes, the newly added power-up pack actively broadcasts to request the main battery pack in the energy storage system to allocate a communication address for it. There is no need to re-address all the power-up packs, which improves the efficiency of address allocation. The number of power-up packs is not limited by cascade communication, which increases the number of allocable power-up packs.
[0159] Among them, the first message, the second message, the third message and the fourth message are in the CAN message format, and the message formats of the first message, the second message, the third message and the fourth message may be specifically as shown in Table 1 above.
[0160] Furthermore, the first message, the second message, the third message and the fourth message all include the first identification information of the power-on packet. In this way, during the address allocation process, each power-on packet can be uniquely identified, and the addresses allocated to different power-on packets will not conflict when addressing, thereby ensuring the accuracy and efficiency of addressing.
[0161] Furthermore, the first identification information may specifically be a unique device identifier of the power-up pack, namely, an SN code.
[0162] In some embodiments of the present invention, optionally, the second communication unit 502 is specifically used to: broadcast a first message after a first time interval after the power-on package is powered on; wherein the first time interval is randomly determined, and the first time interval is greater than or equal to 0.
[0163] In some embodiments of the present invention, optionally, after broadcasting the first message, the second communication unit 502 is further configured to: broadcast the first message again if address information is not successfully allocated within the second time period.
[0164] In one embodiment of the present invention, an energy storage system is also provided. Figure 7 As shown, Figure 7 The structure block diagram of the energy storage system 800 provided by the embodiment of the present invention is shown. The energy storage system 800 includes a main battery pack 600 and a power pack 700 .
[0165] Furthermore, the main battery pack 600 includes:
[0166] A first memory 602, where programs or instructions are stored;
[0167] The first processor 604 implements the steps of the address allocation method for the energy storage system in any embodiment of the first aspect when the first processor 604 executes the above program or instruction.
[0168] The energy storage system 800 provided in this embodiment includes a main battery pack 600, and the main battery pack 600 includes a first memory 602 and a first processor 604. When the program or instructions in the first memory 602 are executed by the first processor 604, the steps of the address allocation method for the energy storage system in any embodiment of the first aspect are implemented. Therefore, the main battery pack 600 and the energy storage system 800 both have all the beneficial effects of the address allocation method for the energy storage system in any embodiment of the first aspect, which will not be repeated here.
[0169] Specifically, the first memory 602 and the first processor 604 may be connected via a bus or other means. The first processor 604 may include one or more processing units, and the first processor 604 may be a central processing unit (CPU), a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), and other chips.
[0170] Furthermore, the power-up package 700 includes:
[0171] A second memory 702, where programs or instructions are stored;
[0172] The second processor 704 implements the steps of the address allocation method for the energy storage system in any embodiment of the second aspect when the second processor 704 executes the above program or instruction.
[0173] The energy storage system 800 provided in this embodiment includes a power-up pack 700, and the power-up pack 700 includes a second memory 702 and a second processor 704. When the program or instructions in the second memory 702 are executed by the second processor 704, the steps of the address allocation method for the energy storage system in any embodiment of the second aspect are implemented. Therefore, the power-up pack 700 and the energy storage system 800 both have all the beneficial effects of the address allocation method for the energy storage system in any embodiment of the second aspect, which will not be repeated here.
[0174] Specifically, the second memory 702 and the second processor 704 may be connected via a bus or other means. The second processor 704 may include one or more processing units, and the second processor 704 may be a central processing unit, a digital signal processor, an application specific integrated circuit, a field programmable gate array or other chips.
[0175] In one embodiment of the present invention, a readable storage medium is also provided. A program or instruction is stored on the medium, and when the program or instruction is executed by a processor, the steps of the method for allocating addresses of an energy storage system in any embodiment of the first aspect are implemented; or when the program or instruction is executed by a processor, the steps of the method for allocating addresses of an energy storage system in any embodiment of the second aspect are implemented.
[0176] The readable storage medium provided in the embodiment of the present invention, when the program or instruction stored therein is executed by the processor, can implement the steps of the address allocation method for the energy storage system in any embodiment of the first aspect, or implement the steps of the address allocation method for the energy storage system in any embodiment of the second aspect. Therefore, the readable storage medium has all the beneficial effects of the address allocation method for the energy storage system in any embodiment of the first aspect or the second aspect, which will not be repeated here.
[0177] Specifically, the above-mentioned readable storage medium may include any medium capable of storing or transmitting information. Examples of readable storage media include electronic circuits, semiconductor memory devices, read-only memory (ROM), random access memory (RAM), compact disc read-only memory (CD-ROM), flash memory, erasable ROM (EROM), magnetic tape, floppy disk, optical disk, hard disk, optical fiber medium, radio frequency (RF) link, optical data storage device, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0178] In the description of this specification, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance unless otherwise clearly specified and limited; the terms "connection", "installation", "fixation" and the like should be understood in a broad sense, for example, "connection" can be a fixed connection, a detachable connection, or an integral connection; it can be directly connected or indirectly connected through an intermediate medium. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0179] In the description of this specification, the description of the terms "one embodiment", "some embodiments", "specific embodiments", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.
[0180] In addition, the technical solutions between the various embodiments of the present invention can be combined with each other, but it must be based on the fact that ordinary technicians in the field can implement it. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by the present invention.
[0181] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for allocating addresses for an energy storage system, characterized in that: Executed by the main battery pack in the energy storage system, the address allocation method includes: receiving a first message broadcast by a power-up package, wherein the first message includes first identification information of the power-up package, and the first message is used to request a communication address from the main battery package; Sending a second message to the power-up package according to the first identification information, wherein the second message includes address information; receiving a third message sent by the power-on packet, wherein the third message is used to request to use the address information for communication; A fourth message is sent to the power-on packet to assign the address information to the power-on packet for communication.
2. The address allocation method for the energy storage system according to claim 1, characterized in that: The sending a second message to the power-on package according to the first identification information includes: In the case where the first message does not include address information or the first address in the first message is already occupied, determining a second address from free addresses in an address pool, and sending the second message carrying the second address to the power-on package through a CAN communication protocol; In the case where the first address in the first message is an idle address, the second message carrying the first address is sent to the power-on package through the CAN communication protocol.
3. The address allocation method for the energy storage system according to claim 1, characterized in that: After sending the fourth message to the power-on packet, the address allocation method further includes: Establishing an association relationship between the address information and the first identification information; The association relationship is saved.
4. The address allocation method for the energy storage system according to claim 1, characterized in that: Before sending the second message to the power-on packet according to the first identification information, the address allocation method further includes: In a case where the first message includes a first address, acquiring second identification information associated with the first address; When the first identification information is consistent with the second identification information, determining that the first address is not occupied; When the first identification information is inconsistent with the second identification information, it is determined that the first address is occupied.
5. The address allocation method for the energy storage system according to claim 1, characterized in that: The address information has a usage time limit, and the address allocation method further includes: determining the operating state of the power-up package when the usage time limit of the address information expires; When the power-up package is in an online state, extending the usage time limit of the address information; When the power-up pack is in an offline state, the address information allocated to the power-up pack is recovered as a free address.
6. The address allocation method for the energy storage system according to claim 5, characterized in that: The determining the operating state of the power-up package includes: In case of receiving a fifth message of the power-up package, determining that the power-up package is in an online state, the fifth message being used to request an extension of the usage time limit of the address information; In case the fifth message of the power-up package is not received, it is determined that the power-up package is in an offline state.
7. An address allocation method for an energy storage system, characterized in that: Executed by a power-up package in the energy storage system, the address allocation method includes: Broadcasting a first message, wherein the first message includes first identification information of the power-up pack, and the first message is used to request a communication address from a main battery pack; receiving a second message sent by the main battery pack according to the first identification information, wherein the second message includes address information; Sending a third message to the main battery pack, wherein the third message is used to request to use the address information for communication; A fourth message sent by the main battery pack is received, wherein the fourth message is used to assign the address information to the power-up pack for communication.
8. The address allocation method for the energy storage system according to claim 7, characterized in that: The broadcasting of the first message includes: After the power-up package is powered on, broadcasting the first message after a first time interval; The first duration is determined randomly, and the first duration is greater than or equal to 0.
9. The address allocation method for the energy storage system according to claim 7, characterized in that: After broadcasting the first message, the address allocation method further includes: If the address information is not successfully allocated within the second time period, the first message is broadcast again.
10. An address allocation device for an energy storage system, characterized in that: Applied to the main battery pack in the energy storage system, the address allocation device comprises: a first communication unit, configured to receive a first message broadcast by a power-up package, wherein the first message includes first identification information of the power-up package, and the first message is used to request a communication address from the main battery package; The first communication unit is further configured to send a second message to the power-up package according to the first identification information, wherein the second message includes address information; The first communication unit is further used to receive a third message sent by the power-up package, wherein the third message is used to request to use the address information for communication; The first communication unit is further configured to send a fourth message to the power-on package to assign the address information to the power-on package for communication.
11. An address allocation device for an energy storage system, characterized in that: Applied to the power-up pack in the energy storage system, the address allocation device comprises: a second communication unit, configured to broadcast a first message, wherein the first message includes first identification information of the power-up pack, and the first message is used to request a communication address from the main battery pack; The second communication unit is further used to receive a second message sent by the main battery pack according to the first identification information, wherein the second message includes address information; The second communication unit is further used to send a third message to the main battery pack, wherein the third message is used to request to use the address information for communication; The second communication unit is further used to receive a fourth message sent by the main battery pack, and the fourth message is used to assign the address information to the power-up pack for communication.
12. An energy storage system, characterized in that: include: A main battery pack, comprising a first processor and a first memory, wherein the first memory stores a program or instruction that can be run on the first processor, and when the program or instruction is executed by the first processor, the steps of the address allocation method for the energy storage system according to any one of claims 1 to 6 are implemented; A power-up package includes a second processor and a second memory, wherein the second memory stores a program or instruction that can be run on the second processor, and when the program or instruction is executed by the second processor, the steps of the address allocation method for the energy storage system as described in any one of claims 7 to 9 are implemented.
Citation Information
Cited By
IO-Link slave station address dynamic allocation method and related equipment
CN122053564A