Simulation test device and method of battery management system and readable storage medium

By developing simulation testing equipment for battery management systems and using simulation platforms to simulate working conditions, automated testing of thermal runaway function of electric vehicle battery management systems is realized, solving the problems of high testing costs and safety in the existing technology, and improving the accuracy and efficiency of testing.

CN119645751AActive Publication Date: 2025-03-18CHINA FAW CO LTD

Patent Information

Application Number
CN202411768630.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-04
Publication Date
2025-03-18
Estimated Expiration
2044-12-04

AI Technical Summary

Technical Problem

In the prior art, the thermal runaway function test of the electric vehicle battery management system has high cost, poor repeatability, and a long test cycle. It is not suitable for testing in a real vehicle for safety reasons for the tester.

Method used

Develop a simulation test equipment for a battery management system, generate test signals through the upper computer system, and the simulation platform simulates the working status of the vehicle and the battery pack, generates working condition simulation signals, and sends them to the battery management system to collect response data and generate test reports.

Benefits of technology

Automatic testing is realized, which improves the accuracy and efficiency of testing, and does not require the actual vehicle test thermal runaway function, solving the problems of high safety and testing costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119645751A_ABST
    Figure CN119645751A_ABST
Patent Text Reader

Abstract

The invention discloses a simulation test device and method of a battery management system and a readable storage medium, and belongs to the technical field of vehicle test equipment.The simulation test device of the battery management system comprises an upper computer system and a simulation platform, the simulation test device of the battery management system generates a test signal through the upper computer system, and the test signal is transmitted to the simulation platform through the simulation platform; a test signal is sent to the simulation platform, the simulation platform operates a simulation work model through the vehicle simulation module according to the test signal and generates model data, and the board card module generates a working condition simulation signal according to the model data and then sends the working condition simulation signal to the battery management system; the battery management system can generate test data according to the working condition simulation signal, and the upper computer system generates a test report according to the test data, so that whether the thermal runaway function operates normally or not is judged conveniently, the thermal runaway function does not need to be tested by a real vehicle, automatic test is realized, and test accuracy and test efficiency are effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field related to vehicle testing equipment, and in particular to a simulation testing device, a simulation testing method and a computer-readable storage medium for a battery management system. Background Art

[0002] As an important component of electric vehicles, the safety of battery packs is directly related to the operational stability of the entire vehicle and the safety of passengers. As an important function of the battery management system (BMS) of electric vehicles, the thermal runaway function of electric vehicles ensures that when the temperature and pressure inside the battery pack are abnormal, relevant safety measures, such as automatic power off, can be quickly initiated to prevent further damage to the battery pack and possible fire.

[0003] The thermal runaway test of the battery management system verifies the reliability and effectiveness of the thermal runaway function by simulating the operation of the battery pack under extreme conditions. Due to the high cost of real vehicle testing, poor test repeatability, long test cycle, and the need for precise test accuracy, and for the safety of testers, the thermal runaway function is not suitable for testing on real vehicles, so it is necessary to develop corresponding test equipment to replace manual testing. Summary of the invention

[0004] The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, the present invention proposes a simulation test device for a battery management system, which can simulate the working conditions required for the thermal runaway function of the BMS, realize automated testing, and effectively improve the test accuracy.

[0005] The present invention also provides a simulation test method for a battery management system and a computer-readable storage medium.

[0006] A simulation test device for a battery management system according to a first aspect of an embodiment of the present invention includes: The host computer system is used to generate test signals; A simulation platform connected to the host computer, the simulation platform comprising a vehicle simulation module and a board module, the vehicle simulation module is used to run a simulation working model according to the test signal and generate model data, the board module is used to generate a working condition simulation signal according to the model data, and send the working condition simulation signal to the battery management system, the working condition simulation signal at least comprising a battery pack temperature signal and a voltage signal; The simulation platform collects test data generated by the battery management system in response to the operating condition simulation signal, and uploads the test data to the host computer system, and the host computer system generates a test report based on the test data.

[0007] The simulation test device of the battery management system according to the embodiment of the present invention has at least the following beneficial effects: The simulation test equipment of the battery management system generates a test signal through the host computer system and sends the test signal to the simulation platform. The simulation platform runs the simulation working model according to the test signal through the vehicle simulation module and generates model data. The board module generates a working condition simulation signal according to the model data, and then sends the working condition simulation signal to the battery management system. The battery pack temperature signal and voltage signal can be simulated according to the working condition simulation signal, so that the battery management system can generate test data for the thermal runaway function of the battery pack according to the working condition simulation signal. The host computer system generates a test report based on the test data to facilitate judgment of whether the thermal runaway function is operating normally. The simulation test equipment can simulate the working conditions required for the thermal runaway function of the BMS. There is no need to test the thermal runaway function on a real vehicle, thereby realizing automated testing and effectively improving test accuracy and efficiency.

[0008] According to some embodiments of the present invention, the vehicle simulation module includes a vehicle dynamics model, a battery pack model and a driver model connected to the host computer system, the vehicle dynamics model is used to simulate the dynamic state of the vehicle under power drive according to the test signal; the battery pack model is used to simulate the working state of the battery pack according to the test signal; the driver model is used to simulate the working environment of the cockpit according to the test signal.

[0009] According to some embodiments of the present invention, the board module includes a temperature simulation board, a voltage simulation board and a CAN signal simulation board. The temperature simulation board is used to generate the battery pack temperature signal according to the model data, the voltage simulation board is used to generate the voltage signal according to the model data, and the CAN signal simulation board is used to generate a CAN signal according to the model data.

