Energy storage battery system, address allocation method, device and equipment
By using the CAN bus to implement the automatic configuration of the BCU address in the energy storage battery system, the problem of dependent static configuration or manual distribution in the existing technology is solved, and the system debugging efficiency and complexity management are improved.
Patent Information
- Application Number
- CN202411283907.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-12
- Publication Date
- 2025-01-28
AI Technical Summary
In energy storage battery systems, address allocation between multiple battery cluster management units (BCUs) usually depends on static configuration or manual allocation, increasing the complexity of the system and the risk of human error.
By introducing the controller local network (CAN) bus in the energy storage battery system, the main node BCU sends the address allocation request message from the node BCU, and the automatic configuration of the BCU address is used to obtain the distribution address from the node BCU.
This scheme reduces the wiring complexity of the energy storage battery system, avoids human errors, improves the system's debugging efficiency, and does not require additional IO port resources that occupy BCU.
Smart Images

Figure CN119383167A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of energy storage batteries, and in particular to an energy storage battery system, an address allocation method, a device and equipment. Background Art
[0002] Energy storage battery systems can balance electricity supply and demand and improve the flexibility of the power system by storing electrical energy for later use.
[0003] Energy storage battery parallel technology involves connecting multiple energy storage battery cluster management units (BCU) together to improve the overall capacity and reliability of the system. Parallel operation can achieve load sharing, performance optimization and redundancy, but it also brings complexity to system management. In a multi-energy storage battery BCU module parallel system, each BCU module requires an independent address for management to facilitate real-time monitoring, fault diagnosis and data communication.
[0004] In the related art, the address allocation of battery cells usually relies on static configuration or manual allocation, which increases the complexity of the system and the risk of human error. Summary of the invention
[0005] The present application proposes an energy storage battery system, an address allocation method, a device and equipment, which are used to reduce the wiring complexity of the energy storage battery system and realize automatic configuration of the BCU address.
[0006] In order to achieve the above purpose, this application adopts the following technical solutions:
[0007] In a first aspect, an energy storage battery system is provided, the energy storage battery system includes an inverter, multiple BCUs, and a controller area network (CAN) bus, the first BCU connected to the inverter among the multiple BCUs is a master node BCU, the BCUs other than the master node BCU among the multiple BCUs are slave node BCUs, and the multiple BCUs are connected to the CAN bus. The master node BCU sends an address allocation request message to the slave node BCU; the slave node BCU responds to the address allocation request message and sends an address request message to the master node BCU; the master node BCU responds to the address request message and sends an address allocation message to the slave node BCU, the address allocation message including the address allocated to the slave node BCU.
[0008] In the energy storage battery system provided by the present application, multiple BCUs communicate through the CAN bus connection. When the address needs to be assigned, the first BCU connected to the inverter is used as the master node, and communicates and interacts with other slave node BCUs through the CAN bus. The slave node BCU can communicate end-to-end with the master node BCU through the CAN bus to obtain the address assigned by the master node BCU without occupying the IO port resources of the BCU. In addition, in the process of address assignment, there is no need for manual configuration by the user, which improves the debugging efficiency of the energy storage battery system.
[0009] In one possible design, the slave node BCU sends a confirmation message to the master node BCU in response to the address allocation message; the master node BCU listens to the confirmation message; if the master node BCU does not receive the confirmation message within the first preset time period, it sends the address allocation message to the slave node BCU. In this design, by listening to the confirmation message after the slave node BCU receives the address allocation message, it can be confirmed whether the slave node BCU has completed the address allocation normally, and if it is confirmed that the slave node BCU has not completed the address allocation, it can continue to re-allocate the address for the slave node BCU to ensure that all slave node BCUs complete the address allocation.
[0010] In one possible design, the master node BCU records the number of times the address allocation message is sent to the slave node BCU; the first preset duration is updated according to the duration corresponding to the number of times; if the master node BCU does not receive a confirmation message within the updated first preset duration, the master node BCU sends the address allocation message to the slave node BCU. In this design, after the master node BCU sends the address allocation message to the slave node BCU, the time interval for resending the address allocation message to the slave node BCU is dynamically adjusted to reduce the number of times the master node BCU sends messages.
[0011] In one possible design, after receiving the address request message, the master node BCU determines the receiving timestamp; when the time difference corresponding to at least two receiving timestamps is less than a preset threshold, a conflict notification message is sent to the slave node BCU, and the conflict notification message is used to instruct the slave node BCU to resend the address request message. In this design, based on the receiving timestamp of the address request message returned by the slave node BCU, conflict detection of the slave node BCU address allocation is implemented, so as to avoid the master node BCU missing some messages sent by the slave node BCU and ensure the allocation of the slave node BCU address.
[0012] In one possible design, the master node BCU sends an address allocation message to the slave node BCU in response to the address request message, including: after receiving the address request messages sent by multiple slave node BCUs, the master node BCU sends address allocation messages to the multiple slave node BCUs in descending order according to the priorities of the multiple slave node BCUs.
[0013] In one possible design, the slave node BCU periodically sends a heartbeat message to the master node BCU; if the master node BCU does not receive a heartbeat message sent by the slave node BCU within a second preset time interval, it sends an address allocation message to the slave node BCU. In this design, by configuring the slave node BCU to periodically send heartbeat messages, the master node BCU can monitor the connection status of the slave node BCU. When the slave node BCU loses connection, an address can be allocated to the slave node BCU again to ensure the communication connection between the master node BCU and the slave node BCU.
[0014] In one possible design, the master node BCU updates the device address table in response to a confirmation message returned by the slave node BCU.
[0015] In a second aspect, an address allocation method is provided, which is applied to a master node BCU of an energy storage battery system, wherein the energy storage battery system further includes an inverter, a slave node BCU and a CAN bus, wherein both the master node BCU and the slave node BCU are connected to the CAN bus, and the method includes: the master node BCU sends an address allocation request message to the slave node BCU; and receives an address request message sent by the slave node BCU in response to the address allocation request message. Further, the master node BCU sends an address allocation message to the slave node BCU in response to the address request message, and the address allocation message includes an address allocated to the slave node BCU.
[0016] In one possible design, the master node BCU monitors a confirmation message sent by the slave node BCU in response to the address allocation message; and if no confirmation message is received within a first preset time period, the master node BCU sends an address allocation message to the slave node BCU.
[0017] In one possible design, the master node BCU records the number of times the address allocation message is sent to the slave node BCU, and updates the first preset duration according to the duration corresponding to the number of times the address allocation message is sent. Furthermore, if the master node BCU does not receive a confirmation message within the updated first preset duration, it sends the address allocation message to the slave node BCU.
[0018] In one possible design, after receiving the address request message, the master node BCU determines the receiving timestamp; and when the time difference corresponding to at least two receiving timestamps is less than a preset threshold, the master node BCU sends a conflict notification message to the slave node BCU, and the conflict notification message is used to instruct the slave node BCU to resend the address request message.
[0019] In a possible design, after receiving the address request messages sent by the multiple slave node BCUs, the master node BCU sends the address allocation messages to the multiple slave node BCUs in order from high to low according to the priorities of the multiple slave node BCUs.
[0020] In a possible design, when the master node BCU does not receive a heartbeat message sent by the slave node BCU within a second preset time interval, the master node BCU sends the address allocation message to the slave node BCU.
[0021] In one possible design, the master node BCU updates the device address table in response to a confirmation message returned by the slave node BCU.
[0022] In a third aspect, an address allocation device is provided, which is deployed in a master node BCU of an energy storage battery system. The energy storage battery system also includes an inverter, a slave node BCU and a CAN bus. The master node BCU and the slave node BCU are both connected to the CAN bus. The address allocation device includes a sending unit and a receiving unit. The sending unit is used to send an address allocation request message to the slave node BCU. The receiving unit is used to receive an address request message sent by the slave node BCU in response to the address allocation request message. The sending unit is also used to send an address allocation message to the slave node BCU in response to the address request message, and the address allocation message includes an address allocated to the slave node BCU.
[0023] In one possible design, the address allocation device further includes a processing unit. The processing unit is used to monitor a confirmation message sent by the slave node BCU in response to the address allocation message. The sending unit is also used to send the address allocation message to the slave node BCU if the confirmation message is not received within a first preset time period.
[0024] In one possible design, the processing unit is further used to record the number of times the address allocation message is sent to the slave node BCU; and update the first preset duration according to the duration corresponding to the number of times the address allocation message is sent. The sending unit is also used to send the address allocation message to the slave node BCU if the master node BCU does not receive a confirmation message within the updated first preset duration.
[0025] In one possible design, the processing unit is further used to determine a receiving timestamp after receiving the address request message. The sending unit is further used to send a conflict notification message to the slave node BCU when the time difference corresponding to at least two receiving timestamps is less than a preset threshold, and the conflict notification message is used to instruct the slave node BCU to resend the address request message.
[0026] In one possible design, the sending unit is further used to send the address allocation message to the multiple slave node BCUs in sequence from high to low according to the priorities of the multiple slave node BCUs after receiving the address request messages sent by the multiple slave node BCUs.
[0027] In one possible design, the sending unit is further used to send the address allocation message to the slave node BCU if no heartbeat message sent by the slave node BCU is received within a second preset time interval.
[0028] In one possible design, the processing unit is further used to update the device address table in response to a confirmation message returned from the slave node BCU.
[0029] In a fourth aspect, a BCU is provided, which includes a memory and a processor; the memory and the processor are coupled, the memory is used to store computer program code, the computer program code includes computer instructions, and when the processor executes the computer instructions, the BCU executes the address allocation method provided in the second aspect or any possible design thereof.
[0030] In a fifth aspect, a computer-readable storage medium is provided, in which instructions are stored. When the instructions are executed on a BCU, the BCU executes the address allocation method provided in the second aspect or any possible implementation thereof.
[0031] In a sixth aspect, a computer program product comprising instructions is provided, which, when executed on a computer, enables the computer to execute the address allocation method provided in the second aspect or any possible implementation thereof.
[0032] In the seventh aspect, a chip system is provided, comprising: a processor and an interface circuit; the interface circuit is used to receive a computer program or instruction and transmit it to the processor; the processor is used to execute the computer program or instruction so that the chip system executes the address allocation method provided in the second aspect or any possible implementation thereof.
[0033] Among them, the technical effects brought about by any implementation of the second to sixth aspects can refer to the technical effects brought about by different implementations of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 A schematic diagram of the structure of an energy storage battery system provided in an embodiment of the present application;
[0035] Figure 2 A flowchart of an address allocation method provided in an embodiment of the present application;
[0036] Figure 3 A flowchart of another address allocation method provided in an embodiment of the present application;
[0037] Figure 4 A flowchart of another address allocation method provided in an embodiment of the present application;
[0038] Figure 5 A schematic diagram of the structure of another address allocation device provided in an embodiment of the present application;
[0039] Figure 6 A schematic diagram of the structure of a battery cluster management unit provided in an embodiment of the present application. DETAILED DESCRIPTION
[0040] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.
[0041] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0042] In the description of this application, unless otherwise specified, " / " means "or", for example, A / B can mean A or B. "And / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. 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, "at least one" and "plurality" refer to two or more. The words "first", "second", etc. do not limit the quantity and execution order, and the words "first", "second", etc. do not limit them to be different.
[0043] It is understood that the "embodiment" mentioned throughout the specification means that the specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, the various embodiments in the entire specification do not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It is understood that in various embodiments of the present application, the size of the sequence number of each process does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application.
[0044] It can be understood that in the present application, "when", "if" and "if" all mean that corresponding processing will be carried out under certain objective circumstances, but do not limit the time, nor do they require judgment actions when implementing them, nor do they mean the existence of other limitations.
[0045] It can be understood that some optional features in the embodiments of the present application may be implemented independently in certain scenarios without relying on other features, such as the solution on which they are currently based, to solve corresponding technical problems and achieve corresponding effects, or may be combined with other features according to needs in certain scenarios. Accordingly, the devices provided in the embodiments of the present application may also realize these features or functions accordingly, which will not be elaborated here.
[0046] In this application, unless otherwise specified, the same or similar parts between the various embodiments can refer to each other. In the various embodiments in this application, and the various implementation methods in each embodiment, if there is no special description and logical conflict, the terms and / or descriptions between different embodiments and the various implementation methods in each embodiment are consistent and can be referenced to each other. The technical features in different embodiments and the various implementation methods in each embodiment can be combined to form new embodiments, implementation methods, implementation methods, or implementation methods according to their inherent logical relationships. The following implementation methods of this application do not constitute a limitation on the scope of protection of this application.
[0047] Energy storage battery parallel technology involves connecting multiple BCUs together to improve the overall capacity and reliability of the system. Parallel operation can achieve load sharing, performance optimization and redundancy, but it also brings complexity to system management. In a multi-energy storage battery BCU module parallel system, each BCU module requires an independent address for management to facilitate real-time monitoring, fault diagnosis and data communication. In related technologies, the address allocation of battery cells usually relies on static configuration or manual allocation, which increases the complexity of the system and the risk of human error.
[0048] The current solutions for automatically allocating addresses for parallel energy storage batteries mainly include the following two methods.
[0049] First, multiple battery modules are connected in series through the CAN bus, and the address output signal line of each battery module is connected to the address input signal line of the next battery module. The address input signal line of the first battery module and the address input signal line of the last battery module are left floating, which may cause abnormal communication in the energy storage battery system and affect the stability of the system.
[0050] When all battery modules are awakened, each battery module determines the master-slave status and master-slave node address of each battery module based on the received address input signal and CAN message signal. When the master-slave status and master-slave node address of each battery module are determined, the master node battery module sends parallel instructions to all battery modules based on the received voltages, message information and preset parallel rules of all battery modules, so that the battery modules are charged and discharged based on the various received parallel instructions.
[0051] Since the address output signal line of each battery module is connected to the address input signal line of the next battery module, the configuration of the address signal line is complicated, resulting in waste of input and output (IO) port resources of the battery module, and configuring each IO port increases the system burden.
[0052] Secondly, multiple battery management systems (BMS) are connected one by one through the power harness, and the positive and negative poles of the power supply are connected one by one. By obtaining the level signal of the pin IO port of the BMS, the end BMS and the middle BMS are identified. Then any end BMS is selected as the master node BMS, and the other end BMS and the middle BMS are the slave node BMS. In the address allocation process, the master node BMS inputs the preset address to the next BMS through the serial communication protocol, and the next BMS then passes the preset address to the slave node BMS in turn, and the address is allocated in the order of parallel connection.
[0053] Due to the use of serial communication protocols, when multiple BMSs are connected in parallel, communication delays may occur due to the limitations of the speed and bandwidth of the serial communication protocol. In addition, when some BMSs fail, the system may not be able to effectively identify them, thus affecting the overall address allocation and communication.
[0054] To solve the above problems, the present application proposes an energy storage battery system, an address allocation method, a device and an apparatus. The energy storage battery system includes an inverter, multiple battery cluster management units BCU and a controller area network CAN bus. The first BCU connected to the inverter among the multiple BCUs is a master node BCU, and the BCUs other than the master node BCU among the multiple BCUs are slave node BCUs, and the multiple BCUs are connected to the CAN bus. The master node BCU sends an address allocation request message to the slave node BCU; the slave node BCU responds to the address allocation request message and sends an address request message to the master node BCU; the master node BCU responds to the address request message and sends an address allocation message to the slave node BCU, and the address allocation message includes the address allocated to the slave node BCU.
[0055] In this way, in the energy storage battery system provided by the present application, multiple BCUs communicate through the CAN bus connection. When the address needs to be assigned, the first BCU connected to the inverter is used as the master node, and communicates and interacts with other slave node BCUs through the CAN bus. The slave node BCU can communicate end-to-end with the master node BCU through the CAN bus to obtain the address assigned by the master node BCU without occupying the IO port resources of the BCU. In addition, in the process of address assignment, there is no need for manual configuration by the user, which improves the debugging efficiency of the energy storage battery system.
[0056] Figure 1An energy storage battery system is shown. The address allocation method provided in the embodiment of the present application can be applied to Figure 1 The energy storage battery system shown is used to reduce the wiring complexity of the energy storage battery system and realize automatic configuration of the BCU address. Figure 1 As shown, the energy storage battery system 10 includes an inverter 11, a CAN bus 12, a BCU 13, a BCU 14 and a BCU 15. . .
[0057] It should be noted that the energy storage battery system 10 includes a plurality of BCUs. Figure 1 The BCU13, BCU14 and BCU15 shown as an example are only used to indicate the connection relationship between the BCU and other devices, and do not constitute a limitation on the number of BCUs.
[0058] Among them, multiple BCUs and inverters 11 are respectively connected to the CAN bus 12 for communication, and the inverter 11 is also connected to multiple BCUs.
[0059] Exemplarily, taking BCU13 as the first BCU connected to the inverter 11, BCU13 is the master node BCU, and BCU14, BCU15 and other BCUs are slave node BCUs.
[0060] It should be noted that multiple BCUs are configured to be initialized after power-on, wherein the master node BCU broadcasts an address allocation request message to the slave node BCU after power-on, and remains in a listening state, waiting for a response from the slave node BCU; the slave node BCU enters a listening state after power-on to check whether the broadcast message from the master node BCU is received, and the slave node BCU is configured with an initialization delay (for example, 500ms) to ensure that the master node can be started first.
[0061] In some embodiments, after multiple BCUs in the energy storage battery system 10 are powered on and initialized, the master node BCU 13 may be used to send address allocation request messages to multiple slave node BCUs.
[0062] The address allocation request message is used to instruct the slave node BCU that receives the message to send an address request message to the master node BCU. The address allocation request message may include the version number of the master node BCU 13, the device product serial number (SN) code, the total number of supported allocation nodes, and the current number of allocated nodes.
[0063] It should be noted that the broadcast ID of the address allocation request message can be, for example, a broadcast message identified by 0x7FF, or other preset broadcast IDs, which are used to characterize that the broadcast message is a broadcast for indicating that an address request message is sent from the node BCU. The embodiments of the present application do not specifically limit this.
[0064] Each slave node BCU sends an address request message to the master node BCU in response to the address allocation request message.
[0065] The address request message is used to instruct the master node BCU to allocate an address to the slave node BCU. The address request message may include the slave node BCU version number and device SN code, etc.
[0066] Further, the master node BCU 13 may be configured to send an address allocation message to the slave node BCU in response to the address request message.
[0067] The address allocation message includes the address allocated to the slave node BCU.
[0068] It can be understood that multiple BCUs in the energy storage battery system are connected and communicated through the CAN bus. After the multiple BCUs are powered on and initialized, the master node BCU13 automatically configures the address for the slave node BCU, which simplifies the communication connection method between multiple BCUs in the related technology. There is no need for manual operation by the user, which avoids address allocation errors caused by manual operation and improves the address configuration efficiency.
[0069] Optionally, in order to ensure the address configuration of the slave node BCU, the slave node BCU is further configured to send a confirmation message to the master node BCU in response to the address allocation message.
[0070] In this way, the master node BCU 13 can determine whether the slave node BCU has completed the address configuration by monitoring the confirmation message sent by the slave node BCU.
[0071] Further, when no confirmation message is received within the first preset time period, the master node BCU 13 sends an address allocation message to the slave node BCU.
[0072] It should be noted that the master node BCU13 starts timing after sending the address allocation message to the slave node BCU to determine whether it exceeds the first duration. The first preset duration can be set in advance in the master node BCU13 by the operation and maintenance personnel of the energy storage battery system, and can be 500ms, 1000ms, etc., which is not specifically limited in the embodiment of the present application.
[0073] In some embodiments, the master node BCU updates the device address table in response to the confirmation message returned by the slave node BCU, and records the slave node BCUs for which address allocation has been completed and the corresponding addresses, so as to facilitate determination of the message address in subsequent communication processes.
[0074] It can be understood that by monitoring the confirmation message after the slave node BCU receives the address allocation message, it is possible to confirm whether the slave node BCU has completed the address allocation normally, and if it is confirmed that the slave node BCU has not completed the address allocation, it is possible to continue to reallocate the address for the slave node BCU to ensure that all slave node BCUs complete the address allocation.
[0075] Optionally, based on the above technical solution for ensuring address allocation of slave node BCU, in order to prevent the master node BCU from having to send messages frequently and affecting the normal operation of the master node BCU, the master node BCU is also used to record the number of times address allocation messages are sent to the slave node BCU.
[0076] Further, the master node BCU updates the first preset duration according to the duration corresponding to the number of transmission times.
[0077] It should be noted that the duration corresponding to the number of transmissions can be set in advance in the master node BCU by the operation and maintenance personnel of the energy storage battery system. For example, the duration corresponding to the number of transmissions 1 is 1000ms, the duration corresponding to the number of transmissions 2 is 1500ms, and the duration corresponding to the number of transmissions 3 is 2000ms. The embodiment of the present application does not make specific limitations on this.
[0078] Exemplarily, if the number of transmission times is 2, the master node BCU determines that the duration corresponding to the number of transmission times 2 is 1500 ms, and then updates the first preset duration to 1500 ms.
[0079] Further, when the master node BCU does not receive a confirmation message within the first preset time period after the update, the master node BCU sends an address allocation message to the slave node BCU.
[0080] In some embodiments, when the master node BCU determines that the number of transmissions exceeds a preset number, an address allocation exception report is generated and reported, so that the operation and maintenance personnel can perform fault diagnosis on the energy storage battery system to ensure the normal operation of the energy storage battery system.
[0081] It can be understood that after the master node BCU sends an address allocation message to the slave node BCU, the time interval for re-sending the address allocation message to the slave node BCU is dynamically adjusted to reduce the number of times the master node BCU sends messages, and when the address allocation of the slave node BCU cannot be completed, it is reported to avoid affecting the normal operation of the energy storage battery system.
[0082] Optionally, in some embodiments, when the master node BCU receives messages sent by multiple slave node BCUs at the same time, some messages may be omitted and not responded to, which may result in the master node BCU possibly not responding to all address request messages sent by the slave node BCUs. In order to ensure that all slave node BCUs can receive the assigned addresses, the master node BCU is also used to determine the receiving timestamp after receiving the address request message.
[0083] Further, the master node BCU sends a conflict notification message to the slave node BCU when the time difference corresponding to at least two receiving timestamps is smaller than a preset threshold.
[0084] The conflict notification message is used to instruct the slave node BCU to resend the address request message.
[0085] It should be noted that the preset threshold value can be set in advance in the master node BCU by the operation and maintenance personnel of the energy storage battery system, and the embodiment of the present application does not specifically limit this.
[0086] It can be understood that based on the receiving timestamp of the address request message returned by the slave node BCU, conflict detection of slave node BCU address allocation is implemented to avoid the master node BCU missing some messages sent by the slave node BCU, thereby ensuring the allocation of slave node BCU addresses.
[0087] Optionally, in some embodiments, there may be multiple slave node BCUs at the master node BCU that need to be assigned addresses. In order to ensure that the address allocation can be carried out in an orderly manner, the master node BCU is also used to send address allocation messages to multiple slave node BCUs in order from high to low according to the priorities of the multiple slave node BCUs after receiving address request messages sent by multiple slave node BCUs.
[0088] It should be noted that the priority of the slave node BCU can be set in advance in the master node BCU by the operation and maintenance personnel of the energy storage battery system, wherein the priority of the slave node BCU can be determined based on the SN code of the slave node BCU, or can be determined based on the connection sequence between the slave node BCU and the inverter. The embodiment of the present application does not make specific limitations on this.
[0089] Optionally, during the operation of the energy storage battery system, in order to ensure that the communication process between the master node BCU and the slave node BCU can be carried out, the slave node BCU is configured to establish a communication connection with the master node BCU based on the allocated address after receiving the address allocation message sent by the master node BCU.
[0090] Furthermore, the slave node BCU periodically sends a heartbeat message to the master node BCU, so that the master node monitors the heartbeat message to determine whether the slave node BCU is disconnected.
[0091] It should be noted that the period for sending heartbeat messages from the node BCU can be set in advance in the slave node BCU by the operation and maintenance personnel of the energy storage battery system, for example, it can be 1s, 2s, etc., and the embodiment of the present application does not specifically limit this.
[0092] Further, when the master node BCU does not receive a heartbeat message sent by the slave node BCU within a second preset time interval, the master node BCU sends an address allocation message to the slave node BCU.
[0093] It can be understood that by configuring the slave node BCU to periodically send heartbeat messages, the master node BCU can monitor the connection status of the slave node BCU. When the slave node BCU loses connection, an address can be allocated to the slave node BCU again to ensure the communication connection between the master node BCU and the slave node BCU.
[0094] Figure 2 FIG. 1 is a flow chart of an address allocation method according to some exemplary embodiments. In some embodiments, the address allocation method can be applied to Figure 1 In the energy storage battery system 10 shown in the figure, the address allocation method is described below by taking the application of the address allocation method to the energy storage battery system 10 as an example.
[0095] like Figure 2 As shown, the address allocation method provided in the embodiment of the present application includes the following S201-S203.
[0096] S201. The master node BCU sends an address allocation request message to the slave node BCU.
[0097] As a possible implementation manner, the master node BCU broadcasts an address allocation request message to multiple slave node BCUs included in the energy storage battery system via the CAN bus in response to power-on or power demand of the energy storage battery system.
[0098] Correspondingly, the slave node BCU receives the address allocation request message sent by the master node BCU.
[0099] S202. The slave node BCU sends an address request message to the master node BCU in response to the address allocation request message.
[0100] As a possible implementation, the slave node BCU responds to the address allocation request message sent by the master node BCU, carries the BCU version number, SN code and other information in the address request message, and broadcasts the address request message to the master node BCU through the CAN bus.
[0101] It should be noted that the broadcast ID of the address request message can be, for example, a broadcast message identified by 0x100, or other preset broadcast IDs, which are used to characterize that the broadcast message is a broadcast for requesting the master node BCU to allocate an address to the slave node BCU. This embodiment of the present application does not specifically limit this.
[0102] Correspondingly, the master node BCU receives the address request message sent by the slave node BCU.
[0103] In some embodiments, in order to prevent the master node BCU from missing the address request message sent by the slave node BCU, the master node BCU is configured to determine the receiving timestamp after receiving the address request message sent by the slave node BCU. Then, when the time difference corresponding to at least two receiving timestamps is less than a preset threshold, a conflict notification message is sent to the slave node BCU. The conflict notification message is used to instruct the slave node BCU to resend the address request message. The receiving timestamp is used to determine whether there is a conflict in the request sent by the slave node BCU, so as to ensure that addresses are allocated to all slave node BCUs that have issued requests.
[0104] S203. The master node BCU sends an address allocation message to the slave node BCU in response to the address request message.
[0105] The address allocation message includes the address allocated to the slave node BCU.
[0106] As a possible implementation manner, after receiving the address request message sent by the slave node BCU, the master node BCU determines the address allocated to the slave node BCU, carries the address in the address allocation message, and sends it to the slave node BCU.
[0107] Correspondingly, the slave node BCU receives the address allocation message sent by the master node BCU, obtains the address allocated by the master node BCU, stores the allocated address, and establishes a communication connection with the master node BCU.
[0108] If the slave node BCU does not receive the address allocation message within the third preset time period, it sends an address request message to the master node BCU again, so that the master node BCU re-allocates an address for the slave node BCU.
[0109] In some embodiments, in order to ensure that the address of the slave node BCU is configured, the slave node BCU sends a confirmation message to the master node BCU in response to the address allocation message, so that the master node BCU determines that the address of the slave node BCU is configured after listening to the confirmation message. Further, the master node BCU updates the device address table to record the corresponding relationship between the slave node BCU and the allocated address.
[0110] If the master node BCU does not receive the confirmation message within the first preset time period, it sends the address allocation message to the slave node BCU again to re-allocate the address for the slave node BCU.
[0111] The master node BCU may also adjust and update the first preset duration according to the number of times the address allocation message is sent to the slave node BCU, so as to avoid the master node BCU sending the address to the slave node BCU multiple times in a short period of time, thereby occupying too many communication resources.
[0112] In some embodiments, there may be multiple slave node BCUs waiting for address allocation at the master node BCU. In order to ensure that address allocation can be carried out in an orderly manner, the master node BCU is also used to send address allocation messages to multiple slave node BCUs in sequence from high to low according to the priorities of the multiple slave node BCUs after receiving address request messages sent by the multiple slave node BCUs.
[0113] In some embodiments, during the operation of the energy storage battery system, in order to ensure that the communication process between the master node BCU and the slave node BCU can be carried out, the slave node BCU is configured to establish a communication connection with the master node BCU based on the allocated address after receiving the address allocation message sent by the master node BCU. Further, the slave node BCU periodically sends a heartbeat message to the master node BCU so that the master node listens to the heartbeat message to determine whether the slave node BCU is out of connection. If the master node BCU does not receive the heartbeat message sent by the slave node BCU within the second preset time interval, an address allocation message is sent to the slave node BCU.
[0114] It can be understood that in the address allocation method provided in the present application, multiple BCUs communicate through the CAN bus connection. When the address needs to be allocated, the first BCU connected to the inverter is used as the master node, and communicates and interacts with other slave node BCUs through the CAN bus. The slave node BCU can communicate end-to-end with the master node BCU through the CAN bus to obtain the address allocated by the master node BCU without occupying the IO port resources of the BCU. In addition, in the address allocation process, there is no need for manual configuration by the user, which improves the debugging efficiency of the energy storage battery system.
[0115] In one design, Figure 3 A flowchart of an address allocation method provided in the present application shows the execution flow of the master node BCU, including S301-S308.
[0116] S301, the master node BCU is powered on and initialized.
[0117] The initialized system parameters include the above-mentioned first preset duration (response timeout duration), the second preset duration (heartbeat timeout duration) and the device address table.
[0118] S302: The master node BCU broadcasts an address allocation request message to the slave node BCU.
[0119] S303: The master node BCU receives the address request message sent by the slave node BCU.
[0120] S304. The master node BCU determines whether there is a conflict based on the received timestamp.
[0121] It should be noted that if there is a conflict, step S305 is executed, and if there is no conflict, step S306 is executed.
[0122] S305. The master node BCU sends a conflict notification message to the slave node BCU.
[0123] S306: The master node BCU adds the slave node BCU to the address request list.
[0124] S307: The master node BCU sends an address allocation message to the slave node BCUs in the address request list.
[0125] S308: The master node BCU determines whether it has monitored the heartbeat message sent by the slave node BCU.
[0126] It should be noted that if the heartbeat message sent by the slave node BCU is monitored, it indicates that the communication connection between the master node BCU and the slave node BCU is normal. If the heartbeat message sent by the slave node BCU is not monitored, the address request list in the above step S306 is updated based on the slave node BCU.
[0127] It should be noted that the specific implementation method of the above steps S301-S308 can refer to the records of the above embodiments of the present application, and will not be repeated here.
[0128] In one design, Figure 4 A flowchart of an address allocation method provided in the present application shows the execution process of the slave node BCU, including S401-S406.
[0129] S401. The slave node BCU sends an address request message to the master node BCU in response to an address allocation request message.
[0130] S402: The slave node BCU determines whether a response message from the master node is received within a third preset time period.
[0131] It should be noted that if the slave node BCU does not receive a response message from the master node, step S403 is executed; if the slave node BCU receives a response message from the master node within the third preset time period, step S404 is executed.
[0132] S403: The slave node BCU resends an address request message to the master node BCU.
[0133] S404. The slave node BCU obtains the allocated address and sends a confirmation message to the master node BCU.
[0134] S405. The slave node BCU stores the address and establishes a communication connection with the master node BCU.
[0135] S406. The slave node BCU periodically sends a heartbeat message to the master node BCU.
[0136] It should be noted that the specific implementation method of the above steps S401-S406 can refer to the records of the above embodiments of the present application, and will not be repeated here.
[0137] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of the method. In order to realize the above functions, it includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiment disclosed herein, the embodiment of the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.
[0138] The embodiment of the present application can divide the functional modules of the user equipment according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of software functional modules. Optionally, the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0139] Figure 5 Schematic diagram of the structure of an address allocation device provided in an embodiment of the present application. The address allocation device is used to execute the above-mentioned address allocation method. Figure 5 As shown, the address allocation device 50 includes a sending unit 501 and a receiving unit 502 .
[0140] The sending unit 501 is configured to send an address allocation request message to the slave node BCU.
[0141] The receiving unit 502 is configured to receive an address request message sent by the slave BCU in response to an address allocation request message.
[0142] The sending unit 501 is further configured to send an address allocation message to the slave node BCU in response to the address request message, where the address allocation message includes an address allocated to the slave node BCU.
[0143] Optional, such as Figure 5 As shown, the address allocation device 50 provided in the embodiment of the present application further includes a processing unit 503.
[0144] The processing unit 503 is configured to monitor a confirmation message sent by the slave node BCU in response to the address allocation message.
[0145] The sending unit 501 is further configured to send an address allocation message to the slave node BCU if no confirmation message is received within a first preset time period.
[0146] Optional, such as Figure 5 As shown, in the address allocation device 50 provided in the embodiment of the present application, the processing unit 503 is also used to record the number of times the address allocation message is sent to the slave node BCU; and update the first preset duration according to the duration corresponding to the number of transmissions.
[0147] The sending unit 501 is further configured to send an address allocation message to the slave node BCU when the master node BCU does not receive a confirmation message within the updated first preset time period.
[0148] Optional, such as Figure 5 As shown, in the address allocation device 50 provided in the embodiment of the present application, the processing unit 503 is further used to determine a receiving timestamp after receiving the address request message.
[0149] The sending unit 501 is further used to send a conflict notification message to the slave node BCU when the time difference corresponding to at least two receiving timestamps is less than a preset threshold, and the conflict notification message is used to instruct the slave node BCU to resend the address request message.
[0150] Optional, such as Figure 5 As shown, in the address allocation device 50 provided in the embodiment of the present application, the sending unit 501 is also used to send the address allocation message to the multiple slave node BCUs in sequence from high to low according to the priorities of the multiple slave node BCUs after receiving the address request messages sent by the multiple slave node BCUs.
[0151] Optional, such as Figure 5 As shown, in the address allocation device 50 provided in the embodiment of the present application, the sending unit 501 is further used to send the address allocation message to the slave node BCU when the heartbeat message sent by the slave node BCU is not received within a second preset time interval.
[0152] Optional, such as Figure 5 As shown, in the address allocation device 50 provided in the embodiment of the present application, the processing unit 503 is further used to update the device address table in response to the confirmation message returned from the slave node BCU.
[0153] In the case of implementing the functions of the above-mentioned integrated modules in the form of hardware, the embodiment of the present application provides a possible structural diagram of a BCU. The BCU is used to execute the address allocation method executed by the address allocation device in the above-mentioned embodiment. Figure 6 As shown, the BCU 60 includes a processor 601, a memory 602 and a bus 603. The processor 601 and the memory 602 may be connected via the bus 603.
[0154] The processor 601 is the control center of the BCU, which can be a processor or a general term for multiple processing elements. For example, the processor 601 can be a general-purpose central processing unit (CPU) or other general-purpose processors. Among them, the general-purpose processor can be a microprocessor or any conventional processor.
[0155] As an embodiment, the processor 601 may include one or more CPUs, such as Figure 6 CPU 0 and CPU 1 are shown in .
[0156] The memory 602 may be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (RAM) or other type of dynamic storage device that can store information and instructions, an electrically erasable programmable read-only memory (EEPROM), a disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to these.
[0157] As a possible implementation, the memory 602 may exist independently of the processor 601, and the memory 602 may be connected to the processor 601 via a bus 603 to store instructions or program codes. When the processor 601 calls and executes the instructions or program codes stored in the memory 602, the address allocation method provided in the embodiment of the present application can be implemented.
[0158] In another possible implementation, the memory 602 may also be integrated with the processor 601 .
[0159] The bus 603 may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0160] It should be pointed out that Figure 6 The structure shown does not constitute a limitation on the BCU 60. Figure 6 In addition to the components shown, the BCU 60 may include Figure 6 More or fewer components, or combinations of certain components, or different arrangements of components may be shown.
[0161] As an example, combining Figure 5 The functions implemented by the sending unit 501, the receiving unit 502 and the processing unit 503 in the address allocation device 50 are similar to those implemented by Figure 6 The function of processor 601 in is the same.
[0162] Optional, such as Figure 6 As shown, the BCU provided in the embodiment of the present application may also include a communication interface 604.
[0163] The communication interface 604 is used to connect with other devices through a communication network. The communication network may be Ethernet, wireless access network, wireless local area network (WLAN), etc. The communication interface 604 may include an acquisition unit for receiving data and a sending unit for sending data.
[0164] In one design, in the BCU provided in an embodiment of the present application, the communication interface can also be integrated into the processor.
[0165] Through the description of the above implementation methods, those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above functional units is used as an example. In practical applications, the above functions can be assigned to different functional units as needed, that is, the internal structure of the device can be divided into different functional units to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0166] An embodiment of the present application also provides a computer-readable storage medium, in which instructions are stored. When a computer executes the instructions, the computer executes each step in the method flow shown in the above method embodiment.
[0167] An embodiment of the present application provides a computer program product including instructions. When the instructions are executed on a computer, the computer executes the address allocation method in the above method embodiment.
[0168] Among them, the computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable computer disk, and a hard disk. Random Access Memory (RAM), Read-Only Memory (ROM), Erasable Programmable Read Only Memory (EPROM), registers, hard disks, optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any other form of computer-readable storage medium in a suitable combination of the above, or numerical values in the art. An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an Application Specific Integrated Circuit (ASIC). In the embodiments of the present application, a computer-readable storage medium may be any tangible medium that contains or stores a program, which may be used by or in conjunction with an instruction execution system, apparatus, or device.
[0169] Since the apparatus, device computer-readable storage medium, and computer program product in the embodiments of the present application can be applied to the above-mentioned method, the technical effects that can be obtained can also refer to the above-mentioned method embodiments, and the embodiments of the present application will not be described in detail here.
[0170] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. An energy storage battery system, characterized in that: It includes an inverter, a plurality of battery cluster management units (BCUs) and a controller area network (CAN) bus, wherein the first BCU connected to the inverter among the plurality of BCUs is a master node BCU, and the BCUs other than the master node BCU among the plurality of BCUs are slave node BCUs, and the plurality of BCUs are connected to the CAN bus; The master node BCU sends an address allocation request message to the slave node BCU; The slave node BCU sends an address request message to the master node BCU in response to the address allocation request message; In response to the address request message, the master node BCU sends an address allocation message to the slave node BCU, where the address allocation message includes an address allocated to the slave node BCU.
2. The energy storage battery system according to claim 1, characterized in that: The slave node BCU sends a confirmation message to the master node BCU in response to the address allocation message; The master node BCU monitors the confirmation message; When the master node BCU fails to receive the confirmation message within a first preset time period, the master node BCU sends the address allocation message to the slave node BCU.
3. The energy storage battery system according to claim 2, characterized in that: The master node BCU records the number of times the address allocation message is sent to the slave node BCU; Update the first preset duration according to the duration corresponding to the number of sending times; When the master node BCU fails to receive the confirmation message within the updated first preset time period, the master node BCU sends the address allocation message to the slave node BCU.
4. The energy storage battery system according to any one of claims 1 to 3, characterized in that: After receiving the address request message, the master node BCU determines a receiving timestamp; In the case that the time difference corresponding to at least two of the receiving timestamps is smaller than a preset threshold, a conflict notification message is sent to the slave node BCU, where the conflict notification message is used to instruct the slave node BCU to resend the address request message.
5. The energy storage battery system according to any one of claims 1 to 3, characterized in that: The master node BCU sends an address allocation message to the slave node BCU in response to the address request message, including: After receiving the address request messages sent by the multiple slave node BCUs, the master node BCU sends the address allocation messages to the multiple slave node BCUs in order from high to low according to the priorities of the multiple slave node BCUs.
6. The energy storage battery system according to any one of claims 1 to 3, characterized in that: The slave node BCU periodically sends a heartbeat message to the master node BCU; When the master node BCU does not receive the heartbeat message sent by the slave node BCU within a second preset time interval, the master node BCU sends the address allocation message to the slave node BCU.
7. The energy storage battery system according to claim 2, characterized in that: The master node BCU updates the device address table in response to the confirmation message returned by the slave node BCU.
8. An address allocation method, characterized in that: A master node battery cluster management unit BCU applied to an energy storage battery system, the energy storage battery system further comprising an inverter, a slave node BCU and a controller area network CAN bus, the master node BCU and the slave node BCU are both connected to the CAN bus, the method comprising: Sending an address allocation request message to the slave node BCU; receiving an address request message sent by the slave node BCU in response to the address allocation request message; In response to the address request message, an address allocation message is sent to the slave node BCU, the address allocation message including an address allocated to the slave node BCU.
9. An address allocation device, characterized in that: A master node battery cluster management unit BCU deployed in an energy storage battery system, wherein the energy storage battery system further comprises an inverter, a slave node BCU and a controller area network CAN bus, wherein both the master node BCU and the slave node BCU are connected to the CAN bus; the address allocation device comprises a sending unit and a receiving unit; The sending unit is used to send an address allocation request message to the slave node BCU; The receiving unit is configured to receive an address request message sent by the slave node BCU in response to the address allocation request message; The sending unit is further configured to send an address allocation message to the slave node BCU in response to the address request message, wherein the address allocation message includes an address allocated to the slave node BCU.
10. A battery cluster management unit, characterized in that: including memory and processor; The memory is coupled to the processor; The memory is used to store computer program code, wherein the computer program code includes computer instructions; When the processor executes the computer instructions, the battery cluster management unit performs the address allocation method according to claim 8.