Address allocation method and device, electronic equipment and storage medium

By automating the address allocation of BMU and CMU in the battery management system, the problems of poor flexibility and address conflicts caused by traditional manual configuration are solved, realizing flexible address allocation of BMU modules and system stability, and improving the automation level of BMS.

CN122001850APending Publication Date: 2026-05-08SHANGHAI PYLON TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
SHANGHAI PYLON TECH CO LTD
Filing Date
2024-11-05
Publication Date
2026-05-08

AI Technical Summary

Technical Problem

In traditional battery management systems, the address allocation of BMU and CMU modules relies on manual configuration or fixed mapping, resulting in poor flexibility, insufficient scalability, and a tendency to cause address conflicts. Furthermore, module replacement requires system shutdown and reconfiguration, which affects work efficiency.

Method used

The CMU responds to the BMU's address request frame, determines the request type, and searches for the target address in a preset address mapping table to ensure its uniqueness. This automates the address allocation process, including handling initial requests and conflicting requests.

Benefits of technology

It enables flexible address allocation and automated management of BMU modules, reduces human intervention, ensures system stability and reliability, and does not affect system operation when the number of BMUs increases or modules are replaced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122001850A_ABST
    Figure CN122001850A_ABST
Patent Text Reader

Abstract

The present disclosure provides an address allocation method and apparatus, an electronic device and a storage medium, applied to a CMU and a BMU in a BMS system, the method comprising: controlling the CMU to respond to an address request frame sent by the BMU, and determining a request type corresponding to the address request frame, the request type comprising a first address request and an address conflict request; controlling the CMU to search a target address corresponding to the BMU from an initial position in a preset address mapping table according to the first address request; aiming at the address conflict request, searching a target address corresponding to the BMU from a conflict address in a preset address mapping table; sending an address request response frame carrying the target address to the BMU; and determining the uniqueness of the target address in the network, and when the target address is unique, controlling the BMU to bind the target address. The automation degree of the BMS can be improved, human intervention is reduced, and the stability and reliability of the system are not affected when the number of the BMUs is increased or the modules are replaced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of battery management technology, and more specifically, to an address allocation method, apparatus, electronic device, and storage medium. Background Technology

[0002] With the rapid development of electric vehicles, grid energy storage, and other large-scale battery systems, the requirements for Battery Management Systems (BMS) are becoming increasingly stringent. BMS is responsible for monitoring the state of the battery pack, including information such as battery voltage, temperature, and current, and extends battery life and improves system safety by controlling and protecting the batteries. A BMS typically uses multiple Battery Management Units (BMUs) to collect and process information from the battery pack. Each BMU may also contain multiple Cell Monitoring Units (CMUs). The BMUs and CMUs communicate via a bus (such as a CAN bus), and a main control unit centrally manages each module.

[0003] To ensure that each BMU or CMU module can be correctly distinguished and identified on the bus, each module requires a unique communication address. Traditional address allocation methods mostly rely on manual configuration or fixed address mapping, which suffers from poor flexibility, insufficient scalability, complex configuration, and susceptibility to address conflicts. Especially in systems with multiple BMUs or CMUs, manually configuring communication addresses is time-consuming, labor-intensive, and prone to human error. Furthermore, if a BMU module malfunctions and needs to be replaced, reconfiguring the address will cause system downtime, impacting operational efficiency. Summary of the Invention

[0004] This disclosure provides at least one address allocation method, apparatus, electronic device, and storage medium, which can realize flexible address allocation and automated management, improve the automation level of BMS, reduce human intervention, and not affect the stability and reliability of the system when the number of BMUs increases or modules are replaced.

[0005] This disclosure provides an address allocation method applied to the CMU and BMU in a BMS system, the method comprising:

[0006] The control CMU responds to the address request frame sent by the BMU and determines the request type corresponding to the address request frame. The request type includes initial address request and address conflict request.

