Function test method, device, system and equipment of battery management system and medium

By simulating the test environment of the battery management system and generating functional scenario packets for testing, the problems of low testing efficiency and high cost in the existing technology are solved, and fast and economical functional testing is achieved.

CN119917361APending Publication Date: 2025-05-02SAIC GM WULING AUTOMOBILE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411970091.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-30
Publication Date
2025-05-02

AI Technical Summary

Technical Problem

The existing technology is tested in the early stages of the research and development of battery management systems, and requires simulating different test environments and configuring different HIL test equipment, resulting in a long test time period and high cost.

Method used

By simulated the test environment of the battery management system, the function scenario message is generated based on the test function and sent to the functional test system, the test message feedback from the functional test system is obtained, and the function of the battery management system is normal or abnormal.

Benefits of technology

There is no need to add additional testing equipment, which shortens the test time period, reduces the testing cost and improves the testing efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119917361A_ABST
    Figure CN119917361A_ABST
Patent Text Reader

Abstract

The invention discloses a function test method, device, system and equipment for a battery management system and a medium, and the method comprises the steps: generating a function scene message according to a test function in a test environment after the test environment of the battery management system is simulated and generated, and transmitting the function scene message to a function test system, the function test system is a controller of a battery management system of the vehicle; and obtaining a test message fed back by the function test system, and determining that the function of the battery management system is normal according to the test message, the test message being a message generated after the function test system controls a relay to execute a function action according to the function scene message. Through the operation mode of the simulation function test, different test environments can be simulated according to actual requirements, the message can be generated for simulation test, test equipment does not need to be additionally arranged for test, the test time period can be shortened, and the test cost can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] The battery management system (BMS), commonly known as the battery nanny or battery butler, is mainly used to intelligently manage and maintain each battery unit, monitor the battery status, prevent the battery from overcharging and over-discharging, and extend the battery life. As the number of electronic devices used in vehicles increases, the battery management system (BMS) is needed to control the battery to power different devices to improve the vehicle's range, safety, and user experience.

[0003] In order to ensure the normal operation of each device and vehicle battery, it is necessary to test various functions of the battery management system, including abnormal status management of battery pack, voltage monitoring of single cells and total voltage, current monitoring, temperature monitoring, SOC estimation and balancing control, etc. The commonly used method is to test in a real high-voltage environment in the early stage of battery management system development or to set up HIL test equipment in the BMS controller for functional testing.

[0004] However, the commonly used methods currently have the following technical problems: In the early stages of R&D, different test environments need to be simulated each time, which not only takes a long time to test but also increases the test cost. Similarly, different HIL test equipment needs to be configured for different test functions, and the HIL test equipment needs to be deployed for testing, which also increases the test time and test cost. Summary of the invention

[0005] The present invention provides a method, device, system, equipment and medium for functional testing of a battery management system. The method can solve the technical problems of low testing efficiency and high testing cost in the prior art.

[0006] A first aspect of an embodiment of the present invention provides a method for functional testing of a battery management system, the method comprising:

[0007] After simulating and generating a test environment for the battery management system, a functional scenario message is generated in the test environment according to the test function and sent to a functional test system, which is a controller of the battery management system of the vehicle;

[0008] The test message fed back by the functional test system is obtained, and the battery management system is determined to function normally according to the test message. The test message is a message generated after the functional test system controls the relay to perform a functional action according to the functional scenario message.

[0009] The present invention can simulate and generate a test environment for a battery management system, generate a functional scenario message according to the test function in the test environment and send it to the functional test system; obtain the test message fed back by the functional test system after the relay performs the functional action according to the functional scenario message, and determine that the battery management system functions normally according to the test message. Through the above-mentioned operation mode of simulating functional testing, the present invention can simulate different test environments according to actual needs and generate messages for simulation testing, without the need to add additional test equipment for testing, which can shorten the test time cycle and reduce the cost of testing.

[0010] In combination with the first aspect, in one implementation, determining, according to the test message, that the function of the battery management system is normal includes:

[0011] Determine the action state of the relay executing the functional action according to the test message;

[0012] If the action state is the same as the preset state, it is determined that the battery management system functions normally;

[0013] If the action state is different from the preset state, it is determined that the battery management system is functioning abnormally.

[0014] In combination with the first aspect, in one implementation, generating a function scenario message according to a test function in the test environment and sending the message to a function test system includes:

[0015] After determining the test function, receiving function parameters according to the test function;

[0016] Generate a function scenario message according to the function parameters, and send the function scenario message to the function test system;

[0017] The functional parameters include: single cell voltage value, total voltage value in the battery pack, battery external temperature value, battery pack current value, supply voltage value and smoke concentration value.

[0018] A second aspect of an embodiment of the present invention provides a functional testing device for a battery management system, the device comprising:

[0019] A message generation module is used to simulate and generate a test environment for a battery management system, generate a functional scenario message according to a test function in the test environment, and send the message to a functional test system, which is a controller of the battery management system of the vehicle;

[0020] The test module is used to obtain the test message fed back by the functional test system and determine whether the battery management system functions normally based on the test message. The test message is a message generated by the functional test system after controlling the relay to perform a functional action based on the functional scenario message.

[0021] In conjunction with the second aspect, in one implementation, the test module is further used to:

[0022] Determine the action state of the relay executing the functional action according to the test message;

[0023] If the action state is the same as the preset state, it is determined that the battery management system functions normally;

[0024] If the action state is different from the preset state, it is determined that the battery management system is functioning abnormally.

[0025] In conjunction with the second aspect, in one implementation, the message generating module is further used to:

[0026] After determining the test function, receiving function parameters according to the test function;

[0027] Generate a function scenario message according to the function parameters, and send the function scenario message to the function test system;

[0028] The functional parameters include: single cell voltage value, total voltage value in the battery pack, battery external temperature value, battery pack current value, supply voltage value and smoke concentration value.

[0029] A third aspect of an embodiment of the present invention provides a functional test system for a battery management system, the system comprising: a relay, a master controller and a slave controller, the master controller being communicatively connected to the relay and the slave controller respectively, the master controller being communicatively connected to a plurality of single cells of a vehicle battery, and the slave controller being communicatively connected to a plurality of single cells of a vehicle battery;

[0030] The main controller is used to control the relay to perform functional actions according to the detected parameters, and the detected parameters include: the voltage value of the single cell, the temperature value of the battery pack where the connected single cell is located, the current value of the battery pack where the connected single cell is located, and the high voltage value of the high voltage monitoring point of the battery;

[0031] The slave controller is used to detect the temperature value of the battery pack where the connected single cell is located, and transmits the detected temperature value to the master controller.

[0032] In combination with the third aspect, in one implementation, the master controller and the slave controller include: a plurality of AFE chips, each AFE chip is connected to a single battery cell.

[0033] Compared with the prior art, the functional testing method, device, system, equipment and medium of a battery management system provided by the embodiment of the present invention have the following beneficial effects: the present invention can simulate and generate a test environment for a battery management system, generate a functional scenario message according to the test function in the test environment and send it to the functional testing system; obtain the test message fed back by the functional testing system after the relay performs the functional action according to the functional scenario message, and determine that the function of the battery management system is normal according to the test message. Through the above-mentioned operation mode of simulating functional testing, the present invention can simulate different test environments according to actual needs and generate messages for simulation testing, without the need to add additional test equipment for testing, which can shorten the test time cycle and reduce the cost of testing. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 It is a flowchart of a function testing method of a battery management system provided by one embodiment of the present invention;

[0035] Figure 2 is an operation flow chart of a functional testing method for a battery management system provided by one embodiment of the present invention;

[0036] Figure 3 It is a structural schematic diagram of a functional testing device for a battery management system provided by one embodiment of the present invention;

[0037] Figure 4 It is a structural schematic diagram of a functional test system for a battery management system provided by one embodiment of the present invention;

[0038] Figure 5 It is a structural schematic diagram of a single cell voltage acquisition module provided by an embodiment of the present invention;

[0039] Figure 6 It is a schematic diagram of the structure of a current sensor simulator composed of a power supply and a resistor provided in one embodiment of the present invention;

[0040] Figure 7 It is a schematic diagram of the structure of a test point provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0041] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0042] The battery management system (BMS), commonly known as the battery nanny or battery butler, is mainly used to intelligently manage and maintain each battery unit, monitor the battery status, prevent the battery from overcharging and over-discharging, and extend the battery life. As the number of electronic devices used in vehicles increases, the battery management system (BMS) is needed to control the battery to power different devices to improve the vehicle's range, safety, and user experience.

[0043] In order to ensure the normal operation of each device and vehicle battery, it is necessary to test various functions of the battery management system, including abnormal status management of battery pack, voltage monitoring of single cells and total voltage, current monitoring, temperature monitoring, SOC estimation and balancing control, etc. The commonly used method is to test in a real high-voltage environment in the early stage of battery management system development or to set up HIL test equipment in the BMS controller for functional testing.

[0044] However, the commonly used methods currently have the following technical problems: In the early stages of R&D, different test environments need to be simulated each time, which not only takes a long time to test but also increases the test cost. Similarly, different HIL test equipment needs to be configured for different test functions, and the HIL test equipment needs to be deployed for testing, which also increases the test time and test cost.

[0045] In order to solve the above problems, a functional testing method, device, system, equipment and medium of a battery management system provided in an embodiment of the present application will be introduced and explained in detail through the following specific embodiments.

[0046] Reference Figure 1 , showing a flow chart of a functional testing method for a battery management system provided by an embodiment of the present invention.

[0047] In one embodiment, the method is applicable to a computer or control system, which can be connected to a functional test system in communication, and the functional test system can be a controller of a battery management system of a vehicle. The functional test system can control the battery management system to perform different functional operations, and the control system can detect the state of the functional test system, and determine whether the various functions of the battery management system are normal according to the state of the functional test system, thereby completing the test process. Through the above operation mode, there is no need to add different HIL test equipment, which can reduce the test cost, shorten the test cycle, and improve the test efficiency.

[0048] Wherein, as an example, the functional testing method of the battery management system may include:

[0049] S11. After simulating and generating a test environment for a battery management system, a functional scenario message is generated in the test environment according to a test function and sent to a functional test system, where the functional test system is a controller of the battery management system of the vehicle.

