CN115580596B - Automatic battery cluster address distribution system and method based on chain connection - Google Patents

Automatic battery cluster address distribution system and method based on chain connection Download PDF

Info

Publication number
CN115580596B
CN115580596B CN202211478925.8A CN202211478925A CN115580596B CN 115580596 B CN115580596 B CN 115580596B CN 202211478925 A CN202211478925 A CN 202211478925A CN 115580596 B CN115580596 B CN 115580596B
Authority
CN
China
Prior art keywords
address
communication
battery cluster
battery
communication address
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202211478925.8A
Other languages
Chinese (zh)
Other versions
CN115580596A (en
Inventor
王绪伟
谈海涛
李大龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hefei Huasi System Co ltd
Original Assignee
Hefei Huasi System Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hefei Huasi System Co ltd filed Critical Hefei Huasi System Co ltd
Priority to CN202211478925.8A priority Critical patent/CN115580596B/en
Publication of CN115580596A publication Critical patent/CN115580596A/en
Application granted granted Critical
Publication of CN115580596B publication Critical patent/CN115580596B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40006Architecture of a communication node
    • H04L12/40013Details regarding a bus controller
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40169Flexible bus arrangements
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/10Energy storage using batteries

Abstract

The invention discloses a system and a method for automatically distributing battery cluster addresses based on chain connection, wherein the method comprises the following steps: the system comprises a main controller and a plurality of battery clusters, wherein the battery clusters are mutually interconnected in a daisy chain manner; the battery cluster comprises a shell, a communication module, an MCU (micro control unit), an address reading module and a counter, wherein the communication module, the MCU, the address reading module and the counter are arranged in the shell; the shell is provided with an address input end, an address output end and a communication port for communicating with the main controller, the address input end is respectively and electrically connected with the counter and the address reading module, the counter is electrically connected with the address output end, the address reading module is electrically connected with the MCU, the MCU is electrically connected with the communication module, and the communication module is electrically connected with the communication port; the address output end of each battery cluster in the plurality of battery clusters is connected to the address input end of the next battery cluster, and the communication ports of the plurality of battery clusters are connected to the main controller through the communication bus. The invention can quickly realize the automatic allocation of the battery cluster address.

Description

Automatic battery cluster address distribution system and method based on chain connection
Technical Field
The invention relates to the technical field of automatic address allocation of battery clusters in an energy storage system, in particular to a system and a method for automatically allocating battery cluster addresses based on chain connection.
Background
Currently, in industrial equipment applications, there are three main solutions for automatic allocation of equipment addresses:
1. the method is applied to the masterless communication, for example, CAN (Controller Area Network) communication is adopted, a Media Access Control (MAC) address chip is integrated in the device as a unique mark, a central processing unit acquires and sequences MAC address information for the device, and finally the central processing unit allocates addresses for the device.
2. The device is applied to master-slave communication, such as RS485, an input signal port is integrated in the device, when the input signal port detects a signal, the address configuration of a master module is responded, and the input signal is output by the master module or is output by a configured superior slave module, so that the address allocation is realized; however, in this solution, although the physical connection location of the devices can be known clearly, the devices cannot be spaced too far apart due to the need for signal output, which limits the location where the devices are arranged.
3. Through structure and hardware design, address information is preset on the wiring board, and when a module is inserted into the wiring board, the module acquires an equipment address through the wiring board. In the scheme, a dial switch is used as a common mode at present, but the mode is complex, and when a battery pack is replaced, address information needs to be checked again, so that the method is quite inconvenient and is easy to make mistakes.
Therefore, many companies provide different solutions, for example, chinese patent application CN110442097A discloses an apparatus and method for automatically identifying module addresses in a distributed control system, which includes a process controller, a plurality of IO modules, and a plurality of module backplanes for installing and fixing the modules, wherein the process controller is connected to a plurality of communication buses, each communication bus is connected to one or more modules, connectors are provided at two ends of the module backplanes, and the communication buses and address lines are connected through the connectors between the module backplanes; the communication bus of each module backboard is directly connected, and the upper ends and the lower ends of a plurality of address wires of the module backboard are connected by adopting a bit-shifting method. The scheme can flexibly add and subtract the number of the modules needing to be configured, does not need to reserve enough slots, can enable an operator to visually know the addresses of the modules from the corresponding positions between the modules and the controller, and is simple to operate, accurate and reliable. Although the scheme is simple and reliable, the number of used cables is large, the number of allocated addresses is too small, 4 lines can only be four addresses, and 8 lines can only be 8 addresses.
Another chinese patent application CN110795361A discloses an energy storage system with automatic address allocation, which carries functional modules with PWM receiving and PWM outputting and corresponding input and output pins on the hardware circuit boards of LECUs and CECUs, electrically connects the PWM leading-out pins of the corresponding LECUs and CECUs according to the corresponding topological structures, and when the energy storage system is powered on, the system can automatically allocate the addresses of the LECUs and CECUs connected to the system. The scheme can realize the automatic allocation of the addresses of the CECU circuit boards and the LECU circuit boards on the energy storage system BM S without manually setting and marking one by one; the circuit boards are not required to be distinguished before and after mass production, the circuit boards are directly replaced, the system can automatically allocate addresses, the material management cost and the labor cost are saved, and the efficiency is improved; in the process of automatically allocating addresses by the LECU and the CECU, the system can complete other self-checking programs, the process time is short, and the system can rapidly enter the running state. However, in this scheme, the address is identified by using the PWM pulse width, the software calculation method and the address identification are particularly complicated, and the address identification is problematic if the PWM signal is disturbed.
Another chinese patent application CN112531224A discloses a battery management system and an automatic address allocation method for battery management units, where all battery management units in the same battery cluster are connected in series, a first battery management unit at the head end is connected to a power module, when the power module supplies power to the battery cluster management unit and the first battery management unit, all the battery management units in the battery cluster sequentially set their corresponding fixed addresses through the battery cluster management units according to the series connection order, and the addresses of the battery management units are automatically allocated through a hardware platform and a software function, and the allocated fixed addresses are increased in order according to the power-on order of the battery management units, thereby realizing one-to-one correspondence between the fixed addresses of the battery management units and the physical installation order. However, the scheme uses a power switch, and sequentially allocates the addresses of each battery cluster through the power-on sequence, the address allocation speed is slow, the working efficiency of the battery system is influenced, the addresses of the battery clusters are different when the power-on process is different every time, the control process is complex, and the addresses and the corresponding machines are uncertain.
In summary, the implementation method is complex, the interference resistance is poor, and the time efficiency is poor, which is a disadvantage of the current various schemes. Furthermore, the complexity of the software also affects the stability of the address assignment.
Disclosure of Invention
In order to solve the technical problems in the background art, the invention provides a system and a method for automatically allocating battery cluster addresses based on chain connection.
The invention provides a battery cluster address automatic distribution system based on chain connection, which is characterized by comprising the following components: the system comprises a main controller and a plurality of battery clusters, wherein the battery clusters are mutually interconnected in a daisy chain manner;
the battery cluster comprises a shell, a communication module, an MCU (micro control unit), an address reading module and a counter, wherein the communication module, the MCU, the address reading module and the counter are arranged in the shell;
the shell is provided with an address input end, an address output end and a communication port for communicating with the main controller, the address input end is respectively and electrically connected with the counter and the address reading module, the counter is electrically connected with the address output end, the address reading module is electrically connected with the MCU microcontroller, the MCU microcontroller is electrically connected with the communication module, and the communication module is electrically connected with the communication port;
the address output end of each battery cluster in the plurality of battery clusters in the daisy chain is connected to the address input end of the next battery cluster, and the communication ports of the plurality of battery clusters in the daisy chain are connected to the main controller through the communication bus;
the counter is used for acquiring the communication address through the address input end, increasing or decreasing the acquired communication address by one counting unit, generating a new communication address and transmitting the new communication address to the address input end of the next battery cluster through the address output end;
the address reading module of each battery cluster is used for acquiring a communication address through an address input end and sending the communication address to the MCU;
the MCU is used for taking the acquired communication address as the communication address of the battery cluster and transmitting the communication address information of the battery cluster to the communication bus through the communication module and the communication port;
the main controller is used for acquiring the communication address of each battery cluster through the communication bus and detecting the repeated address according to the acquired communication address of each battery cluster;
when no repeated address exists, the main controller sends a signal with a normal communication address to each battery cluster through the communication bus, and each battery cluster finishes address allocation work according to the received signal with the normal communication address;
when the duplicate address exists, the main controller sends out alarm information, the connection of each battery cluster is manually checked and corrected, the main controller sends out a signal with an abnormal communication address to each battery cluster through the communication bus, each battery cluster re-determines the communication address of each battery cluster according to the received signal with the abnormal communication address, and the main controller re-acquires the communication address of each battery cluster and performs duplicate address detection according to the acquired communication address of each battery cluster until each battery cluster finishes address allocation work.
Preferably, the main controller is an upper computer.
Preferably, a host communication address is preset in the MCU microcontroller of each battery cluster, and the MCU microcontroller is configured to determine whether the MCU microcontroller is the master controller according to the communication address of the battery cluster and the host communication address;
when the communication address of the battery cluster is consistent with the communication address of the host, the MCU serves as a main controller to acquire the communication addresses of the rest battery clusters in the daisy chain through a communication bus;
and when the communication address of the battery cluster is not consistent with the communication address of the host, the MCU serves as a slave to transmit the communication address information of the battery cluster to the master controller through the communication bus.
Preferably, the host communication address is an initial communication address.
Preferably, the communication address of the battery cluster with the floating address input end is the initial communication address.
The invention also provides a method for automatically allocating the battery cluster address based on chain connection, which is applied to any one of the above-mentioned systems for automatically allocating the battery cluster address, and specifically comprises the following steps:
the method comprises the following steps of interconnecting a plurality of battery clusters in a daisy chain manner, and connecting the plurality of battery clusters to a main controller through a communication bus;
each battery cluster respectively determines the communication address of the battery cluster and respectively transmits the communication address of the battery cluster to a communication bus;
the main controller acquires the communication address of each battery cluster through the communication bus and performs repeated address detection according to the acquired communication address of each battery cluster;
when no repeated address exists, the main controller sends a signal with a normal communication address to each battery cluster through the communication bus, and each battery cluster finishes address allocation work according to the received signal with the normal communication address;
when the duplicate address exists, the main controller sends out alarm information, the connection of each battery cluster is manually checked and corrected, the main controller sends out a signal with an abnormal communication address to each battery cluster through the communication bus, each battery cluster re-determines the communication address of each battery cluster according to the received signal with the abnormal communication address, and the main controller re-acquires the communication address of each battery cluster and performs duplicate address detection according to the acquired communication address of each battery cluster until each battery cluster finishes address allocation work.
Preferably, a plurality of battery clusters are interconnected with each other in a daisy chain form, specifically including;
an address output terminal of each of the plurality of battery clusters in the daisy chain is connected to an address input terminal of a next battery cluster.
Preferably, each battery cluster determines a communication address of the battery cluster, and transmits the communication address of the battery cluster to the communication bus, specifically including:
the address reading module of each battery cluster acquires a communication address through an address input end and sends the communication address to the MCU;
and the MCU determines the communication address of the battery cluster according to the acquired communication address, and transmits the communication address information of the battery cluster to the communication bus through the communication module and the communication port.
Preferably, each battery cluster determines a communication address of the battery cluster, and transmits the communication address of the battery cluster to the communication bus, further comprising:
the counter of each battery cluster acquires a communication address through the address input terminal, and increments or decrements the acquired communication address by one count unit to form a new communication address and transmits the new communication address to the address input terminal of the next battery cluster through the address output terminal.
Preferably, the acquiring, by the master controller, the communication address of each battery cluster through the communication bus specifically includes:
a host communication address is preset in the MCU microcontroller of each battery cluster, and the MCU microcontroller judges whether the MCU microcontroller is a main controller according to the communication address of the battery cluster and the host communication address;
when the communication address of the battery cluster is consistent with the communication address of the host, the MCU is used as a main controller to acquire the communication addresses of other battery clusters in the daisy chain through a communication bus;
and when the communication address of the battery cluster is inconsistent with the communication address of the host, the MCU serves as a slave computer to transmit the communication address information of the battery cluster to the main controller through the communication bus.
Preferably, the host communication address is an initial communication address.
Preferably, the communication address of the battery cluster with the suspended address input end is used as the initial communication address.
Preferably, the acquiring, by the master controller, the communication address of each battery cluster through the communication bus specifically includes:
the main controller is an upper computer, and the upper computer acquires the communication address of each battery cluster through a communication bus.
According to the automatic distribution system and method for the battery cluster addresses based on the chain connection, the automatic distribution and accumulation of the communication addresses of a plurality of battery clusters can be achieved, the automatic distribution process of the addresses of the whole battery cluster is relatively simple and efficient, a dial switch and the like are not needed, errors caused by the setting problem of the dial switch are avoided, convenience is brought to subsequent battery cluster replacement, the battery cluster positions corresponding to the communication addresses are fixed, the positioning is more accurate, the maintenance is more convenient, and few cables are used.
Drawings
Fig. 1 is a schematic electrical connection diagram of an automatic battery cluster address allocation system according to an embodiment of the present invention.
Fig. 2 is a schematic flow chart of a method for automatically allocating a battery cluster address according to an embodiment of the present invention.
Fig. 3 is a flowchart illustrating a method for automatically allocating a battery cluster address according to another embodiment of the present invention.
FIG. 4 is a circuit diagram of an address input terminal, a counter, and an address output terminal according to an embodiment of the invention.
Fig. 5 is a schematic circuit diagram of an MCU microcontroller, a communication module, and an address reading module according to an embodiment of the present invention.
Detailed Description
It should be noted that the embodiments and features of the embodiments may be combined with each other without conflict. The present invention will be described in detail below with reference to the embodiments with reference to the attached drawings.
Referring to fig. 1-5, the invention provides a system for automatically allocating addresses of battery clusters based on chain connection, comprising: the system comprises a main controller and a plurality of battery clusters, wherein the battery clusters are mutually interconnected in a daisy chain manner;
the battery cluster comprises a shell, a communication module, an MCU (micro control unit), an address reading module and a counter, wherein the communication module, the MCU, the address reading module and the counter are arranged in the shell;
the shell is provided with an address input end, an address output end and a communication port for communicating with the main controller, the address input end is respectively and electrically connected with the counter and the address reading module, the counter is electrically connected with the address output end, the address reading module is electrically connected with the MCU, the MCU is electrically connected with the communication module, and the communication module is electrically connected with the communication port;
the address output end of each battery cluster in the plurality of battery clusters in the daisy chain is connected to the address input end of the next battery cluster, and the communication ports of the plurality of battery clusters in the daisy chain are connected to the main controller through the communication bus;
the counter is used for acquiring a communication address through the address input end, increasing or decreasing the acquired communication address by one counting unit, generating a new communication address and transmitting the new communication address to the address input end of the next battery cluster through the address output end;
the address reading module of each battery cluster is used for acquiring a communication address through an address input end and sending the communication address to the MCU;
the MCU is used for taking the acquired communication address as the communication address of the battery cluster and transmitting the communication address information of the battery cluster to a communication bus through the communication module and the communication port;
the main controller is used for acquiring the communication address of each battery cluster through the communication bus and detecting the repeated address according to the acquired communication address of each battery cluster;
when the duplicate address does not exist, the main controller sends a signal with a normal communication address to each battery cluster through the communication bus, and each battery cluster finishes address allocation work according to the received signal with the normal communication address;
when the duplicate addresses exist, the main controller sends out alarm information, the connection of each battery cluster is manually checked and corrected, the main controller sends out signals with abnormal communication addresses to each battery cluster through the communication bus, each battery cluster re-determines the communication addresses of each battery cluster according to the received signals with abnormal communication addresses, and the main controller re-acquires the communication addresses of each battery cluster and carries out duplicate address detection according to the acquired communication addresses of each battery cluster until each battery cluster finishes address allocation work.
According to the invention, a plurality of battery clusters are interconnected in a daisy chain manner, the address output end of each battery cluster is connected to the address input end of the next battery cluster and is used as a communication address signal of the next battery cluster, each battery cluster realizes automatic allocation and accumulation of communication addresses of the plurality of battery clusters through the cooperation of the internal counter, the address reading module, the MCU and the communication module, the addresses are not repeated, the processing of the automatic allocation process of the addresses of the whole battery cluster is relatively simple and more efficient, a dial switch and the like are not needed, errors caused by the setting problem of the dial switch are avoided, convenience is brought to subsequent battery cluster replacement, and the battery clusters corresponding to the communication addresses are fixed in position, more accurate in positioning, more convenient to maintain and less in cables.
Of course, it will be understood by those skilled in the art that the battery cluster further includes a battery pack disposed within the housing, the battery pack being used to power the communication module, the MCU microcontroller, the address reading module, and the counter.
In this embodiment, the main controller is an upper computer.
In the embodiment, a host communication address is preset in the MCU microcontroller of each battery cluster, and the MCU microcontroller is configured to determine whether the MCU microcontroller is a master controller according to the communication address of the battery cluster and the host communication address;
when the communication address of the battery cluster is consistent with the communication address of the host, the MCU serves as a main controller to acquire the communication addresses of the rest battery clusters in the daisy chain through a communication bus;
and when the communication address of the battery cluster is not consistent with the communication address of the host, the MCU serves as a slave to transmit the communication address information of the battery cluster to the master controller through the communication bus.
According to the arrangement, the master and the slave can be automatically identified through the address under the condition that no external master control device exists, and therefore the automatic allocation of the addresses of the solid line battery clusters is efficient and rapid.
In a further embodiment, the host communication address is an initial communication address.
In a further embodiment, the communication address of the battery cluster with the suspended address input end is the initial communication address.
In specific implementation, an address input end of a first battery cluster at a first end of the daisy chain is suspended, the address input end is at a full high level or a full low level, and a communication address of the battery cluster is an initial communication address.
In this embodiment, the main controller is preset with an alarm function to facilitate timely alarm.
In this embodiment, the address input terminal and the address output terminal are serial ports or parallel ports. When the address input terminal and the address output terminal are four-pin parallel ports, the initial communication address is 1111 or 0000.
As shown in fig. 5, in this embodiment, the communication module is a communication isolation transceiver. And the MCU microcontroller and the communication module adopt CAN communication.
As shown in fig. 4, in the present embodiment, the counter includes an SN74LS283 adder to realize the accumulation of addresses.
In one embodiment, the default initial communication address is 0000. Therefore, the communication address at the address input terminal of the first cell cluster at the first end of the daisy chain is 0000, and the counter increments the acquired communication address 0000 by one count unit, generates a new communication address 0001, and supplies the new communication address 0001 to the address output terminal. Therefore, the communication address input by the address input end of the next battery cluster in the daisy chain is 0001, after passing through the counter of the battery cluster, the communication address output by the address output end is 0010, and is transmitted to the address input end of the next battery cluster, and so on, the communication addresses of the battery clusters are continuously overlapped.
The invention also provides a method for automatically allocating the battery cluster address based on chain connection, which is applied to any one of the above-mentioned systems for automatically allocating the battery cluster address, and specifically comprises the following steps:
the method comprises the following steps of interconnecting a plurality of battery clusters in a daisy chain manner, and connecting the plurality of battery clusters to a main controller through a communication bus;
each battery cluster respectively determines the communication address of the battery cluster and transmits the communication address of the battery cluster to a communication bus;
the main controller acquires the communication address of each battery cluster through the communication bus and performs repeated address detection according to the acquired communication address of each battery cluster;
when no duplicate address exists, the main controller sends a signal with a normal communication address to each battery cluster, and each battery cluster finishes address allocation work according to the received signal with the normal communication address;
when the duplicate address exists, the main controller sends out alarm information, the connection of each battery cluster is manually checked and corrected, the main controller sends out a signal with an abnormal communication address to each battery cluster through the communication bus, each battery cluster re-determines the communication address of each battery cluster according to the received signal with the abnormal communication address, and the main controller re-acquires the communication address of each battery cluster and performs duplicate address detection according to the acquired communication address of each battery cluster until each battery cluster finishes address allocation work.
The invention can realize the automatic allocation and accumulation of the communication addresses of a plurality of battery clusters, the addresses can not be repeated, the processing of the automatic allocation process of the addresses of the whole battery cluster is relatively simple and more efficient, a dial switch and the like are not needed, the error caused by the setting problem of the dial switch is avoided, the convenience is brought to the subsequent battery cluster replacement, and the battery cluster corresponding to the communication address is fixed in position, more accurate in positioning and more convenient in maintenance.
In the embodiment, a plurality of battery clusters are interconnected with each other in a daisy chain manner, specifically including;
an address output terminal of each of the plurality of battery clusters in the daisy chain is connected to an address input terminal of a next battery cluster.
In this embodiment, each battery cluster determines a communication address of the battery cluster, and transmits the communication address of the battery cluster to a communication bus, which specifically includes:
the address reading module of each battery cluster acquires a communication address through an address input end and sends the communication address to the MCU;
and the MCU determines the communication address of the battery cluster according to the acquired communication address, and transmits the communication address of the battery cluster to the communication bus through the communication module and the communication port.
In a further embodiment, each battery cluster respectively determines a communication address of the battery cluster and transmits the communication address of the battery cluster to the communication bus, and the method further includes:
the counter of each battery cluster acquires a communication address through the address input end, increases or decreases the acquired communication address by one counting unit, forms a new communication address and transmits the new communication address to the address input end of the next battery cluster through the address output end.
By the arrangement, addresses of the battery clusters can be continuously and automatically overlapped, the method is simple, and errors are not easy to occur.
In the implementation shown in fig. 4, the counter automatically increments or decrements the communication address by 1 bit by an adder SN74LS283 circuit to realize the address accumulation.
In one embodiment, the reading, by the master controller, communication address information sent by each battery cluster through a communication bus specifically includes:
the main controller is an upper computer, and the upper computer reads the communication address of each battery cluster through a communication bus.
As shown in fig. 2, in one specific embodiment, the method specifically includes:
connecting an address output end in each battery cluster to an address input end of the next battery cluster so as to mutually connect a plurality of battery clusters in a daisy chain manner, and connecting a communication port of each battery cluster to an upper computer through a communication bus;
each battery cluster respectively determines the communication address of the battery cluster and transmits the communication address of the battery cluster to a communication bus through a communication module and a communication port;
the counter of each battery cluster acquires a communication address through an address input end, increases or decreases the acquired communication address by one counting unit, forms a new communication address and transmits the new communication address to the address input end of the next battery cluster through an address output end;
the address reading module of each battery cluster acquires a communication address through an address input end and sends the communication address to the MCU;
the MCU microcontroller determines the communication address of the battery cluster according to the acquired communication address, and transmits the communication address of the battery cluster to a communication bus through a communication module and a communication port;
the upper computer acquires the communication address of each battery cluster through the communication bus and performs repeated address detection according to the acquired communication address of each battery cluster;
when no duplicate address exists, determining that the communication address is normal for each battery cluster, and finishing address allocation work for each battery cluster according to the received information for determining the normal;
when the duplicate addresses exist, the main controller sends out alarm information, the connection of each battery cluster is manually checked and corrected, the main controller sends out signals with abnormal communication addresses to each battery cluster through the communication bus, each battery cluster re-determines the communication addresses of each battery cluster according to the received signals with abnormal communication addresses, and the main controller re-acquires the communication addresses of each battery cluster and carries out duplicate address detection according to the acquired communication addresses of each battery cluster until each battery cluster finishes address allocation work.
When no external master control exists, in order to quickly implement automatic allocation of addresses of each battery cluster, in another embodiment, the master controller reads the communication address of each battery cluster through a communication bus, and specifically includes:
a host communication address is preset in the MCU microcontroller of each battery cluster, and the MCU microcontroller judges whether the MCU microcontroller is a main controller according to the communication address of the battery cluster and the host communication address;
when the acquired communication address is consistent with the communication address of the host, the MCU is used as a main controller to acquire the communication addresses of the rest battery clusters in the daisy chain through a communication bus;
and when the acquired communication address is inconsistent with the communication address of the host, the MCU serves as a slave computer to transmit the communication address information of the battery cluster to the main controller through the communication bus.
In a further embodiment, the host communication address is an initial communication address.
In a further specific embodiment, the communication address of the battery cluster with the floating address input end is used as the initial communication address. The battery clusters are mutually interconnected to form a daisy chain, the address input end of the first battery cluster positioned at the first end of the daisy chain is suspended, the communication address of the address input end of the battery cluster is constant, and the communication addresses of the battery clusters obtained by sequentially accumulating through the counter are stable and are not easy to make mistakes.
In another embodiment, as shown in fig. 3, the method specifically comprises:
connecting the address output end of each battery cluster to the address input end of the next battery cluster so as to interconnect a plurality of battery clusters in a daisy chain manner, and connecting the communication port of each battery cluster to a communication bus;
each battery cluster respectively determines the communication address of the battery cluster and transmits the communication address of the battery cluster to a communication bus;
the counter of each battery cluster acquires a communication address through an address input end, increases or decreases the acquired communication address by one counting unit, forms a new communication address and transmits the new communication address to the address input end of the next battery cluster through an address output end;
the address reading module of each battery cluster acquires a communication address through an address input end and sends the communication address to the MCU;
the MCU determines a communication address of the battery cluster according to the acquired communication address, and transmits the communication address of the battery cluster to a communication bus through a communication module and a communication port;
the main controller acquires the communication address of each battery cluster through a communication bus;
the method comprises the following steps that an MCU (microprogrammed control Unit) microcontroller of each battery cluster is preset with an initial communication address, and the MCU microcontroller judges whether the MCU microcontroller is a main controller or not according to the communication address and the initial communication address of the battery cluster;
when the communication address of the battery cluster is consistent with the initial communication address, the MCU is used as a main controller to acquire the communication addresses of other battery clusters through a communication bus;
when the communication address of the battery cluster is inconsistent with the initial communication address, the MCU serves as a slave computer to transmit the communication address of the battery cluster to the main controller through the communication bus;
the main controller performs repeated address detection according to the acquired communication address of each battery cluster;
when no duplicate address exists, the main controller sends a signal with a normal communication address to each battery cluster, and each battery cluster finishes address allocation work according to the received signal with the normal communication address;
when address duplication exists, the main controller sends out alarm information, connection of each battery cluster is checked and corrected manually, the main controller sends out a signal of communication address abnormity to each battery cluster through the communication bus, each battery cluster determines the communication address of the battery cluster again according to the received signal of communication address abnormity, and the main controller obtains the communication address of each battery cluster again and detects the duplicate address until each battery cluster finishes address allocation work.
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art should be considered as the technical solutions and the inventive concepts of the present invention within the technical scope of the present invention.

Claims (10)

1. A kind of automatic distribution system of battery cluster address based on chain connection, characterized by that, including: the system comprises a main controller and a plurality of battery clusters, wherein the battery clusters are mutually interconnected in a daisy chain manner;
the battery cluster comprises a shell, a communication module, an MCU (micro control unit), an address reading module and a counter, wherein the communication module, the MCU, the address reading module and the counter are arranged in the shell;
the shell is provided with an address input end, an address output end and a communication port for communicating with the main controller, the address input end is respectively and electrically connected with the counter and the address reading module, the counter is electrically connected with the address output end, the address reading module is electrically connected with the MCU microcontroller, the MCU microcontroller is electrically connected with the communication module, and the communication module is electrically connected with the communication port;
the address output end of each battery cluster in the plurality of battery clusters in the daisy chain is connected to the address input end of the next battery cluster, and the communication ports of the plurality of battery clusters in the daisy chain are connected to the main controller through the communication bus;
the counter is used for acquiring the communication address through the address input end, increasing or decreasing the acquired communication address by one counting unit, generating a new communication address and transmitting the new communication address to the address input end of the next battery cluster through the address output end;
the address reading module of each battery cluster is used for acquiring a communication address through an address input end and sending the communication address to the MCU;
the MCU is used for taking the acquired communication address as the communication address of the battery cluster and transmitting the communication address information of the battery cluster to the communication bus through the communication module and the communication port;
the main controller is used for acquiring the communication address of each battery cluster through the communication bus and detecting the repeated address according to the acquired communication address of each battery cluster;
when the duplicate address does not exist, the main controller sends a signal with a normal communication address to each battery cluster through the communication bus, and each battery cluster finishes address allocation work according to the received signal with the normal communication address;
when the duplicate address exists, the main controller sends out alarm information, the connection of each battery cluster is manually checked and corrected, the main controller sends out a signal with an abnormal communication address to each battery cluster through the communication bus, each battery cluster re-determines the communication address of each battery cluster according to the received signal with the abnormal communication address, and the main controller re-acquires the communication address of each battery cluster and performs duplicate address detection according to the acquired communication address of each battery cluster until each battery cluster finishes address allocation work.
2. The automatic distribution system of battery cluster addresses based on chain connection of claim 1, wherein the master controller is an upper computer.
3. The automatic battery cluster address allocation system based on chain connection according to claim 1, wherein a host communication address is preset in the MCU microcontroller of each battery cluster, and the MCU microcontroller is configured to determine whether the MCU microcontroller is the master controller according to the communication address of the battery cluster and the host communication address;
when the communication address of the battery cluster is consistent with the communication address of the host, the MCU serves as a main controller to acquire the communication addresses of the rest battery clusters in the daisy chain through a communication bus;
and when the communication address of the battery cluster is not consistent with the communication address of the host, the MCU serves as a slave to transmit the communication address of the battery cluster to the master controller through the communication bus.
4. The system according to claim 3, wherein the host communication address is an initial communication address.
5. The automatic distribution system for addresses of battery clusters based on chain connection according to claim 4, wherein the communication address of the battery cluster with the suspended address input end is the initial communication address.
6. A method for automatically allocating a battery cluster address based on chain connection is applied to the system for automatically allocating the battery cluster address according to any one of claims 1 to 5, and specifically comprises the following steps:
the method comprises the following steps of interconnecting a plurality of battery clusters in a daisy chain manner, and connecting the plurality of battery clusters to a main controller through a communication bus;
each battery cluster respectively determines the communication address of the battery cluster and respectively transmits the communication address of the battery cluster to a communication bus;
the main controller acquires the communication address of each battery cluster through the communication bus and performs repeated address detection according to the acquired communication address of each battery cluster;
when no repeated address exists, the main controller sends a signal with a normal communication address to each battery cluster through the communication bus, and each battery cluster finishes address allocation work according to the received signal with the normal communication address;
when the duplicate address exists, the main controller sends out alarm information, the connection of each battery cluster is manually checked and corrected, the main controller sends out a signal with an abnormal communication address to each battery cluster through the communication bus, each battery cluster re-determines the communication address of each battery cluster according to the received signal with the abnormal communication address, and the main controller re-acquires the communication address of each battery cluster and performs duplicate address detection according to the acquired communication address of each battery cluster until each battery cluster finishes address allocation work.
7. The automatic distribution method of the battery cluster addresses based on the chain connection according to claim 6, wherein the plurality of battery clusters are interconnected with each other in a daisy chain form, and specifically comprises;
an address output terminal of each of the plurality of battery clusters in the daisy chain is connected to an address input terminal of a next battery cluster.
8. The method for automatically allocating a battery cluster address based on chain connection according to claim 6, wherein each battery cluster respectively determines a communication address of the battery cluster and respectively transmits the communication address of the battery cluster to a communication bus, and specifically comprises:
the address reading module of each battery cluster acquires a communication address through an address input end and sends the communication address to the MCU;
and the MCU determines the communication address of the battery cluster according to the acquired communication address, and transmits the communication address information of the battery cluster to the communication bus through the communication module and the communication port.
9. The method according to claim 8, wherein each battery cluster determines a communication address of the battery cluster and transmits the communication address of the battery cluster to the communication bus, and further comprising:
the counter of each battery cluster acquires a communication address through the address input terminal, and increments or decrements the acquired communication address by one count unit to form a new communication address and transmits the new communication address to the address input terminal of the next battery cluster through the address output terminal.
10. The method for automatically allocating the addresses of the battery clusters based on the chain connection according to claim 6, wherein the main controller obtains the communication addresses of the battery clusters through a communication bus, and specifically comprises:
a host communication address is preset in the MCU microcontroller of each battery cluster, and the MCU microcontroller judges whether the MCU microcontroller is a main controller according to the communication address of the battery cluster and the host communication address;
when the communication address of the battery cluster is consistent with the communication address of the host, the MCU is used as a main controller to acquire the communication addresses of other battery clusters in the daisy chain through a communication bus;
and when the communication address of the battery cluster is inconsistent with the communication address of the host, the MCU is used as a slave computer to transmit the communication address of the battery cluster to the main controller through the communication bus.
CN202211478925.8A 2022-11-24 2022-11-24 Automatic battery cluster address distribution system and method based on chain connection Active CN115580596B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211478925.8A CN115580596B (en) 2022-11-24 2022-11-24 Automatic battery cluster address distribution system and method based on chain connection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211478925.8A CN115580596B (en) 2022-11-24 2022-11-24 Automatic battery cluster address distribution system and method based on chain connection

Publications (2)

Publication Number Publication Date
CN115580596A CN115580596A (en) 2023-01-06
CN115580596B true CN115580596B (en) 2023-03-10

Family

ID=84590790

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211478925.8A Active CN115580596B (en) 2022-11-24 2022-11-24 Automatic battery cluster address distribution system and method based on chain connection

Country Status (1)

Country Link
CN (1) CN115580596B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116366600A (en) * 2023-02-28 2023-06-30 大秦新能源科技(泰州)有限公司 Multi-cluster parallel operation address allocation method and system for lithium ion battery module
CN116708375A (en) * 2023-08-07 2023-09-05 宁波德业储能科技有限公司 Equipment address allocation method, device and medium of container energy storage system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105045160A (en) * 2014-04-30 2015-11-11 三星电子株式会社 Method and apparatus for generating slave device identifier
CN105653003A (en) * 2015-12-30 2016-06-08 深圳市科陆电子科技股份有限公司 Cell management unit, cell management system, and communication management method and system of cell management system
CN106657427A (en) * 2016-08-12 2017-05-10 上海鼎研智能科技有限公司 Battery module address distribution system and method
CN107508930A (en) * 2017-09-15 2017-12-22 上海炙云新能源科技有限公司 ID distribution methods and system
CN112531224A (en) * 2020-11-18 2021-03-19 许继集团有限公司 Battery management system and automatic address allocation method for battery management unit
CN114827088A (en) * 2022-03-24 2022-07-29 珠海金电电源工业有限公司 Address assignment system, method, electronic device, storage medium, and program product

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080183914A1 (en) * 2007-01-31 2008-07-31 Analog Devices, Inc Method of and apparatus for addressing a target device within a chain of devices
CN107133188B (en) * 2017-04-24 2020-05-05 京信通信系统(中国)有限公司 Daisy chain connected master-slave communication address distributing method, system and slave computer and master computer
CN112637371B (en) * 2020-07-31 2023-04-07 深圳优地科技有限公司 Node address determination method and device, electronic equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105045160A (en) * 2014-04-30 2015-11-11 三星电子株式会社 Method and apparatus for generating slave device identifier
CN105653003A (en) * 2015-12-30 2016-06-08 深圳市科陆电子科技股份有限公司 Cell management unit, cell management system, and communication management method and system of cell management system
CN106657427A (en) * 2016-08-12 2017-05-10 上海鼎研智能科技有限公司 Battery module address distribution system and method
CN107508930A (en) * 2017-09-15 2017-12-22 上海炙云新能源科技有限公司 ID distribution methods and system
CN112531224A (en) * 2020-11-18 2021-03-19 许继集团有限公司 Battery management system and automatic address allocation method for battery management unit
CN114827088A (en) * 2022-03-24 2022-07-29 珠海金电电源工业有限公司 Address assignment system, method, electronic device, storage medium, and program product

Also Published As

Publication number Publication date
CN115580596A (en) 2023-01-06

Similar Documents

Publication Publication Date Title
CN115580596B (en) Automatic battery cluster address distribution system and method based on chain connection
US6044411A (en) Method and apparatus for correlating computer system device physical location with logical address
CA1273433A (en) Diagnostic system
EP2180389A1 (en) Pluggable bases with different levels of redundancy
CN109639544A (en) The system and method for automatic distribution address
WO2013174125A1 (en) Single board communication method, system and single board
CN211505789U (en) PCIE board card testing arrangement
CN102255766B (en) Server system
CN107832193B (en) Based on I2Multi-board-card state monitoring method for C bus
CN212229622U (en) Navigation module testing device and system
EP3499250B1 (en) Rectifier identification method and device
CN211859067U (en) Socket and air conditioning system
TW201939821A (en) System comprising multiple functional modules and addressing method for functional modules thereof
CN210518417U (en) Address allocation system
CN108304290A (en) Server power-up state monitors system and method, computer storage and equipment
CN209860930U (en) Modular ubiquitous power Internet of things platform based on data exchange of hybrid communication network
CN113253652A (en) Unit communication control device, method and unit
CN215117503U (en) Bus manager BA host machine for MVB communication of train
CN216161092U (en) Slave plate address recognition device
CN215932619U (en) Slave plate address recognition device
CN217212930U (en) Quick testing arrangement of distribution cabinet
CN213658872U (en) Detection device and system for remote IO module
CN217983466U (en) BMS subsystem
CN216696456U (en) Current detection device
CN109274611A (en) The method that baseboard management controller switches shared network protocol

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant