Search

CN-121979584-A - Visual configuration method and device of battery management system

CN121979584ACN 121979584 ACN121979584 ACN 121979584ACN-121979584-A

Abstract

The application relates to a visual configuration method and device of a battery management system. The method comprises the steps of obtaining configuration data of a battery management system through a visual configuration interface and generating a configuration file, wherein the configuration file comprises a hardware driving configuration file, a fault triggering configuration file and a fault responding configuration file, sending the configuration file to a controller in the battery management system, reading the configuration file by the controller, converting a hardware interface signal and a logic signal according to the hardware driving configuration file, detecting faults according to the fault triggering configuration file, and generating corresponding control instructions according to the fault responding configuration file. By adopting the method, the hardware mapping, fault detection and fault response strategy of the BMS can be flexibly defined through the visual configuration of the upper computer, the dependence on the modification of the bottom layer code is reduced, and the maintenance efficiency of the system is improved.

Inventors

  • Wu Guizu
  • LI XING

Assignees

  • 双一力(宁波)电池有限公司

Dates

Publication Date
20260505
Application Date
20251222

Claims (10)

  1. 1. A method for visual configuration of a battery management system, the method comprising: Acquiring configuration data of a battery management system through a visual configuration interface, and generating a corresponding configuration file, wherein the configuration file comprises a hardware driving configuration file, a fault triggering configuration file and a fault response configuration file; Issuing the configuration file to a controller in the battery management system; And reading the configuration file by using the controller, converting a hardware interface signal and a logic signal according to the hardware driving configuration file, detecting faults according to the fault triggering configuration file, and generating a corresponding control instruction according to the fault responding configuration file.
  2. 2. The method of claim 1, wherein the fault trigger profile is used to define a mapping relationship between logic signals and fault trigger conditions, the fault trigger conditions including a fault state, a fault trigger delay, and the performing fault detection according to the fault trigger profile includes: determining logic signals to be detected, corresponding fault states and fault triggering delays according to the mapping relation; Monitoring the current state of the logic signal; and when the current state is consistent with the fault state and the duration of the current state meets the fault trigger delay, writing the fault event associated with the logic signal into a fault table.
  3. 3. The method of claim 2, wherein the fault response profile is used to define a mapping between fault events and fault responses, the fault responses including at least one of contactor operation instructions, breaker operation instructions, reserved fault flags, power coefficients, charge-discharge enable flags, action latch times, the generating corresponding control instructions from the fault response profile comprising: traversing the fault events in the fault table, and inquiring and obtaining fault responses corresponding to each fault event according to the mapping relation; Based on the fault responses, performing response decisions, including logically combining multiple fault responses, and generating execution instructions; and generating a hardware control signal according to the execution instruction and outputting the hardware control signal.
  4. 4. The method of claim 1, wherein the hardware driver configuration file is configured to define an input mapping relationship between a digital input channel of the battery management system and the logic signal and a logic direction, and wherein converting the hardware interface signal and the logic signal comprises: acquiring an input level signal of the digital input channel; determining the logic signals and the logic directions corresponding to the input level signals according to the input mapping relation; converting the input level signal into a corresponding logic state according to the logic direction; and writing the logic state into a mapping table of logic signals corresponding to the digital input channels.
  5. 5. The method of claim 1, wherein the hardware driver configuration file is configured to define an output mapping relationship between the digital output channel of the battery management system and the logic signal and a logic direction, and wherein converting the hardware interface signal and the logic signal comprises: Acquiring a logic signal and a logic state to be output; determining the digital output channel and the logic direction corresponding to the logic signal according to the output mapping relation; And converting the logic signal into an output level signal according to the logic direction, and outputting the output level signal through the digital output channel.
  6. 6. The method of claim 1, wherein the hardware driver profile is further configured to define a mapping between temperature-sensitive signals and hardware channels, the method further comprising: Collecting a temperature value through the hardware channel; binding the temperature value with a corresponding temperature sensing signal according to the mapping relation between the temperature sensing signal and the hardware channel; When fault detection is carried out according to the fault trigger configuration data, if the temperature value reaches the condition judged as the fault event, the fault event corresponding to the temperature sensing signal is written into a fault table.
  7. 7. The method of claim 1, wherein the configuration file is further used to define a mapping between status events of the system and display policies of the indicator lights, the display policies including light type, display mode, priority, on-time, and off-time, the method further comprising: acquiring a state event to be triggered; inquiring a display strategy corresponding to the state event according to the mapping relation; determining a display strategy to be executed currently from all triggered display strategies according to the priority of the display strategy; and controlling the corresponding indicator lamp to display according to the display strategy to be executed currently.
  8. 8. The method of claim 1, wherein the configuration data comprises an end-point power down configuration parameter, the end-point adjustment configuration parameter comprising a power down power coefficient, a power down voltage threshold, a power restored latch time, a power restored remaining charge condition, a power restored voltage threshold, and a power restored power coefficient, the method further comprising: When the battery management system detects that the maximum value of the single voltage in the charging state reaches the power-down voltage threshold value or the minimum value of the current single voltage in the discharging state reaches the power-down voltage threshold value, the power coefficient is reduced to the power-down power coefficient; And when the recovery power latching time, the recovery power residual capacity condition and the recovery power voltage threshold meet preset conditions, recovering the power coefficient to the recovery power coefficient.
  9. 9. The method of claim 1, wherein the configuration data further comprises configurable default parameters, the method further comprising: detecting whether the configurable default parameters are available when the controller is first used or reset; If the configurable default parameters are available, loading the configurable default parameters into the operating parameters of the controller; and if the configurable default parameters are not available, loading fixed macro definition default parameters to the controller.
  10. 10. A visual configuration apparatus of a battery management system, the apparatus comprising: The system comprises a parameter acquisition module, a fault triggering module and a fault response module, wherein the parameter acquisition module is used for acquiring configuration data of a battery management system through a visual configuration interface and generating a corresponding configuration file, and the configuration file comprises a hardware driving configuration file, a fault triggering configuration file and a fault response configuration file; the configuration setting module is used for sending the configuration file to a controller in the battery management system; and the configuration execution module is used for reading the configuration file by using the controller, converting a hardware interface signal and a logic signal according to the hardware driving configuration file, performing fault detection according to the fault triggering configuration file, and generating a corresponding control instruction according to the fault response configuration file.

Description

Visual configuration method and device of battery management system Technical Field The present application relates to the field of battery management systems, and in particular, to a method and an apparatus for visual configuration of a battery management system. Background With the rapid development of energy storage and new energy automobile industry, the Battery management system (Battery MANAGEMENT SYSTEM, BMS) is used as a core controller for guaranteeing the safe, stable and efficient operation of the Battery pack, and the functional complexity and the customization demands are increasing. In practical application, the BMS needs to flexibly configure control logic such as hardware driving, fault diagnosis and protection strategies according to different project requirements, hardware topology and field working conditions, for example, needs to shield fault alarm, lengthen or reduce judging time of communication overtime faults, and even needs to temporarily adjust port positions to ensure operation of field environments due to abnormal damage of ports. In the conventional technology, the adjustment of the BMS control logic is required to be performed by manually modifying source codes such as C language, recompiling, generating firmware, and burning to a controller by an experienced software developer. The process not only requires the modifier to have the capability of advanced programming, but also involves multiple links such as encoding, compiling, downloading, testing, and the like. The implementation mode based on the modified source code makes the adjustment of BMS control logic depend on specific developers, and the flow is tedious and has long period. Each modification needs to go through a complete software development and verification process, and is difficult to quickly respond to flexible requirements of different projects or field debugging. Meanwhile, human errors are easily introduced by directly modifying the bottom code, and the reliability and the safety of the system are affected. In summary, the prior art has the technical problems of complex adjustment process, low efficiency and insufficient flexibility of the BMS control logic. Disclosure of Invention In view of the foregoing, it is desirable to provide a method and apparatus for visual configuration of a battery management system. In a first aspect, the present application provides a method for visual configuration of a battery management system, including: Acquiring configuration data of a battery management system through a visual configuration interface, and generating a corresponding configuration file, wherein the configuration file comprises a hardware driving configuration file, a fault triggering configuration file and a fault response configuration file; Issuing the configuration file to a controller in the battery management system; And reading the configuration file by using the controller, converting a hardware interface signal and a logic signal according to the hardware driving configuration file, detecting faults according to the fault triggering configuration file, and generating a corresponding control instruction according to the fault responding configuration file. In one embodiment, the fault trigger configuration file is used for defining a mapping relationship between a logic signal and a fault trigger condition, the fault trigger condition includes a fault state and a fault trigger delay, and the fault detection according to the fault trigger configuration file includes: determining logic signals to be detected, corresponding fault states and fault triggering delays according to the mapping relation; Monitoring the current state of the logic signal; and when the current state is consistent with the fault state and the duration of the current state meets the fault trigger delay, writing the fault event associated with the logic signal into a fault table. In one embodiment, the fault response configuration file is used for defining a mapping relationship between a fault event and a fault response, the fault response includes at least one of a contactor operation instruction, a breaker operation instruction, a reserved fault flag, a power coefficient, a charge-discharge enable flag, and an action latch time, and generating the corresponding control instruction according to the fault response configuration file includes: traversing the fault event in the fault table, and inquiring and obtaining a fault response corresponding to the fault event according to the mapping relation; And generating a hardware control signal according to the fault response and outputting the hardware control signal. In one embodiment, the hardware driver configuration file is configured to define an input mapping relationship between a digital input channel of the battery management system and the logic signal and a logic direction, and the converting the hardware interface signal and the logic signal includes: acquiring an input