[0007] For the initial address request, the control CMU searches for the target address corresponding to the BMU in a preset address mapping table starting from the starting position; for the address conflict request, it searches for the target address corresponding to the BMU in the preset address mapping table starting from the conflict address; and sends an address request response frame carrying the target address to the BMU.

[0008] The uniqueness of the target address in the network is determined. When the target address is unique, the BMU is controlled to bind to the target address.

[0009] In one optional implementation, the uniqueness of the target address in the network is determined. When the target address is unique, the BMU is controlled to bind to the target address, specifically including:

[0010] After receiving the address request response frame, the BMU constructs an address conflict detection frame corresponding to the target address based on the target address carried in the address request response frame.

[0011] Broadcast the address conflict detection frame and wait for the response signal corresponding to the address conflict detection frame;

[0012] If the response signal is received within the preset waiting time, the address request frame is resent to the CMU.

[0013] If the response signal is not received within the preset waiting time, the BMU is controlled to bind to the target address.

[0014] In one optional implementation, the BMU is controlled to send the address request frame based on the following steps:

[0015] After the BMS system is powered on, the control CMU triggers an address request for a control signal;

[0016] When the BMU detects the address request control signal, it determines whether it is the first time requesting a communication address.

[0017] If this is the first time a communication address is requested, then the first address request is constructed; if this is not the first time a communication address is requested, then the address conflict request is constructed.

[0018] The initial address request or the address conflict request is sent to the CMU.

[0019] In one optional implementation, determining the uniqueness of the target address within the network further includes:

[0020] Control the BMU, except for the one currently sending the address conflict detection frame, to receive the address conflict detection frame;

[0021] Parse the target address carried in the address conflict detection frame;

[0022] The target address is compared with the local address; if they are the same, the response signal is sent back.

[0023] In one optional implementation, the method further includes:

[0024] For the first address request, if the target address corresponding to the BMU is not found in the preset address mapping table from the starting position, the control CMU allocates a new address to the BMU and updates the preset address mapping table with the new address.

[0025] In response to the address conflict request, if the target address corresponding to the BMU is not found in the preset address mapping table starting from the conflict address, the control CMU is configured to allocate a new address to the BMU and update the preset address mapping table with the new address.

[0026] This disclosure also provides an address allocation device for use with the CMU and BMU in a BMS system, the device comprising:

[0027] The request response module is used to control the CMU to respond to the address request frame sent by the BMU and determine the request type corresponding to the address request frame. The request type includes the first address request and the address conflict request.

[0028] The address lookup module is used to control the CMU to look up the target address corresponding to the BMU in the preset address mapping table starting from the starting position for the first address request; to look up the target address corresponding to the BMU in the preset address mapping table starting from the conflict address for the address conflict request; and to send an address request response frame carrying the target address to the BMU.

[0029] The conflict verification module is used to determine the uniqueness of the target address in the network. When the target address is unique, the BMU is controlled to bind the target address.

[0030] In one optional implementation, the conflict checking module is specifically used for:

[0031] After receiving the address request response frame, the BMU constructs an address conflict detection frame corresponding to the target address based on the target address carried in the address request response frame.

[0032] Broadcast the address conflict detection frame and wait for the response signal corresponding to the address conflict detection frame;

[0033] If the response signal is received within the preset waiting time, the address request frame is resent to the CMU.

[0034] If the response signal is not received within the preset waiting time, the BMU is controlled to bind to the target address.

[0035] In an optional implementation, the device is further configured to:

[0036] After the BMS system is powered on, the control CMU triggers an address request for a control signal;

[0037] When the BMU detects the address request control signal, it determines whether it is the first time requesting a communication address.

[0038] If this is the first time a communication address is requested, then the first address request is constructed; if this is not the first time a communication address is requested, then the address conflict request is constructed.

[0039] The initial address request or the address conflict request is sent to the CMU.

[0040] This disclosure also provides an electronic device, including: a processor, a memory, and a bus. The memory stores machine-readable instructions executable by the processor. When the electronic device is running, the processor communicates with the memory via the bus. When the machine-readable instructions are executed by the processor, the address allocation method described above, or any possible implementation of the address allocation method described above, is performed.