[0050] In one embodiment, a test environment for different functional items of a battery management system may be generated by computer simulation.

[0051] In one operation mode, the electrical design structure of a certain functional project of the battery management system can be determined, and then the controller test environment of the battery management system can be built according to the electrical design structure. Specifically, the wiring harnesses corresponding to each module of a certain functional project of the battery management system can be correctly connected to obtain the test environment. In another specific operation, the corresponding test environment can be simulated and generated in MATLAB.

[0052] In the test environment, the test parameters can be adjusted according to different test functions. For example, for the fast charging test function, the current and voltage values ​​required for fast charging can be adjusted or customized, and then the functional scenario message can be generated based on the current and voltage values ​​and sent to the functional test system. The functional test system is the controller of the vehicle's battery management system. At this time, the battery management system can be controlled to perform work or actions corresponding to the test function according to the various values ​​of the functional scenario message. Subsequently, the battery management system is judged to determine whether this function is normal based on the battery management system's execution of work or the actions corresponding to the test function. If it is normal, the next test will be carried out. If not, adjustments will be made.

[0053] In order to perform test processing for different functional items, as an example, generating a functional scenario message according to the test function in the test environment and sending it to the functional test system may include the following sub-steps:

[0054] S111. After determining a test function, receiving function parameters according to the test function.

[0055] S112: Generate a function scenario message according to the function parameters, and send the function scenario message to a function test system.

[0056] Specifically, the technician can predetermine the test function to be tested this time, and then input the corresponding parameters according to the parameter items required for this test. Then, the corresponding parameters of the parameter items required for this test function can be received to obtain the functional parameters. For example, regarding the discharge test function, the voltage and current values ​​when the battery management system controls the battery discharge can be obtained, and then the corresponding functional scenario message is generated according to the voltage and current values ​​during discharge. Regarding the overheat alarm test function, the current, voltage and temperature required for the battery management system to trigger the overheat protection can be obtained, and then the corresponding functional scenario message is generated according to the current, voltage and temperature of the overheat protection. Optionally, the test functions may also include: slow charging, fast charging, smoke alarm, and fault conditions of each test function.

[0057] In order to cover the various test functions mentioned above, in an optional embodiment, the functional parameters may include: single cell voltage value, total voltage value in the battery pack, battery external temperature value, battery pack current value, supply voltage value and smoke concentration value, etc.

[0058] After receiving the function parameters, a corresponding function scenario message can be generated according to the function parameters, and the function scenario message can be sent to the function test system. The subsequent function test system can control the battery management system to perform corresponding actions according to the parameters of the function scenario message, and then determine whether the function is normal according to the state of the action executed.

[0059] In one operation mode, in order to improve communication efficiency, the communication method with the functional test system is usually CAN signal or PWM signal, and the relevant information of the functional scenario message can be sent to the functional test system by using CANoe or other CAN tools.

[0060] S12, obtaining a test message fed back by the functional test system, and determining that the battery management system functions normally according to the test message, wherein the test message is a message generated after the functional test system controls the relay to perform a functional action according to the functional scenario message.

[0061] In one embodiment, after receiving the functional scenario message, the functional testing system can trigger the battery management system to control the battery to perform corresponding functional actions according to the relevant information of the functional scenario message. For example, the fast charging test function can trigger the battery management system to control the battery to perform fast charging.

[0062] The functional test system can detect the state of the battery management system controlling the battery to perform functional actions. For example, the fast charging action requires controlling the relay to conduct so that the external power supply can be connected to the battery. At the same time, it can also detect the change in the battery power. According to the action of the relay and the change in the battery power, a test message is generated and fed back to the computer. Subsequently, the test message is used to determine whether a certain test function of the battery management system is normal.

[0063] For example, the above-mentioned fast charging function can determine whether the fast charging function is normal according to the executed action and the numerical value of the power change value.

[0064] Since the battery management system controls the relay to control the battery to perform different actions, in order to simplify the detection steps and improve the detection efficiency, as an example, determining that the battery management system functions normally according to the test message may include the following sub-steps:

[0065] S121. Determine the action state of the relay executing the functional action according to the test message.

[0066] S122: If the action state is the same as the preset state, it is determined that the battery management system functions normally.

[0067] S123: If the action state is different from the preset state, it is determined that the battery management system is malfunctioning.

[0068] In specific operation, the battery management system controls the corresponding relay to turn on or off to control the battery to perform the corresponding functional action. The action state of the relay can be detected, and then its action state is compared with the action state preset in the normal state of this test function. If its action state is the same as the action state preset in the normal state of this test function, it is determined that the current test function of the battery management system is normal. On the contrary, if its action state is different from the action state preset in the normal state of this test function, it is determined that the current test function of the battery management system is abnormal.

[0069] For example, the fast charge test function needs to control the relay to conduct, so that the external power supply can be connected to the battery for fast charging. It can detect whether the relay connected to the external power supply is conducting. And detect its conduction action to generate a test message. After reading the test message, determine whether the action state of the relay is on or closed. If it is on, it is determined that the fast charge test function of the battery management system is normal. Conversely, if it is closed, it is determined that the fast charge test function of the battery management system is abnormal.