[0010] According to some embodiments of the present invention, the temperature simulation board, the voltage simulation board and the CAN signal simulation board are connected to the vehicle simulation module via a PCIe bus, and the fault injection board is communicatively connected to the vehicle simulation module via a DSI3 protocol.

[0011] According to some embodiments of the present invention, the host computer system includes a test management module and an automated test module, the test management module is used to determine the test conditions, test process and test parameters, and the automated test module is used to generate the test signal according to the test conditions, the test process and the test parameters.

[0012] According to some embodiments of the present invention, the host computer system also includes a fault injection module, which is used to send fault information to the simulation platform. The vehicle simulation module and the board module are configured to simulate the operating conditions corresponding to the fault information and generate a fault signal, and send the fault signal to the battery management system for testing.

[0013] A simulation test method for a battery management system according to a second aspect of an embodiment of the present invention is applied to a simulation test device for a battery management system according to the embodiment of the first aspect, and the simulation test method includes: Acquire a test signal and send the test signal to a simulation platform; Running the simulation platform according to the test signal and generating model data; Generate an operating condition simulation signal according to the model data, and send the operating condition simulation signal to the battery management system, wherein the operating condition simulation signal includes at least a battery pack temperature signal and a voltage signal; The test data generated by the battery management system in response to the operating condition simulation signal is collected, and a test report is generated according to the test data.

[0014] The simulation test method of the battery management system according to the embodiment of the present invention has at least the following beneficial effects: The simulation test method is applicable to the simulation test equipment of the battery management system of the first aspect of the above-mentioned embodiment. The test signal is generated by the host computer system and sent to the simulation platform. The simulation working model is run according to the test signal and model data is generated. The operating condition simulation signal is generated according to the model data, and then the operating condition simulation signal is sent to the battery management system. The operating condition simulation signal can be used to simulate the battery pack temperature signal and voltage signal, so that the battery management system can generate test data for the thermal runaway function of the battery pack according to the operating condition simulation signal. The host computer system generates a test report based on the test data, which is convenient for judging whether the thermal runaway function is operating normally. Since the simulation test equipment can simulate the working conditions required for the thermal runaway function of the BMS, there is no need to test the thermal runaway function on a real vehicle. The simulation test method can be used to realize automated testing, which effectively improves test accuracy and test efficiency.

[0015] According to some embodiments of the present invention, the simulation platform includes a temperature simulation board, a voltage simulation board and a CAN signal simulation board, and generating a working condition simulation signal according to the model data includes: Controlling the temperature simulation card to generate the battery pack temperature signal according to the model data; Controlling the voltage simulation card to generate the voltage signal according to the model data; The CAN signal simulation board is controlled to generate a CAN signal according to the model data.

[0016] According to some embodiments of the present invention, the simulation test device of the battery management system includes a host computer system, the host computer system includes a fault injection module, and the simulation test method further includes: Sending fault information to the simulation platform using the fault injection module; Controlling the simulation platform to simulate a working condition corresponding to the fault information and generate a fault signal; The fault signal is sent to the battery management system for testing to generate the test data.

[0017] According to the computer-readable storage medium of the third aspect of the embodiment of the present invention, the computer-readable storage medium includes a stored executable program, wherein when the executable program is running, the device where the computer-readable storage medium is located is controlled to execute the simulation test method of the battery management system of the second aspect of the above-mentioned embodiment.

[0018] Since the computer-readable storage medium adopts all the technical solutions of the simulation test method of the above embodiment, it at least has all the beneficial effects brought by the technical solutions of the above embodiment, which will not be repeated here.

[0019] Other features and advantages of the present invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 It is a structural principle block diagram of a simulation test device for a battery management system according to an embodiment of the present invention; Figure 2 It is a structural principle block diagram of a simulation platform of a simulation test device according to an embodiment of the present invention; Figure 3 It is a structural principle block diagram of a host computer system according to an embodiment of the present invention; Figure 4 is a flow chart of a simulation test method for a battery management system according to an embodiment of the present invention; Figure 5 is a flowchart of specific steps for generating a working condition simulation signal according to model data in one embodiment of the present invention; Figure 6 is a fault test flow chart of a simulation test method for a battery management system in one embodiment of the present invention; Figure 7 is a specific example flow chart of a simulation test method for a battery management system according to an embodiment of the present invention; Figure 8 It is a specific example flow chart of a simulation test method for a battery management system according to another embodiment of the present invention.

[0021] Figure Number: Host computer system 10; test management module 11; test case library 111; test scenario library 112; variable management 113; test project management 114; user management 115; automated test module 12; action library construction 121; sequence construction 122; parameter mapping 123; test sequence execution 124; report generation 125; fault injection module 13; Simulation platform 20; real-time simulator 21; vehicle simulation module 211; vehicle dynamics model 2111; battery pack model 2112; driver model 2113; IO model 212; HIL system input and output model 2121; network signal simulation model 2122; board module 22; programmable power supply 221; power switching board 222; IO board 223; temperature simulation board 224; voltage simulation board 225; CAN signal simulation board 226; fault injection board 227; Battery management system 30. DETAILED DESCRIPTION

[0022] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.

[0023] In the description of the present invention, it is necessary to understand that the orientation or positional relationship indicated by the terms upper, lower, etc. is based on the orientation or positional relationship shown in the drawings, and is only for the convenience of describing 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 on the present invention.

[0024] In the description of the present invention, the meaning of "more than" is more than two, "greater than", "less than", "exceed" etc. are understood to exclude the number itself, and "above", "below", "within" etc. are understood to include the number itself. If there is a description of "first" or "second", it is only used for the purpose of distinguishing technical features, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.

[0025] In the description of the present invention, it should be noted that the terms such as setting, installing, connecting, etc. should be understood in a broad sense, and technicians in the relevant technical field can reasonably determine the specific meanings of the above terms in the present invention in combination with the specific content of the technical solution.

[0026] The technical solution of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the embodiments described below are only some embodiments of the present invention, not all embodiments.

[0027] Electric vehicles are powered by battery packs. The thermal runaway test of the battery pack verifies the reliability and effectiveness of the thermal runaway function by simulating the operation of the battery pack under extreme conditions. These tests not only include the impact of single factors such as temperature rise and pressure increase, but also take into account the complex situation under the combined action of multiple factors. Only through rigorous testing can we ensure that electric vehicles can cope with various potential safety risks in actual use. Due to the high cost of real vehicle testing, poor test repeatability, long test cycle, and for the safety of testers, the thermal runaway function is not suitable for testing on real vehicles. In addition, since the rate of change of signals such as the temperature rise rate and the pressure change rate are difficult for testers to manually control accurately, it is necessary to introduce test equipment for automated testing to improve test accuracy and efficiency.

[0028] Reference Figure 1 As shown, the simulation test equipment of the battery management system of the embodiment of the present invention is suitable for testing the battery management system 30 of the electric vehicle, including a host computer system 10 and a simulation platform 20, the host computer system 10 is connected to the simulation platform 20 for communication, and the simulation platform 20 is connected to the BMS. Figure 1 The BMS shown in is the controller of the BMS to be tested. The controller of the BMS refers to the control unit of the sample to be tested, which has functional software that needs to be tested and verified.

[0029] It can be understood that the simulation platform 20 in the embodiment is a hardware-in-the-loop (HIL) simulation platform 20. By controlling the host computer system 10 to send a test signal to the simulation platform 20, the simulation platform 20 can simulate the operating environment of the battery pack, generate an operating condition simulation signal according to the test signal, send the operating condition simulation signal to the BMS, and then collect the test data fed back by the BMS, and upload the test data to the host computer system 10 for analysis.

[0030] Reference Figure 2As shown, the simulation platform 20 includes a real-time simulation machine 21 and a board module 22, the real-time simulation machine 21 includes a vehicle simulation module 211, the real-time simulation machine 21 is connected to the host computer system 10, and the vehicle simulation module 211 is connected to the board module 22. The vehicle simulation module 211 can run the simulation working model according to the test signal and generate model data, and the board module 22 can generate a working condition simulation signal according to the model data, and send the working condition simulation signal to the battery management system 30. The battery management system 30 can feedback the test data related to the thermal runaway according to the working condition simulation signal. Therefore, the simulation platform 20 is used to collect the test data generated by the battery management system 30 in response to the working condition simulation signal, and the test data is uploaded to the host computer system 10, and the host computer system 10 generates a test report according to the test data, and the test report can be used to determine whether the thermal runaway function is operating normally.

[0031] The specific working process is to generate a test signal through the host computer system 10 and send the test signal to the simulation platform 20. The simulation platform 20 runs the simulation working model according to the test signal through the vehicle simulation module 211 and generates model data. The board module 22 generates a working condition simulation signal according to the model data, and then sends the working condition simulation signal to the battery management system 30. According to the working condition simulation signal, the temperature signal and voltage signal of the battery pack can be simulated, so that the battery management system 30 can generate test data for the thermal runaway function of the battery pack according to the working condition simulation signal, and the host computer system 10 generates a test report according to the test data. The simulation test equipment can simulate the working conditions required for the thermal runaway function of the BMS, without the need to test the thermal runaway function on a real vehicle, to achieve automated testing, and effectively improve test accuracy and test efficiency.

[0032] The simulation test equipment of the embodiment of the present invention builds a hardware-in-the-loop simulation system, takes the controller of the battery management system 30 of the electric vehicle as the controller under test, simulates the working conditions required for the thermal runaway function of the BMS, such as: the temperature and pressure of the battery pack and the communication status between the BMS main board and the slave board, etc., to test whether its thermal runaway function is normal.

[0033] By using the hardware-in-the-loop simulation platform 20 for simulation testing, design errors in the thermal runaway function can be discovered earlier in the development process, reducing the cost of error repair; and the board module 22 is used to simulate the temperature, pressure and other operating condition simulation signals of the battery pack, without the need to test on the actual vehicle, thus solving the problem of low safety in actual vehicle testing and the problem of difficulty in manufacturing actual vehicle testing conditions and poor repeatability.

[0034] In addition, the actual vehicle test also has problems such as high test cost, poor test repeatability, and long test cycle, and it is difficult for testers to accurately control the change rate of signals such as the temperature rise rate and the pressure change rate. Based on this, the embodiment of the present invention can simulate the working conditions required for the thermal runaway function of the BMS through the cooperation of the host computer system 10 and the simulation platform 20, thereby completing the test, and also solves the problems of low test efficiency, long cycle, incomplete coverage, and easy errors, while facilitating the reproduction of faults. Since the simulation test equipment can realize automated testing, the accuracy of signal control is further improved, thereby improving test accuracy, shortening test time, and improving test efficiency. At the end of the test, a test report is automatically generated, reducing test errors.

[0035] It should be noted that in the embodiment, the host computer system 10 is connected to the HIL simulation platform 20 via Ethernet; the HIL simulation platform 20 is connected to the BMS controller under test via a controller area network (CAN) line and a hard line. Ethernet is a high-speed network communication protocol that can provide high-bandwidth and low-latency data transmission, which enables the host computer system 10 to exchange data with the HIL simulation platform 20 in real time and efficiently, ensuring the accuracy and real-time performance of the test. The CAN bus has real-time performance and high reliability. Through the CAN line connection, the HIL simulation platform 20 can transmit the simulated battery and vehicle status data to the BMS controller in real time, and receive the response data of the BMS controller. This connection method ensures the real-time performance and accuracy of the test.

[0036] Reference Figure 2 As shown, the vehicle simulation module 211 includes a vehicle dynamics model 2111 , a battery pack model 2112 and a driver model 2113 . The vehicle dynamics model 2111 , the battery pack model 2112 and the driver model 2113 are all functional modules and are connected to the host computer system 10 .

[0037] Among them, the vehicle dynamics model 2111 is used to simulate the dynamic state of the vehicle under power drive according to the test signal. For example, the vehicle dynamics model receives input parameters from the upper computer system 10, such as road conditions, vehicle speed, acceleration, steering angle, etc., and performs physical calculations based on the input parameters to simulate the longitudinal, lateral and vertical movements of the vehicle, as well as the posture changes of the vehicle.

[0038] The battery pack model 2112 is used to simulate the working state of the battery pack according to the test signal; for example, the battery pack model 2112 receives battery parameters such as battery capacity, voltage, internal resistance, temperature, etc. from the host computer system 10, and calculates the battery charging and discharging state, temperature distribution, energy loss, etc. based on the input battery parameters and the current operating conditions (such as vehicle speed, acceleration, external ambient temperature, etc.), thereby simulating the temperature signal and voltage signal of the battery pack.

[0039] The driver model 2113 is used to simulate the working environment of the cockpit according to the test signal. According to the road information and target path provided by the host computer system 10, the driver model 2113 performs path planning and determines the best driving route. Based on the path planning results and the current vehicle status (such as vehicle speed, position, posture, etc.), the driver model 2113 simulates the driver's driving behavior, such as acceleration, deceleration, steering, etc., so as to more realistically simulate the driving conditions.

[0040] Reference Figure 2 As shown, the board module 22 includes a temperature simulation board 224 , a voltage simulation board 225 and a CAN signal simulation board 226 .

[0041] The temperature simulation board 224 is used to generate a battery pack temperature signal based on the model data. Specifically, the temperature simulation board 224 receives the model data from the host computer system 10, which represents the temperature distribution of the battery pack under different working conditions. The temperature simulation board 224 calculates the temperature signal to be output through an algorithm and outputs it to the BMS controller under test through the interface on the board module 22. In the embodiment, the temperature simulation board 224 is a resistor board, which can simulate the battery pack temperature and improve the temperature control accuracy of the battery pack.

[0042] The voltage simulation board 225 is used to generate voltage signals based on model data. The voltage simulation board 225 receives model data from the host computer system 10. These data represent the voltage conditions of each battery cell in the battery pack. The corresponding voltage signals are generated through internal circuits and algorithms. These voltage signals can be directly output to the BMS controller under test through the interface on the board module 22.

[0043] The CAN signal simulation board 226 is used to generate CAN signals according to the model data. The CAN signal simulation board 226 receives CAN message data from the host computer system 10. These data may include battery pack status information, fault information, etc., and are sent to the BMS controller under test through the CAN interface. The BMS controller under test receives these messages through the CAN bus and responds accordingly according to the message content. The CAN signal simulation board 226 is used to transmit pressure signals to replace the real pressure, improve test safety, and realize the test verification of thermal runaway function in a laboratory environment.

[0044] It should be noted that the temperature simulation board 224, the voltage simulation board 225 and the CAN signal simulation board 226 are connected to the vehicle simulation module 211 via the PCIe bus, and the fault injection board 227 is connected to the vehicle simulation module 211 via the DSI3 protocol. The PCIe bus can support high-speed data transmission, ensuring that the temperature simulation board 224, the voltage simulation board 225 and the CAN signal simulation board 226 can transmit the simulation data to the vehicle simulation module 211 in real time and accurately. The DSI3 protocol has a strong communication capability, which can ensure stable communication between the fault injection board 227 and the vehicle simulation module 211.

[0045] Reference Figure 2 As shown, the real-time simulator 21 also includes an IO model 212, and the IO model 212 includes a HIL system input and output model 2121 and a network signal simulation model 2122. The HIL system input and output model 2121 is used for the BMS under test to interact with its simulation object in the simulation environment, so as to achieve comprehensive testing and verification. The HIL system input and output model 2121 can provide communication interfaces, such as CAN, Ethernet, I / O boards, etc., for connecting other HIL system components, such as sensors, actuators, controllers, etc. The HIL system input and output model 2121 can synchronize the execution of the simulation model with the real-time operation of the BMS. The network signal simulation model 2122 can simulate various network environments, including different network topologies, transmission protocols, bandwidth limitations, etc., which is helpful to test the performance and stability of the BMS under test under different network conditions. The network signal simulation model 2122 can generate corresponding network signals according to preset simulation scenarios and send them to the BMS under test through the network interface. By using the IO model 212 in the real-time simulator 21, signals of various complex test scenarios can be simulated in a laboratory environment, thereby avoiding the risks and costs that may be caused when testing in an actual vehicle or system. At the same time, due to the high controllability of the simulation environment, the test conditions and parameters can be accurately controlled to improve the accuracy and reliability of the test.