[0041] This disclosure also provides a computer-readable storage medium storing a computer program that, when executed by a processor, performs the address allocation method described above, or the steps of any possible implementation of the address allocation method described above.

[0042] This disclosure also provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the above-described address allocation method, or the steps in any possible implementation of the above-described address allocation method.

[0043] This disclosure provides an address allocation method, apparatus, electronic device, and storage medium applied to the CMU and BMU in a BMS system. The method includes: controlling the CMU to respond to an address request frame sent by the BMU; determining the request type corresponding to the address request frame, the request type including an initial address request and an address conflict request; controlling the CMU to search for a target address corresponding to the BMU in a preset address mapping table starting from a starting position for the initial address request; searching for the target address corresponding to the BMU in the preset address mapping table starting from the conflicting address for the address conflict request; sending an address request response frame carrying the target address to the BMU; determining the uniqueness of the target address in the network; and controlling the BMU to bind the target address when the target address is unique. This method enables flexible address allocation and automated management, improves the automation level of the BMS, reduces human intervention, and does not affect the stability and reliability of the system when the number of BMUs increases or modules are replaced.

[0044] To make the above-mentioned objects, features and advantages of this disclosure more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description

[0045] To more clearly illustrate the technical solutions of the embodiments of this disclosure, the accompanying drawings used in the embodiments will be briefly described below. These drawings are incorporated in and constitute a part of this specification. They illustrate embodiments conforming to this disclosure and, together with the specification, serve to explain the technical solutions of this disclosure. It should be understood that the following drawings only show some embodiments of this disclosure and should not be considered as limiting the scope. Those skilled in the art can obtain other related drawings based on these drawings without creative effort.

[0046] Figure 1 A flowchart of an address allocation method provided by an embodiment of this disclosure is shown;

[0047] Figure 2 A flowchart of another address allocation method provided by an embodiment of this disclosure is shown;

[0048] Figure 3 A schematic diagram of an address allocation device provided in an embodiment of this disclosure is shown;

[0049] Figure 4 A schematic diagram of an electronic device provided in an embodiment of the present disclosure is shown. Detailed Implementation

[0050] To make the objectives, technical solutions, and advantages of the embodiments of this disclosure clearer, the technical solutions of the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this disclosure, and not all of them. The components of the embodiments of this disclosure described and shown in the accompanying drawings can generally be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of this disclosure provided in the accompanying drawings is not intended to limit the scope of the claimed disclosure, but merely represents selected embodiments of this disclosure. All other embodiments obtained by those skilled in the art based on the embodiments of this disclosure without inventive effort are within the scope of protection of this disclosure.

[0051] It should be noted that similar labels and letters in the following figures indicate similar items. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures.

[0052] In this document, the term "and / or" merely describes a relationship, indicating that three relationships can exist. For example, A and / or B can represent three cases: A alone, A and B simultaneously, and B alone. Furthermore, the term "at least one" in this document means any combination of at least two of any one or more elements. For example, including at least one of A, B, and C can mean including any one or more elements selected from the set consisting of A, B, and C.

[0053] Research has revealed that to ensure each BMU or CMU module can be correctly distinguished and identified on the bus, each module requires a unique communication address. Traditional address allocation methods mostly rely on manual configuration or fixed address mapping, which suffers from poor flexibility, insufficient scalability, complex configuration, and a high risk of address conflicts. Especially in systems with multiple BMUs or CMUs, manually configuring communication addresses is time-consuming, labor-intensive, and prone to human error. Furthermore, if a BMU module malfunctions and needs replacement, reconfiguring the address will cause system downtime, impacting operational efficiency.

[0054] Based on the above research, this disclosure provides an address allocation method, apparatus, electronic device, and storage medium, applied to the CMU and BMU in a BMS system. The method includes: controlling the CMU to respond to an address request frame sent by the BMU; determining the request type corresponding to the address request frame, the request type including an initial address request and an address conflict request; controlling the CMU to search for the target address corresponding to the BMU in a preset address mapping table starting from the starting position for the initial address request; searching for the target address corresponding to the BMU in the preset address mapping table starting from the conflict address for the address conflict request; sending an address request response frame carrying the target address to the BMU; determining the uniqueness of the target address in the network; and when the target address is unique, controlling the BMU to bind the target address. This enables flexible address allocation and automated management, improves the automation level of the BMS, reduces human intervention, and does not affect the stability and reliability of the system when the number of BMUs increases or modules are replaced.

[0055] To facilitate understanding of this embodiment, a detailed description of the address allocation method disclosed in this disclosure is provided first. The execution entity of the address allocation method provided in this disclosure is generally a computer device with certain computing capabilities. This computer device may include, for example, a terminal device, a server, or other processing devices. The terminal device may be a user equipment (UE), mobile device, user terminal, terminal, cellular phone, cordless phone, personal digital assistant (PDA), handheld device, computing device, in-vehicle device, wearable device, etc. In some possible implementations, this address allocation method can be implemented by the processor calling computer-readable instructions stored in memory.

[0056] See Figure 1 The diagram shows a flowchart of an address allocation method provided in an embodiment of this disclosure. The method includes steps S101 to S103, wherein:

[0057] S101. The control CMU responds to the address request frame sent by the BMU and determines the request type corresponding to the address request frame. The request type includes initial address request and address conflict request.

[0058] In practical implementation, each BMU in the BMS requires a unique communication address to ensure correct communication with the CMU on the network. The BMU sends an address request frame in the following situations: Initial address request: During system initialization (e.g., when the BMS system powers on), if the BMU has not been assigned an address, it will send an address request to obtain a new communication address. Address conflict detection: During system operation, if the BMU detects an address conflict with another BMU, it will resend the address request to obtain a new, unique address.

[0059] Here, the CMU, acting as the master control node in the BMS system, is responsible for receiving and processing address request frames sent by the BMU. When the BMU sends an address request frame, the CMU needs to respond immediately. After receiving the BMU's address request frame, the CMU determines the request type by analyzing the content of the frame. When the BMU requests a communication address for the first time, it attaches specific identification information to the address request frame to indicate that this is the first address request. The CMU can identify this type of request by reading the identification field in the frame. When the BMU detects that the current address conflicts with another BMU, it sends an address conflict request frame, which also contains a specific identification field to inform the CMU that this is an address conflict request.

[0060] Upon receiving a request frame, the CMU extracts an identification field to determine the frame's type. This identification field is located in a fixed position within the frame structure to ensure accurate frame parsing. Based on the identification field's content, the CMU determines whether it's a first-time address request or an address conflict request. If the identification field indicates a "first-time address request," it means the BMU currently has no address and the CMU needs to allocate a new one. If the identification field indicates an address conflict request, it means the BMU's current address is already occupied by another BMU, and the CMU needs to find and allocate a non-conflicting new address.

[0061] As one possible implementation, the BMU can be controlled to send the address request frame based on the following steps 1-4:

[0062] Step 1: After the BMS system is powered on, control the CMU to trigger the address request control signal.

[0063] Step 2: When the BMU detects the address request control signal, it determines whether it is the first time requesting a communication address.

[0064] Step 3: If this is the first time a communication address is requested, then construct the first address request; if this is not the first time a communication address is requested, then construct the address conflict request.

[0065] Step 4: Send the initial address request or the address conflict request to the CMU.

[0066] In practice, after the BMS system powers on (starts up), the CMU automatically triggers by pulling the address request control signal low and sends a specific address request control signal to all BMUs via the CAN bus or other communication links to notify all connected BMUs to begin preparing to request an address. Upon detecting the address request control signal from the CMU, if the BMU is accessing the BMS system for the first time and is being assigned an address, this constitutes its first request. If the BMU has already been assigned an address but an address conflict is detected in the network, it needs to request a new address. The BMU determines the type of the current request by reading its internal storage state or through an address conflict detection mechanism.

[0067] S102. For the initial address request, the control CMU searches for the target address corresponding to the BMU in the preset address mapping table starting from the starting position; for the address conflict request, it searches for the target address corresponding to the BMU in the preset address mapping table starting from the conflict address; and sends an address request response frame carrying the target address to the BMU.

[0068] In practice, when the CMU receives its first address request from the BMU, it searches its internally maintained pre-defined address mapping table to assign a unique address to the BMU. When the CMU receives an address conflict request, it means that the BMU has detected a conflict between its current address and another BMU in the system, and a new address needs to be assigned.

[0069] Here, the default address mapping table is an address allocation record table stored internally by the CMU, used to manage the address allocation of each BMU. The mapping table contains the mapping relationship between BMUs and corresponding addresses, and is usually configured during system initialization.

[0070] For the initial address request, the CMU searches for a free, unassigned address corresponding to the current BUM, starting from the beginning of the mapping table, and assigns it to the BMU as the target address. Once an available address is found, the CMU temporarily marks it as the address of that BMU. For address conflict requests, the CMU searches for the next free address in the pre-defined address mapping table, starting from the position of the conflicting address sent by the BMU. This avoids assigning the same conflicting address again.

[0071] It should be noted that because the allocated addresses are sequentially incremented and the search starts from the beginning, for address conflict requests, addresses before the conflicting address are not valid, so the search must start from the conflicting address and proceed.

[0072] Furthermore, regardless of whether it's an initial address request or an address conflict request, once the CMU finds a suitable target address, it will send that address to the BMU via an address request response frame. The address request response frame is the message frame from the CMU to the BMU, containing the target address assigned to the BMU. After receiving this response frame, the BMU can perform subsequent address binding operations.

[0073] As one possible implementation, the default address mapping table lists information for BMU_PCBA (Battery Management Unit PCBA), ADDR (address), and REQ_CNT (request count). These fields represent the PCBA number corresponding to each BMU, the assigned address, and the number of requests, respectively.

[0074] Here, BMU_PCBA represents the PCBA number of the battery management unit, used to distinguish different PCBA boards. Each PCBA number (e.g., PCBA1, PCBA2) represents an independent BMU hardware module in the system. ADDR is the communication address assigned to each PCBA, typically used for device address identification when transmitting data on the CAN bus or other communication buses. Different PCBA boards are assigned different addresses to ensure that address conflicts do not occur on the communication bus. The address is an incrementing value (e.g., 1, 2, 3, ..., n), corresponding to each PCBA module. REQ_CNT represents the PCBA address request count. This count increases each time a PCBA board sends an address request to the system.

[0075] The preset address mapping table can be used to track the address application status and allocation results of each PCBA board in the BMU, thereby ensuring that there are no address conflicts in the system. Each PCBA has a unique communication address. The REQ_CNT field can be used to check whether there are PCBA boards that require multiple requests to obtain an address, which is convenient for troubleshooting abnormal situations (such as unstable communication or incorrect address allocation). During system debugging and maintenance, the address information of a PCBA can be quickly located, as well as whether it has experienced address re-application.

[0076] For example, PCBA1, with address 1 and request count of 1, indicates that PCBA1 requested and obtained address 1 for the first time. PCBA2, with address 2 and request count of 1, indicates that PCBA2 requested and obtained address 2 for the first time. PCBA3, with address 3 and request count of 2, indicates that after PCBA1 requested address 1 for the first time, it made a second request for address 3 and obtained address 3.

[0077] As another possible implementation, for the first address request, if the target address corresponding to the BMU is not found in the preset address mapping table starting from the starting position, the control CMU is configured to allocate a corresponding new address to the BMU and update the preset address mapping table with the new address; for the address conflict request, if the target address corresponding to the BMU is not found in the preset address mapping table starting from the conflict address, the control CMU is configured to allocate a corresponding new address to the BMU and update the preset address mapping table with the new address.

