Battery-based automatic id assignment system
By connecting the battery control management unit and the battery management unit in a closed loop, fast and time-independent ID allocation is achieved, solving the problems of complex ID allocation and system impact due to disconnection in the existing technology, and improving the robustness and configuration efficiency of the battery management system.
Patent Information
- Application Number
- CN202310180118.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-17
- Publication Date
- 2025-11-11
- Estimated Expiration
- 2043-02-17
AI Technical Summary
The ID allocation process in existing battery management systems is complex and has strict timing requirements. When the system is disconnected, it cannot continue to configure all IDs, which affects the robustness of the system.
The battery control management unit is connected in a closed loop with multiple battery management units. The ID configuration command is sent through the first interface to update the ID step by step until the ID allocation is completed. In the event of a disconnection, reverse configuration is used to ensure that the IDs of all units are configured successfully.
It achieves a fast, non-strictly time-sequenced ID allocation process, and can automatically complete ID configuration even in the event of a disconnection, thereby improving the robustness and configuration efficiency of the system.
Smart Images

Figure CN116207378B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of battery management technology, and in particular to a battery-based automatic ID allocation system. Background Technology
[0002] A Battery Management System (BMS) is a crucial component of an energy storage system. Its primary function is to collect and control various information and states of the battery pack, thereby enabling the storage and release of electrical energy. A typical BMS for energy storage consists of two parts: a Battery Control Management Unit (BCMU) and a Battery Management Unit (BMU).
[0003] One BCMU typically matches multiple BMUs. BCMUs and BMUs can communicate via Controller Area Network (CAN). In a CAN network, all devices must have unique IDs, meaning the BCMU and BMUs must be assigned different IDs. The current method involves the BCMU periodically sending CAN messages to the BMUs and waiting for periodic responses from the BMUs to complete the ID configuration for all devices one by one.
[0004] However, existing technologies have the following drawbacks: the configuration process is very complex, requiring each BMU to strictly follow the timing sequence for ID configuration, and there is a problem that if the connection is lost, it is impossible to continue configuring all IDs. Therefore, it is necessary to propose an ID configuration method that can solve the above problems. Summary of the Invention
[0005] This application provides a battery-based automatic ID allocation system to solve the problems of complex and strictly timed execution in existing ID allocation processes.
[0006] In a first aspect, this application provides a battery-based automatic ID allocation system, the system comprising a battery control management unit and multiple battery management units, wherein the battery control management unit and the multiple battery management units are connected in a closed loop, wherein...
[0007] The battery control management unit is used to send a first ID configuration command to the first battery management unit through the first interface;
[0008] The first battery management unit is used to update the first ID configuration command according to the previous ID in the first ID configuration command, and send the updated first ID configuration command to the next battery management unit, so that the next battery management unit performs ID configuration according to the updated ID in the updated first ID configuration command; wherein, the previous ID includes the ID of the battery control management unit, and the updated ID is the ID of the first battery management unit;
[0009] The process of sending the updated first ID configuration command to the next battery management unit is repeated until the second interface of the battery control management unit receives the ID configuration feedback from the last battery management unit, at which point ID allocation is completed; wherein, the ID configuration feedback includes the ID configured with the battery management unit ID of the battery control management unit through the second interface.
[0010] In one possible implementation, the battery management unit is specifically used for:
[0011] The previous ID is added to a preset value, and the result is used as the ID of the current battery management unit and updated in the first ID configuration command;
[0012] The updated first ID configuration command is sent to the next battery management unit so that the next battery management unit performs ID configuration according to the updated ID in the updated first ID configuration command; wherein the ID configuration method of the next battery management unit is consistent with the ID configuration method of the current battery management unit.
[0013] In one possible implementation, the battery control management unit is further configured to: based on a preset time threshold, if no ID configuration feedback is received from the battery management unit through the second interface, confirm that the ID allocation through the first interface has failed, and send a second ID configuration command to the battery management unit through the second interface for reverse configuration.
[0014] In one possible implementation, the battery control management unit is used to send a second ID configuration command to the last battery management unit via a second interface;
[0015] The last battery management unit is used to update the second ID configuration command according to the previous ID in the second ID configuration command, and send the updated second ID configuration command to the next battery management unit, so that the next battery management unit performs ID configuration according to the updated ID in the updated second ID configuration command; wherein, the previous ID includes the ID of the battery control management unit, and the updated ID is the ID of the last battery management unit;
[0016] The process of sending the updated second ID configuration command to the next battery management unit is repeated until the first interface of the battery control management unit receives the ID configuration feedback from the first battery management unit, at which point ID allocation is completed; wherein, the ID configuration feedback includes the ID configured with the battery management unit ID of the battery control management unit through the first interface.
[0017] In one possible implementation, the battery management unit is specifically used for:
[0018] Subtract the previous ID from the preset value, and use the result of the subtraction as the ID of the current battery management unit, and update it in the second ID configuration command;
[0019] The updated second ID configuration command is sent from the current battery management unit to the next battery management unit, so that the next battery management unit performs ID configuration according to the updated ID in the updated second ID configuration command; wherein the ID configuration method of the next battery management unit is consistent with the ID configuration method of the current battery management unit.
[0020] In one possible implementation, if the battery control management unit does not receive the ID configuration feedback of the battery management unit through the first interface, it determines whether there are any remaining battery management units without configured IDs based on the battery management units with configured IDs and the total number of battery management units.
[0021] If there is a remaining battery management unit, then select a target battery management unit from the remaining battery management units and send a third ID configuration command to the target battery management unit to configure the IDs of the remaining battery management units on both sides of the target battery management unit.
[0022] In one possible implementation, the battery control management unit is used for:
[0023] Based on the CAN message fed back by the battery management unit with the configured ID, obtain the total number of battery management units with the configured ID;
[0024] Based on the total number of configurations and the total number of battery management units, determine whether there are any remaining battery management units without configured IDs, and obtain the number of remaining battery management units.
[0025] In one possible implementation, if the remaining battery management unit is present, the battery control management unit is specifically used for:
[0026] The fourth ID configuration command is broadcast through the third interface, and feedback from the remaining battery management unit is received. The third interface is a CAN interface.
[0027] A target battery management unit is randomly selected from the feedback of the remaining battery management units.
[0028] In one possible implementation, the first interface and the second interface are digital interfaces.
[0029] In one possible implementation, the battery management unit includes a first communication interface and a second communication interface, wherein the first communication interface is connected to a previous battery management unit and the second communication interface is connected to a next battery management unit.
[0030] The battery management unit is used to update the ID configuration command according to the communication interface that receives the ID configuration command.
[0031] This application provides a battery-based automatic ID allocation system. The system includes a battery control management unit and multiple battery management units connected in a closed loop. The battery control management unit sends a first ID configuration command to a first battery management unit via a first interface. The first battery management unit updates the first ID configuration command based on the previous ID in the first ID configuration command and sends the updated first ID configuration command to the next battery management unit, so that the next battery management unit performs ID configuration based on the updated ID in the updated first ID configuration command. The previous ID includes the ID of the battery control management unit, and the updated ID is the ID of the first battery management unit. The step of sending the updated first ID configuration command to the next battery management unit is repeated until the second interface of the battery control management unit receives ID configuration feedback from the last battery management unit, thus completing the ID allocation. The ID configuration feedback includes the ID configured with the battery management unit ID through the second interface.
[0032] In the above method, a single battery control management unit and multiple battery management units are grouped together, and the units are connected in series to form a closed loop. Therefore, the battery control management unit is connected to two battery management units. The battery management unit connected to the first interface of the battery control management unit is the head, and the battery management unit connected to the second interface of the battery control management unit is the tail. The battery control management unit sends a first ID configuration command through the first interface, so that the battery management unit performs ID configuration from head to tail until it receives the ID configuration result from the second interface of the battery management unit, and the ID allocation is completed. This process does not have strict timing requirements and can complete ID allocation in real time and quickly. Attached Figure Description
[0033] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0034] Figure 1 A schematic diagram of a battery-based automatic ID allocation system provided in an embodiment of this application;
[0035] Figure 2 A flowchart illustrating a battery-based automatic ID allocation system provided in this application embodiment. Figure 1 ;
[0036] Figure 3 A flowchart illustrating a battery-based automatic ID allocation system provided in this application embodiment. Figure 2 ;
[0037] Figure 4 A flowchart illustrating a battery-based automatic ID allocation system provided in this application embodiment. Figure 3 . Detailed Implementation
[0038] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0039] A battery management system (BMS) includes a battery control management unit (BCU) and battery management units (BMUs). A single BCU and multiple BMUs constitute a battery cluster. A BMS can contain multiple battery clusters. Taking a single battery cluster as an example, in existing technologies, the battery clusters are connected with the BCU as the first unit, followed by multiple BMUs connected in series. The series connection uses wiring capable of transmitting high and low voltage levels. Simultaneously, the BCU and multiple BMUs are connected in parallel on a CAN bus. The existing method for ID allocation is as follows:
[0040] The battery control management unit sends a high-level signal to the battery management unit (BMU) and periodically sends a CAN message frame. Upon receiving the high-level signal, the first BMU starts CAN message reception. After receiving the CAN message, it configures its ID and sends the configuration result back to the BMU, then sends a high-level signal to the next BMU. The BMU periodically sends a new CAN message frame. Upon receiving the high-level signal, the next BMU starts CAN message reception, configures its ID according to the new message, and sends feedback and a high-level signal back to the first BMU. This process continues until all BMUs have completed their ID configuration.
[0041] As can be seen from the existing technology, the existing technology has a complex interaction process. Each battery management unit has to wait for high-level indication and CAN message indication, which takes a long time and has obvious timing. If a link is disconnected, the high-level transmission cannot continue, and all ID allocation cannot be completed, thus affecting the system operation, indicating that the system has poor robustness.
[0042] Therefore, this application proposes a faster, less time-sensitive automatic ID allocation system that can resolve disconnection issues to improve system performance.
[0043] The implementation process of ID allocation in this application is described below with reference to the accompanying drawings and specific embodiments.
[0044] Figure 1 This is a schematic diagram of a battery-based automatic ID allocation system provided in an embodiment of this application. Figure 1 As shown, the system includes: a battery control management unit (BCMU) and a battery management unit (BMU). One battery control management unit and multiple battery management units are connected in a closed loop. Specifically, the battery management unit connected to the first interface of the battery control management unit is used as the first battery management unit, and they are connected in series until the last battery management unit. The last battery management unit is then connected back to the battery control management unit through the second interface of the battery control management unit, forming a closed loop.
[0045] The battery control management unit and multiple battery management units are connected in parallel on the CAN bus, with the battery control management unit connected to the CAN bus through its third interface;
[0046] During ID allocation, the battery control management unit sends an ID configuration command through its first interface, instructing each battery management unit to allocate IDs according to the command. This continues until the last battery management unit completes its allocation and sends back the configured ID information through its second interface. This completes the ID configuration for the battery control management unit and each battery management unit. This process does not have strict timing requirements, and the ID allocation process is relatively simple and can be completed quickly (within 1 second). Furthermore, the ID allocation process is dynamic and real-time, so it does not affect the addition or removal of battery management units.
[0047] The following is combined with Figure 1 , Figure 2 The process of achieving fast allocation in ID allocation of this application is illustrated with specific embodiments.
[0048] Figure 2 A flowchart illustrating a battery-based automatic ID allocation system provided in this application embodiment. Figure 1 .like Figure 2 As shown, the system includes: a battery control management unit and multiple battery management units, wherein the battery control management unit and the multiple battery management units are connected in a closed loop.
[0049] The battery control management unit is used to send a first ID configuration command to the first battery management unit through the first interface.
[0050] Both the battery control management unit and the battery management unit need to be configured with ID. Starting from the battery control management unit, the first ID configuration command issued through the first interface includes the ID of the battery control management unit itself. The first battery management unit that receives the first ID configuration command can configure its own ID based on that ID.
[0051] The first battery management unit is used to update the first ID configuration command according to the previous ID in the first ID configuration command, and send the updated first ID configuration command to the next battery management unit, so that the next battery management unit performs ID configuration according to the updated ID in the updated first ID configuration command; wherein, the previous ID includes the ID of the battery control management unit, and the updated ID is the ID of the first battery management unit.
[0052] The first battery management unit can receive a first ID configuration command sent by the battery control management unit. This first ID configuration command includes the previous ID, which is the ID of the previous unit. For the first battery management unit, the previous unit is the battery control management unit, so the previous ID is the ID of the battery control management unit. The first battery management unit can configure its own ID according to the previous ID and update its own ID information to the first ID configuration command. The IDs of each unit are different. The units include the battery control management unit and the battery management unit.
[0053] The updated first ID configuration command includes the ID of the current unit and the current battery management unit. After updating the first ID configuration command, the new first ID configuration command is passed to the next battery management unit, so that the next battery management unit configures its own ID according to the updated ID in the new first ID configuration command. In this step, the current battery management unit is the first battery management unit, and the next battery management unit is the second battery management unit. The first battery management unit configures its ID according to the ID of the battery control management unit, and the second battery management unit configures its ID according to the ID of the first battery management unit.
[0054] The process of sending the updated first ID configuration command to the next battery management unit is repeated until the second interface of the battery control management unit receives the ID configuration feedback from the last battery management unit, at which point ID allocation is completed; wherein, the ID configuration feedback includes the ID configured with the battery management unit ID of the battery control management unit through the second interface.
[0055] Multiple battery management units need to be configured with ID. Except for the first battery management unit, which receives the first ID configuration command from the battery control management unit, the other battery management units will receive the updated first ID configuration command from the previous battery management unit. Except for the last battery management unit, which will send the response to the updated first ID configuration command back to the battery control management unit, the other battery management units will pass the updated first ID configuration command to the next battery management unit.
[0056] Once the last battery management unit completes its ID configuration, it can send the ID configuration back to the battery control management unit via the second interface of the battery control management unit, so that the battery control management unit knows that the ID configuration of all units under the battery cluster has been completed.
[0057] Each cell in the battery cluster needs to be configured with a different ID. The specific methods for configuring different IDs include:
[0058] For example, the battery management unit is specifically used to: add the previous ID to a preset value, use the result of the addition as the ID of the current battery management unit, and update it in the first ID configuration command;
[0059] The updated first ID configuration command is sent to the next battery management unit so that the next battery management unit performs ID configuration according to the updated ID in the updated first ID configuration command; wherein the ID configuration method of the next battery management unit is consistent with the ID configuration method of the current battery management unit.
[0060] The first ID configuration command sent by the battery control management unit to the battery management unit includes the battery control management unit's own ID. When the current battery management unit receives the first ID configuration command, it adds the previous ID in the first ID configuration command to a preset value to obtain the ID of the current battery management unit, and updates the ID of the current battery management unit in the first ID configuration command. The updated first ID configuration command is sent from the current battery management unit to the next battery management unit, and so on, so that subsequent units can continue to perform ID configuration based on the new ID.
[0061] For example, the ID of the battery control management unit is 0, and the default value is 1. When there are n battery management units, the first ID configuration command includes the battery control management unit ID = 0; the first battery management unit ID = 0 + 1, and the updated first ID configuration command for the first battery management unit includes the first battery management unit ID = 1; the second battery management unit ID = 1 + 1, and the updated first ID configuration command for the second battery management unit includes the second battery management unit ID = 2; finally, the ID of the nth battery management unit = n-1 + 1; and if 100 units are considered as a battery cluster, this embodiment can complete the ID configuration in less than 1 second, which is faster than the existing technical solutions.
[0062] In this embodiment, a single battery control management unit and multiple battery management units are clustered together, and the units are connected in series to form a closed loop. Therefore, the battery control management unit is connected to two battery management units. The battery management unit connected to the first interface of the battery control management unit is the head, and the battery management unit connected to the second interface of the battery control management unit is the tail. The battery control management unit sends a first ID configuration command through the first interface, so that the battery management unit performs ID configuration from head to tail until it receives the ID configuration result from the battery management unit through the second interface, until the ID allocation is completed. This process does not have strict timing requirements and can complete ID allocation in real time and quickly.
[0063] Furthermore, the aforementioned ID configuration process can be dynamic and real-time. For example, if the battery control management unit sends the first ID configuration command in real time, the battery management unit can add or remove IDs at any time without affecting the ID configuration, thus enhancing the system's management of the battery management unit.
[0064] The following is combined with Figure 1 , Figure 3 The specific embodiments illustrate the ID allocation process in this application when the forward configuration is interrupted.
[0065] Figure 3 A flowchart illustrating a battery-based automatic ID allocation system provided in this application embodiment. Figure 2 .like Figure 3 As shown, the system includes:
[0066] The battery control management unit is also used to: based on a preset time threshold, if it does not receive ID configuration feedback from the battery management unit through the second interface, confirm that the ID allocation through the first interface has failed, and send a second ID configuration command to the battery management unit through the second interface to perform reverse configuration.
[0067] Although the Battery Control Management Unit (BCU) is connected to multiple Battery Management Units (BMUs) end-to-end, there is still a direction. The information transmission direction from the first interface of the BCU to the second interface is considered forward, and the transmission from the second interface to the first interface is reverse. If, during forward configuration, the BCU fails to receive ID configuration feedback from the second interface, it indicates a possible disconnection or damage to the BMU, resulting in forward configuration failure. In this case, reverse configuration can be used to configure the ID of the BMU that has not yet completed ID configuration. The ID configuration process is very fast. A threshold longer than the configuration time can be set to identify configuration failure. For example, after the BCU issues the first ID configuration command, wait 2 seconds. If no feedback is received from the second interface within 2 seconds, it is considered a forward configuration failure.
[0068] The reverse configuration process is similar to the forward configuration process, as shown in the example:
[0069] The reverse configuration includes: the battery control management unit is used to send a second ID configuration command to the last battery management unit through the second interface.
[0070] Both the battery control management unit and the battery management unit need to be configured with ID. Starting from the battery control management unit, the first ID configuration command issued through the second interface includes the ID of the battery control management unit itself. The last battery management unit that receives the first ID configuration command can configure its own ID based on that ID.
[0071] The last battery management unit is used to update the second ID configuration command according to the previous ID in the second ID configuration command, and send the updated second ID configuration command to the next battery management unit, so that the next battery management unit performs ID configuration according to the updated ID in the updated second ID configuration command; wherein, the previous ID includes the ID of the battery control management unit, and the updated ID is the ID of the last battery management unit.
[0072] This process is similar to the forward configuration process in the above embodiments, and will not be described again in this embodiment; the difference is that in forward configuration, the last battery management unit feeds back the final result to the battery control management unit, while in reverse configuration, the first battery management unit feeds back the final result to the battery control management unit.
[0073] The process of sending the updated second ID configuration command to the next battery management unit is repeated until the first interface of the battery control management unit receives the ID configuration feedback from the first battery management unit, at which point ID allocation is completed; wherein, the ID configuration feedback includes the ID configured with the battery management unit ID of the battery control management unit through the first interface.
[0074] The ID update and transmission process in the reverse configuration process is similar to that in the forward configuration process, and will not be described again in this embodiment.
[0075] Each cell in the battery cluster needs to be configured with a different ID. The specific methods for configuring different IDs include:
[0076] For example, the battery management unit is specifically used to: subtract the previous ID from the preset value, use the result of the subtraction as the current ID of the battery management unit, and update it in the second ID configuration command;
[0077] The updated second ID configuration command is sent from the current battery management unit to the next battery management unit, so that the next battery management unit performs ID configuration according to the updated ID in the updated second ID configuration command; wherein the ID configuration method of the next battery management unit is consistent with the ID configuration method of the current battery management unit.
[0078] The second ID configuration command sent by the battery control management unit to the battery management unit includes the battery control management unit's own ID. When the current battery management unit receives the second ID configuration command, it subtracts the previous ID in the second ID configuration command from the preset value to obtain the ID of the current battery management unit, and updates the second ID configuration command with the ID of the current battery management unit. The updated second ID configuration command is sent from the current battery management unit to the next battery management unit, and so on, so that subsequent units can continue to perform ID configuration based on the new ID.
[0079] Reverse configuration is triggered after the forward configuration disconnection. The ID of the battery control management unit itself during the reverse configuration process can still be the ID during the forward configuration process, without overwriting the ID of the battery control management unit during the forward configuration. However, the ID of the battery control management unit passed by its second ID configuration command can be a pre-set value.
[0080] For example, if the ID of the battery control management unit is 0, and the default value is 1, and there are n battery management units, the second ID configuration command includes the battery control management unit ID = 254. This 254 is mainly used to configure the ID of subsequent units and may not be configured for the battery control management unit (or it may be configured for the battery control management unit); the last battery management unit ID is 254-1, and the updated second ID configuration command for the last battery management unit includes the last battery management unit ID = 253; the second to last battery management unit ID is 253-1, and the updated second ID configuration command for the second to last battery management unit includes the second to last battery management unit ID = 252; finally, the first battery management unit ID is 254-n;
[0081] The specific example above indicates that when configuring the ID in reverse, it may overwrite the ID configured in forward until returning to the battery control management unit from the first interface. If the reverse configuration can return to the battery control management unit from the first interface, it means that the reverse configuration has not been disconnected. If the reverse configuration cannot return to the first interface, and the sum of the number of battery management units configured in forward and reverse is equal to the total number of battery management units, it means that the disconnection of forward and reverse configurations occurred at the same location. If the sum of the number of battery management units configured in forward and reverse is less than the total number of battery management units, it is necessary to further configure the IDs of the battery management units that have not completed ID configuration.
[0082] This application embodiment includes performing reverse configuration when forward configuration fails, further ensuring that each battery management unit can successfully complete ID configuration, and ensuring that automated ID configuration can still be performed when a disconnection occurs, thus avoiding impact on system operation.
[0083] The following is combined with Figure 1 , Figure 4 The specific embodiments illustrate the configuration process of allocating the ID of the remaining unit when the ID allocation is interrupted.
[0084] Figure 4 A flowchart illustrating a battery-based automatic ID allocation system provided in this application embodiment. Figure 3 .like Figure 4 As shown, the system includes:
[0085] If the battery control management unit does not receive the ID configuration feedback of the battery management unit through the first interface, it will determine whether there are any remaining battery management units without configured IDs based on the battery management units with configured IDs and the total number of battery management units.
[0086] If there is a remaining battery management unit, then select a target battery management unit from the remaining battery management units and send a third ID configuration command to the target battery management unit to configure the IDs of the remaining battery management units on both sides of the target battery management unit.
[0087] If the battery control management unit that issues the second ID configuration command does not receive the ID configuration feedback from the battery management unit through the first interface within the set time period, it means that the reverse configuration process has also been interrupted. At this time, it is necessary to confirm whether there is a battery management unit that has configured the ID.
[0088] For a battery management unit that has already been configured with an ID, the battery control management unit can collect information on whether its configuration is complete, for example:
[0089] The battery control management unit is used to: obtain the total number of battery management units with configured IDs based on the CAN messages fed back by the battery management units with configured IDs;
[0090] Based on the total number of configurations and the total number of battery management units, determine whether there are any remaining battery management units without configured IDs, and obtain the number of remaining battery management units.
[0091] After the battery management unit completes the ID configuration, it can send CAN messages to the battery control management unit in real time, so that the battery control management unit knows that it has completed the configuration and is ready for use; the total number of configurations of the battery management unit can be determined based on the number of CAN messages received.
[0092] Based on the total number of configured battery management units and the total number of battery management units obtained in advance, it can be calculated whether there are any remaining unconfigured battery management units. Taking 7 battery management units as an example: after forward configuration, the ID configuration of 1 battery management unit is completed, and the ID of the first battery management unit is 1. After reverse configuration, the ID configuration of 2 battery management units is completed, and the ID of the 6th battery management unit is 252 and the ID of the 7th battery management unit is 253. Then there are 4 remaining battery management units whose ID configuration has not been completed.
[0093] When the battery control management unit detects that there are still battery management units with incomplete ID configuration, it randomly selects one of the remaining battery management units as the target battery management unit and uses it as the starting unit for ID configuration. Since the starting battery management unit may have battery management units with incomplete ID configuration on both sides, a third ID configuration command needs to be sent to the target battery management unit to enable ID configuration of the remaining battery management units on both sides of the target battery management unit; wherein the third ID configuration command includes the ID configured for the target battery management unit;
[0094] For example, if the third battery management unit out of seven battery management units is selected as the target battery management unit, then the third ID configuration command includes the ID of the third battery management unit, which can be 100. After configuring the ID to the third battery management unit, the first and second sub-commands of the third ID configuration command will be triggered, so that the first sub-command configures in reverse and the second sub-command configures in forward. According to the first sub-command, the ID of the second battery management unit is 100-1, and according to the second sub-command, the ID of the fourth battery management unit is 100+1, and the ID of the fifth battery management unit is 101+1. Finally, the IDs of the seven battery management units are 1, 99, 100, 101, 102, 252, and 253, respectively. It can also be seen that the disconnection position is between the first and second battery management units and between the fifth and sixth battery management units.
[0095] The specific process of selecting the target battery management unit as the starting point and configuring IDs in both directions includes:
[0096] For example, if the remaining battery management unit is present, the battery control management unit is specifically used for:
[0097] The fourth ID configuration command is broadcast through the third interface, and feedback from the remaining battery management unit is received. The third interface is a CAN interface.
[0098] A target battery management unit is randomly selected from the feedback of the remaining battery management units.
[0099] The total number of battery management units with configured IDs received by the battery control management unit may be the same as the total number of battery management units. In this case, ID configuration is not required. If there are remaining battery management units, the battery control management unit can broadcast a fourth ID configuration command through the third interface, allowing the remaining battery management units that have not completed ID configuration to respond to the battery control management unit, which can then randomly select a target battery management unit. The remaining battery management units can respond by replying with their factory-unique serial number (SN).
[0100] The closed-loop serial connection method between the battery control management unit and the battery management unit in the battery cluster mentioned in the above embodiments is chain-type digital communication; including the first interface and the second interface of the battery control management unit:
[0101] For example, the first interface and the second interface are digital interfaces.
[0102] Chained digital communication includes various digital communication protocols, such as Universal Asynchronous Receiver / Transmitter (UART), which supports bidirectional data transmission.
[0103] The above-mentioned validity verification can be performed during the command transmission process of digital communication to ensure the accurate transmission of data.
[0104] The battery control management unit has a first interface and a second interface to determine forward and reverse directions. The battery management unit also has a first communication interface and a second communication interface to determine forward and reverse directions, including:
[0105] For example, the battery management unit includes a first communication interface and a second communication interface, wherein the first communication interface is connected to the previous battery management unit and the second communication interface is connected to the next battery management unit;
[0106] The battery management unit is used to update the ID configuration command according to the communication interface that receives the ID configuration command.
[0107] After receiving a message from the first communication interface, the battery management unit must transmit it through the second communication interface, and after receiving a message from the second communication interface, the battery management unit must transmit it through the first communication interface, so that the updated ID configuration command is transmitted accurately.
[0108] This application embodiment includes further configuration when both forward and reverse configurations fail, ensuring that each battery management unit can successfully complete ID configuration, and ensuring that automated ID configuration can still be performed even in the event of a disconnection, thus avoiding impact on system operation.
[0109] Finally, it should be noted that other embodiments of the invention will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common knowledge or customary techniques in the art not disclosed herein, and is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of the invention is limited only by the appended claims.
Claims
1. A battery-based automatic ID allocation system, characterized in that, The system includes a battery control management unit and multiple battery management units, wherein the battery control management unit and the multiple battery management units are connected in a closed loop. The battery control management unit is used to send a first ID configuration command to the first battery management unit through a first interface. The first ID configuration command includes the ID of the battery control management unit itself. The first battery management unit is configured to configure its own ID based on the ID of the previous unit in the first ID configuration command, and update the first ID configuration command based on the ID of its own unit, wherein the updated first ID configuration command includes the ID of the current unit; and send the updated first ID configuration command to the next battery management unit so that the next battery management unit performs ID configuration based on the updated ID in the updated first ID configuration command; wherein the previous ID includes the ID of the battery control management unit, and the updated ID is the ID of the first battery management unit; The process of sending the updated first ID configuration command to the next battery management unit is repeated until the second interface of the battery control management unit receives the ID configuration feedback from the last battery management unit, at which point ID allocation is complete; wherein, the ID configuration feedback includes the ID configured with the battery management unit ID of the battery control management unit through the second interface. The battery control management unit is also configured to: based on a preset time threshold, if it does not receive ID configuration feedback from the battery management unit through the second interface, confirm that ID allocation through the first interface has failed, and send a second ID configuration command to the battery management unit through the second interface; The last battery management unit is used to update the second ID configuration command according to the previous ID in the second ID configuration command, and send the updated second ID configuration command to the next battery management unit, so that the next battery management unit performs ID configuration according to the updated ID in the updated second ID configuration command; wherein, the previous ID includes the ID of the battery control management unit, and the updated ID is the ID of the last battery management unit; The process of sending the updated second ID configuration command to the next battery management unit is repeated until the first interface of the battery control management unit receives the ID configuration feedback from the first battery management unit, at which point ID allocation is completed; wherein, the ID configuration feedback includes the ID configured with the battery management unit ID of the battery control management unit through the first interface. If the battery control management unit does not receive the ID configuration feedback of the battery management unit through the first interface, it will determine whether there are any remaining battery management units without configured IDs based on the battery management units with configured IDs and the total number of battery management units. If there is a remaining battery management unit, then select a target battery management unit from the remaining battery management units and send a third ID configuration command to the target battery management unit to configure the IDs of the remaining battery management units on both sides of the target battery management unit.
2. The system according to claim 1, characterized in that, The battery management unit is specifically used for: The previous ID is added to a preset value, and the result is used as the ID of the current battery management unit and updated in the first ID configuration command; The updated first ID configuration command is sent to the next battery management unit so that the next battery management unit performs ID configuration according to the updated ID in the updated first ID configuration command; wherein the ID configuration method of the next battery management unit is consistent with the ID configuration method of the current battery management unit.
3. The system according to claim 1, characterized in that, The battery management unit is specifically used for: Subtract the previous ID from the preset value, and use the result of the subtraction as the ID of the current battery management unit, and update it in the second ID configuration command; The updated second ID configuration command is sent from the current battery management unit to the next battery management unit, so that the next battery management unit performs ID configuration according to the updated ID in the updated second ID configuration command; wherein the ID configuration method of the next battery management unit is consistent with the ID configuration method of the current battery management unit.
4. The system according to claim 1, characterized in that, The battery control management unit is used for: Based on the CAN message fed back by the battery management unit with the configured ID, obtain the total number of battery management units with the configured ID; Based on the total number of configurations and the total number of battery management units, determine whether there are any remaining battery management units without configured IDs, and obtain the number of remaining battery management units.
5. The system according to claim 4, characterized in that, If the remaining battery management unit exists, the battery control management unit is specifically used for: The fourth ID configuration command is broadcast through the third interface, and feedback from the remaining battery management unit is received. The third interface is a CAN interface. A target battery management unit is randomly selected from the feedback of the remaining battery management units.
6. The system according to claim 1, characterized in that, The first interface and the second interface are digital interfaces.
7. The system according to any one of claims 1 to 6, characterized in that, The battery management unit includes a first communication interface and a second communication interface, wherein the first communication interface is connected to the previous battery management unit and the second communication interface is connected to the next battery management unit. The battery management unit is used to update the ID configuration command according to the communication interface that receives the ID configuration command.
Citation Information
Patent Citations
Automatic addressing method and system and master control module thereof
CN111787128A