[0046] Reference Figure 2 As shown, the board module 22 further includes a programmable power supply 221 , a power switching board 222 , an IO board 223 and a fault injection board 227 .

[0047] The programmable power supply 221 can change the output current, voltage, power and other parameters through a specific programming interface. Specifically, it can be through microprocessors, digital signal processors, analog circuits and other technologies, combined with advanced control algorithms and software, to achieve precise control and adjustment of multiple parameters such as output current, voltage and power. The programmable power supply 221 can accurately control the voltage, current, charge and discharge time and other parameters of the charge and discharge process, so as to perform performance testing and evaluation on the battery pack. During the test process, the programmable power supply 221 can provide various voltage, current and electric power signals to facilitate testing, performance evaluation and function detection of the BMS.

[0048] The main function of the power switching board 222 is to ensure that there is a power supply to power the board or other devices at any time, thereby improving the reliability and stability of the system. The power switching board 222 specifically includes two or more switch circuits, which are connected to different power supplies, and a control circuit to monitor the power supply status and control the on and off of the switch circuit. When the main power supply fails or the voltage is lower than the preset value, the control circuit will automatically switch to the backup power supply to ensure the continuous operation of the system.

[0049] The main function of the IO board 223 is to convert analog signals into digital signals through a built-in AD conversion chip, and to convert digital signals into analog signals through a DA conversion chip. For example, it receives instructions from the real-time simulator 21 and external data input.

[0050] The main function of the fault injection board 227 is to test the fault tolerance and reliability of the system by simulating various fault characteristics without changing the original system connection. It has multiple fault injection functions, such as line short circuit, line impedance change, load impedance change, etc. These functions enable the fault injection board 227 to simulate various complex fault scenarios, thereby evaluating the performance and stability of the BMS.

[0051] Reference Figure 3 As shown, the host computer system 10 includes a test management module 11 and an automated test module 12. The test management module 11 is used to determine the test conditions, test procedures and test parameters. For example, the test management module 11 selects appropriate test conditions according to the test objectives and the characteristics of the object under test. The conditions may include environmental conditions (such as temperature, humidity) and load conditions, etc. The test procedure may include initialization, pre-test, formal test, data recording, and work after the test. According to the test standards and requirements, set specific test parameters, such as the frequency, amplitude, phase, etc. of the test signal. These parameters will directly affect the accuracy and reliability of the test results.

[0052] The automated test module 12 is used to generate test signals according to the test conditions, test procedures and test parameters. For example, the automated test module 12 generates test signals that meet the requirements according to the test parameters. These signals may include analog signals and digital signals, which are used to simulate various situations that the object under test may encounter in the actual working environment, and automatically execute the test steps according to the test planning process. Including but not limited to the sending, receiving, processing and analysis of signals. During the test process, the test data is automatically recorded and preliminary analysis and processing are performed.

[0053] The host computer system 10 can achieve comprehensive, accurate and efficient testing of the object under test through close cooperation between the test management module 11 and the automated test module 12, which can not only improve the quality and efficiency of the test, but also reduce the test cost.

[0054] Reference Figure 2 As shown, in some embodiments, the host computer system 10 also includes a fault injection module 13, which is used to send fault information to the simulation platform 20. The vehicle simulation module 211 and the board module 22 are configured to simulate the working conditions corresponding to the fault information and generate a fault signal, and send the fault signal to the battery management system 30 for testing.

[0055] Reference Figure 3 As shown, Figure 3 Schematic diagram of the module structure of the host computer system 10 in the simulation test equipment according to an embodiment of the present invention.

[0056] Among them, the test management module 11 is used to determine the test conditions, test processes and test parameters, and specifically includes the following functional modules: a test case library 111, a test scenario library 112, variable management 113, test project management 114 and user management 115.

[0057] The test case library 111 is used to build executable test sequences and update each test sequence library; the test scenario library 112 is used to build various test scenarios required for thermal runaway function testing; the variable management 113 is used to store the variables required for thermal runaway function testing, which is convenient for users to find, use, delete and change; the test project management 114 is used to track and record test progress and test defects; the user management 115 is used for user authority management, and can perform data backup and emergency data recovery.

[0058] In addition, the embodiment of the present invention realizes that the test scenario can be supplemented at any time through the test management module 11, the test coverage and functional test depth are increased, and the test simulation degree is higher, thereby improving the test accuracy and test efficiency.

[0059] The automated test module 12 is used to generate a test sequence and update the test conditions, test process and test parameters according to the configuration information, and specifically includes the following functions: action library construction 121, sequence construction 122, parameter mapping 123, test sequence execution 124 and report generation 125. The introduced automated test module 12 can further improve the accuracy of signal control, thereby improving test accuracy, shortening test time, and improving test efficiency. After the test, a test report is automatically generated, reducing test errors.

[0060] The action library is the basis of automated testing, which contains all possible test actions or instructions, such as click, input, read data, send signal, etc. By building a comprehensive and easy-to-manage action library, you can easily reuse these actions, reduce duplication of work, and improve test efficiency.

