Search

CN-122001850-A - Address allocation method and device, electronic equipment and storage medium

CN122001850ACN 122001850 ACN122001850 ACN 122001850ACN-122001850-A

Abstract

The invention provides an address allocation method, an address allocation device, electronic equipment and a storage medium, which are applied to a CMU and a BMU in a BMS system, wherein the method comprises the steps of controlling the CMU to respond to an address request frame sent by the BMU, determining a request type corresponding to the address request frame, wherein the request type comprises a first address request and an address conflict request; the method comprises the steps of controlling a CMU to search a target address corresponding to the BMU from a starting position in a preset address mapping table aiming at a first address request, searching the target address corresponding to the BMU from the conflict address in the preset address mapping table aiming at an address conflict request, sending an address request response frame carrying the target address to the BMU, determining the uniqueness of the target address in a network, and controlling the BMU to bind the target address when the target address is unique. The BMS system can improve the automation degree of the BMS, reduce human intervention, and does not influence the stability and reliability of the system when the number of BMUs is increased or the modules are replaced.

Inventors

  • HU JUNJIE
  • JIANG WEI
  • WANG BIAO
  • FAN LAI

Assignees

  • 上海派能能源科技股份有限公司

Dates

Publication Date
20260508
Application Date
20241105

Claims (10)

  1. 1. An address allocation method, applied to a CMU and a BMU in a BMS system, comprising: The method comprises the steps that a control CMU responds to an address request frame sent by a BMU, and a request type corresponding to the address request frame is determined, wherein the request type comprises a first address request and an address conflict request; The method comprises the steps of controlling a CMU to search a target address corresponding to the BMU from a starting position in a preset address mapping table aiming at the first address request, searching the target address corresponding to the BMU from a conflict address in the preset address mapping table aiming at the address conflict request, and 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 controlling the BMU to bind the target address when the target address is unique.
  2. 2. The method according to claim 1, wherein determining the uniqueness of the target address in the network, when the target address is unique, controlling the BMU to bind the target address, comprises: After receiving the address request response frame, the control BMU constructs an address conflict detection frame corresponding to the target address according to the target address carried in the address request response frame; broadcasting the address conflict detection frame, waiting for a response signal corresponding to the address conflict detection frame; If the response signal is received within the preset waiting time, retransmitting the address request frame to the CMU; and if the response signal is not received within the preset waiting time, controlling the BMU to bind the target address.
  3. 3. The method of claim 1, wherein the BMU is controlled to send the address request frame based on: After the BMS system is powered on, controlling the CMU to trigger an address application control signal; When the BMU detects the address application control signal, determining whether to request a communication address for the first time; if the communication address is not the first request communication address, constructing the address conflict request; And sending the first address request or the address conflict request to a CMU.
  4. 4. The method according to claim 2, wherein determining the uniqueness of the target address in the network, in particular further comprises: controlling the BMU which transmits the address conflict detection frame except the current address conflict detection frame to receive the address conflict detection frame; Analyzing the target address carried in the address conflict detection frame; comparing the target address with the local address, and if the target address is the same with the local address, replying to the response signal.
  5. 5. The method according to claim 1, wherein the method further comprises: Aiming at the first address request, if a target address corresponding to the BMU is not found from a starting position in a preset address mapping table, controlling the CMU to allocate a corresponding new address for the BMU, and updating the new address to the preset address mapping table; And aiming at the address conflict request, if the target address corresponding to the BMU is not found from the conflict address in the preset address mapping table, controlling the CMU to allocate a corresponding new address for the BMU, and updating the new address to the preset address mapping table.
  6. 6. An address allocation apparatus, applied to a CMU and a BMU in a BMS system, comprising: The request response module is used for controlling the CMU to respond to the address request frame sent by the BMU and determining a request type corresponding to the address request frame, wherein the request type comprises a first address request and an address conflict request; The address searching module is used for controlling the CMU to search a target address corresponding to the BMU from a starting position in a preset address mapping table aiming at the first address request; for the address conflict request, searching the target address corresponding to the BMU from the conflict address in the preset address mapping table; And the conflict checking module is used for 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.
  7. 7. The apparatus of claim 6, wherein the collision checking module is specifically configured to: After receiving the address request response frame, the control BMU constructs an address conflict detection frame corresponding to the target address according to the target address carried in the address request response frame; broadcasting the address conflict detection frame, waiting for a response signal corresponding to the address conflict detection frame; If the response signal is received within the preset waiting time, retransmitting the address request frame to the CMU; and if the response signal is not received within the preset waiting time, controlling the BMU to bind the target address.
  8. 8. The method of claim 1, wherein the apparatus is further configured to: After the BMS system is powered on, controlling the CMU to trigger an address application control signal; When the BMU detects the address application control signal, determining whether to request a communication address for the first time; if the communication address is not the first request communication address, constructing the address conflict request; And sending the first address request or the address conflict request to a CMU.
  9. 9. An electronic device comprising a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory in communication over the bus when the electronic device is in operation, the machine-readable instructions when executed by the processor performing the steps of the address allocation method of any one of claims 1 to 5.
  10. 10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when executed by a processor, performs the steps of the address allocation method according to any of claims 1 to 5.

Description

Address allocation method and device, electronic equipment and storage medium Technical Field The disclosure relates to the technical field of battery management, and in particular relates to an address allocation method, an address allocation device, electronic equipment and a storage medium. Background With the rapid development of electric vehicles, power grid energy storage and other large Battery systems, the requirements for Battery management systems (Battery MANAGEMENT SYSTEM, BMS) are also increasing. The BMS is responsible for monitoring the state of the battery pack, including information such as battery voltage, temperature, current and the like, and prolongs the service life of the battery and improves the safety of the system by controlling and protecting the battery. In a BMS, a plurality of battery management units (Battery Management Unit, BMUs) are typically used to collect and process information in the battery pack, and a plurality of battery monitoring units (Cell Monitoring Unit, CMUs) may also be included under each BMU. The BMU and the CMU communicate through a bus (such as a CAN bus) and perform centralized management on each module through a main control unit. To ensure that the individual BMU or CMU modules can be properly distinguished and identified on the bus, each module requires a unique communication address. Most of the traditional address allocation modes rely on manual configuration or fixed address mapping, and the problems of poor flexibility, poor expansibility, complex configuration, easiness in address conflict and the like exist in the mode. Particularly in a multi-BMU or multi-CMU system, manually configuring the communication address is time consuming and labor consuming and is prone to human error. In addition, if the BMU module fails and needs to be replaced, the system is stopped due to address reconfiguration, and the working efficiency is affected. Disclosure of Invention The embodiment of the disclosure provides at least one address allocation method, device, electronic equipment and storage medium, which can realize flexible allocation and automatic management of addresses, can improve the automation degree of BMS, reduce human intervention, and do not affect the stability and reliability of the system when the number of BMUs is increased or modules are replaced. The embodiment of the disclosure provides an address allocation method applied to CMU and BMU in a BMS system, comprising the following steps: The method comprises the steps that a control CMU responds to an address request frame sent by a BMU, and a request type corresponding to the address request frame is determined, wherein the request type comprises a first address request and an address conflict request; The method comprises the steps of controlling a CMU to search a target address corresponding to the BMU from a starting position in a preset address mapping table aiming at the first address request, searching the target address corresponding to the BMU from a conflict address in the preset address mapping table aiming at the address conflict request, and 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 controlling the BMU to bind the target address when the target address is unique. In an alternative embodiment, 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 specifically includes: After receiving the address request response frame, the control BMU constructs an address conflict detection frame corresponding to the target address according to the target address carried in the address request response frame; broadcasting the address conflict detection frame, waiting for a response signal corresponding to the address conflict detection frame; If the response signal is received within the preset waiting time, retransmitting the address request frame to the CMU; and if the response signal is not received within the preset waiting time, controlling the BMU to bind the target address. In an alternative embodiment, the BMU is controlled to send the address request frame based on the following steps: After the BMS system is powered on, controlling the CMU to trigger an address application control signal; When the BMU detects the address application control signal, determining whether to request a communication address for the first time; if the communication address is not the first request communication address, constructing the address conflict request; And sending the first address request or the address conflict request to a CMU. In an alternative embodiment, determining the uniqueness of the target address in the network specifically further includes: controlling the BMU which transmits the address conflict detection frame except the current address conflict detection frame to receive the