[0070] Optionally, after completing this functional test, the fault condition corresponding to the test function can also be tested. The test method can also be to simulate a test environment of a fault condition, generate a corresponding functional scenario message in the test environment of the fault condition and send it to the functional test system; then obtain the test message fed back by the functional test system, and determine that the battery management system functions normally based on the test message.

[0071] For example, after completing the fast charging test function, you can simulate the test environment of fast charging failure and generate a functional scenario message of fast charging failure and send it to the functional test system. Based on the feedback test message, determine whether the actions performed by the battery management system under the fast charging failure are normal.

[0072] Reference Figure 2 , shows an operation flow chart of a functional testing method for a battery management system provided by an embodiment of the present invention.

[0073] Specifically, the operation of the functional testing method of the battery management system includes the following steps:

[0074] The first step is to build a test environment for the battery management system.

[0075] The second step is to set the single cell voltage value, the total voltage value in the battery pack, the battery external temperature value, the battery pack current value, the supply voltage value and the smoke concentration value to obtain the functional parameters.

[0076] The third step is to send corresponding functional scenario messages according to different test functions, including: messages related to discharge scenarios, messages related to slow charging scenarios, and messages related to fast charging scenarios.

[0077] The fourth step is to detect the message fed back by the battery management system, and determine the action state of the relay according to the fed back message to determine whether the test function is normal.

[0078] The fifth step is to obtain the single cell voltage value, the total voltage value in the battery pack, the battery external temperature value, the battery pack current value, the supply voltage value and the smoke concentration value at the time of the fault.

[0079] The sixth step is to send a corresponding message according to the functional parameters at the time of the fault to determine whether the function at the time of the fault is normal.

[0080] In this embodiment, the embodiment of the present invention provides a functional testing method for a battery management system, and its beneficial effects are: the present invention can simulate and generate a test environment for a battery management system, generate a functional scenario message according to the test function in the test environment and send it to the functional testing system; obtain the test message fed back by the functional testing system after the relay performs the functional action according to the functional scenario message, and determine that the battery management system functions normally according to the test message. Through the above-mentioned operation mode of simulating functional testing, the present invention can simulate different test environments according to actual needs and generate messages for simulation testing, without the need to add additional test equipment for testing, which can shorten the test time cycle and reduce the cost of testing.

[0081] The present invention also provides a battery management system function test device, see Figure 3, showing a schematic structural diagram of a functional testing device for a battery management system provided by an embodiment of the present invention.

[0082] Wherein, as an example, the functional testing device of the battery management system may include:

[0083] A message generating module 201 is used to simulate and generate a test environment for a battery management system, generate a functional scenario message according to a test function in the test environment, and send the message to a functional test system, which is a controller of the battery management system of the vehicle;

[0084] The test module 202 is used to obtain the test message fed back by the functional test system and determine whether the battery management system functions normally based on the test message. The test message is a message generated by the functional test system after controlling the relay to perform a functional action based on the functional scenario message.

[0085] Optionally, the test module is further used to:

[0086] Determine the action state of the relay executing the functional action according to the test message;

[0087] If the action state is the same as the preset state, it is determined that the battery management system functions normally;

[0088] If the action state is different from the preset state, it is determined that the battery management system is functioning abnormally.

[0089] Optionally, the message generating module is further used to:

[0090] After determining the test function, receiving function parameters according to the test function;

[0091] Generate a function scenario message according to the function parameters, and send the function scenario message to the function test system;

[0092] The functional parameters include: single cell voltage value, total voltage value in the battery pack, battery external temperature value, battery pack current value, supply voltage value and smoke concentration value.

[0093] The present invention also provides a battery management system function test system, see Figure 4 , showing a structural schematic diagram of a functional testing system for a battery management system provided by an embodiment of the present invention.

[0094] In one embodiment, the functional testing system of the battery management system is applicable to the functional testing method of the battery management system as described in the above embodiment.

[0095] Among them, as an example, the functional test system of the battery management system may include: a relay, a master controller (also called a BMS host) and a slave controller (also called a BMS slave), the master controller is respectively connected to the relay and the slave controller, the master controller is connected to several single cells of the vehicle battery, and the slave controller is connected to several single cells of the vehicle battery. In addition, the master controller can also be connected to other controllers of the vehicle. By connecting different controllers, the operation of other controllers can be controlled to determine whether different functional items are normal according to the action status of other controllers.

[0096] The main controller is used to control the relay to perform functional actions according to the detected parameters, and the detected parameters include: the voltage value of the single cell, the temperature value of the battery pack where the connected single cell is located, the current value of the battery pack where the connected single cell is located, and the high voltage value of the high voltage monitoring point of the battery;

[0097] The slave controller is used to detect the temperature value of the battery pack where the connected single cell is located, and transmits the detected temperature value to the master controller.

[0098] In specific operations, the master controller and the slave controller can receive the function scenario message generated according to the test function. Then, the relay can be controlled to perform the function action according to the function scenario message. Subsequently, the computer generates the test message and feeds back the function action performed by the relay to determine whether the test function is normal.