[0061] The function of sequence building 122 is to combine the actions in the action library in a specific logical order to form a series of complete test steps. By defining the test sequence, you can simulate various scenarios that users may encounter in actual use, thereby testing the functions and performance of the product.

[0062] Parameter mapping 123 is the process of associating variables or parameters in a test sequence with data or configuration in the actual test environment. Through parameter mapping 123, it can be ensured that the test sequence can be correctly executed in different test environments (such as development environment, test environment, and production environment). Parameter mapping 123 can be implemented through configuration files, environment variables, or parameterization functions in test management tools.

[0063] Test sequence execution 124 refers to the process of automatically executing a test sequence according to a predefined order and parameters. By executing the test sequence, test results can be automatically collected, including success, failure, exception, etc. Test sequence execution 124 is usually triggered and executed by a test management tool or a continuous integration / continuous deployment system.

[0064] Report generation 125 refers to the process of organizing test results into reports that are easy to understand and analyze. By generating test reports, testers can intuitively understand the progress, results and existing problems of the test.

[0065] It should be noted that the embodiment of the present invention requires a parameter mapping library for mapping for specific test items, runs the constructed test sequence, and generates a test report. The fault injection module 13 is used to send fault information to the passenger car HIL simulation platform 20, so as to simulate the fault signal corresponding to the fault information during the test process through the HIL simulation platform 20, and send the fault signal to the BMS controller.

[0066] Reference Figure 4As shown, an embodiment of the present invention further provides a simulation test method for a battery management system, which is applied to the simulation test device of the battery management system in the above embodiment. The simulation test method includes: Step S100, obtaining a test signal, and sending the test signal to the simulation platform 20; Step S200, running the simulation platform 20 according to the test signal and generating model data; Step S300, generating an operating condition simulation signal according to the model data, and sending the operating condition simulation signal to the battery management system 30, wherein the operating condition simulation signal includes at least a battery pack temperature signal and a voltage signal; Step S400 , collecting test data generated by the battery management system 30 in response to the operating condition simulation signal, and generating a test report according to the test data.

[0067] The specific working process is to generate a test signal through the host computer system 10 and send the test signal to the simulation platform 20. The simulation platform 20 runs the simulation working model according to the test signal through the vehicle simulation module 211 and generates model data. The board module 22 generates a working condition simulation signal according to the model data, and then sends the working condition simulation signal to the battery management system 30. According to the working condition simulation signal, the battery pack temperature signal and voltage signal can be simulated, so that the battery management system 30 can generate test data for the thermal runaway function of the battery pack according to the working condition simulation signal, and the host computer system 10 generates a test report according to the test data. The simulation test equipment can simulate the working conditions required for the thermal runaway function of the BMS, without the need to test the thermal runaway function on a real vehicle, to achieve automated testing, and effectively improve test accuracy and test efficiency.

[0068] The embodiment of the present invention uses a simulation test device to build a hardware-in-the-loop simulation system, takes the BMS of the electric vehicle as the controller under test, and simulates the working conditions required for the thermal runaway function of the BMS, such as: the temperature and pressure of the battery pack and the communication status between the BMS main board and the slave board, to test whether its thermal runaway function is normal.

[0069] By using a hardware-in-the-loop simulation system for simulation testing, design errors in the thermal runaway function can be discovered earlier in the development process, reducing the cost of error repair. Using simulation boards to simulate the temperature and pressure of the battery pack solves the problem of low safety in real vehicle testing, as well as the difficulty in manufacturing and poor repeatability of real vehicle testing conditions. It also solves the problems of low test efficiency, long cycles, incomplete coverage, and easy errors, and facilitates the reproduction of faults. It can also realize automated testing, further improve the accuracy of signal control, and thus improve test accuracy, shorten test time, improve test efficiency, and automatically generate test reports at the end of the test, reducing test errors.

[0070] Reference Figure 5As shown, in the above step S300, the operating condition simulation signal is generated according to the model data, which specifically includes but is not limited to the following steps: Step S310, controlling the temperature simulation card to generate a battery pack temperature signal according to the model data; Step S320, controlling the voltage simulation card to generate a voltage signal according to the model data; Step S330, controlling the CAN signal simulation board 226 to generate a CAN signal according to the model data.

[0071] Reference Figure 2 As shown, it can be understood that the simulation platform 20 includes a temperature simulation board 224, a voltage simulation board 225 and a CAN signal simulation board 226. The temperature simulation board 224 receives the model data from the host computer system 10, and then calculates the temperature signal to be output through the algorithm, and outputs it to the BMS controller under test through the interface of the IO board 223. The voltage simulation board 225 receives the model data from the host computer system 10, generates corresponding voltage signals through internal circuits and algorithms, and these voltage signals can be directly output to the BMS controller under test through the interface of the IO board 223. The CAN signal simulation board 226 receives CAN message data from the host computer system 10, which may include battery pack status information, fault information, etc., and is sent to the BMS controller under test through the CAN interface. The BMS controller under test receives these messages through the CAN bus and responds accordingly according to the content of the message.

[0072] It can be understood that the simulation platform 20 runs the simulation working model according to the test signal and generates model data through the vehicle simulation module 211. In step S310, the temperature simulation board 224 is used to generate a battery pack temperature signal according to the model data; in step S320, the voltage simulation board 225 is used to generate a voltage signal according to the model data; in step S330, the CAN signal simulation board 226 is used to generate a CAN signal according to the model data, so that the battery pack temperature signal, voltage signal and CAN signal can be simulated. Therefore, different operating scenarios can be simulated according to different battery pack temperature signals, voltage signals and CAN signals.