[0078] S103. Determine the uniqueness of the target address in the network. When the target address is unique, control the BMU to bind the target address.

[0079] In practice, after the BMU receives the target address assigned by the CMU, it checks it to confirm that the address is not being used by other BMUs in the network. After confirming the uniqueness of the target address, the BMU saves the conflict-free target address as its own fixed address, and all subsequent communication uses this address. Once address binding is complete, the BMU's network communication module uses this address as its unique identifier until the system restarts or another address conflict occurs.

[0080] For details, see Figure 2 The diagram shows a flowchart of another address allocation method provided in this embodiment of the present disclosure. The method includes steps S1031 to S1034, wherein:

[0081] S1031. After receiving the address request response frame, the control BMU constructs an address conflict detection frame corresponding to the target address based on the target address carried in the address request response frame.

[0082] S1032. Broadcast the address conflict detection frame and wait for the response signal corresponding to the address conflict detection frame.

[0083] S1033. If the response signal is received within the preset waiting time, the address request frame is resent to the CMU.

[0084] S1034. If the response signal is not received within the preset waiting time, control the BMU to bind to the target address.

[0085] In practice, the BMU first receives an address request response frame from the CMU, which carries the target address allocated to the BMU. The BMU uses this target address to construct a dedicated address conflict detection frame and broadcasts it throughout the entire BMS network, ensuring that all BMUs within the network can receive the detection frame.

[0086] Here, after broadcasting the detection frame, the BMU enters a listening state and receives a response signal within a preset waiting time to confirm whether other BMUs are using the same target address. If a response signal is received from another BMU within the preset waiting time, it means that the target address is already being used by another BMU in the network. At this point, the BMU will resend the address request frame to the CMU, notifying the CMU to perform address reallocation to ensure that it ultimately obtains a unique address.

[0087] Furthermore, if no response signal is received within the waiting period, it can be confirmed that the target address is unique in the current network and there is no address conflict. The BMU binds this target address as its own communication address, and all subsequent network communications will use this address for identification, thus completing the address allocation process.

[0088] As one possible implementation, the BMU is controlled to receive address conflict detection frames other than the currently transmitted address conflict detection frame; the target address carried in the address conflict detection frame is parsed; the target address is compared with the local address, and if they are the same, a response signal is sent.

[0089] Those skilled in the art will understand that, in the above-described method of the specific implementation, the order in which each step is written does not imply a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of each step should be determined by its function and possible internal logic.

[0090] This disclosure provides an address allocation method applied to the CMU and BMU in a BMS system. The method includes: controlling the CMU to respond to an address request frame sent by the BMU; determining the request type corresponding to the address request frame, where the request type includes an initial address request and an address conflict request; controlling the CMU to search for a target address corresponding to the BMU in a preset address mapping table starting from a starting position for the initial address request; and searching for the target address corresponding to the BMU in the preset address mapping table starting from the conflicting address for the address conflict request; sending an address request response frame carrying the target address to the BMU; and determining the uniqueness of the target address in the network. When the target address is unique, controlling the BMU to bind to the target address. This method enables flexible address allocation and automated management, improves the automation level of the BMS, reduces human intervention, and does not affect the stability and reliability of the system when the number of BMUs increases or modules are replaced.

[0091] Based on the same inventive concept, this disclosure also provides an address allocation device corresponding to the address allocation method. Since the principle of the device in this disclosure for solving the problem is similar to the address allocation method described above in this disclosure, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be described again.

[0092] Please see Figure 3 , Figure 3 This is a schematic diagram of an address allocation device provided in an embodiment of this disclosure. Figure 3 As shown in the embodiments of this disclosure, the address allocation device 300 is applied to the CMU and BMU in the BMS system, including:

[0093] The request response module 310 is used to control the CMU to respond to the address request frame sent by the BMU and determine the request type corresponding to the address request frame. The request type includes the first address request and the address conflict request.

