BATTERY MANAGEMENT SYSTEM, AND METHODS FOR ADDRESS ALLOCATION AND OFFLINE RECONNECTION
20240056419 ยท 2024-02-15
Inventors
Cpc classification
Y02T10/70
GENERAL 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
Y02E60/10
GENERAL 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
H04L67/12
ELECTRICITY
International classification
Abstract
Disclosed are a battery management system and methods for address allocation and offline reconnection. A main battery management unit has an address setting enable signal, an address allocation message is sent in a broadcast manner, and the address allocation message comprises an address number and an identification code; when an address needs to be set for a sub-battery management unit, the enable signal is set to be low and valid. When detecting that the enable signal is valid, the sub-battery management unit sets and stores the received address, and if the enable signal is not detected, address pairing can also be completed by means of the identification code in the information.
Claims
1. An address allocation method, wherein in a battery management system consisting of a main battery management unit and N sub-battery management units, where N is greater than or equal to 1, the main battery management unit is connected with the N sub-battery management units through a single bus, and the method for allocating addresses to the sub-battery management units by the main battery management unit specifically includes: S100 After the battery management system is powered on; all sub-battery management units calculate identification codes; S200 The main battery management unit sequentially selects one sub-battery management unit through the I/O line; S300 The main battery management unit sends the address allocation message in a broadcast manner; wherein, the address allocation message comprises an address number and an identification code; S400 After the first sub-battery management unit receives the address allocation message, if the first sub-battery management unit is selected, the first sub-battery management unit judges whether the identification code of the address allocation message is the same as the local identification code of the first sub-battery management unit: if the identification code is the same as the local identification code, entering a normal communication state; if the identification code is different from the local identification code, save the allocated address number, send the local identification code with the configured address to the main battery management unit.
2. The address allocation method according to claim 1, wherein the step S400 further includes: after the first sub-battery management unit receives the address allocation message, if the first sub-battery management unit is not selected and the first sub-battery management unit is no connection timeout, abandon the address allocation message.
3. The address allocation method according to claim 2, wherein the step S400 further includes: after the sub battery management unit receives the address allocation message, the connection timeout has not been selected, and also judges whether the identification code is consistent with the local identification code; if the identification code is consistent with the local identification code, enter normal communication, and mark the corresponding I/O line fault; if the identification code is not consistent with the local identification code, abandon the address allocation message.
4. The address allocation method according to claim 3, wherein the step S400 further includes: if the connection timeout is not selected and the identification code is not consistent with the local identification code, the first sub-battery management unit sends a pairing request message to the main battery management unit, wherein the pairing request message includes the local identification code of the first sub-battery management unit.
5. The address allocation method according to claim 4, further comprising step S500: the main battery management unit receives the local identification code in the pairing request message, and searches whether there is a corresponding record in a record sequence: if there is a corresponding record in the recorded sequence, a pairing message with the recorded sequence position number as the address is sent; if there is no corresponding record in the recording sequence, an unused position number is added or replaced in sequence, and a pairing message with the sequence position as the address is sent.
6. The address allocation method according to claim 5, wherein the step S500 further includes: after the first sub-battery management unit receives the pairing message, the first sub-battery management unit is selected and the identification code of the pairing message is the same as the local identification code, and enter normal communication.
7. A battery management system, comprising a main battery management unit and N sub-battery management units, wherein N is greater than or equal to 1; the main battery management unit is connected with the N sub-battery management units through CAN bus, and each sub-battery management unit adopts an address allocation method according to claim 1, so that the main battery management unit allocates addresses to the N sub-battery management units
8. An offline reconnection method of a battery management system that monitors the connection state of a sub-battery management unit in real time, and if the connection is offline, an address allocation method according to claim 1 is adopted to re-allocate the address until the offline sub-battery management unit resumes connection.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0031]
[0032]
[0033]
DETAILED DESCRIPTION
[0034] The present invention will be described in detail with reference to the drawings.
[0035] In order to make the purpose, technical scheme and advantages of the invention more clear, the invention will be further described in detail with the drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the invention, and are not used to limit the invention.
Embodiment 1
[0036] An address allocation method is shown in
[0041] If it is selected, judge whether the identification code of the address allocation message is the same as the local identification code of the first sub-battery management unit; if the identification code is the same as the local identification code, entering a normal communication state; if the identification code is different from the local identification code, save the allocated address number, send the local identification code to the main battery management unit with the configured address and request pairing, and enter normal communication after successful pairing.
[0042] If it is not selected, then judge whether there is connection timeout (that is, whether the time spent connecting the sub-battery management unit exceeds the preset time), and if there is no connection timeout, the address allocation message is abandoned; if the connection timeout occurs, continue to judge whether the identification code is consistent with the local identification code; if the identification code is consistent with the local identification code, enter normal communication and mark the I/O line fault.
[0043] If the identification code is not consistent with the local identification code, the address allocation message is abandoned, and the first sub-battery management unit sends a pairing request message to the main battery management unit, wherein the pairing request message includes the local identification code of the first sub-battery management unit, and the main battery management unit searches whether there is a corresponding record in the recording sequence after receiving the local identification code in the pairing request message; if there is a corresponding record in the recording sequence, it sends a pairing message with the recorded serial position number as the address; If there is no corresponding record in the recording sequence, an unused position number is added or replaced in sequence, and a pairing message with the sequence position as the address is sent. After the first sub-battery management unit receives the pairing message, the first sub-battery management unit is selected and the identification code of the pairing message is the same as the local identification code, and normal communication is entered.
[0044] Aiming at the problem that the IO mode of address allocation has poor fault tolerance, and once the IO is damaged and system cannot be connected, resulting in the system cannot work in the prior art. The address allocation method of the invention uniquely identifies the sub-battery management system in the system through the IO matching identification code, and provides a fault-tolerant pairing mechanism.
Embodiment 2
[0045] This embodiment provides a battery management system as shown in
[0046] The use of CAN communication requires that the device address is not repeated, so it is necessary to arrange the address of the device on the CAN network. Generally, the system installation is to manually set the fixed address, but in the system of the invention, the system automatically allocates the address and corresponds to the actual physical location, so as to facilitate the troubleshooting, so that the battery pack corresponding to the sub-battery management unit can be arbitrarily combined and easy to operate.
Embodiment 3
[0047] The difference between this embodiment and Embodiment 2 is that the connection status of the sub-battery management unit of the battery management system in Embodiment 2 is monitored in real time. If the sub-battery management unit is offline, the address allocation method in Embodiment 1 is adopted to re-allocate the address until the disconnected sub-battery management unit resumes connection.
[0048] The above is only the preferred embodiment of the invention, and it is not used to limit the invention. Any modification, equivalent substitution and improvement made within the spirit and principle of the invention should be included in the protection scope of the invention.