[0073] Reference Figure 2As shown, the vehicle simulation module 211 includes a vehicle dynamics model 2111, a battery pack model 2112 and a driver model 2113 connected to the host computer system 10. The vehicle dynamics model 2111 is used to simulate the dynamic state of the vehicle under power drive according to the test signal; the battery pack model 2112 is used to simulate the working state of the battery pack according to the test signal; the driver model 2113 is used to simulate the working environment of the cockpit according to the test signal. Therefore, the vehicle simulation module 211 runs the simulation working model according to the test signal and generates model data, and combined with the board module 22, different working conditions can be simulated.

[0074] Reference Figure 6 As shown, in some embodiments, the simulation test method further includes but is not limited to the following steps: Step S500, using the fault injection module 13 to send fault information to the simulation platform 20; Step S600, controlling the simulation platform 20 to simulate the working condition corresponding to the fault information and generate a fault signal; Step S700, sending the fault signal to the battery management system 30 for testing to generate test data.

[0075] Combination Figure 3 As shown, the host computer system 10 includes a test management module 11, an automated test module 12 and a fault injection module 13. The test management module 11 is used to determine the test conditions, test procedures and test parameters, and the automated test module 12 is used to generate test signals according to the test conditions, test procedures and test parameters. The fault injection module 13 is used to generate fault information and send the fault information to the simulation platform 20, simulate the working conditions corresponding to the fault information through the vehicle simulation module 211 and the board module 22 and generate a fault signal, and then send the fault signal to the battery management system 30 for testing. Moreover, in the embodiment, various complex fault scenarios can be simulated by the fault injection board 227 to ensure that the fault scenario has a higher degree of simulation. Reference Figure 7 As shown, the following is a specific example to illustrate the thermal runaway simulation test method of the electric vehicle battery management system. The specific steps include: Step S810, obtaining and analyzing test requirements according to the product requirement document; Step S820, designing logic test cases according to the content of the test requirements; Step S830, compiling automated test code and writing specific test cases through the host computer system 10; Step S840, controlling the simulation test equipment to run and using the automated test software to execute the test code; Step S850, checking the test results according to the set results, and automatically generating a test report.

[0076] It is understandable that in step S810, the functional characteristics, performance indicators, user scenarios and any special requirements or restrictions of the product can be understood based on the product requirement document, and the overall requirements can be decomposed into specific testable items to clarify the input, output, expected behavior and boundary conditions of each function. Then in step S820, the appropriate test type is selected according to the requirements characteristics, such as unit testing, integration testing, system testing, stress testing, etc. The test case is based on the result of the requirement decomposition, and logical test cases are designed for each functional point, including normal processes, abnormal processes, boundary conditions, etc. Each test case clearly specifies the expected output result or status as a benchmark for subsequent verification. Combined with the actual user usage scenario, the context environment of the test case is designed to simulate real user operations.

[0077] In step S830, based on the designed test cases, write automated test code, including test initialization, step execution, result verification, etc. The data set required for the test can be prepared by integrating test data, including normal data, abnormal data, boundary data, etc., and integrated into the test script, and specific test cases are written. In step S840, build or configure a simulation test environment to ensure that the test equipment and software version and configuration meet the test requirements, deploy the written test code to the test environment, and then trigger the test execution through the host computer system 10, and use the automated test software in the host computer system 10 to complete it. In step S850, use the test management tool to automatically generate a test report, including test overview, test result summary, defect statistics, test coverage and other information, so as to complete the automated test verification of the function of the sample under test.

[0078] Reference Figure 8 As shown, taking the straight lane change scenario as an example, this embodiment provides an automated simulation test method for the thermal runaway function of an electric vehicle battery management system, and the specific steps include: Step S910, obtaining BMS thermal runaway test case parameters stored in the test case library 111 of the test management module 11; Step S920, importing the test case parameters into the automated testing software; Step S930, using the automated testing software of the host computer system 10, generating a test signal and sending it to the simulation platform 20; Step S940, the BMS generates a battery thermal runaway fault signal and a vehicle control and reminder command based on the received operating condition simulation signal. The vehicle control includes commands such as high voltage power-off. The reminder command is sent to the instrument or central control to remind the driver. The operating condition simulation signal should include signals such as battery pack temperature, pressure, voltage, and vehicle insulation fault level. Step S950, judging whether the thermal runaway function logic of the BMS controller is normal according to the instruction sent by the BMS controller and the preset evaluation criteria, and automatically generating a test report; Step S960: Analyze the test problems according to the automated test report and upload them to the server test management system. Meanwhile, notify the person in charge of the thermal runaway function to rectify and track the problems.

[0079] The above are only preferred embodiments 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 principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

[0080] An embodiment of the present invention further provides a control device, including a memory, a processor, and a program stored in the memory and executable on the processor, wherein when the program is executed by the processor, a simulation test method for a battery management system as in the above embodiment is implemented.

[0081] It should be noted that the vehicle of the embodiment of the present invention has a processor and a memory, and the memory is used to store instructions. When the instructions are executed by the processor, the simulation test method of the battery management system of the above embodiment is executed.

[0082] Take the example that the processor and memory in the control device can be connected through a bus. The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk memory, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely arranged relative to the control processor, and these remote memories may be connected to the controller via a network.

