Automatic addressing method and system for distributed battery management unit
Through serial communication and duty cycle simulation technology of IO signal line, automatic addressing of the battery management unit is realized, solving the problems of complex address allocation and high cost in the prior art, and improving addressing efficiency and scalability.
Patent Information
- Application Number
- CN202411309107.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-19
- Publication Date
- 2025-01-03
AI Technical Summary
The address allocation scheme of existing distributed battery management units is complex and costly, and the addressing and communication services are not decoupled, making it difficult to realize an automated and efficient addressing process.
Through serial communication between the main monitoring unit and the battery management unit, the '0' and '1' logic is simulated using the high and low level duty cycle of the IO signal line, and the addressed messages are automatically sent and parsed, realizing the automatic programming of the battery management unit address, addressing is decoupled from communication services.
It realizes automatic addressing of battery management units, reduces addressing complexity and cost, improves addressing efficiency and scalability, and supports the replacement and access of new management units in the system at any time without affecting the operation of other normal battery management units.
Smart Images

Figure CN119254754A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of battery management, and relates to an automatic addressing method and system for a distributed battery management unit. Background Art
[0002] Battery energy storage systems are increasingly used in the fields of electricity and industrial production, and the application scenarios are becoming more complex, which has created a demand for distributed battery management. This battery management system includes a main monitoring unit, a distributed battery management unit, and a battery unit. A main monitoring unit needs to monitor and manage dozens or even hundreds of battery cells in different locations. Each battery cell needs to be configured with a distributed battery management unit to collect and upload battery signals, and communicate with the main monitoring unit through a communication bus, so a unique communication address is required. The current solutions to the address allocation of distributed battery management units are mainly:
[0003] (1) Hardware dial
[0004] The battery management unit needs to be equipped with a multi-position dip switch, which is dialed in sequence according to the position of the battery management unit on site. This solution requires the setting of a dip switch, which increases the cost and size of the device, and the increase in manual operation on site is also prone to errors.
[0005] (2) Manual setting of the host computer
[0006] The host computer software communicates with the battery management unit, and the engineering staff addresses all the battery management units one by one through the address editing interface, which is a large amount of work. This solution requires the design of host computer software and hardware, as well as the communication interface with the battery management unit, which is relatively complex and costly.
[0007] (3) Design a special addressing mode
[0008] The battery management unit is put into addressing mode through switch control and other schemes, and then the main monitoring sends addressing messages through the communication bus for addressing. This scheme involves mode switching operations, which are relatively complex to operate, and requires the use of the communication bus for addressing operations. Addressing and communication services are not decoupled.
[0009] (4) PWM hard-wire addressing
[0010] By outputting the PWM duty cycle to the battery management unit, the address is incremented by the progressive duty cycle to represent the address. This solution relies on the PWM and capture peripherals of the MCU and requires certain accuracy. As the number of management units increases, it becomes increasingly difficult to set the progressive value of the PWM duty cycle and to capture and identify it. For example, when hundreds of management units are cascaded, the solution is difficult to implement.
[0011] How to overcome the above problems is currently in urgent need of resolution. Summary of the invention
[0012] In order to solve the deficiencies in the prior art, the present invention provides a method and system for automatic addressing of distributed battery management units, which can realize automatic addressing of all battery management units, decouple addressing from communication services, and improve addressing efficiency and scalability.
[0013] The present invention adopts the following technical solution.
[0014] The first aspect of the present invention provides an automatic addressing method for a distributed battery management unit, comprising: a main monitoring unit exchanges data with all battery management units through a serial communication bus to obtain a battery sampling signal; the main monitoring unit determines the address information of the first battery management unit; starting from the first battery management unit, by controlling the high and low level duty ratios of the IO signal line to simulate the '0' and '1' logic, an addressing message containing address information is sent to the next battery management unit, and after the battery management unit correctly parses the received addressing message, the address information of the message is used as the address of the battery management unit, and the battery management unit addresses the next battery management unit and sends an addressing message containing the address information of the next battery management unit, thereby realizing automatic addressing of all management units in sequence.
[0015] Preferably, the IO signal lines between adjacent battery management units are connected in a hand-in-hand manner.
[0016] Preferably, the address information consists of one or more bits.
[0017] Preferably, the IO pin on the output side of the MCU control chip of the previous battery management unit in adjacent battery management units is connected to the IO pin on the input side of the MCU control chip of the next battery management unit through an IO signal line; the high and low level duty cycle of the IO signal line is controlled to simulate the '0' and '1' logic by controlling the IO pin on the output side of the MCU control chip of the previous battery management unit; the next battery management unit obtains the addressing message by reading the IO signal on the input side of the MCU control chip of the current battery management unit.
[0018] Preferably, the battery management unit parses the addressing message received from the previous battery management unit, including: obtaining the address information in the addressing message; determining whether the duration of the address information is within a preset time threshold; determining whether the duty cycle of the high and low levels in the address information is within a corresponding preset range; if the duration of the address information is not within the preset time threshold, and / or if the duty cycle of the high and low levels in the address information is not within the corresponding preset range, the parsing fails, otherwise the parsing succeeds.
[0019] Preferably, when the battery management unit fails to parse the addressing message received from the last battery management unit, the state of the battery management unit is abnormal and an early warning is issued.
[0020] Preferably, the address information of each battery management unit is within a preset address range, and the address information of the next adjacent battery management unit is generated according to the address information of the previous adjacent battery management unit in accordance with a preset rule.
[0021] Preferably, the method further comprises: the main monitoring unit polls all battery management units; and the battery management units that have completed addressing respond to the polling of the main control unit.
[0022] Preferably, the main monitoring unit sets the battery management unit that has not responded within a preset time to a communication abnormality state and issues an early warning.
[0023] The second aspect of the present invention provides an automatic addressing system for a distributed battery management unit, comprising: a main monitoring unit and a battery management unit, wherein the battery management unit is connected to the main monitoring unit via a serial communication bus. The main monitoring unit comprises an acquisition module and a determination module, wherein the acquisition module is used for the main monitoring unit to exchange data with all battery management units via the serial communication bus to obtain battery sampling signals, and the determination module is used to determine the address information of the first battery management unit. The battery management unit comprises an addressing module, wherein the addressing module is used to start from the first battery management unit, simulate the '0' and '1' logic by controlling the high and low level duty ratios of the IO signal line, and send an addressing message containing address information to the next battery management unit. After the battery management unit correctly parses the received addressing message, it uses the address information of the message as the address of the battery management unit. The battery management unit addresses the next battery management unit and sends an addressing message containing the address information of the next battery management unit, thereby realizing automatic addressing of all management units in sequence.
[0024] A third aspect of the present invention provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when loaded into the processor, implements the automatic addressing method of the distributed battery management unit.
[0025] The fourth invention of the present invention provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the automatic addressing method of the above-mentioned distributed battery management unit.
[0026] Compared with the prior art, the beneficial effects of the present invention include at least:
[0027] The addressing operation of the present invention is completely decoupled from the business communication; the logic level is simulated by the IO signal duty cycle, and the performance requirements of the peripherals of the MCU chip of the battery management unit are low; the addressing message contains multi-bit address information, and the addressing range is wide; the battery management unit is periodically and automatically addressed, and supports the replacement and access of new management units at any time during system operation without affecting the normal operation of other battery management units, and has strong scalability; and the addressing and maintenance costs are low. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor. Among them:
[0029] Figure 1 It is a schematic diagram of an overall system of an implementation environment provided by an embodiment of the present invention;
[0030] Figure 2 It is a schematic diagram of a flow chart of an automatic addressing method for a distributed battery provided by an embodiment of the present invention;
[0031] Figure 3 This is a schematic diagram of an IO addressing signal provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0032] In order to make the purpose, technical scheme and advantages of the present invention clearer, the technical scheme of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. The embodiments described in this application are only embodiments of a part of the present invention, rather than all embodiments. Based on the spirit of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work belong to the protection scope of the present invention.
[0033] The implementation environment of the present invention is as follows Figure 1 As shown, it includes: a main monitoring unit and a battery management unit, a communication bus between the main monitoring unit and each battery management unit, and an IO signal line between each battery management unit. The IO signal line is used for addressing the battery management unit, and the battery management unit can be one or more.
[0034] Combination Figure 1 and Figure 2 As shown, Embodiment 1 of the present invention provides an automatic addressing method for a distributed battery management unit, which specifically includes the following contents:
[0035] Step 1: Determine the address information of the first battery management unit.
[0036] Preferably, the address of the first battery management unit connected to the main monitoring unit is determined as the addressing start address.
[0037] Specifically, the main monitoring unit determines the address information of the first battery management unit connected via the serial communication bus as the addressing start address.
[0038] The addressing start address may be a start address or an end address within a preset address range.
[0039] Step 2, starting from the first battery management unit, by controlling the high and low level duty ratio of the IO signal line to simulate the '0' and '1' logic, an addressing message containing address information is sent to the next battery management unit. After the battery management unit correctly parses the received addressing message, the address information of the message is used as the address of the battery management unit. The battery management unit addresses the next battery management unit and sends an addressing message containing the address information of the next battery management unit, thereby realizing automatic addressing of all management units in sequence. Preferably, the address information consists of one or more bits.
[0040] For example, if the address information consists of 8 bits, the address information can cover an address range of 1 to 255, which has a large coverage range. Compared with the prior art PWM hardware addressing method, the embodiment of the present invention is simple to implement and can provide communication addresses for more battery management units.
[0041] Preferably, the IO pin on the output side of the MCU control chip of the previous battery management unit in adjacent battery management units is connected to the IO pin on the input side of the MCU control chip of the next battery management unit through an IO signal line; the high and low level duty cycle of the IO signal line is controlled to simulate the '0' and '1' logic by controlling the IO pin on the output side of the MCU control chip of the previous battery management unit; the next battery management unit obtains the addressing message by reading the IO signal on the input side of the MCU control chip of the current battery management unit.
[0042] In this embodiment, since the MCU control chip basically has its own IO pins, the encoding logic is implemented through the IO pins of the MCU control chip, and only a basic MCU control chip is required, which reduces the peripheral performance of the MCU control chip of the battery management unit, thereby reducing costs and improving the feasibility of the solution.
[0043] Preferably, the address information of each battery management unit is within a preset address range, and the address information of the next adjacent battery management unit is generated according to the address information of the previous adjacent battery management unit in accordance with a preset rule.
[0044] The preset address range can be set according to the number of battery management units, and the preset address range needs to meet the requirements of all battery management units for address allocation. The preset rule can be that the address information of the next battery management unit is the address information sequence of the previous battery management unit plus 1, or the address information of the next battery management unit can be the address information sequence of the previous battery management unit minus 1. The embodiment of the present invention does not limit the specific content of the preset rules, and those skilled in the art can formulate preset rules and preset address ranges according to actual needs.
[0045] Specifically, combined Figure 2 As shown, the communication address of the first battery management unit is 1. Starting from the first battery management unit, the high and low level duty cycle range of the IO signal line is controlled in turn to simulate the '0' and '1' logic, and an addressing message containing multiple bits of communication address information is sent to the next management unit. For example, the first battery management unit periodically sends an addressing message containing communication address information of 2 to the second battery management unit. The second battery management unit reads the addressing message by reading the IO signal line. After reading the complete addressing message, it is parsed. If the parsing is correct, its own serial port address is set to 2, and the next management unit is periodically sent an addressing message containing communication address information of 3. The remaining battery management units are analogous, so as to realize the automatic addressing of each management unit in sequence; before receiving the addressing message and parsing it correctly, the battery management unit will not send an addressing message to the next module.
[0046] Preferably, the addressed message includes a start bit and / or an end bit.
[0047] Specifically, combined Figure 3 As shown, the start bit can be '0' logic, and more than 2 consecutive bits are required to be low level (i.e., continuous low level for 40t); the end bit can be composed of 1 positive pulse plus more than 2 bits of low level, and then the IO signal is in a low level state; the positive pulse of the end bit is '0' with a narrow pulse (25% of the entire bit period) and '1' with a wide pulse (75% of the entire bit period), and its specific logic level is determined by odd or even parity check of the first 8 bits of address data. The battery management unit on the receiving side first reads a start bit, then reads 8 bits of data continuously according to the rising edge, and finally reads the end bit, and performs odd or even parity check according to the result. Only after the check is passed, the 8 bits of data are used as their own valid address, otherwise the data is discarded and the next start bit is waited for.
[0048] In this embodiment, by setting the start bit and / or the end bit, the message accuracy and anti-interference capability can be improved.
[0049] Preferably, the battery management unit parses the addressing message received from the previous battery management unit, including: obtaining the address information in the addressing message; determining whether the duration of the address information is within a preset time threshold; determining whether the duty cycle of the high and low levels in the address information is within a corresponding preset range; if the duration of the address information is not within the preset time threshold, and / or if the duty cycle of the high and low levels in the address information is not within the corresponding preset range, the parsing fails, otherwise the parsing succeeds.
[0050] Preferably, the high and low level duty ratios in a first preset range represent '0' logic, and the high and low level duty ratios in a second preset range represent '1' logic. The first preset range is 15% to 35%, and the second preset range is 65% to 85%.
[0051] It should be noted that those skilled in the art can set specific values of the first preset range and the second preset range according to actual applications, and the embodiment of the present invention does not limit the first preset range and the second preset range.
[0052] Specifically, combined Figure 3 As shown, for example, the signal duration of a bit is 20t. When the battery management unit outputs the logic of '0', it first outputs a high level for 5t, and then outputs a low level for 15t; when it outputs the logic of '1', it first outputs a high level for 15t, and then outputs a low level for 5t. It can be seen that each bit starts with a high level and ends with a low level. The reading side reads the IO signal level periodically, and can judge the start of the current bit data by the rising delay, judge the end of the data by the next rising edge, and judge the correctness of the duration of the current bit by the cycle count. The reading side needs to retain a certain judgment margin. Taking the above-mentioned one bit lasting 20t as an example, the first preset range can be 18t to 22t. The calculated duration is between 18t and 22t, which is normal. Otherwise, it is abnormal and the entire message data is discarded. The duty cycle can be calculated in the same way. The duty cycle is based on 25% as '0' and 75% as '1'. The second preset range of the high-level duty cycle corresponding to the '0' logic can be 15% to 35%, and the second preset range of the high-level duty cycle corresponding to the '1' logic can be 65% to 85%. Then, 15% to 35% is '0', and 65% to 85% is '1'. Otherwise, it is abnormal and the entire message data is discarded.
[0053] In this embodiment, the addressing operation is automatically completed by the battery management unit without the need for host computer settings or manual settings, which reduces the complexity of the addressing process, while reducing costs and maintenance difficulties.
[0054] Preferably, when the battery management unit fails to parse the addressing message received from the last battery management unit, the state of the battery management unit is abnormal and an early warning is issued.
[0055] The early warning may be in the form of an alarm light or an audio alarm. The embodiments of the present invention do not limit the specific early warning method, and those skilled in the art may set the early warning method according to actual needs. The early warning can remind the user to pay attention to the battery management unit, which helps the user to quickly locate abnormal battery management units without the need for the user to inspect them one by one, thereby reducing maintenance costs. Moreover, the battery management unit can be directly replaced, and the replaced battery management unit can obtain the communication address after receiving the correct addressing message of the previous battery management unit, thereby realizing online replacement.
[0056] Step 3: The main monitoring unit exchanges data with all battery management units through the serial communication bus to obtain battery sampling signals.
[0057] Preferably, the method further comprises:
[0058] Step 4: The main monitoring unit polls all battery management units, and the battery management units that have completed addressing respond to the polling of the main control unit.
[0059] Specifically, the main monitoring unit and all battery management units are connected to the same serial communication bus to exchange data. The main monitoring unit is the host and all battery management units are slaves. The master and slave use a question-and-answer method to enable the main monitoring unit to obtain the sampling signals of each battery, including the battery's voltage, temperature, internal resistance, etc. The main monitoring unit increments the serial port address from 1 to the maximum serial port address of the battery management unit configured for the project, and polls all battery management units in turn. The battery management unit that has completed the addressing can respond and send the battery sampling signal, and the battery management unit that has not completed the addressing will not respond.
[0060] In this embodiment, the main monitoring unit and each battery management unit communicate with each other through the serial communication bus, and no addressing operation is performed on the battery management unit, thereby realizing the decoupling of addressing and communication services, thereby reducing the complexity of the entire system and further improving the accuracy of communication services or battery management. In addition, the maintenance of the battery management unit does not affect the progress of other communication services, further reducing the cost of maintenance.
[0061] Preferably, the main monitoring unit sets the battery management unit that has not responded within a preset time to a communication abnormality state and issues an early warning.
[0062] The warning can be that the indicator light of the corresponding battery management unit on the main monitoring unit turns on, or the main monitoring unit can send a warning message to the corresponding user. The embodiment of the present invention does not limit the specific warning method, and those skilled in the art can set the warning method according to actual needs. The warning can remind the user to pay attention to the battery management unit, without the need for the user to conduct inspections one by one, thereby reducing maintenance costs.
[0063] Preferably, the IO signal lines between adjacent battery management units are connected in a hand-in-hand manner.
[0064] The hand-in-hand connection facilitates the transmission of IO signals between the previous battery management unit and the next battery management unit, which can improve the signal integrity and communication reliability, thereby improving the coding efficiency. In addition, the hand-in-hand connection can be easily disassembled and connected, which is convenient for maintenance and replacement of battery management units, further reducing maintenance costs. In addition, the replacement and connection of new battery management units does not affect the normal operation of other battery management units, which improves scalability.
[0065] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. 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 invention.
[0066] Embodiment 2 of the present invention provides an automatic addressing system for distributed battery management units, and runs the automatic addressing method for distributed battery management units as described in embodiment 1. The system includes: a main monitoring unit and a battery management unit. The battery management unit is connected to the main monitoring unit through a serial communication bus. The main monitoring unit includes an acquisition module and a determination module, wherein the acquisition module is used for the main monitoring unit to exchange data with all battery management units through the serial communication bus to obtain battery sampling signals, and the determination module is used to determine the address information of the first battery management unit. The battery management unit includes an addressing module, which is used to start from the first battery management unit, simulate the '0' and '1' logic by controlling the high and low level duty ratios of the IO signal line, and send an addressing message containing address information to the next battery management unit. After the battery management unit correctly parses the received addressing message, it uses the address information of the message as the address of the battery management unit. The battery management unit addresses the next battery management unit and sends an addressing message containing the address information of the next battery management unit, thereby realizing automatic addressing of all management units in sequence.
[0067] Embodiment 3 of the present invention provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the computer program is loaded into the processor, the automatic addressing method of the distributed battery management unit described in Embodiment 1 is implemented.
[0068] Embodiment 4 of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the automatic addressing method of the distributed battery management unit according to embodiment 1 is implemented.
[0069] Compared with the prior art, the beneficial effects of the present invention include at least:
[0070] The addressing operation of the present invention is completely decoupled from the business communication; the logic level is simulated by the IO signal duty cycle, and the performance requirements of the battery management unit MCU chip peripherals are low; the addressing message contains multi-bit address information and the addressing range is wide; the battery management unit is periodically and automatically addressed, and the replacement and access of new management units at any time during system operation are supported without affecting the normal operation of other battery management units, the scalability is strong, and the addressing and maintenance costs are low.
[0071] The present disclosure may be a system, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present disclosure.
[0072] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (a non-exhaustive list) include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium is not to be interpreted as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.
[0073] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.
[0074] The computer program instructions for performing the operation of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed completely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be customized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present disclosure.
[0075] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents, and any modifications or equivalent replacements that do not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.
Claims
1. An automatic addressing method for a distributed battery management unit, characterized in that: The method comprises: The main monitoring unit exchanges data with all battery management units through the serial communication bus to obtain battery sampling signals; The main monitoring unit determines the address information of the first battery management unit; Starting from the first battery management unit, by controlling the high and low level duty cycle of the IO signal line to simulate the '0' and '1' logic, an addressed message containing address information is sent to the next battery management unit. After the battery management unit correctly parses the received addressed message, it uses the address information of the message as the address of this battery management unit. This battery management unit addresses the next battery management unit and sends an addressed message containing the address information of the next battery management unit, thereby realizing automatic addressing of all management units in sequence.
2. The automatic addressing method of a distributed battery management unit according to claim 1, characterized in that: The IO signal lines between adjacent battery management units are connected in a hand-in-hand manner.
3. The automatic addressing method of a distributed battery management unit according to claim 1, characterized in that: The address information consists of one or more bits.
4. The automatic addressing method of a distributed battery management unit according to claim 1, characterized in that: The IO pin on the output side of the MCU control chip of the last battery management unit in the adjacent battery management units is connected to the IO pin on the input side of the MCU control chip of the next battery management unit through an IO signal line; Controlling the high and low level duty cycle of the IO signal line to simulate the '0' and '1' logic is achieved by controlling the IO pin on the output side of the MCU control chip of the previous battery management unit; The next battery management unit obtains the addressing message by reading the IO signal on the input side of the MCU control chip of the battery management unit.
5. The automatic addressing method of a distributed battery management unit according to claim 4, characterized in that: The battery management unit analyzes the received address message sent by the last battery management unit, including: Obtain address information in the addressed message; Determine whether the duration of the address information is within a preset time threshold; Determine whether the high and low level duty ratios in the address information are within the corresponding preset range; If the duration of the address information is not within the preset time threshold, and / or if the high and low level duty ratios in the address information are not within the corresponding preset range, the parsing fails, otherwise the parsing succeeds.
6. The automatic addressing method of a distributed battery management unit according to claim 5, characterized in that: When the battery management unit fails to parse the addressing message received from the previous battery management unit, the state of the battery management unit is abnormal and an early warning is issued.
7. The automatic addressing method of a distributed battery management unit according to any one of claims 1 to 6, characterized in that: The address information of each battery management unit is within a preset address range, and according to a preset rule, the address information of the next adjacent battery management unit is generated according to the address information of the previous adjacent battery management unit.
8. The automatic addressing method of a distributed battery management unit according to claim 7, characterized in that: The method further comprises: The main monitoring unit polls all battery management units; The addressed battery management unit responds to the polling of the main control unit.
9. The automatic addressing method of a distributed battery management unit according to claim 8, characterized in that: The main monitoring unit sets the battery management unit that has not responded within a preset time to a communication abnormal state and issues an early warning.
10. An automatic addressing system for distributed battery management units using the automatic addressing method for distributed battery management units according to any one of claims 1 to 9, characterized in that: include: Main monitoring unit; The battery management unit is connected to the main monitoring unit via a serial communication bus; The main monitoring unit includes an acquisition module and a determination module, wherein the acquisition module is used for the main monitoring unit to exchange data with all battery management units through a serial communication bus to acquire battery sampling signals, and the determination module is used to determine the address information of the first battery management unit; The battery management unit includes an addressing module, which is used to start from the first battery management unit, simulate the '0' and '1' logic by controlling the high and low level duty ratios of the IO signal lines, and send an addressing message containing address information to the next battery management unit. After the battery management unit correctly parses the received addressing message, it uses the address information of the message as the address of the battery management unit. The battery management unit addresses the next battery management unit and sends an addressing message containing the address information of the next battery management unit, thereby realizing automatic addressing of all management units in sequence.
11. An electronic device, comprising a processor and a storage medium; characterized in that: The storage medium is used to store instructions; The processor is used to operate according to the instructions to execute the steps of the automatic addressing method of the distributed battery management unit according to any one of claims 1-9.
12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the automatic addressing method of the distributed battery management unit described in any one of claims 1-9 are implemented.
