A distributed battery management system and method
The distributed battery management system of master and slave control units decouples the slave control units from the battery box specifications, solves the problems of firmware version expansion and version mismatch of slave control units, and improves system maintenance efficiency and security.
Patent Information
- Application Number
- CN202611337552.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-31
- Publication Date
- 2026-11-27
AI Technical Summary
In existing technologies, the firmware of the control unit is strongly bound to the physical specifications of the battery box, which leads to software version expansion, complex material inventory management, and security risks such as on-site flashing failure or version mismatch when replacing the battery box after sales.
A distributed battery management system with master and slave control units is adopted. Through the slave control units' indiscriminate data acquisition and the master control unit's pre-stored branch type identifiers and configuration mapping tables, the unified management of the battery state estimation parameter set is realized. The slave control units and battery box specifications are decoupled, and a blind acquisition mode and a unified automatic communication address allocation mechanism are adopted.
The software version of the control unit has been fully universalized, which has reduced the complexity of material inventory management, simplified the after-sales replacement process of battery boxes, and improved system maintenance efficiency and security.
Smart Images

Figure CN123169736A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of vehicle battery management, specifically to a distributed battery management system and method. Background Technology
[0002] Vehicle battery management systems (BMS) generally adopt a distributed architecture with one master control unit (BCU) and multiple slave control units (BMUs). In existing distributed BMS solutions, a typical implementation method is firmware embedding.
[0003] In firmware-based solutions, the BMU's firmware typically embeds the specific specifications of the mounted battery module, including the number of battery cells in series, the effective channel occupancy method of the analog front-end AFE chip, and the corresponding state estimation SOX parameters. This tightly binds the BMU software version to the physical specifications of the battery box. However, the commercial vehicle sector is characterized by a wide variety of models, small order batches, and highly customized battery boxes. Different battery boxes may use different numbers of cells in series or different channel combinations of the same AFE chip, requiring the development and maintenance of a corresponding BMU firmware version for each new battery box specification. This not only increases costs by requiring the production side to manage a large number of BMU software versions and material inventory, but also poses a safety risk of on-site flashing failure or version mismatch when replacing battery boxes during after-sales maintenance if the BMU firmware version is incompatible with the new battery box.
[0004] Therefore, how to reduce the complexity of BMU software version management and improve production and maintenance efficiency has become a technical problem that urgently needs to be solved by those skilled in the art. Summary of the Invention
[0005] This application provides a distributed battery management system and method, which can solve the technical problems in the prior art, such as the strong binding between the slave control unit firmware and the physical specifications of the battery box, which leads to software version expansion, complex material inventory management, and security risks of on-site flashing failure or version mismatch when replacing the battery box after sales.
[0006] In a first aspect, embodiments of this application provide a distributed battery management system, including: The slave control unit is used to collect data from all sampling channels without discrimination, obtain sampling data, and send the sampling data to the master control unit; The main control unit is configured to pre-store the branch type identifier and configuration mapping table corresponding to the communication bus. It is used to look up the configuration mapping table with the branch type identifier as the index, extract the corresponding battery state estimation parameter set, and perform battery state estimation based on the battery state estimation parameter set and the sampled data.
[0007] Secondly, embodiments of this application provide a distributed battery management method, including: The slave control unit collects data from all sampling channels without discrimination, obtains sampling data, and sends the sampling data to the master control unit. The main control unit pre-stores the branch type identifier and configuration mapping table corresponding to the communication bus. The main control unit searches the configuration mapping table based on the branch type identifier, extracts the corresponding battery status estimation parameter set, and performs battery status estimation based on the battery status estimation parameter set and the sampled data.
[0008] The distributed battery management system and method provided in this application include: a master control unit and a slave control unit connected to the master control unit via a communication bus. The slave control unit is used to mount a battery box. The slave control unit is used to collect data from all sampling channels without discrimination, obtain sampling data, and send the sampling data to the master control unit. The master control unit is configured to pre-store the branch type identifier and configuration mapping table corresponding to the communication bus. It is used to look up the configuration mapping table with the branch type identifier as an index, extract the corresponding battery state estimation parameter set, and perform battery state estimation based on the battery state estimation parameter set and the sampling data. This solves the technical problems in related technologies where the slave control unit firmware is strongly bound to the physical specifications of the battery box, and the software version continuously expands with the specifications of the battery box, resulting in complex material inventory management, the need to flash firmware on-site when replacing the battery box, and the security risks of version mismatch and flashing failure. Its beneficial effects are that by collecting data indiscriminately from the slave control unit and centrally managing the branch type identifier and configuration mapping table in a unified manner by the master control unit, the slave control unit's hardware and software are completely universal, eliminating the problem of slave control firmware version expansion, simplifying the after-sales replacement process of the battery box, reducing the security risks caused by on-site flashing, and improving system maintenance efficiency. Attached Figure Description
[0009] Figure 1 This is a schematic diagram of the architecture of an embodiment of the distributed battery management system of this application; Figure 2 This is a flowchart illustrating an embodiment of the distributed battery management method of this application. Detailed Implementation
[0010] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present application.
[0011] First, some of the technical terms used in this application will be explained to help those skilled in the art understand this application.
[0012] BMU (Battery Management Unit) refers to the slave control module in a distributed battery system responsible for collecting data from the battery cells.
[0013] BCU (Battery Control Unit) refers to the main control module in a distributed battery system that is responsible for overall strategy calculation and management. LMU (Local Management Unit) often refers to the management node responsible for monitoring the battery in a local area in a battery architecture. SOC (State of Charge) is used to characterize the percentage of a battery's current remaining charge relative to its full capacity. AFE (Analog Front End) refers to the core hardware chip in a battery management system that is responsible for analog signal acquisition and conversion. CMC (Cell Management Controller) typically refers to the slave control unit in a distributed battery system responsible for managing and communicating data between individual cells. CSC (Cell Supervision Circuit) typically refers to the hardware circuit or chip in a battery management system that is responsible for directly collecting cell voltage and temperature. EOL (End of Line) refers to the system configuration, calibration, and testing process performed at the final stage after the completion of vehicle or battery pack manufacturing.
[0014] SOX (State of X, a general term for battery states) includes State of Charge (SOC), State of Health (SOH), State of Power (SOP), etc. SOX parameters refer to curves and correction factors related to battery state estimation, including OCV-SOC curves, internal resistance correction factors, and capacity calibration parameters.
[0015] It is important to understand that new energy commercial vehicles are generally equipped with multi-branch battery systems, and the battery management system (BMS) widely adopts a distributed architecture consisting of a master control unit (BCU) and multiple slave control units (BMUs).
[0016] One mainstream solution is a firmware-fixed master-slave architecture, which sets up a BMU master control board and multiple LMU acquisition slave boards. The LMUs communicate with the BMU via a daisy chain. The LMU firmware fixes the voltage and temperature acquisition logic for the corresponding battery module, and the BMU aggregates the data to complete the battery status calculation. In this type of solution, the slave control unit firmware is bound to the physical specifications of the battery box it is mounted on. Battery boxes with different numbers of series and different AFE channel occupancy methods require different versions of slave control firmware. Commercial vehicle models are numerous and battery boxes are highly customized. The continuous addition of new battery box specifications will constantly drive the creation of new slave control firmware versions, leading to a series of problems such as firmware version expansion, difficulty in production and warehouse management, and the need for on-site firmware flashing when replacing battery boxes after sales.
[0017] To address the shortcomings of firmware-based solutions, a novel adaptive channel configuration improvement scheme is proposed. The system comprises a management unit and multiple acquisition units. During power-up, the management unit sends scanning commands to the acquisition units, which then report battery pack information, valid channel information, and sampling chip model. Based on feedback, the management unit determines the physical connection sequence and sends configuration parameters to the acquisition units to complete the adaptive configuration. This scheme reduces the number of slave firmware types, but the acquisition units still require built-in identity reporting logic, preventing completely indiscriminate acquisition. Each system power-up requires a scanning and parameter delivery process, increasing startup time with the number of nodes. Furthermore, this scheme only implements adaptive channel mapping and does not provide a method for automatically switching SOX parameters according to the battery pack, nor does it offer a system-level control solution for multiple branches in the same vehicle equipped with different battery pack specifications.
[0018] Furthermore, traditional distributed BMS systems commonly suffer from problems during engineering implementation, such as the need for manual numbering of slave control modules, cumbersome network flashing of programs, and complex hardware address configuration. In battery swapping applications, slave control modules require communication addresses to be set based on the battery pack installation location, making it difficult to standardize and universalize battery modules. These shortcomings are further amplified in the context of small-batch, multi-variety, and variable battery box combinations in commercial vehicles. At the end-of-life (EOL) stage after vehicle production, current practices require flashing the corresponding box-type firmware for each branch slave control unit, or having production line personnel manually check the slave control firmware version based on the bill of materials. This configuration process is complex and carries a high risk of human error. When vehicles use multi-branch heterogeneous battery combinations, there is a lack of a unified configuration entry point and parameter verification mechanism.
[0019] In summary, existing technologies suffer from a series of interconnected defects, including strong coupling between the control unit firmware and battery box specifications, numerous firmware versions, long system power-on adaptive scanning time, lack of SOX parameter adaptive switching mechanism, difficulty in supporting mixed installation of multiple heterogeneous batteries in the same vehicle, and complex vehicle EOL configuration process.
[0020] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.
[0021] In a first aspect, embodiments of this application provide a distributed battery management system.
[0022] In one embodiment, reference is made to Figure 1 , Figure 1 This is a schematic diagram of the framework of the first embodiment of the distributed battery management system of this application. Figure 1 As shown, the distributed battery management system includes a master control unit and multiple slave control units, which are connected via a communication bus. In this embodiment, the master control unit is a BCU, the slave control units are BMUs, and the communication bus is a CAN bus.
[0023] In this embodiment, the main control unit (BCU) can be integrated with the vehicle domain controller. The BCU is configured to perform battery state estimation, equalization control, fault diagnosis, and communication with other vehicle controllers. It stores system configuration information internally and supports writing differentiated configuration parameters for each battery branch during the end-of-life (EOL) stage of vehicle production.
[0024] Multiple general-purpose BMUs serve as slave control modules, each connected to a corresponding battery box; that is, one BMU corresponds to one battery box. Each battery branch in the system corresponds to an independent CAN communication bus, with a maximum of two BMUs connected to a single CAN bus. All BMUs are completely identical in hardware structure and software program at the factory, and are initially configured with the default communication address of the A board, without the need to distinguish hardware versions or flash different firmware.
[0025] The system-compatible battery box supports flexible combinations, such as... Figure 1 As shown, different battery branches of the vehicle can be equipped with battery boxes of different specifications. Box A (60 cells), Box B (40 cells), and Box C (50 cells) can be combined as needed. Under the condition that the cell formula and cell capacity are consistent, battery boxes of different specifications can be used interchangeably across branches, improving the flexibility of the overall vehicle battery pack layout.
[0026] Specifically, the main control unit, as the centralized unit carrying all the differentiated configurations of the entire battery management system, has core designs including the branch type identifier CellTypeValue and the configuration mapping table. Each battery branch is assigned a CellTypeValue parameter at the EOL (End of Service) stage after vehicle production. This parameter is an integer value, for example, ranging from 1 to 255, and is stored in the non-volatile memory of the main control unit as a unique index of the battery box type of that branch.
[0027] During the end-of-life (EOL) test after the vehicle rolls off the production line, the production line equipment writes the corresponding CellTypeValue value based on the actual battery box combination installed in that branch, such as a series combination of box A and box B. The calibration object is the main control unit side, and each branch is calibrated independently. The main control unit maintains an index array internally. For example, when the vehicle is configured with four battery branches, the length of this array is 4, denoted as CellTypeValue[1..4], which stores the identification parameters of the four branches respectively.
[0028] The main control unit has a pre-built configuration mapping table. This mapping table can be automatically generated and compiled into the main control unit firmware using a host computer tool combined with a configuration template, such as an Excel file. The configuration mapping table uses CellTypeValue as the index field and includes the total number of branches, the number of AFE chips, the voltage sampling mask VoltMask and temperature sampling mask TempMask corresponding to each AFE, and the SOX parameter set index. The structure of the configuration mapping table is shown in Table 1 below: Table 1 Configuration Mapping Table CellTypeValue Total number of branches AFE quantity AFE1_VoltMask AFE2_VoltMask ... AFE1_TempMask ... SOX Parameter Set Index 1 60 5 [1,1,...,0] ... ... [1,1,1,1] ... CurveSet_A60 2 40 3 [1,1,...,0] ... ... [1,1,0,0] ... CurveSet_B40 3 50 4 [1,1,...,0] ... ... [1,1,1,0] ... CurveSet_C50 10 100 8 A-box + B-box combined mask ... ... ... ... CurveSet_AB 11 100 8 C-box + C-box combined mask ... ... ... ... CurveSet_CC In this configuration, VoltMask is the voltage channel mask, and TempMask is the temperature channel mask. Both VoltMask and TempMask are Boolean arrays with a length equal to the number of AFE channels. A 1 indicates that the channel is active and connected to a real battery cell or temperature sensor, while a 0 indicates that it is inactive or suspended. This mask can be automatically generated by a configuration tool based on an Excel template, or processed via a MATLAB script. The battery state estimation parameter set in this embodiment is the SOX parameter set, with indices pointing to a set of parameters stored internally by the main control unit. These parameters include the open-circuit state-of-charge curve (OCV-SOC), internal resistance correction coefficient, and capacity decay factor. Even if different battery cell types have the same formulation, their overall external characteristic curves will vary due to different string counts, requiring independent configuration. Through this design, the main control unit can independently load the configuration parameters of each branch based on the branch type identifier, achieving decoupling between the slave control unit and the battery box specifications.
[0029] In this embodiment, the slave control unit (BMU) runs a completely universal software program, the core design of which is to achieve complete decoupling between the hardware and the battery box specifications. Specifically, the slave control unit adopts a blind sampling mode, and its simulated front-end AFE chip performs indiscriminate data acquisition on all physical sampling channels, such as 14 voltage channels and 4 temperature channels, without distinguishing whether the channel is connected to a real battery cell or temperature sensor. All sampled data, including zero values or random noise data corresponding to invalid channels, are packaged and reported to the master control unit via the communication bus. The slave control unit does not perform data filtering or validity judgment locally; it is only responsible for the acquisition and transmission of raw data. The data filtering logic is executed by the master control unit according to the channel mask in the configuration mapping table.
[0030] The slave control unit does not store any configuration information related to battery box type, battery string count, or SOX parameters for battery state estimation locally. Its function is simplified to collect data from all physical channels at fixed intervals and send it to the master control unit using a fixed communication protocol. Differential configuration information is centrally stored in the master control unit, which retrieves it by looking up the configuration mapping table based on the branch type identifier. Through this design, the slave control unit becomes a truly universal hardware module. Regardless of the battery box specification, there is no need to change the slave control unit's software version or hardware configuration, significantly reducing material management costs and after-sales maintenance complexity.
[0031] Regarding communication address configuration, the slave control units support automatic address allocation. Slave control units are factory-configured with the same default communication address, for example, all configured with the default communication address of board A, and the CAN message transmission identifier is fixed. During the EOL (End-of-Life) stage after vehicle production, external calibration equipment writes specific diagnostic commands to the communication bus of this branch via diagnostic services, for example, writing a data identifier DID of 0xF190 with a data value of 1. Multiple slave control units connected to the same branch communication bus receive this diagnostic command and execute address switching logic. For example, through a random delay contention mechanism, one slave control unit automatically switches its default communication address of board A to the target communication address of board B, while another slave control unit retains its default communication address, thus completing address differentiation. This process requires no hardware jumper settings or flashing different firmware for different addresses, achieving software version uniformity.
[0032] In one embodiment, the slave unit communication address switching process specifically includes: During the vehicle production calibration phase, slave control units receive diagnostic commands sent via the communication bus and respond to these commands with random delays. Specific diagnostic commands can be written to the communication bus via diagnostic services during the vehicle's end-of-life (EOL) testing using external calibration equipment. For example, a data identifier (DID) of 0xF190 and a data value of 0x01 can be written. Upon receiving this diagnostic command, multiple slave control units connected to the same communication bus generate a random waiting time (e.g., a random value between 0 and 100 milliseconds) and wait. The slave control unit that completes its random delay first switches its default communication address to the target communication address, while another slave control unit retains its default communication address, thus achieving communication address differentiation among multiple slave control units on the same communication bus.
[0033] In the specific address switching process, after the random delay ends, the slave unit checks the address switching flag in its local memory. The local memory, for example, is an electrically erasable programmable read-only memory (EEPROM) used to save the address switching state when power is off. If the address switching flag is at its initial value, such as 0xFF, it indicates that the slave unit has not yet performed an address switch. The slave unit then switches its default communication address to the target communication address and modifies the address switching flag to a switched value, such as 0x01. If the address switching flag is already switched, it indicates that another slave unit on the same communication bus has already completed its address switch. In this case, the slave unit retains its default communication address. Through this combination of random delay and secondary flag checking, it ensures that only one slave unit on the same communication bus switches to the target communication address, avoiding address conflicts.
[0034] Furthermore, the master control unit is also used to detect communication address conflicts on the communication bus. During system initialization, the master control unit counts the communication addresses of the slave control units responding on the communication bus. If it detects the existence of identical communication addresses, such as both slave control units switching to the B board address or both retaining the A board address, it generates an error message, such as storing a fault code, illuminating a fault indicator light, or sending a fault message via the CAN bus to request recalibration. This conflict detection mechanism serves as a fallback protection for automatic address allocation, addressing potential race failures under extreme timing conditions, such as two slave control units having the same random delay time and simultaneously completing flag bit writing. The probability is extremely low, but detection by the master control unit ensures system reliability.
[0035] The specific processing flow for automatic address allocation by the slave control unit can be described as follows: After receiving the diagnostic command, the slave control unit first reads the address switching flag in its local EEPROM. If the flag is a switched value, it directly returns a positive response without executing subsequent steps. If the flag is an initial value, the slave control unit generates a random delay duration and waits. After the delay ends, it reads the address switching flag again. If the flag is still an initial value, the slave control unit writes the switched value to the flag and modifies the base address of the CAN message transmission identifier, for example, switching it from the default base address 0x18F100A0 to the target base address 0x18F100B0. If the flag has been modified, the default base address remains unchanged. Finally, the slave control unit sends a positive response to the communication bus to confirm that the command execution is complete.
[0036] Through the above process, all slave control units are configured with the same default communication address at the factory. There is no need for hardware jumpers or pre-programming firmware with different addresses. Address differentiation can be completed automatically with a single diagnostic command in the production line, which significantly simplifies the production configuration process and reduces the complexity of material management.
[0037] In one embodiment, the master control unit is also used to perform corresponding exception handling for inconsistent branch serial numbers and missing slave control units.
[0038] In case of discrepancies in the number of branch circuits, the main control unit calculates the expected voltage range based on the total number of branch circuits and compares it with the actual voltage range of the sampled data. If the deviation exceeds a preset threshold, a configuration error message is generated. If an EOL calibration error during vehicle production results in a discrepancy between the calibrated total number of circuits and the actual installed number, the main control unit can detect the configuration error and report a fault code during initialization by comparing the deviation between the total voltage range and the actual measured value.
[0039] In response to missing slave control units, the master control unit also detects the number of responding slave control units on the communication bus. If the number of detected slave control units is less than a preset number, a communication fault warning is generated, and battery status is estimated based on existing sampled data. If only one slave control unit responds on a certain communication bus, the master control unit detects a missing communication address, reports a communication fault for the corresponding branch, and performs degradation processing.
[0040] In one embodiment of the present invention, the data processing flow of the distributed battery management system during the operation phase is as follows: After the main control unit is initialized, it first reads the branch type identifier (CellTypeValue) of each battery branch. This identifier is written into the non-volatile memory of the main control unit during the vehicle production calibration phase. Based on each branch type identifier, the main control unit loads the corresponding valid sampling point mask (including VoltMask and TempMask), the total number of branch strings, and the battery state estimation parameter set (SOX parameter set) from the configuration mapping table.
[0041] The master control unit receives raw sampled data reported by all slave control units via a communication bus (e.g., 4 independent CAN buses). Multiple slave control units connected to each communication bus (e.g., board A and board B) send data packets using different communication addresses. The master control unit distinguishes the branch and slave control unit to which the data originates based on the communication address.
[0042] The master control unit performs mask filtering on the raw data reported by each slave control unit based on the applied voltage channel mask (oltMask) and temperature channel mask (empMask). Only valid channel data with a mask bit of 1 is retained, while invalid channel data with a mask bit of 0 (such as zero values or noise in floating channels) is discarded. Subsequently, the master control unit reassembles the filtered data into complete voltage and temperature arrays according to the physical connection order.
[0043] The main control unit uses the recombined valid data, the total number of branches, and the corresponding battery state estimation parameter set to perform table lookup and calculations for algorithms such as SOC (State of Charge), SOH (State of Health), and SOP (State of Power). Because different branches are loaded with independent parameter sets, the accuracy of their respective estimations can be guaranteed even if the battery box specifications are different between branches.
[0044] The main control unit performs fault detection for overvoltage, undervoltage, overtemperature, and low temperature based on valid sampling points. If an abnormality is detected, a corresponding fault code is generated and protective measures are taken. Simultaneously, the main control unit performs passive equalization control based on individual cell voltage differences to ensure the consistency of cells within the battery pack.
[0045] This invention supports multi-branch heterogeneous hybrid installation scenarios, meaning that different battery branches in a vehicle can be equipped with battery boxes of different specifications or combinations. The following is a specific example: A commercial vehicle is equipped with two battery branches. Branch 1 consists of a box A (60 cells) and a box B (40 cells) connected in series, for a total of 100 cells; Branch 2 consists of two boxes C (50 cells each) connected in series, also for a total of 100 cells.
[0046] During the vehicle production line rollout, the production line equipment calibrates branch type identifier CellTypeValue = 10 for branch 1 and branch type identifier CellTypeValue = 11 for branch 2. In the configuration mapping table, the configuration items corresponding to CellTypeValue = 10 include: total number of branch series 100, voltage channel mask covering all valid channels of AFEs in both A and B boxes, and battery state estimation parameter set CurveSet_AB (calibrated for A+B combination characteristics). Similarly, CellTypeValue = 11 corresponds to the C+C box combination configuration, with parameter set CurveSet_CC.
[0047] After the main control unit is powered on, it reads the identifiers of the two branches and loads their respective configurations independently. Even though the total number of strings in the two branches is the same (100 strings each), due to differences in cell arrangement, connection internal resistance, and thermal characteristics, the main control unit ensures that the accuracy of the state estimation of the two branches does not interfere with each other by loading different SOX parameter sets.
[0048] Through the above design, the main control unit can flexibly adapt to battery pack combinations of different specifications, while the slave control unit does not need to be aware of any configuration changes, but only needs to execute a unified blind sampling logic. This not only achieves complete universality of the slave control unit software, but also supports the freedom of battery pack layout in the vehicle and the flexibility of after-sales maintenance.
[0049] The following section describes the system in this application, using specific implementation scenarios as examples: In a specific embodiment, the distributed battery management system hardware includes: a main control unit (BCU) installed in the driver's cab domain controller, whose microcontroller unit (MCU) is, for example, an Infineon TC397, with four independent CAN interfaces (CAN1~CAN4), each corresponding to a battery branch. The main control unit's internal Flash memory stores a configuration mapping table, which is binary data compiled from an Excel configuration template using a host computer tool.
[0050] The system comprises multiple slave control units (BMUs), for example, eight, evenly distributed across four CAN buses, with two BMUs connected to each CAN bus. All BMUs have identical hardware, a unified PCB version, and use MCUs such as the NXP S32K144 and analog front-end (AFE) chips such as the ADI LTC6813-1, each supporting 14 voltage channels and 4 temperature channels. Each BMU has identical firmware shipped from the factory, and the CAN transmission ID is configured by default to the default communication address (e.g., the A-board address, ID range 0x180~0x18F). In this specific configuration, the vehicle uses one battery branch (branch 1), consisting of two A-boxes (60 cells per box) connected in series, for a total of 120 cells. The A-box cells are LFP 100Ah.
[0051] The slave control unit runs a completely generic software program that contains no code or constants related to battery cell string count, channel validity, or SOX parameters. It only includes the following functional modules: AFE Blind Sampling Task Module: Periodically (e.g., every 10ms) activates the AFE chip to measure all physical channels (14 voltage channels and 4 temperature channels), regardless of whether the channel is connected to a battery cell. The measurement results are stored in a circular buffer. CAN Transmission Task Module: Packages the raw sampled data (14 voltage values, 4 temperature values, and frame number) from this slave control unit into CAN messages and transmits them at fixed intervals (e.g., every 10ms). The initial CAN ID is the factory default communication address. Diagnostic Monitoring Task Module: Monitors for diagnostic requests on the CAN bus (e.g., compliant with ISO 15765-2 standards). When a write request for a specific data identifier (e.g., DID=0xF190) is received and the data value is 1, the CAN transmit address of this slave unit is switched to the target communication address (e.g., the B board address, ID range 0x190~0x19F), and this flag is saved to the EEPROM. The target communication address is used every time the unit powers on thereafter. This switch is irreversible unless reset via a diagnostic command.
[0052] During the main control unit development phase, an Excel configuration file named BMS_Config.xlsx is maintained, as shown in Table 2. This file contains worksheets such as CellTypeMap (branch type mapping), VoltSample (voltage sampling mask), and TempSample (temperature sampling mask). CellTypeMap defines the mapping relationship between branch type identifiers and branch parameters. For example, CellTypeValue=10 corresponds to a total of 120 strings, 10 AFEs, and the SOX parameter set Curve_LFP_120S. VoltSample and TempSample define the sampling mask for each AFE, with cell content being a boolean array string.
[0053] Table 2 Excel configuration file CellTypeValue TotalCells NumAFEs SOXParamSet Description 1 60 5 Curve_LFP_60S Box A contains 60 strings 2 40 3 Curve_LFP_40S Box B contains 40 strings 3 50 4 Curve_LFP_50S Box C contains 50 strings 10 120 10 Curve_LFP_120S Box A + Box A connected in series 11 90 7 Curve_LFP_90S Box A and Box B are connected in series. ... ... ... ... ... The script automatically reads an Excel file in the Simulink environment using a MATLAB script. It locates the corresponding row based on the branch type identifier, generates a Simulink.Parameter object (e.g., AFE1VoltSample) for each AFE, with data type boolean, storage class set to ConstVolatile, and specifies the header file. The script concatenates the masks of all AFEs into a total mask array (e.g., AllAFEVoltSample), generates the parameter file BMS_Param.c / h, and compiles and links it into the main control unit firmware. After the main control unit powers on, these parameters become read-only constants for runtime code to query.
[0054] When the vehicle rolls off the production line, the production line EOL test equipment communicates with the main control unit via the CAN bus and performs the following steps: The test equipment sends a diagnostic request (DID=0xF190, Data=01) to the CAN bus of branch 1. Both slave control units on this branch receive the request. The two slave control units execute random delay logic (e.g., 0~100ms) internally. One slave control unit first completes the EEPROM flag bit writing and switches the CAN address to the target communication address, while the other slave control unit keeps the default communication address. If an abnormality occurs (e.g., both slave control units succeed at the same time), the main control unit can report an error by detecting duplicate CAN IDs, and the production line re-executes this step. The test equipment writes calibration parameters to the main control unit, such as CellTypeValue[1]=10 (indicating that branch 1 is box A+box A, 120 strings). The main control unit writes this value to non-volatile memory (e.g., DFlash). The main control unit reads the configuration mapping table, loads the mask according to the branch type identifier, and calculates the expected total number of strings. The test equipment reads the confirmation status of the main control unit, and after verification, the End-of-Life (EOL) is completed.
[0055] After the main control unit is powered on and initialized, it reads the branch type identifier CellTypeValue[1] = 10 from the non-volatile memory. The main control unit loads the total number of strings, the number of AFEs, the voltage / temperature sampling mask of each AFE and the SOX parameter set from the internal configuration table according to the branch type identifier index 10. Then it receives the blind sampling data reported by the two slave control units through the CAN bus. The slave control units are distinguished according to the CAN ID and the data is arranged in the agreed order. The main control unit applies the corresponding voltage channel mask to the original voltage value of each AFE: the channel data with a mask of 0 is discarded and the channel data with a mask of 1 is retained. The main control unit reassembles the retained effective voltage values into a voltage array according to the physical order for subsequent SOC calculation. The SOX algorithm module is called, and the voltage array, temperature array and parameter set are passed in to calculate the SOC, SOH, SOP and other states. Finally, the consistency of the individual units is judged according to the effective voltage value and the equalization command is sent to the corresponding slave control unit.
[0056] This embodiment achieves complete universality of the slave control unit software, supporting flexible calibration of battery box combinations of different specifications on the production line, without the need to change the slave control unit hardware or firmware version.
[0057] In a specific embodiment two, this embodiment provides a specific application scenario of multi-branch heterogeneous configuration, focusing on illustrating the present invention's ability to support mixed installation of battery boxes of different specifications.
[0058] This embodiment describes a heavy-duty truck equipped with two battery branches. Branch 1 consists of a battery box A (60 cells) and a battery box B (40 cells) connected in series, for a total of 100 cells; Branch 2 consists of two battery boxes C (50 cells each) connected in series, for a total of 100 cells. All battery boxes have the same cell composition and capacity (e.g., LFP 100Ah), but differ in the number of cells in series and their internal topology.
[0059] The main control unit uses two CAN interfaces. CAN1 corresponds to branch 1, connecting two slave control units (corresponding to boxes A and B respectively); CAN2 corresponds to branch 2, connecting two slave control units (corresponding to two boxes C respectively). CAN3 and CAN4 interfaces are reserved and unused. The hardware structure and software firmware of all slave control units are exactly the same as in Example 1, and are all general-purpose models.
[0060] To expand the configuration mapping table, add two branch type identifiers to the Excel template for the configuration mapping table, as shown in Table 3: Table 3 Extended Configuration Mapping Table CellTypeValue TotalCells NumAFEs SOXParamSet Description 10 100 8 Curve_LFP_100S_AB Box A + Box B 11 100 8 Curve_LFP_100S_CC Box C + Box C Branch type identifier 10 corresponds to the combination of A-box + B-box, with a total of 100 strings, 8 AFEs, and the SOX parameter set is Curve_LFP_100S_AB; branch type identifier 11 corresponds to the combination of C-box + C-box, with a total of 100 strings, 8 AFEs, and the SOX parameter set is Curve_LFP_100S_CC. In the voltage sampling mask configuration, for branch type identifier 10, the first 5 AFEs correspond to the A-box channels (some channels are valid), and the last 3 AFEs correspond to the B-box channels (some channels are valid); for branch type identifier 11, the first 4 AFEs correspond to the first C-box, and the last 4 AFEs correspond to the second C-box, with the mask bits for invalid channels set to 0. The temperature sampling mask is configured similarly. The corresponding mask array is automatically generated using a MATLAB script and compiled into the main control unit firmware.
[0061] When the vehicle rolls off the production line, the production line equipment performs the following calibration steps during the EOL calibration process: Diagnostic commands are sent to CAN1 and CAN2 buses respectively to distinguish the default and target addresses of the two slave control units under each branch. A calibration parameter array is written to the master control unit, for example, CellTypeValue[1] = 10, CellTypeValue[2] = 11, CellTypeValue[3] = 0, CellTypeValue[4] = 0 (0 indicates the branch is not used). After the master control unit loads the configuration, it confirms that the expected total number of strings for branch 1 and branch 2 is 100 strings. The test equipment reads the confirmation status and completes the EOL.
[0062] In this scenario, the power-on operation process of the distributed battery management system includes: After the main control unit powers on, it reads the branch type identifier array and identifies that branch 1 and branch 2 are valid. The main control unit loads independent voltage / temperature channel masks and SOX parameter sets for each branch. Although the total number of series in the two branches is the same, their internal resistance distribution and thermal characteristics differ due to the different cell series-parallel topologies (A box + B box vs. C box + C box). Independent parameter sets ensure the accuracy of SOC estimation for each branch. The main control unit receives blind sampling data from each branch via CAN1 and CAN2, and the data processing for the two branches is completely parallel and independent. Then, the main control unit performs mask filtering, array reassembly, and SOX calculation on the data of each branch. The total SOC of the vehicle is obtained by the capacity-weighted average of the SOCs of the two branches, and the total power limit is taken as the minimum value of the two branches to ensure system safety.
[0063] This embodiment demonstrates the ability of the present invention to handle mixed installation of battery boxes of different specifications in different branches of the same vehicle, and verifies the flexibility and accuracy of independent configuration parameters based on branch type identification.
[0064] The distributed battery management system provided in this embodiment adopts a universal design with pure blind data acquisition from the slave control unit. It runs completely universal software, acquires data indiscriminately from all physical channels, and does not store configuration information locally. The number of slave control unit software versions is reduced from N to 1, reducing development workload by more than 90% and the number of material types by 90%. After-sales battery box replacement does not require operation of the slave control unit firmware; only calibration on the master control unit side is required. The single operation time is shortened from 30 minutes to 2 minutes, significantly reducing the complexity of operation and maintenance.
[0065] The system employs a one-time calibration mechanism for the entire vehicle off-line based on branch type identification. Configuration parameters are written to the main control unit's non-volatile memory during production and are directly read and loaded upon power-up, eliminating the need for runtime scanning and interaction. System startup time has been reduced from approximately 4 seconds to less than 0.1 seconds, an improvement of about 40 times. Production line configuration time has been reduced from 20 minutes / vehicle to 2 minutes / vehicle, an efficiency improvement of 10 times. Furthermore, it supports any combination of battery boxes for different branches within the same vehicle, with the marginal cost of adding new combinations being virtually zero.
[0066] The main control unit centrally maintains and maps configuration tables, storing sampling masks, total number of branch strings, and independent SOX parameter sets indexed by branch type identifiers. After receiving blind sampling data, it filters invalid channels based on the mask and calls the corresponding parameter sets for calculation. Differentiated configurations are centrally managed; adding or modifying a cabinet type only requires editing a single configuration file on the main control unit side, avoiding cascading errors. Independent SOX parameter sets are configured for different cabinet types, ensuring overall external characteristic curve matching. SOC estimation errors can be reduced by 2%~5%, and OTA remote parameter upgrades are supported without needing to upgrade the firmware of distributed slave control units.
[0067] The system offers a multi-branch heterogeneous hybrid solution, with the main control unit supporting multiple independent communication branches, each with its own independent branch type identifier. Different battery packs of different specifications can be installed on different branches of the same vehicle, and the main control unit loads an independent parameter set for each branch to achieve parallel management. OEMs can flexibly combine battery packs according to range, space, and cost without being limited by the firmware compatibility of the slave control units. The SOX parameters of each branch are independently optimized, ensuring estimation accuracy even with the same total number of strings but different topologies. The system architecture is simple and has high hardware resource utilization.
[0068] Secondly, embodiments of this application also provide a distributed battery management method.
[0069] In one embodiment, reference is made to Figure 2 , Figure 2 This is a functional module diagram of an embodiment of the distributed battery management method of this application. Figure 2 As shown, the distributed battery management method includes: Step S1: The slave control unit performs indiscriminate data acquisition on all sampling channels to obtain sampling data, and sends the sampling data to the master control unit; Step S2: The main control unit pre-stores the branch type identifier and configuration mapping table corresponding to the communication bus. The main control unit searches the configuration mapping table based on the branch type identifier, extracts the corresponding battery state estimation parameter set, and performs battery state estimation based on the battery state estimation parameter set and the sampled data.
[0070] Further, in one embodiment, the configuration mapping table includes the channel mask corresponding to each branch type identifier and the total number of branch strings, and the battery state estimation based on the battery state estimation parameter set and the sampled data includes: The sampled data is filtered based on the channel mask, eliminating sampled data from invalid sampling channels and retaining sampled data from valid sampling channels; Battery state estimation is performed based on the total number of branches, the battery state estimation parameter set, and the retained valid sampled data. The effective sampling channel is a channel connected to a battery cell or a temperature sensor, and the invalid sampling channel is a suspended channel or a spare channel. The sampling data includes voltage sampling data and temperature sampling data, and the channel mask includes voltage channel mask and temperature channel mask; The battery state estimation parameter set includes open-circuit voltage-state-of-charge curves, internal resistance correction coefficients, and capacity decay factors.
[0071] Furthermore, in one embodiment, the method is also used for: During the vehicle production calibration phase, the slave control unit receives diagnostic commands sent via the communication bus and executes random delays in response to the diagnostic commands. In this process, the slave control unit that first completes the random delay switches the default communication address to the target communication address, while the other slave control unit keeps the default communication address unchanged.
[0072] Furthermore, in one embodiment, the slave control unit that first completes the random delay switches the default communication address to the target communication address, while the other slave control unit keeps the default communication address unchanged. Specifically, this includes: After the random delay ends, the address switching flag in the local memory is detected; If the address switching flag is at its initial value, then the default communication address is switched to the target communication address, and the address switching flag is modified to the switched value. If the address switching flag is already switched, then the default communication address remains unchanged. The main control unit detects communication address conflicts on the communication bus, and generates an error message if the same communication address is detected.
[0073] Furthermore, in one embodiment, the main control unit is configured to store an identifier array corresponding to the number of communication buses, wherein each element in the identifier array stores a branch type identifier; Among them, the branch type identifier is used as a unique index for the type of battery box connected to the corresponding communication bus.
[0074] Furthermore, in one embodiment, the method further includes: The main control unit calculates the expected voltage range based on the total number of series in the branch and compares it with the actual voltage range of the sampled data. If the deviation exceeds a preset threshold, a configuration error message is generated.
[0075] Furthermore, in one embodiment, the method further includes: The main control unit calculates the expected voltage range based on the total number of series in the branch and compares it with the actual voltage range of the sampled data. If the deviation exceeds a preset threshold, a configuration error message is generated.
[0076] The functions of each module in the above distributed battery management method correspond to the steps in the above distributed battery management method embodiments, and their functions and implementation processes will not be described in detail here.
[0077] Thirdly, embodiments of this application provide a commercial vehicle including the distributed battery management system described in any one of the above claims, capable of implementing the steps of the distributed battery management method described above.
[0078] It should be noted that the sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0079] The terms "comprising" and "having," and any variations thereof, in the specification, claims, and accompanying drawings of this application are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to such process, method, product, or apparatus. The terms "first," "second," and "third," etc., are used to distinguish different objects, etc., and do not indicate a sequence, nor do they limit "first," "second," and "third" to different types.
[0080] In the description of the embodiments of this application, terms such as "exemplary," "for example," or "for instance" are used to indicate examples, illustrations, or explanations. Any embodiment or design described as "exemplary," "for example," or "for instance" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or designs. Specifically, the use of terms such as "exemplary," "for example," or "for instance" is intended to present the relevant concepts in a concrete manner.
[0081] In the description of the embodiments of this application, unless otherwise stated, " / " means "or". For example, A / B can mean A or B. The "and / or" in the text is merely a description of the relationship between related objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist simultaneously, and B exists alone. In addition, in the description of the embodiments of this application, "multiple" means two or more.
[0082] In some processes described in the embodiments of this application, multiple operations or steps are included in a specific order. However, it should be understood that these operations or steps may not be executed in the order they appear in the embodiments of this application, or they may be executed in parallel. The sequence number of the operation is only used to distinguish different operations, and the sequence number itself does not represent any execution order. In addition, these processes may include more or fewer operations, and these operations or steps may be executed sequentially or in parallel, and these operations or steps may be combined.
[0083] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes several instructions to cause a terminal device to execute the methods described in the various embodiments of this application.
[0084] The above are merely preferred embodiments of this application and do not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.
Claims
1. A distributed battery management system, characterized in that, include: A master control unit and a slave control unit connected to the master control unit via a communication bus, wherein the slave control unit is used to mount the battery box; The slave control unit is used to collect data from all sampling channels without discrimination, obtain sampling data, and send the sampling data to the master control unit; The main control unit is configured to pre-store the branch type identifier and configuration mapping table corresponding to the communication bus. It is used to look up the configuration mapping table with the branch type identifier as the index, extract the corresponding battery state estimation parameter set, and perform battery state estimation based on the battery state estimation parameter set and the sampled data.
2. The distributed battery management system as described in claim 1, characterized in that, Two slave control units are connected to the same communication bus, and each slave control unit is configured with the same default communication address at the factory. During the vehicle production calibration phase, the slave control unit is also used to receive diagnostic commands sent through the communication bus and to execute random delays in response to the diagnostic commands. Among them, the slave control unit that first completes the random delay is used to switch the default communication address to the target communication address, while the other slave control unit keeps the default communication address unchanged.
3. The distributed battery management system as described in claim 2, characterized in that, The slave control unit is also used for: After the random delay ends, the address switching flag in the local memory is detected; If the address switching flag is at its initial value, then the default communication address is switched to the target communication address, and the address switching flag is modified to the switched value. If the address switching flag is already switched, then the default communication address remains unchanged. The main control unit is also used to detect communication address conflicts on the communication bus, and if the same communication address is detected, an error message is generated.
4. The distributed battery management system as described in claim 1, characterized in that: The main control unit is configured to store an identifier array corresponding to the number of communication buses, wherein each element in the identifier array stores a branch type identifier. Among them, the branch type identifier is used as a unique index for the type of battery box connected to the corresponding communication bus.
5. The distributed battery management system as described in claim 4, characterized in that, The configuration mapping table also includes the channel mask corresponding to each branch type identifier and the total number of branch strings. The main control unit is further used for: The sampled data is filtered based on the channel mask, eliminating sampled data from invalid sampling channels and retaining sampled data from valid sampling channels; Battery state estimation is performed based on the total number of branches, the battery state estimation parameter set, and the retained valid sampled data. The effective sampling channel is a channel connected to a battery cell or a temperature sensor, and the invalid sampling channel is a suspended channel or a spare channel. The sampling data includes voltage sampling data and temperature sampling data, and the channel mask includes voltage channel mask and temperature channel mask; The battery state estimation parameter set includes open-circuit voltage-state-of-charge curves, internal resistance correction coefficients, and capacity decay factors.
6. The distributed battery management system as described in claim 5, characterized in that, The main control unit is also used for: The expected voltage range is calculated based on the total number of series in the branch and compared with the actual voltage range of the sampled data. If the deviation exceeds a preset threshold, a configuration error message is generated.
7. The distributed battery management system as described in claim 1, characterized in that, The main control unit is also used for: Detect the number of slave control units responding on the communication bus; If the number of detected slave control units is less than the preset number, a communication fault prompt is generated, and the battery status is estimated based on the existing sampled data.
8. A battery management system configuration method, applied to a distributed battery management system as described in any one of claims 1 to 7, characterized in that, include: The slave control unit collects data from all sampling channels without discrimination, obtains sampling data, and sends the sampling data to the master control unit. The main control unit pre-stores the branch type identifier and configuration mapping table corresponding to the communication bus. The main control unit searches the configuration mapping table based on the branch type identifier, extracts the corresponding battery status estimation parameter set, and performs battery status estimation based on the battery status estimation parameter set and the sampled data.
9. The distributed battery management method as described in claim 8, characterized in that, The configuration mapping table includes the channel mask corresponding to each branch type identifier and the total number of branch strings. The battery state estimation based on the battery state estimation parameter set and the sampled data includes: The sampled data is filtered based on the channel mask, eliminating sampled data from invalid sampling channels and retaining sampled data from valid sampling channels; Battery state estimation is performed based on the total number of branches, the battery state estimation parameter set, and the retained valid sampled data. The effective sampling channel is a channel connected to a battery cell or a temperature sensor, and the invalid sampling channel is a suspended channel or a spare channel. The sampling data includes voltage sampling data and temperature sampling data, and the channel mask includes voltage channel mask and temperature channel mask; The battery state estimation parameter set includes open-circuit voltage-state-of-charge curves, internal resistance correction coefficients, and capacity decay factors.
10. A commercial vehicle, characterized in that, Includes the distributed battery management system as described in any one of claims 1 to 7.