[0083] The non-transient software program and instructions required to implement the simulation test method of the above embodiment are stored in the memory. When executed by the processor, the simulation test method in the above embodiment is executed, for example, the above described Figure 4 Steps S100 to S400 of the method, Figure 5 Steps S310 to S330 of the method, Figure 6 Steps S500 to S700 of the method, Figure 7 Method steps S810 to S850, etc.

[0084] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0085] A computer-readable storage medium is also provided in an embodiment of the present invention. The computer-readable storage medium stores a computer program. The computer program includes program instructions. A processor executes the program instructions to implement any battery management system simulation test method provided in the embodiments of the present application.

[0086] The computer-readable storage medium may be a hard disk or memory of the domain controller in the aforementioned embodiment. The computer-readable storage medium may also be an external storage device of the domain controller, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (FlashCard), etc., equipped on the domain controller.

[0087] Since the computer program stored in the computer-readable storage medium can execute any simulation test method of the battery management system 30 provided in the embodiments of the present application, the beneficial effects that can be achieved by the simulation test method of any battery management system provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

[0088] The embodiments of the present invention are described in detail above with reference to the accompanying drawings, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge of ordinary technicians in the relevant technical field without departing from the purpose of the present invention.

Claims

1. A simulation test device for a battery management system, used to test the battery management system of an electric vehicle, characterized in that: include: The host computer system is used to generate test signals; A simulation platform connected to the host computer, the simulation platform comprising a vehicle simulation module and a board module, the vehicle simulation module is used to run a simulation working model according to the test signal and generate model data, the board module is used to generate a working condition simulation signal according to the model data, and send the working condition simulation signal to the battery management system, the working condition simulation signal at least comprising a battery pack temperature signal and a voltage signal; The simulation platform collects test data generated by the battery management system in response to the operating condition simulation signal, and uploads the test data to the host computer system, and the host computer system generates a test report based on the test data.

2. The simulation test equipment for a battery management system according to claim 1, characterized in that: The vehicle simulation module includes a vehicle dynamics model, a battery pack model and a driver model connected to the host computer system. The vehicle dynamics model is used to simulate the dynamic state of the vehicle under power drive according to the test signal; the battery pack model is used to simulate the working state of the battery pack according to the test signal; and the driver model is used to simulate the working environment of the cockpit according to the test signal.

3. The simulation test equipment for a battery management system according to claim 1, characterized in that: The board module includes a temperature simulation board, a voltage simulation board and a CAN signal simulation board. The temperature simulation board is used to generate the battery pack temperature signal according to the model data, the voltage simulation board is used to generate the voltage signal according to the model data, and the CAN signal simulation board is used to generate the CAN signal according to the model data.

4. The simulation test equipment for a battery management system according to claim 3, characterized in that: The temperature simulation board, the voltage simulation board and the CAN signal simulation board are connected to the vehicle simulation module via a PCIe bus.

5. The simulation test equipment for a battery management system according to claim 1, characterized in that: The host computer system includes a test management module and an automated test module. The test management module is used to determine the test conditions, test procedures and test parameters. The automated test module is used to generate the test signal according to the test conditions, the test procedures and the test parameters.

6. The simulation test equipment for a battery management system according to claim 5, characterized in that: The host computer system also includes a fault injection module, which is used to send fault information to the simulation platform. The vehicle simulation module and the board module are configured to simulate the working conditions corresponding to the fault information and generate a fault signal, and send the fault signal to the battery management system for testing. The fault injection board is connected to the vehicle simulation module through the DSI3 protocol.

7. A simulation test method for a battery management system, applied to the simulation test device for a battery management system according to any one of claims 1 to 6, characterized in that: The simulation test method comprises: Acquire a test signal and send the test signal to a simulation platform; Running the simulation platform according to the test signal and generating model data; Generate an operating condition simulation signal according to the model data, and send the operating condition simulation signal to the battery management system, wherein the operating condition simulation signal includes at least a battery pack temperature signal and a voltage signal; The test data generated by the battery management system in response to the operating condition simulation signal is collected, and a test report is generated according to the test data.

8. The simulation test method for a battery management system according to claim 7, characterized in that: The simulation platform includes a temperature simulation board, a voltage simulation board and a CAN signal simulation board, and the generating of the working condition simulation signal according to the model data includes: Controlling the temperature simulation card to generate the battery pack temperature signal according to the model data; Controlling the voltage simulation card to generate the voltage signal according to the model data; The CAN signal simulation board is controlled to generate a CAN signal according to the model data.

9. The simulation test method of the battery management system according to claim 7, characterized in that: The simulation test device of the battery management system includes a host computer system, the host computer system includes a fault injection module, and the simulation test method further includes: Sending fault information to the simulation platform using the fault injection module; Controlling the simulation platform to simulate a working condition corresponding to the fault information and generate a fault signal; The fault signal is sent to the battery management system for testing to generate the test data.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored executable program, wherein when the executable program is run, the device where the computer-readable storage medium is located is controlled to execute the simulation test method of the battery management system according to any one of claims 7 to 9.

Citation Information

Patent Citations

  • Test system for battery management system

    CN103543640A

  • Testing device and method for battery management system, and storage medium

    CN112285462A

  • Battery management system test system

    CN213457287U

Cited By

  • Thermal management and SOX test method of BMS

    CN116068437A

  • Explosion fuse simulation test method

    CN120491511A

  • Test case generation method and system based on big language model and rule collaboration

    CN121387759A

  • CAN signal simulation system and signal sending method applied to BMS-HIL test

    CN121657653A