[0094] Address lookup module 320 is used to control the CMU to look up the target address corresponding to the BMU in a preset address mapping table starting from the starting position for the first address request; to look up the target address corresponding to the BMU in the preset address mapping table starting from the conflict address for the address conflict request; and to send an address request response frame carrying the target address to the BMU.

[0095] The conflict verification module 330 is used to determine the uniqueness of the target address in the network. When the target address is unique, it controls the BMU to bind the target address.

[0096] The processing flow of each module in the device and the interaction flow between each module can be referred to the relevant descriptions in the above method embodiments, and will not be detailed here.

[0097] This disclosure provides an address allocation device applied to the CMU and BMU in a BMS system. The method includes: controlling the CMU to respond to an address request frame sent by the BMU; determining the request type corresponding to the address request frame, the request type including an initial address request and an address conflict request; controlling the CMU to search for a target address corresponding to the BMU in a preset address mapping table starting from a starting position for the initial address request; searching for the target address corresponding to the BMU in the preset address mapping table starting from the conflict address for the address conflict request; sending an address request response frame carrying the target address to the BMU; determining the uniqueness of the target address in the network; and controlling the BMU to bind the target address when the target address is unique. This method enables flexible address allocation and automated management, improves the automation level of the BMS, reduces human intervention, and does not affect the stability and reliability of the system when the number of BMUs increases or modules are replaced.

[0098] Corresponding to Figure 1 In addition to the address allocation method in the present disclosure, this embodiment also provides an electronic device 400, such as... Figure 4 The diagram shown is a structural schematic of an electronic device 400 provided in an embodiment of this disclosure, including:

[0099] Processor 41, memory 42, and bus 43; memory 42 is used to store execution instructions, including main memory 421 and external memory 422; the main memory 421, also called internal memory, is used to temporarily store the computational data in processor 41, as well as the data exchanged with external memory 422 such as hard disk. Processor 41 exchanges data with external memory 422 through main memory 421. When the electronic device 400 is running, processor 41 and memory 42 communicate through bus 43, enabling processor 41 to execute... Figure 1 The steps of the address allocation method in [the context].

[0100] This disclosure also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, performs the steps of the address allocation method described in the above-described method embodiments. The storage medium can be a volatile or non-volatile computer-readable storage medium.

[0101] This disclosure also provides a computer program product, which includes computer instructions. When the computer instructions are executed by a processor, they can perform the steps of the address allocation method described in the above method embodiments. For details, please refer to the above method embodiments, which will not be repeated here.

[0102] The aforementioned computer program product can be implemented through hardware, software, or a combination thereof. In one optional embodiment, the computer program product is specifically embodied in a computer storage medium; in another optional embodiment, the computer program product is specifically embodied in a software product, such as a software development kit (SDK), etc.

[0103] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the device described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here. In the several embodiments provided in this disclosure, it should be understood that the disclosed device and method can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. Furthermore, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Another point is that the displayed or discussed mutual coupling or direct coupling or communication connection may be through some communication interfaces; the indirect coupling or communication connection of devices or units may be electrical, mechanical, or other forms.

[0104] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0105] In addition, the functional units in the various embodiments of this disclosure can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0106] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a processor-executable, non-volatile, computer-readable storage medium. Based on this understanding, the technical solution of this disclosure, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this disclosure. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0107] Finally, it should be noted that the above-described embodiments are merely specific implementations of this disclosure, used to illustrate the technical solutions of this disclosure, and not to limit it. The protection scope of this disclosure is not limited thereto. Although this disclosure has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art can still modify or easily conceive of changes to the technical solutions described in the foregoing embodiments, or make equivalent substitutions for some of the technical features, within the scope of the technology disclosed in this disclosure. Such modifications, changes, or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this disclosure, and should all be covered within the protection scope of this disclosure. Therefore, the protection scope of this disclosure should be determined by the protection scope of the claims.

Claims