[0099] Reference Figure 4 In one operation mode, the master controller and the slave controller can communicate using a daisy chain. The master controller can interact with other controllers on the vehicle, for example, the handshake interaction between the upper and lower power of the fast charging pile, monitoring the total internal / external pressure of the battery pack, the total current of the battery pack, the voltage and temperature of some single cells, smoke concentration and other information. The slave controller can be used to monitor the voltage and temperature of the remaining single cells and other information.

[0100] Assume that the battery management system needs to monitor a total of z single cells, wherein the master controller can be connected to x single cells for monitoring x single cells, and the slave controller can be connected to y single cells for monitoring y single cells, wherein z=x+y.

[0101] The functional test system can control the corresponding relays to close or open according to functional requirements, thereby realizing functions such as discharge, slow charging, and fast charging.

[0102] Both the master controller and the slave controller may include a single cell voltage acquisition module, a temperature acquisition module, a current acquisition module, a high voltage acquisition module, and a CAN communication module.

[0103] Reference Figure 5 , shows a schematic structural diagram of a single cell voltage acquisition module provided in an embodiment of the present invention.

[0104] Among them, the single cell voltage acquisition module contains multiple AFE chips, which can collect voltage, temperature, and current. If the battery management system is to work properly, it is necessary to ensure that the AFE chip works properly. Assume that the master controller and the slave controller have a total of m AFE chips.

[0105] like Figure 5 As shown, AFE#1 represents the first AFE chip, and AFE#m represents the mth AFE chip. V1+ and V1- are the positive and negative electrodes of the first AFE chip, Cell1- and Cell1+ are the negative and positive electrodes of the first single cell monitored by the first AFE, respectively, and Cell2+ is the positive electrode of the second single cell monitored by the first AFE. The working voltage of the first AFE is equal to the total voltage of the n single cells connected in series by the current AFE. The voltage of the first single cell is equal to the potential of Cell1+ minus the potential of Cell1-, that is, the voltage of single cell 1 = V Cell1+ -V Cell1- Similarly, the voltage of single cell 2 = V Cell2+ -V Cell1+ , single cell voltage = V Celln+ -V Cell(n-1)+ CH1 is the first channel of the high-precision multi-channel battery simulator, and CH2 is the second channel of the high-precision multi-channel battery simulator. According to the number of cells n that the single-chip AFE needs to monitor, the positive electrode of channel CH1 is connected to the negative electrode of channel CH2 using an adapter board, and so on. Finally, the battery simulator is connected in series from channel 1 to channel n as a battery pack to realize the power supply of the AFE chip and the voltage collection of n cells. Figure 2 As shown, the negative electrode of channel CH1 is connected to the negative electrode V- of AFE#1 chip and the wiring harness interface corresponding to the negative electrode Cell1- of single cell 1 on the adapter board, the positive electrode of channel CH1 is connected to the wiring harness interface corresponding to the positive electrode Cell1+ of single cell 1 on the adapter board, the positive electrode of channel CHn is connected to the positive electrode V+ of AFE#1 chip and the wiring harness interface corresponding to the positive electrode Celln+ of single cell n on the adapter board, and the remaining single cells to be monitored by the first AFE are connected in turn. By changing the voltage of channel CH1 through a battery simulator, the voltage of the first single cell can be simulated. Similarly, changing the voltage of the CHn channel can change the voltage of the nth single cell. Chips AFE#2 to AFE#m are connected in parallel on the adapter board through wiring harnesses in turn, so that the second AFE chip to the mth AFE chip can be powered, which can ensure the normal operation of all AFE chips.

[0106] Multiple AFE chips can be used to simulate single cells, and can also simulate the operating conditions when the voltage of a single cell is too high / normal / too low. Compared with using real cells, this is safer and more cost-effective than using a 1-to-1 cell simulation method in a HIL test cabinet.

[0107] In one embodiment, the temperature acquisition module, the AFE chip samples through AD and sends it to the master controller and the slave controller according to the collected resistance value. For example, the temperature sensor is made of a material whose resistance changes with temperature. There is an ADC acquisition channel inside the AFE chip. The circuit boards of the master controller and the slave controller will use a fixed voltage as the positive pole of the power supply, which flows through a fixed resistor on the circuit board and a temperature sensor and then connects to the reference ground to form a loop. The AFE obtains the resistance value by collecting the voltage on the temperature sensor of the loop and performing resistance division conversion, and then converts the temperature monitored by the temperature sensor according to the temperature sensing resistance table. If a piece of AFE can collect up to 20 temperatures, and the actual project also needs to collect 20 temperatures, then the AFE needs to simulate 20 temperatures. If the actual project needs to collect only 5 temperatures, then the AFE only needs to simulate 5 temperatures. The specific number of temperature acquisitions used by each AFE comes from the actual project needs.

[0108] The temperature of the single cell and other in-vehicle environments can be subsequently calculated by looking up a table. As shown in the following table, let the reference resistance be a, the maximum resistance deviation be b, the minimum resistance deviation be c, the temperature be T, the actual resistance be d, and the relationship between d and a, b, and c be shown in formula (1). When the temperature T to be simulated is not in the table, select the temperature range closest to T and calculate the actual resistance d by linear interpolation. (ac)≤d≤(a+b).

