Simulation test device, method and readable storage medium of battery management system
By designing a simulation test device for a battery management system, and using a host computer system and simulation platform to simulate battery pack temperature and voltage signals, automated testing of the battery management system is achieved. This solves the problems of high cost and poor repeatability in testing the thermal runaway function of the battery management system, and improves the accuracy and efficiency of the test.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHINA FAW CO LTD
- Filing Date
- 2024-12-04
- Publication Date
- 2026-04-21
AI Technical Summary
Existing technologies for testing the thermal runaway function of battery management systems are costly, have poor repeatability, have long testing cycles, and are not suitable for testing in real vehicles, making it difficult to achieve precise control and safety considerations.
Design a simulation test device for a battery management system, including a host computer system and a simulation platform. The device generates test signals to simulate battery pack temperature and voltage signals, collects response data of the battery management system, generates test reports, and realizes automated testing.
It can simulate battery pack thermal runaway without real vehicle testing, improving test accuracy and efficiency, enabling early detection of design errors, reducing costs, and improving signal control precision and test efficiency.
Smart Images

Figure CN119645751B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the technical field of vehicle testing equipment, and in particular to a simulation testing device, simulation testing method, and computer-readable storage medium for a battery management system. Background Technology
[0002] As a crucial component of electric vehicles, the safety of the battery pack directly impacts the overall vehicle's operational stability and passenger safety. Thermal runaway prevention, a vital function of the Battery Management System (BMS), ensures that when abnormal temperatures or pressures occur within the battery pack, relevant safety measures, such as automatic power cut-off, are rapidly activated to prevent further damage and potential fires.
[0003] Thermal runaway testing of battery management systems (BMS) verifies the reliability and effectiveness of the thermal runaway function by simulating the operation of the battery pack under extreme conditions. However, due to the high cost, poor repeatability, long testing cycle, and high precision required for real-vehicle testing, and also for the safety of testing personnel, thermal runaway testing is not suitable for real-vehicle testing. Therefore, it is necessary to develop corresponding testing equipment to replace manual testing. Summary of the Invention
[0004] This invention aims to at least solve one of the technical problems existing in the prior art. To this end, this invention proposes a simulation test device for a battery management system, which can simulate the operating conditions required for the thermal runaway function of a BMS, realize automated testing, and effectively improve 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 apparatus for a battery management system according to a first aspect of an embodiment of the present invention includes:
[0007] The host computer system is used to generate test signals;
[0008] A simulation platform is connected to the host computer. The simulation platform includes a vehicle simulation module and a board module. The vehicle simulation module is used to run a simulation working model and generate model data according to the test signal. The board module is used to generate operating condition simulation signals according to the model data and send the operating condition simulation signals to the battery management system. The operating condition simulation signals include at least battery pack temperature signals and voltage signals.
[0009] The simulation platform collects the 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. The host computer system generates a test report based on the test data.
[0010] The simulation testing equipment for the battery management system according to embodiments of the present invention has at least the following beneficial effects:
[0011] The battery management system (BMS) simulation testing equipment generates test signals through a host computer system and sends them to the simulation platform. The simulation platform, through the vehicle simulation module, runs the simulation working model based on the test signals and generates model data. The board module generates operating condition simulation signals based on the model data and then sends these signals to the BMS. Based on these operating condition simulation signals, the battery pack temperature and voltage signals can be simulated, enabling the BMS to generate test data for the battery pack's thermal runaway function. The host computer system generates a test report based on this test data, facilitating the determination of whether the thermal runaway function is operating normally. The simulation testing equipment can simulate the operating conditions required for the BMS's thermal runaway function, eliminating the need for actual vehicle testing and achieving automated testing, effectively improving test accuracy and efficiency.
[0012] 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 based on the test signals; the battery pack model is used to simulate the working state of the battery pack based on the test signals; and the driver model is used to simulate the working environment of the cockpit based on the test signals.
[0013] 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 based on the model data, the voltage simulation board is used to generate the voltage signal based on the model data, and the CAN signal simulation board is used to generate a CAN signal based on the model data.
[0014] 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 connected to the vehicle simulation module via the DSI3 protocol.
[0015] 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 procedures and test parameters, and the automated test module is used to generate the test signal according to the test conditions, the test procedures and the test parameters.
[0016] According to some embodiments of the present invention, the host computer system further 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.
[0017] According to a second aspect of the present invention, a simulation testing method for a battery management system is applied to a simulation testing device for a battery management system as described in the first aspect embodiment. The simulation testing method includes:
[0018] Acquire the test signal and send it to the simulation platform;
[0019] The simulation platform is run based on the test signals to generate model data;
[0020] The operating condition simulation signal is generated based on the model data and sent to the battery management system. The operating condition simulation signal includes at least the battery pack temperature signal and the voltage signal.
[0021] 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 based on the test data.
[0022] The simulation testing method for the battery management system according to embodiments of the present invention has at least the following beneficial effects:
[0023] The simulation testing method is applicable to the simulation testing equipment of the battery management system in the first aspect of the above embodiments. A host computer system generates test signals and sends them to the simulation platform. Based on the test signals, the simulation working model is run and model data is generated. Operating condition simulation signals are then generated based on the model data and sent to the battery management system. These operating condition simulation signals can simulate battery pack temperature and voltage signals, enabling the battery management system to generate test data for the battery pack's thermal runaway function. The host computer system generates a test report based on this test data, facilitating the determination of whether the thermal runaway function is operating normally. Since the simulation testing equipment can simulate the operating conditions required for the thermal runaway function of the BMS, there is no need to test the thermal runaway function in a real vehicle. The simulation testing method enables automated testing, effectively improving test accuracy and efficiency.
[0024] 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. The step of generating operating condition simulation signals based on the model data includes:
[0025] The temperature simulation card is controlled to generate the battery pack temperature signal based on the model data.
[0026] The voltage simulation card is controlled to generate the voltage signal based on the model data.
[0027] The model data is used to control the CAN signal simulation board to generate CAN signals.
[0028] According to some embodiments of the present invention, the simulation test equipment 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:
[0029] The fault injection module is used to send fault information to the simulation platform;
[0030] The simulation platform is controlled to simulate the operating conditions corresponding to the fault information and generate fault signals.
[0031] The fault signal is sent to the battery management system for testing to generate the test data.
[0032] According to a third aspect of the present invention, a computer-readable storage medium includes a stored executable program, wherein, when the executable program is executed, it controls the device where the computer-readable storage medium is located to perform the simulation test method of the battery management system described in the second aspect of the present invention.
[0033] Since the computer-readable storage medium adopts all the technical solutions of the simulation test method of the above embodiments, it has at least all the beneficial effects brought about by the technical solutions of the above embodiments, which will not be repeated here.
[0034] Other features and advantages of the invention will be set forth in the description which follows, and will be apparent in part from the description, or may be learned by practicing the invention. Attached Figure Description
[0035] Figure 1 This is a structural principle block diagram of a simulation test device for a battery management system according to an embodiment of the present invention;
[0036] Figure 2 This is a structural principle block diagram of the simulation platform of a simulation testing device according to an embodiment of the present invention;
[0037] Figure 3 This is a structural principle block diagram of a host computer system according to an embodiment of the present invention;
[0038] Figure 4 This is a flowchart of a simulation test method for a battery management system according to an embodiment of the present invention;
[0039] Figure 5 This is a flowchart illustrating the specific steps of generating a working condition simulation signal based on model data in one embodiment of the present invention.
[0040] Figure 6 This is a fault testing flowchart of a simulation testing method for a battery management system in one embodiment of the present invention;
[0041] Figure 7 This is a flowchart illustrating a specific example of a simulation testing method for a battery management system according to an embodiment of the present invention.
[0042] Figure 8 This is a flowchart illustrating a specific example of a simulation test method for a battery management system according to another embodiment of the present invention.
[0043] Icon labels:
[0044] 10. Host computer system; 11. Test management module; 111. Test case library; 112. Test scenario library; 113. Variable management; 114. Test project management; 115. User management; 116. Automated testing module; 127. Action library setup; 128. Sequence setup; 129. Parameter mapping; 120. Test sequence execution; 121. Report generation; 122. Fault injection module;
[0045] 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 / 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;
[0046] Battery Management System 30. Detailed Implementation
[0047] Embodiments of the present invention are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and should not be construed as limiting the present invention.
[0048] In the description of this invention, it should be understood that the terms "upper" and "lower" indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are only for the convenience of describing this invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limiting this invention.
[0049] In the description of this invention, "multiple" means two or more; "greater than," "less than," and "exceeding" are understood to exclude the stated number; "above," "below," and "within" are understood to include the stated number. The use of "first" and "second" in the description is for the purpose of distinguishing technical features only and should not be construed as indicating or implying relative importance, or implicitly indicating the number of indicated technical features, or implicitly indicating the order of the indicated technical features.
[0050] In the description of this invention, it should be noted that terms such as "set up," "install," and "connect" should be interpreted broadly, and those skilled in the art can reasonably determine the specific meaning of the above terms in this invention in conjunction with the specific content of the technical solution.
[0051] The technical solution of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the embodiments described below are some embodiments of the present invention, not all embodiments.
[0052] Electric vehicles utilize battery packs for power. Thermal runaway testing of these packs simulates their operation under extreme conditions to verify the reliability and effectiveness of the thermal runaway function. These tests not only consider the effects of single factors such as temperature rise and pressure increase, but also the complex situations caused by the combined effects of multiple factors. Only through rigorous testing can we ensure that electric vehicles can cope with various potential safety risks in real-world use. Due to the high cost, poor repeatability, and long testing cycle of real-vehicle testing, and for the safety of testing personnel, thermal runaway testing is not suitable for real-vehicle testing. Furthermore, since the rate of change of signals such as temperature rise and pressure change is difficult to precisely control manually by testing personnel, automated testing equipment is needed to improve testing accuracy and efficiency.
[0053] Reference Figure 1 As shown, the battery management system simulation test equipment of this embodiment of the invention is suitable for testing the battery management system 30 of an electric vehicle. It includes a host computer system 10 and a simulation platform 20. The host computer system 10 is communicatively connected to the simulation platform 20, and the simulation platform 20 is connected to the BMS. Figure 1 The BMS shown is the controller of the BMS under test. The controller of the BMS refers to the control unit of the test sample that needs to be tested, which has functional software that needs to be tested and verified.
[0054] It is understood that, in this embodiment, the simulation platform 20 is a hardware-in-the-loop (HIL) simulation platform 20. By controlling the host computer system 10 to send test signals to the simulation platform 20, the simulation platform 20 can simulate the operating environment of the battery pack, generate operating condition simulation signals based on the test signals, send the operating condition simulation signals to the BMS, collect the test data fed back by the BMS, and upload the test data to the host computer system 10 for analysis.
[0055] Reference Figure 2 As shown, the simulation platform 20 includes a real-time simulator 21 and a board module 22. The real-time simulator 21 includes a vehicle simulation module 211, which is communicatively connected to the host computer system 10. The vehicle simulation module 211 is also communicatively connected to the board module 22. The vehicle simulation module 211 can run a simulation model and generate model data based on test signals. The board module 22 can generate operating condition simulation signals based on the model data and send these signals to the battery management system 30. The battery management system 30 can then provide feedback on thermal runaway-related test data based on the operating condition simulation signals. Therefore, the simulation platform 20 collects the test data generated by the battery management system 30 in response to the operating condition simulation signals and uploads the test data to the host computer system 10. The host computer system 10 generates a test report based on the test data, which can be used to determine whether the thermal runaway function is operating normally.
[0056] The specific working process is as follows: the host computer system 10 generates test signals and sends them to the simulation platform 20. The simulation platform 20, through the vehicle simulation module 211, runs the simulation working model according to the test signals and generates model data. The board module 22 generates operating condition simulation signals based on the model data, and then sends the operating condition simulation signals to the battery management system 30. Based on the operating condition simulation signals, the temperature and voltage signals of the battery pack can be simulated, enabling the battery management system 30 to generate test data for the thermal runaway function of the battery pack. The host computer system 10 generates a test report based on this test data. The simulation test equipment can simulate the working conditions required for the thermal runaway function of the BMS, eliminating the need for actual vehicle testing of the thermal runaway function, achieving automated testing, and effectively improving test accuracy and efficiency.
[0057] The simulation test equipment of this 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 motherboard and the slave board, and tests whether its thermal runaway function is normal.
[0058] By using the hardware-in-the-loop simulation platform 20 for simulation testing, design errors in the thermal runaway function can be detected earlier during the development process, reducing the cost of error repair. Furthermore, the board module 22 can be used to simulate the temperature, pressure, and other operating conditions of the battery pack, eliminating the need for testing on a real vehicle. This solves the problem of low safety in real vehicle testing, as well as the difficulties in manufacturing and repeatability of real vehicle testing conditions.
[0059] Furthermore, real-vehicle testing suffers from high costs, poor repeatability, and long cycles. Testers also struggle to precisely control the rates of change in signals such as temperature rise and pressure. Therefore, this invention utilizes a host computer system 10 and a simulation platform 20 to simulate the operating conditions required for thermal runaway in a BMS (Battery Management System), thus completing the test and resolving issues such as low efficiency, long cycles, incomplete coverage, and error susceptibility. It also facilitates fault reproduction. Because the simulation testing equipment enables automated testing, it further improves signal control accuracy, thereby enhancing test precision, shortening test time, increasing test efficiency, and automatically generating a test report upon completion, thus reducing test errors.
[0060] It should be noted that in this 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) cable and a hardwired connection. Ethernet is a high-speed network communication protocol that provides high bandwidth and low latency data transmission, enabling 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 cable connection, the HIL simulation platform 20 can transmit simulated battery and vehicle status data to the BMS controller in real time and receive response data from the BMS controller. This connection method ensures the real-time performance and accuracy of the test.
[0061] 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.
[0062] 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 host 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 motion of the vehicle, as well as the attitude change of the vehicle.
[0063] The battery pack model 2112 is used to simulate the working state of the battery pack based on test signals. For example, the battery pack model 2112 receives battery parameters from the host computer system 10, such as battery capacity, voltage, internal resistance, temperature, etc. Based on the input battery parameters and the current operating conditions (such as vehicle speed, acceleration, external ambient temperature, etc.), it calculates the charging and discharging state of the battery, temperature distribution, energy loss, etc., thereby simulating the temperature and voltage signals of the battery pack.
[0064] The driver model 2113 is used to simulate the working environment of the cockpit based on test signals. Based on the road information and target path provided by the host computer system 10, the driver model 2113 performs path planning to determine the optimal driving route. Based on the path planning results and the current vehicle status (such as vehicle speed, position, attitude, etc.), the driver model 2113 simulates the driver's driving behavior, such as acceleration, deceleration, and steering, thereby simulating the driving conditions more realistically.
[0065] 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.
[0066] The temperature simulation board 224 is used to generate a battery pack temperature signal based on model data. Specifically, the temperature simulation board 224 receives model data from the host computer system 10, which represents the temperature distribution of the battery pack under different operating conditions. The temperature simulation board 224 calculates the required temperature signal through an algorithm and outputs it to the BMS controller under test through the interface on the board module 22. In this embodiment, the temperature simulation board 224 is a resistor board, which can simulate the battery pack temperature and improve the accuracy of battery pack temperature control.
[0067] 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, which represents the voltage status of each battery cell in the battery pack. The board generates corresponding voltage signals 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.
[0068] The CAN signal simulation board 226 is used to generate CAN signals based on model data. The CAN signal simulation board 226 receives CAN message data from the host computer system 10. This data may include battery pack status information, fault information, etc., and is sent to the BMS controller under test via the CAN interface. The BMS controller under test receives these messages via the CAN bus and responds accordingly based on the message content. Using the CAN signal simulation board 226 to transmit pressure signals, replacing actual pressure, improves test safety and enables the testing and verification of thermal runaway functionality in a laboratory environment.
[0069] It should be noted that the temperature simulation board 224, voltage simulation board 225, and CAN signal simulation board 226 are connected to the vehicle simulation module 211 via the PCIe bus, while the fault injection board 227 communicates with the vehicle simulation module 211 via the DSI3 protocol. The PCIe bus supports high-speed data transmission, ensuring that the temperature simulation board 224, voltage simulation board 225, and CAN signal simulation board 226 can transmit simulation data to the vehicle simulation module 211 in real time and accurately. The DSI3 protocol has powerful communication capabilities, ensuring stable communication between the fault injection board 227 and the vehicle simulation module 211.
[0070] Reference Figure 2 As shown, the real-time simulator 21 also includes an I / O model 212, which comprises a HIL system input / output model 2121 and a network signal simulation model 2122. The HIL system input / output model 2121 is used by the BMS under test to interact with its simulated object in the simulation environment, thereby achieving comprehensive testing and verification. The HIL system input / output model 2121 can provide communication interfaces, such as CAN, Ethernet, and I / O boards, for connecting other HIL system components, such as sensors, actuators, and controllers. The HIL system input / 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, and bandwidth limitations, which helps test the performance and stability of the BMS under test under different network conditions. This 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 I / O model 212 in the real-time simulator 21, signals from various complex test scenarios can be simulated in a laboratory environment, thereby avoiding the risks and costs that may arise when testing in actual vehicles or systems. Furthermore, due to the high controllability of the simulation environment, test conditions and parameters can be precisely controlled, improving the accuracy and reliability of the tests.
[0071] Reference Figure 2 As shown, the board module 22 also includes a programmable power supply 221, a power switching board 222, an I / O board 223, and a fault injection board 227.
[0072] The programmable power supply 221 can change parameters such as output current, voltage, and power through a specific programming interface. Specifically, it can utilize technologies such as microprocessors, digital signal processors, and analog circuits, combined with advanced control algorithms and software, to achieve precise control and adjustment of multiple parameters including output current, voltage, and power. The programmable power supply 221 can precisely control parameters such as voltage, current, and charging / discharging time during the charging and discharging process, facilitating performance testing and evaluation of the battery pack. During testing, the programmable power supply 221 can provide various voltage, current, and power signals, facilitating BMS testing, performance evaluation, and functional detection.
[0073] The primary function of the power switching board 222 is to ensure that a power source is always available to power the board or other devices, thereby improving system reliability and stability. The power switching board 222 specifically includes two or more switching circuits, each connected to a different power source, and a control circuit to monitor the power status and control the switching circuits. When the main power supply fails or the voltage drops below a preset value, the control circuit automatically switches to the backup power supply to ensure continuous system operation.
[0074] The main function of the I / O board 223 is to convert analog signals into digital signals through its built-in AD converter chip, and to convert digital signals into analog signals through its DA converter chip. For example, it receives instructions and external data inputs from the real-time emulator 21.
[0075] 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 a variety of 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.
[0076] 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 based on the characteristics of the test target and the object under test. The test conditions may include environmental conditions (such as temperature and humidity) and load conditions. The test procedure may include initialization, pre-testing, formal testing, data recording, and post-test work. Specific test parameters are set according to test standards and requirements, such as the frequency, amplitude, and phase of the test signal. These parameters directly affect the accuracy and reliability of the test results.
[0077] The automated testing module 12 is used to generate test signals based on test conditions, test procedures, and test parameters. For example, the automated testing module 12 generates compliant test signals based on test parameters. These signals can include analog and digital signals, used to simulate various situations the object under test may encounter in the actual working environment, and automatically execute test steps according to the test plan. This includes, but is not limited to, signal transmission, reception, processing, and analysis. During the test, test data is automatically recorded and preliminary analysis and processing are performed.
[0078] Through the close cooperation of the test management module 11 and the automated test module 12, the host computer system 10 can achieve comprehensive, accurate and efficient testing of the object under test, which can not only improve the quality and efficiency of testing, but also reduce testing costs.
[0079] Reference Figure 2 As shown, in some embodiments, the host computer system 10 further 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 fault signals, and send the fault signals to the battery management system 30 for testing.
[0080] Reference Figure 3 As shown, Figure 3 This is a schematic diagram of the module structure of the host computer system 10 in the simulation test equipment of this invention.
[0081] The test management module 11 is used to determine test conditions, test processes and test parameters, and specifically includes the following functional modules: test case library 111, test scenario library 112, variable management 113, test project management 114 and user management 115.
[0082] Test case library 111 is used to build executable test sequences and update each test sequence library; test scenario library 112 is used to build various test scenarios required for thermal runaway function testing; variable management 113 is used to store variables required for thermal runaway function testing, making it easy for users to find, use, delete and change them; test project management 114 is used to track and record test progress and test defects; user management 115 is used for user permission management, and can perform data backup and emergency data recovery.
[0083] Furthermore, the embodiments of the present invention enable the addition of test scenarios at any time through the test management module 11, thereby increasing test coverage and functional testing depth, and improving test simulation, thus enhancing test accuracy and efficiency.
[0084] The automated testing module 12 is used to generate test sequences and update test conditions, test procedures, and test parameters according to configuration information. Specifically, it includes the following functions: action library setup 121, sequence setup 122, parameter mapping 123, test sequence execution 124, and report generation 125. The introduced automated testing module 12 further improves the accuracy of signal control, thereby improving test accuracy, shortening test time, and increasing test efficiency. After the test, it automatically generates a test report, reducing test errors.
[0085] An action library is the foundation of automated testing, containing all possible test actions or commands, such as clicking, inputting, reading data, and sending signals. By building a comprehensive and easily managed action library, these actions can be easily reused, reducing repetitive work and improving testing efficiency.
[0086] The Sequence Building 122 function refers to combining actions from the action library in a specific logical order to form a complete series of test steps. By defining test sequences, various scenarios that users may encounter in actual use can be simulated, thereby testing the product's functionality and performance.
[0087] Parameter mapping (123) is the process of associating variables or parameters in a test sequence with data or configurations in the actual test environment. Parameter mapping (123) ensures that test sequences execute correctly in different test environments (such as development, testing, and production environments). Parameter mapping (123) can be implemented through configuration files, environment variables, or parameterization features in test management tools.
[0088] Test sequence execution 124 refers to the process of automatically executing a sequence of tests according to a predefined order and parameters. By executing the test sequence, test results, including success, failure, and exception information, can be automatically collected. Test sequence execution 124 is typically triggered and executed by test management tools or continuous integration / continuous deployment systems.
[0089] Report generation refers to the process of organizing test results into an easy-to-understand and analyze report. By generating test reports, testers can intuitively understand the progress, results, and existing problems of the test.
[0090] It should be noted that, in this embodiment of the invention, a parameter mapping library is required for mapping specific test items, running the constructed test sequence, and generating a test report. The fault injection module 13 is used to send fault information to the passenger vehicle HIL simulation platform 20, so that the HIL simulation platform 20 can simulate the fault signal corresponding to the fault information during the test and send the fault signal to the BMS controller.
[0091] Reference Figure 4As shown, this embodiment of the invention also provides a simulation testing method for a battery management system, applied to the simulation testing equipment for the battery management system described in the above embodiment. The simulation testing method includes:
[0092] Step S100: Acquire the test signal and send the test signal to the simulation platform 20;
[0093] Step S200: Run the simulation platform 20 according to the test signal and generate model data;
[0094] Step S300: Generate operating condition simulation signals based on model data and send the operating condition simulation signals to the battery management system 30. The operating condition simulation signals include at least battery pack temperature signals and voltage signals.
[0095] Step S400: Collect test data generated by the battery management system 30 in response to the operating condition simulation signal, and generate a test report based on the test data.
[0096] The specific working process is as follows: the host computer system 10 generates test signals and sends them to the simulation platform 20. The simulation platform 20, through the vehicle simulation module 211, runs the simulation working model according to the test signals and generates model data. The board module 22 generates operating condition simulation signals based on the model data, and then sends the operating condition simulation signals to the battery management system 30. Based on the operating condition simulation signals, the battery pack temperature and voltage signals can be simulated, enabling the battery management system 30 to generate test data for the battery pack thermal runaway function. The host computer system 10 generates a test report based on this test data. The simulation test equipment can simulate the working conditions required for the thermal runaway function of the BMS, eliminating the need for actual vehicle testing of the thermal runaway function, achieving automated testing, and effectively improving test accuracy and efficiency.
[0097] This invention utilizes simulation testing equipment to build a hardware-in-the-loop simulation system, using the BMS of an electric vehicle as the controller under test, to simulate 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 slave board, and to test whether its thermal runaway function is normal.
[0098] By using a hardware-in-the-loop simulation system for simulation testing, design errors in thermal runaway functions can be detected earlier during development, reducing the cost of error repair. Using simulation boards to simulate battery pack temperature and pressure solves the problems of low safety in real-vehicle testing, as well as the difficulties in manufacturing and repeatability of real-vehicle test conditions. It also addresses issues such as low testing efficiency, long cycles, incomplete coverage, and susceptibility to errors, while facilitating fault reproduction. Furthermore, it enables automated testing, further improving signal control accuracy, thereby increasing testing precision, shortening testing time, and improving testing efficiency. Automatic test report generation upon completion reduces testing errors.
[0099] Reference Figure 5 As shown, in step S300 above, generating the operating condition simulation signal based on the model data specifically includes, but is not limited to, the following steps:
[0100] Step S310: Based on the model data, control the temperature simulation card to generate the battery pack temperature signal;
[0101] Step S320: Control the voltage simulation card to generate a voltage signal based on the model data;
[0102] Step S330: Control the CAN signal simulation board 226 to generate CAN signals according to the model data.
[0103] Reference Figure 2 As shown, 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 model data from the host computer system 10, calculates the required temperature signal using an algorithm, and outputs it to the BMS controller under test via the interface of the IO board 223. The voltage simulation board 225 receives model data from the host computer system 10, generates corresponding voltage signals using internal circuitry and algorithms, and outputs these voltage signals directly to the BMS controller under test via the interface of the IO board 223. The CAN signal simulation board 226 receives CAN message data from the host computer system 10. This data may include battery pack status information, fault information, etc., and is sent to the BMS controller under test via the CAN interface. The BMS controller under test receives these messages via the CAN bus and responds accordingly based on the message content.
[0104] It is understandable that the simulation platform 20 runs the simulation working model and generates model data based on the test signals through the vehicle simulation module 211. In step S310, the temperature simulation board 224 generates the battery pack temperature signal based on the model data; in step S320, the voltage simulation board 225 generates the voltage signal based on the model data; in step S330, the CAN signal simulation board 226 generates the CAN signal based on the model data. Thus, the battery pack temperature signal, voltage signal and CAN signal can be simulated. Therefore, different working conditions can be simulated based on different battery pack temperature signals, voltage signals and CAN signals.
[0105] 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 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 based on test signals; the battery pack model 2112 is used to simulate the working state of the battery pack based on test signals; and the driver model 2113 is used to simulate the working environment of the cockpit based on test signals. Therefore, by running the simulation working model and generating model data based on test signals through the vehicle simulation module 211, and combining it with the board module 22, different working conditions can be simulated.
[0106] Reference Figure 6 As shown, in some embodiments, the simulation testing method further includes, but is not limited to, the following steps:
[0107] Step S500: Use the fault injection module 13 to send fault information to the simulation platform 20;
[0108] Step S600: Control the simulation platform 20 to simulate the working conditions corresponding to the fault information and generate fault signals;
[0109] In step S700, the fault signal is sent to the battery management system 30 for testing to generate test data.
[0110] 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. The automated test module 12 is used to generate test signals based on 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. The vehicle simulation module 211 and the board module 22 simulate the operating conditions corresponding to the fault information and generate fault signals. Then, the fault signals are sent to the battery management system 30 for testing. Moreover, in this embodiment, the fault injection board 227 can simulate various complex fault scenarios, ensuring a higher degree of simulation in the fault scenarios.
[0111] Reference Figure 7 As shown below, a specific example illustrates the simulation test method for thermal runaway of an electric vehicle battery management system. The specific steps include:
[0112] Step S810: Obtain and analyze test requirements based on the product requirements document;
[0113] Step S820: Design logical test cases based on the content of the test requirements;
[0114] Step S830: Develop automated test code and write specific test cases through the host computer system 10;
[0115] Step S840: Control the simulation test equipment to run and use automated test software to execute test code;
[0116] Step S850: Check the test results according to the set results and automatically generate a test report.
[0117] Understandably, in step S810, based on the product requirements document, the product's functional characteristics, performance indicators, user scenarios, and any special requirements or constraints can be understood. The overall requirements can be decomposed into specific testable items, clearly defining the inputs, outputs, expected behaviors, and boundary conditions for each function. Then, in step S820, an appropriate test type is selected based on the requirements characteristics, such as unit testing, integration testing, system testing, or stress testing. Test cases are designed based on the results of the requirements decomposition, with logical test cases designed for each functional point, including normal processes, abnormal processes, and boundary conditions. Each test case clearly defines the expected output result or state, serving as a benchmark for subsequent verification. The context of the test cases is designed in conjunction with actual user scenarios to simulate real user operations.
[0118] In step S830, based on the designed test cases, automated test code is written, including test initialization, step execution, and result verification. The dataset required for testing can be prepared by integrating test data, including normal data, abnormal data, and boundary data, and integrated into the test script, with specific test cases written. In step S840, a simulation test environment is built or configured, ensuring that the test equipment and software version and configuration meet the test requirements. The written test code is deployed to the test environment, and then test execution is triggered through the host computer system 10, where automated test software is used to complete the test. In step S850, a test management tool is used to automatically generate a test report, including a test overview, test result summary, defect statistics, test coverage, and other information, thereby completing the automated test verification of the tested component's functionality.
[0119] Reference Figure 8As shown, taking a straight-line lane-changing scenario as an example, this embodiment provides an automated simulation test method for the thermal runaway function of an electric vehicle battery management system. The specific steps include:
[0120] Step S910: Obtain the BMS thermal runaway test case parameters stored in the test case library 111 of the test management module 11;
[0121] Step S920: Import the test case parameters into the automated testing software;
[0122] Step S930: Using the automated testing software of the host computer system 10, a test signal is generated and sent to the simulation platform 20;
[0123] In step S940, the BMS generates a battery thermal runaway fault signal and vehicle control and warning instructions based on the received operating condition simulation signal. Vehicle control includes instructions such as high voltage power-off. The warning instructions are sent to the instrument panel 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.
[0124] Step S950: Based on the instructions sent by the BMS controller and in conjunction with the preset evaluation criteria, determine whether the thermal runaway function logic of the BMS controller is normal, and automatically generate a test report.
[0125] Step S960: Analyze the test problems based on the automated test report, upload them to the server test management system, and notify the person in charge of the thermal runaway function to rectify and follow up on the problems.
[0126] The above are merely preferred embodiments of the present invention. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.
[0127] This invention also provides a control device, including a memory, a processor, and a program stored in the memory and executable on the processor. When the program is executed by the processor, it implements the simulation test method of the battery management system as described in the above embodiments.
[0128] It should be noted that the vehicle in this embodiment of the invention has a processor and a memory. The memory is used to store instructions. When the processor executes the instructions, the simulation test method of the battery management system in the above embodiment is performed.
[0129] Taking the example of a processor and memory in a control device being connected via a bus, memory, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs and non-transitory computer-executable programs. Furthermore, memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, memory may optionally include memory remotely located relative to the control processor, and these remote memories can be connected to the controller via a network.
[0130] The non-transient software program and instructions required to implement the simulation testing method of the above embodiments are stored in memory. When executed by a processor, the simulation testing method in the above embodiments is executed, for example, the method described above is executed. Figure 4 Method steps S100 to S400 Figure 5 Method steps S310 to S330, Figure 6 Method steps S500 to S700 Figure 7 The method steps S810 to S850, etc.
[0131] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.
[0132] The embodiments of the present invention also provide a computer-readable storage medium storing a computer program, the computer program including program instructions, and a processor executing the program instructions to implement any of the battery management system simulation test methods provided in the embodiments of this application.
[0133] The computer-readable storage medium can be the hard disk or memory of the domain controller in the aforementioned embodiments. Alternatively, it can be an external storage device of the domain controller, such as a plug-in hard disk, Smart Media Card (SMC), Secure Digital (SD) card, or FlashCard.
[0134] Since the computer program stored in the computer-readable storage medium can execute any of the simulation test methods of the battery management system 30 provided in the embodiments of this application, the beneficial effects that the simulation test methods of any of the battery management systems provided in the embodiments of this application can achieve can be realized. For details, please refer to the previous embodiments, which will not be repeated here.
[0135] The embodiments of the present invention have been described in detail above with reference to the accompanying drawings. However, the present invention is not limited to the above embodiments. Within the knowledge possessed by those skilled in the art, various changes can be made without departing from the spirit of the present invention.
Claims
1. A simulation test device for a battery management system, used for testing 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 is connected to the host computer. The simulation platform includes a vehicle simulation module and a board module. The vehicle simulation module is used to run a simulation working model and generate model data according to the test signal. The board module is used to generate operating condition simulation signals according to the model data and send the operating condition simulation signals to the battery management system. The operating condition simulation signals include at least battery pack temperature signals and voltage signals. 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. The host computer system generates a test report based on the test data. 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 based on the test signals. The battery pack model is used to simulate the working state of the battery pack based on the test signals; the driver model is used to simulate the working environment of the cockpit based on the test signals. 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 based on the model data, the voltage simulation board is used to generate the voltage signal based on the model data, and the CAN signal simulation board is used to generate the CAN signal based on the model data.
2. The simulation test equipment for the battery management system according to claim 1, 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.
3. The simulation test equipment for the 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 based on the test conditions, the test procedures and the test parameters.
4. The simulation test equipment for the battery management system according to claim 3, 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 fault signals, and send the fault signals to the battery management system for testing. The fault injection module communicates with the vehicle simulation module via the DSI3 protocol.
5. A simulation testing method for a battery management system, applied to the simulation testing equipment for the battery management system according to any one of claims 1 to 4, characterized in that, The simulation testing method includes: Acquire the test signal and send it to the simulation platform; The simulation platform is run based on the test signals to generate model data; The operating condition simulation signal is generated based on the model data and sent to the battery management system. The operating condition simulation signal includes at least the battery pack temperature signal and the 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 based on the test data.
6. The simulation test method for the battery management system according to claim 5, characterized in that, The simulation platform includes a temperature simulation board, a voltage simulation board, and a CAN signal simulation board. The generation of operating condition simulation signals based on the model data includes: The temperature simulation board is controlled to generate the battery pack temperature signal based on the model data. The voltage simulation board is controlled to generate the voltage signal based on the model data. The model data is used to control the CAN signal simulation board to generate CAN signals.
7. The simulation test method for the battery management system according to claim 5, characterized in that, The simulation test equipment for the battery management system includes a host computer system, which includes a fault injection module. The simulation test method further includes: The fault injection module is used to send fault information to the simulation platform; The simulation platform is controlled to simulate the operating conditions corresponding to the fault information and generate fault signals. The fault signal is sent to the battery management system for testing to generate the test data.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored executable program, wherein, when the executable program is executed, it controls the device on which the computer-readable storage medium is located to perform a simulation test method for the battery management system of any one of claims 5 to 7.
Citation Information
Patent Citations
Test system for battery management system
CN103543640A
Battery management system test system
CN213457287U