1. An address allocation method, characterized in that, The method, applied to the CMU and BMU in a BMS system, includes: The control CMU responds to the address request frame sent by the BMU and determines the request type corresponding to the address request frame. The request type includes initial address request and address conflict request. For the initial address request, the control CMU searches for the target address corresponding to the BMU in a preset address mapping table starting from the starting position; for the address conflict request, it searches for the target address corresponding to the BMU in the preset address mapping table starting from the conflict address; and sends an address request response frame carrying the target address to the BMU. The uniqueness of the target address in the network is determined. When the target address is unique, the BMU is controlled to bind to the target address.

2. The method according to claim 1, characterized in that, Determine the uniqueness of the target address in the network. When the target address is unique, control the BMU to bind to the target address, specifically including: After receiving the address request response frame, the BMU constructs an address conflict detection frame corresponding to the target address based on the target address carried in the address request response frame. Broadcast the address conflict detection frame and wait for the response signal corresponding to the address conflict detection frame; If the response signal is received within the preset waiting time, the address request frame is resent to the CMU. If the response signal is not received within the preset waiting time, the BMU is controlled to bind to the target address.

3. The method according to claim 1, characterized in that, The BMU is controlled to send the address request frame based on the following steps: After the BMS system is powered on, the control CMU triggers an address request for a control signal; When the BMU detects the address request control signal, it determines whether it is the first time requesting a communication address. If this is the first time a communication address is requested, then the first address request is constructed; if this is not the first time a communication address is requested, then the address conflict request is constructed. The initial address request or the address conflict request is sent to the CMU.

4. The method according to claim 2, characterized in that, Determining the uniqueness of the target address within the network specifically includes: Control the BMU, except for the one currently sending the address conflict detection frame, to receive the address conflict detection frame; Parse the target address carried in the address conflict detection frame; The target address is compared with the local address; if they are the same, the response signal is sent back.

5. The method according to claim 1, characterized in that, The method further includes: For the first address request, if the target address corresponding to the BMU is not found in the preset address mapping table from the starting position, the control CMU allocates a new address to the BMU and updates the preset address mapping table with the new address. In response to the address conflict request, if the target address corresponding to the BMU is not found in the preset address mapping table starting from the conflict address, the control CMU is configured to allocate a new address to the BMU and update the preset address mapping table with the new address.

6. An address allocation device, characterized in that, The device, used in the CMU and BMU of a BMS system, includes: The request response module is used to control the CMU to respond to the address request frame sent by the BMU and determine the request type corresponding to the address request frame. The request type includes the first address request and the address conflict request. The address lookup module is used to control the CMU to look up the target address corresponding to the BMU in the preset address mapping table starting from the starting position for the first address request; to look up the target address corresponding to the BMU in the preset address mapping table starting from the conflict address for the address conflict request; and to send an address request response frame carrying the target address to the BMU. The conflict verification module is used to determine the uniqueness of the target address in the network. When the target address is unique, the BMU is controlled to bind the target address.

7. The apparatus according to claim 6, characterized in that, The conflict checking module is specifically used for: After receiving the address request response frame, the BMU constructs an address conflict detection frame corresponding to the target address based on the target address carried in the address request response frame. Broadcast the address conflict detection frame and wait for the response signal corresponding to the address conflict detection frame; If the response signal is received within the preset waiting time, the address request frame is resent to the CMU. If the response signal is not received within the preset waiting time, the BMU is controlled to bind to the target address.

8. The method according to claim 1, characterized in that, The device is also used for: After the BMS system is powered on, the control CMU triggers an address request for a control signal; When the BMU detects the address request control signal, it determines whether it is the first time requesting a communication address. If this is the first time a communication address is requested, then the first address request is constructed; if this is not the first time a communication address is requested, then the address conflict request is constructed. The initial address request or the address conflict request is sent to the CMU.

9. An electronic device, characterized in that, include: The device includes a processor, a memory, and a bus. The memory stores machine-readable instructions executable by the processor. When the electronic device is running, the processor communicates with the memory via the bus. When the machine-readable instructions are executed by the processor, they perform the steps of the address allocation method as described in any one of claims 1 to 5.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, performs the steps of the address allocation method as described in any one of claims 1 to 5.