[0109] Temperature(℃) Reference resistance(Ω) Maximum resistance deviation(Ω) Minimum resistance deviation (Ω) -100 The numerical value refers to the actual temperature … 26 … 300

[0110] Therefore, according to the temperature sensitive resistance table of the temperature sensor used in the battery pack, a sliding rheostat with a resistance range covering the measurement range of the temperature sensor can be selected, and connected to the temperature sensor harness interface corresponding to the master controller and the slave controller. By changing the resistance value of the sliding rheostat, the working scenarios of the power battery pack under high temperature, extreme cold, normal temperature and other working conditions can be simulated.

[0111] It should be noted that the master controller and the slave controller can be called to work together according to the actual project requirements. For example, the master controller monitors the temperature of the front of the battery pack, and the slave controller monitors the temperature of the middle and rear of the battery pack. If you only need to simulate the temperature change of the front of the battery pack, you only need to adjust the resistance of the sliding rheostat on the master controller. If you need to simulate the temperature change of the front, middle and rear of the battery, the resistance of the sliding rheostat on both the master controller and the slave controller needs to be adjusted.

[0112] The temperature acquisition module can be used to simulate the ambient temperature, and can also simulate high temperature / low temperature / normal temperature working environments. Compared with the HIL test cabinet, the upper computer interface is designed to change the resistance value by using a programmable resistor board, which has a simple structure and is easy to implement.

[0113] The smoke sensor monitors the smoke changes in the battery pack in real time to determine whether there are electrical fires, thermal runaway of the battery cells, and other fire-causing situations in the battery pack, and monitors the battery system safely, effectively, and in real time. The communication method between the smoke sensor and the master controller and the slave controller is usually CAN signal or PWM signal. The master controller and the slave controller determine whether the battery pack has thermal runaway or other faults based on the received smoke sensor signal. For the simulation of smoke sensors using CAN signal communication, CANoe or other CAN tools can be used to send the smoke concentration information CAN signal to the master controller and the slave controller. For the simulation of smoke sensors using PWM signal communication, a signal generator can be used. According to the specification of the smoke sensor, the voltage amplitude, frequency, and duty cycle of the PWM signal output by the signal generator can be set to simulate the frequency and duty cycle that the smoke sensor should emit when the smoke concentration is different.

[0114] Among them, regarding setting the voltage amplitude, frequency and duty cycle of the PWM signal, simulating the frequency and duty cycle that the smoke sensor should emit when the smoke concentration is different, the voltage amplitude of the PWM signal can be set according to the selected smoke sensor specification. If the output PWM voltage amplitude of the smoke sensor is 5V, it is necessary to simulate a PWM signal with a voltage amplitude of 5V. The smoke sensor specification defines the frequencies corresponding to different working states, such as N Hz for normal operation and H / L / E Hz for overvoltage / undervoltage / fault of the smoke sensor. The actual values ​​of N / H / L / E are derived from the actual smoke sensor specification parameters. The formula of smoke concentration mol and duty cycle duty is as follows: The specific values ​​of error err and coefficient G are based on the selected smoke sensor specification. Smoke concentration mol = (duty cycle duty-error err)*coefficient G.

[0115] Through the above method, the smoke concentration in the battery pack can be simulated and tested by comparing it with the real smoke, which is safer and more controllable.

[0116] Regarding the current acquisition module, the current sensor commonly used in power battery packs is a Hall current sensor or a shunt. The Hall current sensor uses the Hall effect principle to convert the current signal into a voltage signal. The master controller and the slave controller can obtain the voltage by collecting the Hall current sensor, and convert it according to the specification sheet corresponding to the Hall current sensor to obtain the current in the current circuit. The shunt is a resistor with a fixed resistance and very small resistance. A shunt is connected in series in the working circuit of the power battery. When the current flows through the shunt, a voltage difference will be formed at both ends of the shunt. The master controller and the slave controller can calculate the current value by collecting the voltage difference at both ends of the shunt.

[0117] The current acquisition module can be used to simulate the current and the current of the battery pack. The current simulator, which is composed of a programmable power supply and a resistor, has a simple structure and is easy to operate and implement.

[0118] Reference Figure 6 , shows a schematic diagram of the structure of a current sensor simulator composed of a power supply and a resistor provided in an embodiment of the present invention. A high-precision power supply and a resistor can be used to form a current sensor simulator, such as Figure 6 As shown. R3 and R4 are resistors, which are connected in series to the positive and negative terminals of the programmable power supply. By selecting appropriate resistors and following the principle of resistor voltage division, the output voltage of the programmable power supply can be attenuated proportionally. When the voltage of the programmable power supply is set to 1V, when R3 / R4=1:999, the voltage of R3 is 1mv, and the simulation of the current sensor can be realized.

[0119] Reference Figure 7 , showing a schematic diagram of the structure of a test point provided by an embodiment of the present invention.

[0120] In one embodiment, the high-voltage acquisition module, the total internal voltage of the power battery pack is relatively high, and the master controller and the slave controller should use a suitable resistor voltage divider circuit to reduce the voltage to the input voltage that the acquisition circuit can withstand. Therefore, the test points of the internal total voltage positive electrode PACK+ and the total voltage negative electrode PACK- after the resistor voltage division can be connected on the BMS host. Figure 7 As shown, a DC low-voltage power supply is used as input to simulate high voltage. R1 and R2 are voltage-dividing resistors, and the proportional relationship K=R1 / (R1+R2). The voltage Vset that needs to be set by the DC low-voltage power supply is equal to the actual total internal voltage of the power battery pack*K. The main control chip of the master controller and the slave controller filters the collected voltage Vset, and obtains the total internal voltage of the power battery pack after amplification. Similarly, other high-voltage monitoring points such as the total voltage outside the battery pack can be processed by flying wires from the BMS host to simulate high voltage.

[0121] The high-voltage acquisition module can be used to simulate the high voltage of the battery pack using a low-voltage DC power supply, and can also simulate the working conditions when the total voltage of the battery pack is too high / normal / too low. Compared with directly connecting to the real high voltage, it is safer.

[0122] CAN communication module: CAN bus communication is used to realize information interaction with other controllers on the vehicle, and the up and down power handshake interaction of the fast charging pile. Therefore, CANoe or other CAN bus tools can be used to send bus messages to the master controller and the slave controller.

[0123] When the technician performs the operation, the test environment of the master controller and the slave controller is set up, that is, the wiring harnesses corresponding to each module are correctly connected.

[0124] Use a battery simulator to set the single cell voltage, use a low-voltage DC power supply to set the total voltage in the battery pack, use a sliding rheostat to adjust the appropriate resistance value to simulate the external temperature, use a programmable power supply and resistors to divide the voltage to simulate the battery pack current, and provide a 12V battery power supply voltage for the master controller and the slave controller. Depending on the type of smoke sensor, use a CAN tool to send a CAN message or a signal generator to send a PWM signal to simulate the initial value of the smoke concentration.

[0125] For the discharge scenario test, use CANoe or other bus tools to send discharge scenario related CAN messages to the master controller and slave controller.

[0126] Check the message sent by the battery management system and the relay action status. Similarly, for the test of the slow charging scenario, use CANoe or other bus tools to send the slow charging scenario-related CAN message to the master controller and the slave controller to check the message sent by the battery management system and whether the relay action status is as expected. For the test of the fast charging scenario, a resistor with a suitable resistance value needs to be connected in series, and the negative pole of the battery power supply of the master controller and the slave controller is connected through a boat-type switch. When the switch is closed, it is judged that the fast charging gun is connected. When the switch is disconnected, it is judged that the fast charging gun is unplugged. After simulating the fast charging gun connection, use CANoe or other bus tools to send fast charging-related messages (J1939 protocol). After the fast charging handshake is successful, send the fast charging scenario-related CAN message to check the message sent by the BMS and whether the relay action status is as expected.

[0127] It is also possible to simulate the fault conditions during discharge / slow charge / fast charge, by adjusting the voltage of the single cell, the total voltage in the battery pack, the external temperature, the current of the battery pack, the power supply voltage of the master controller and the slave controller, and the smoke concentration value to the threshold value during discharge / slow charge / fast charge fault. For example, the voltage of the monitoring shunt is converted to obtain the current, and the voltage of the shunt simulator is changed until the current fault threshold is met. The master controller and the slave controller make corresponding fault processing according to the functional requirements, so the overcurrent fault condition can be simulated. For another example, the voltage of the single cell is monitored, and the voltage of a certain channel of the battery simulator is adjusted until the voltage overvoltage / undervoltage fault threshold of the single cell voltage is met, so the overvoltage / undervoltage fault condition can be simulated. For another example, the resistance value of the monitoring temperature sensor is converted to obtain the ambient temperature, and the resistance value of a certain sliding rheostat is adjusted until the overheat fault threshold is met, so the overheat fault condition can be simulated. For another example, the wiring harness corresponding to Cell1+ / Celln+ can be disconnected to simulate the fault when the single cell 1 / n is disconnected. For another example, by setting the frequency and duty cycle of the PWM signal until the threshold corresponding to the triggering of the high smoke concentration fault is met, the high smoke concentration fault can be simulated. For another example, by adjusting the voltage value of the low-voltage DC power supply until the total voltage fault threshold in the battery pack is met, the total voltage fault can be simulated.

[0128] Check the sent messages and relay action status. If they are consistent with the expected results, it means that the master controller and the slave controller can correctly handle the corresponding faults. Otherwise, it means that the master controller and the slave controller are malfunctioning.

[0129] By adopting the technical solution of the present invention, the simulation of the fast charging gun can also be realized, and the test scenes of plugging and pulling out the gun can be simulated. By using the programmable relay board and calling the programmable resistor board in the HIL test cabinet, the host computer interface is designed to simulate the fast charging plugging and pulling out of the gun. By adding resistance to the boat-type switch, the test scenes of plugging and pulling out the gun of the fast charging gun are simulated. The structure is simple and easy to implement. It can also greatly shorten the test time, improve the test efficiency, and reduce the test risk and energy consumption. It can also improve the accuracy of the test results through high-precision simulation of the external environment and data analysis, ensure the safety and reliability of electric vehicle batteries, and enhance the test accuracy.

[0130] Those skilled in the art can clearly understand that, for the sake of convenience and brevity of description, the specific working process of the device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0131] Furthermore, an embodiment of the present application also provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the functional testing method of the battery management system as described in the above embodiment is implemented.

[0132] Furthermore, an embodiment of the present application also provides a computer-readable storage medium, which stores a computer-executable program, and the computer-executable program is used to enable a computer to execute the functional testing method of the battery management system as described in the above embodiment.

[0133] It should be noted that the orientation or positional relationship indicated by the terms "upper", "lower", etc. is based on the orientation or positional relationship shown in the accompanying drawings, which is only for the convenience of describing the embodiments of the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation of the present invention. When an element such as a layer, region or substrate is referred to as being "on" or "above" another element, it can be directly on the other element, or there can also be an intermediate element. On the contrary, when an element is referred to as "directly on" or "above" another element, there is no intermediate element. It should also be understood that when an element is referred to as being "under" or "below" another element, it can be directly under or below the other element, or there can also be an intermediate element. On the contrary, when an element is referred to as being "directly under" or "below" another element, there is no intermediate element. Unless otherwise clearly specified and limited, the terms "installed", "connected" and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0134] Those skilled in the art will appreciate that the embodiments of the present application may also provide computer program products. Therefore, the present application may adopt the form of complete hardware embodiments, complete software embodiments, or embodiments in combination with software and hardware. Moreover, the present application may adopt the form of computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program codes.

[0135] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), apparatuses, and computer program products according to the embodiments of the present application. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0136] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0137] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0138] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A functional testing method for a battery management system, characterized in that: The method comprises: After simulating and generating a test environment for the battery management system, a functional scenario message is generated in the test environment according to the test function and sent to a functional test system, which is a controller of the battery management system of the vehicle; The test message fed back by the functional test system is obtained, and the battery management system is determined to function normally according to the test message. The test message is a message generated after the functional test system controls the relay to perform a functional action according to the functional scenario message.

2. The functional testing method of a battery management system according to claim 1, characterized in that: Determining according to the test message that the battery management system functions normally includes: Determine the action state of the relay executing the functional action according to the test message; If the action state is the same as the preset state, it is determined that the battery management system functions normally; If the action state is different from the preset state, it is determined that the battery management system is functioning abnormally.

3. The functional testing method of a battery management system according to claim 1, characterized in that: The generating a functional scenario message according to the test function in the test environment and sending it to the functional test system includes: After determining the test function, receiving function parameters according to the test function; Generate a function scenario message according to the function parameters, and send the function scenario message to the function test system; The functional parameters include: single cell voltage value, total voltage value in the battery pack, battery external temperature value, battery pack current value, supply voltage value and smoke concentration value.

4. A functional testing device for a battery management system, characterized in that: The device comprises: A message generation module is used to simulate and generate a test environment for a battery management system, generate a functional scenario message according to a test function in the test environment, and send the message to a functional test system, which is a controller of the battery management system of the vehicle; The test module is used to obtain the test message fed back by the functional test system and determine whether the battery management system functions normally based on the test message. The test message is a message generated by the functional test system after controlling the relay to perform a functional action based on the functional scenario message.

5. The functional testing device for a battery management system according to claim 4, characterized in that: The test module is also used for: Determine the action state of the relay executing the functional action according to the test message; If the action state is the same as the preset state, it is determined that the battery management system functions normally; If the action state is different from the preset state, it is determined that the battery management system is functioning abnormally.

6. The functional testing device for a battery management system according to claim 4, characterized in that: The message generating module is further used for: After determining the test function, receiving function parameters according to the test function; Generate a function scenario message according to the function parameters, and send the function scenario message to the function test system; The functional parameters include: single cell voltage value, total voltage value in the battery pack, battery external temperature value, battery pack current value, supply voltage value and smoke concentration value.

7. A functional test system for a battery management system, characterized in that: The system comprises: a relay, a master controller and a slave controller, wherein the master controller is communicatively connected to the relay and the slave controller respectively, the master controller is communicatively connected to a plurality of single cells of a vehicle battery, and the slave controller is communicatively connected to a plurality of single cells of a vehicle battery; The main controller is used to control the relay to perform functional actions according to the detected parameters, and the detected parameters include: the voltage value of the single cell, the temperature value of the battery pack where the connected single cell is located, the current value of the battery pack where the connected single cell is located, and the high voltage value of the high voltage monitoring point of the battery; The slave controller is used to detect the temperature value of the battery pack where the connected single cell is located, and transmits the detected temperature value to the master controller.

8. The functional test system of the battery management system according to claim 7, characterized in that: The master controller and the slave controller include: a plurality of AFE chips, each of which is connected to a single cell.

9. The functional test system of the battery management system according to claim 8, characterized in that: The master controller and the slave controller further include: a temperature acquisition module, a current acquisition module, and a high voltage acquisition module; The temperature acquisition module is used to acquire the temperature value of the battery; The current acquisition module is used to acquire the current value of the battery; The high voltage acquisition module is used to acquire the voltage value of the battery.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer-executable program, and the computer-executable program is used to enable a computer to execute the functional testing method for a battery management system according to any one of claims 1 to 3.