Vehicle battery function test method and system, electronic equipment and program product
By simulating signals using simulation software and hardware test bench resources, efficient and flexible testing of battery heating and cooling functions is achieved, solving the problems of high cost and poor repeatability of traditional real-vehicle testing and improving testing efficiency and flexibility.
Patent Information
- Application Number
- CN202510827707.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-19
- Publication Date
- 2025-09-26
AI Technical Summary
Traditional battery on-the-go heating and cooling function testing methods rely on actual vehicle testing, which is costly and has poor repeatability. It is difficult to create and repeat extreme temperature conditions within the same season, limiting the flexibility and comprehensiveness of the test.
The operating condition is simulated through simulation software, and the operating condition simulation data is generated. The battery management system and the vehicle controller are triggered to generate test request and permission signals to perform vehicle battery function tests. The hardware test bench resources are used to simulate signals to achieve efficient and flexible testing of battery heating and cooling functions.
It reduces testing costs, improves testing efficiency and flexibility, enables rapid repetition in a virtual environment, overcomes the limitations of environmental conditions in actual vehicle testing, and enables efficient and flexible battery heating and cooling function testing.
Smart Images

Figure CN120703606A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of automated testing technology, and in particular to a vehicle battery function testing method, system, electronic equipment, and program product. Background Art
[0002] The increasing popularity and development of electric vehicles (EVs) has placed higher demands on battery packs and their management systems, particularly regarding performance and safety in extreme temperature conditions. Battery pack temperature directly impacts charging efficiency and battery life, making effective battery heating and cooling essential. In the real world of EVs, ensuring the effectiveness of on-the-go heating and cooling is crucial for enhancing the user experience and ensuring battery safety.
[0003] Traditional battery in-transit heating and cooling function testing methods rely on real-vehicle testing, which has multiple limitations. First, real-vehicle testing is expensive because it requires a real vehicle environment, including complex operating conditions such as specific temperature, humidity, and vehicle status. This not only increases testing costs but also extends the testing cycle. Second, real-vehicle testing has poor repeatability. Due to the influence of natural ambient temperature fluctuations, it is difficult to create and repeat extreme temperature conditions within the same season, which limits the comprehensiveness and flexibility of the test. Therefore, how to achieve efficient and flexible testing of vehicle in-transit heating and cooling functions is one of the important technical issues in the relevant technical field.
[0004] To address the above-mentioned problems, no effective solutions have been proposed so far. Summary of the Invention
[0005] Embodiments of the present invention provide a vehicle battery function testing method, system, electronic device, and program product to at least solve the technical problem of how to efficiently and flexibly test the vehicle's on-the-go heating and cooling functions.
[0006] According to one aspect of an embodiment of the present invention, a vehicle battery function testing method is provided, comprising: determining a test case according to a vehicle test requirement, wherein the vehicle test requirement is determined based on a test object, and the test object includes one of the following: a battery heating function during vehicle driving, and a battery cooling function during vehicle driving; according to the test case, controlling simulation software to perform operating condition simulation to obtain operating condition simulation data, wherein the operating condition simulation data is used to characterize the operating conditions required for vehicle battery function testing; according to the operating condition simulation data, triggering a battery management system to generate a test request signal; according to the operating condition simulation data and the test request signal, triggering a vehicle controller to generate a test permission signal; performing a vehicle battery function test on the test request signal and the test permission signal to obtain a test result, wherein the test result is used to reflect the effectiveness of the vehicle battery function.
[0007] Optionally, based on the operating condition simulation data, the battery management system is triggered to generate a test request signal, including: using hardware test bench resources to perform signal simulation processing on the operating condition simulation data to obtain a test simulation signal; based on the test simulation signal, the battery management system is triggered to generate a test request signal.
[0008] Optionally, based on the operating condition simulation data and the test request signal, the vehicle controller is triggered to generate a test permission signal, including: using hardware test bench resources to perform signal simulation processing on the operating condition simulation data to obtain a test simulation signal; based on the test simulation signal and the test request signal, the vehicle controller is triggered to generate a test permission signal.
[0009] Optionally, performing a vehicle battery function test on the test request signal and the test permission signal to obtain a test result includes: performing a vehicle battery function test on the test request signal and the test permission signal based on preset evaluation criteria to obtain a test result.
[0010] Optionally, a vehicle battery function test is performed on the test request signal and the test permission signal based on preset evaluation criteria to obtain a test result, including: in response to the test request signal and the test permission signal being consistent with the expected results preset in the preset evaluation criteria, determining that the test result is a test pass; in response to at least one of the test request signal and the test permission signal being inconsistent with the expected results preset in the preset evaluation criteria, determining that the test result is a test abnormality.
[0011] Optionally, the vehicle battery function testing method further includes: in response to the test result being a test abnormality, obtaining test abnormality information; determining the cause of the test abnormality based on the test abnormality information; and triggering the abnormality handling process based on the cause of the test abnormality and a preset abnormality handling mechanism.
[0012] Optionally, the test case includes a first test case, and the test case is determined according to the vehicle testing requirements, including: in response to the current test object being the battery heating function during vehicle driving, a first test scenario is determined according to the vehicle testing requirements, wherein the first test scenario includes at least one of the following: an instant battery heating scenario in a low temperature environment, a battery heating scenario in a low temperature environment based on fault injection; and a first test case is determined according to the first test scenario.
[0013] Optionally, the test case includes a second test case, and the test case is determined according to the vehicle testing requirements, including: in response to the current test object being the battery cooling function during vehicle driving, a second test scenario is determined according to the vehicle testing requirements, wherein the second test scenario includes at least one of the following: an instant battery cooling scenario in a high temperature environment, a battery heating scenario in a high temperature environment based on fault injection; and a second test case is determined according to the second test scenario.
[0014] According to another aspect of an embodiment of the present invention, a vehicle battery function testing system is also provided, including: a determination module, used to determine a test case according to a vehicle test requirement, wherein the vehicle test requirement is determined based on a test object, and the test object includes one of the following: a battery heating function during vehicle driving, a battery cooling function during vehicle driving; a simulation module, used to control the simulation software to perform operating condition simulation according to the test case, and obtain operating condition simulation data, wherein the operating condition simulation data is used to characterize the operating conditions required for the vehicle battery function test; a first generation module, used to trigger the battery management system to generate a test request signal according to the operating condition simulation data; a second generation module, used to trigger the vehicle controller to generate a test permission signal according to the operating condition simulation data and the test request signal; a test module, used to perform a vehicle battery function test on the test request signal and the test permission signal to obtain a test result, wherein the test result is used to reflect the effectiveness of the vehicle battery function.
[0015] According to another aspect of an embodiment of the present invention, an electronic device is provided, including: a memory storing an executable program; and a processor for running the executable program, wherein the executable program executes any of the above-mentioned vehicle battery function testing methods when running.
[0016] According to another aspect of an embodiment of the present invention, a computer program product is provided, including a computer program. When the computer program is executed by a processor, the computer program implements any of the above vehicle battery function testing methods.
[0017] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is also provided, which 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 any of the above-mentioned vehicle battery function testing methods.
[0018] In an embodiment of the present invention, a test case is determined according to a vehicle test requirement, wherein the vehicle test requirement is determined based on a test object, and the test object includes one of the following: a battery heating function during vehicle driving, and a battery cooling function during vehicle driving; according to the test case, the simulation software is controlled to perform operating condition simulation to obtain operating condition simulation data, wherein the operating condition simulation data is used to characterize the operating conditions required for the vehicle battery function test; according to the operating condition simulation data, the battery management system is triggered to generate a test request signal; according to the operating condition simulation data and the test request signal, the vehicle controller is triggered to generate a test permission signal; the vehicle battery function test is performed on the test request signal and the test permission signal to obtain a test result, wherein the test result is used to reflect the effectiveness of the vehicle battery function. The present invention uses simulation software to simulate operating conditions, replacing actual vehicle testing, greatly reducing testing costs. Precise control of operating condition simulation data enables testing to be performed quickly and repeatedly in a virtual environment, improving testing efficiency and shortening the time of the entire testing process. At the same time, the simulation software can simulate all operating conditions required for the vehicle's on-the-go battery heating and cooling functions, which overcomes the problem of environmental condition limitations in actual vehicle testing and allows testing to be performed at any time and any place, improving the flexibility and comprehensiveness of the test, and achieving efficient and flexible testing of the vehicle's on-the-go heating and cooling functions, thereby solving the technical problem of how to achieve efficient and flexible testing of the vehicle's on-the-go heating and cooling functions. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0020] Figure 1 is a flow chart of a vehicle battery function testing method according to one embodiment of the present invention;
[0021] Figure 2 This is a structural block diagram of an automated test device for hardware-in-the-loop simulation of vehicle in-transit heating and cooling functions according to one embodiment of the present invention;
[0022] Figure 3 This is a structural block diagram of the host computer of an automated testing device for vehicle heating and cooling functions in transit according to one embodiment of the present invention;
[0023] Figure 4 2. It is a schematic diagram of the structure of a hardware-in-the-loop simulation platform for vehicle on-the-go heating and cooling functions, a battery management system controller, and a vehicle controller according to one embodiment of the present invention;
[0024] Figure 5is a flow chart of a method for automated simulation testing of vehicle battery on-the-go heating and cooling functions according to one embodiment of the present invention;
[0025] Figure 6 is a flow chart of a method for simulating and testing the heating and cooling functions of a vehicle battery in transit according to one embodiment of the present invention;
[0026] Figure 7 FIG. 4 is a structural block diagram of a vehicle battery function test system according to one embodiment of the present invention. DETAILED DESCRIPTION
[0027] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of the present invention.
[0028] It should be noted that the terms "first", "second", etc. in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0029] According to an embodiment of the present invention, an embodiment of a vehicle battery function testing method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system containing at least one set of computer-executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0030] The method embodiment can also be executed in an electronic device including a memory and a processor, a similar control device, or the cloud. Taking an electronic device as an example, the electronic device may include one or more processors and a memory for storing data. Optionally, the electronic device may also include a communication device and a display device for communication functions. It will be understood by those skilled in the art that the above structural description is only illustrative and does not limit the structure of the above electronic device. For example, the electronic device may also include more or fewer components than the above structural description, or have a configuration different from the above structural description.
[0031] The processor may include one or more processing units. For example, the processor may include a central processing unit (CPU), a graphics processing unit (GPU), a digital signal processing (DSP) chip, a microcontroller unit (MCU), a programmable logic device (field-programmable gate array, FPGA), a neural network processor (NPU), a tensor processing unit (TPU), an artificial intelligence (AI) type processor, and the like. Among them, different processing units may be independent components or integrated into one or more processors. In some instances, the electronic device may also include one or more processors.
[0032] The memory can be used to store computer programs, such as a computer program corresponding to the vehicle battery function test method in an embodiment of the present invention. The processor implements the above-mentioned vehicle battery function test method by running the computer program stored in the memory. The memory may include a high-speed random access memory and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory may further include a memory remotely located relative to the processor, and these remote memories may be connected to the electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0033] The communication device is used to receive or send data via a network. The specific example of the above-mentioned network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the communication device includes a network adapter (network interface controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the communication device can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly. In some embodiments of the present solution, the communication device is used to connect to mobile devices such as mobile phones and tablets, and can send instructions to electronic devices through the mobile device.
[0034] The display device may be a touchscreen-type liquid crystal display (LCD) or a touch display (also referred to as a "touch screen" or "touch display"). The LCD may enable a user to interact with a user interface of the electronic device. In some embodiments, the electronic device may include a graphical user interface (GUI), and a user may interact with the GUI by touching a touch-sensitive surface with a finger and / or performing gestures. Executable instructions for performing the aforementioned human-computer interaction functions are configured / stored in a computer program product or readable storage medium executable by one or more processors.
[0035] Figure 1 FIG. 1 is a flow chart of a vehicle battery function test method according to one embodiment of the present invention. Figure 1 As shown, the method includes the following steps:
[0036] Step S101 : determining a test case based on vehicle test requirements, wherein the vehicle test requirements are determined based on a test object, and the test object includes one of the following: a battery heating function during vehicle driving, and a battery cooling function during vehicle driving.
[0037] First, the specific requirements of vehicle testing are clarified. These requirements are directly derived from the requirements and analysis of the on-the-go heating and cooling functions of the battery management system and vehicle controller during the product design phase.
[0038] In an optional embodiment, the test object is the battery heating function or the battery cooling function during vehicle driving, depending on the goal of the test phase.
[0039] Based on vehicle testing requirements, the process of determining test cases involves selecting or designing a series of representative test scenarios, including normal and abnormal operating conditions, to comprehensively evaluate the performance of the battery management system and vehicle controller.
[0040] Step S102 : According to the test case, the simulation software is controlled to perform operating condition simulation to obtain operating condition simulation data, wherein the operating condition simulation data is used to characterize the operating conditions required for the vehicle battery function test.
[0041] After determining the test cases, professional simulation software is used to simulate the vehicle operating conditions according to the designed test cases and generate operating condition simulation data. This data will be used to simulate various environmental conditions in actual vehicle operation, such as battery temperature, vehicle speed, and ambient temperature, in order to test whether the battery management system and vehicle controller can respond correctly under these conditions.
[0042] Step S103: triggering the battery management system to generate a test request signal according to the operating condition simulation data.
[0043] When the hardware resources on the hardware-in-the-loop simulation platform receive the operating condition simulation data, they will send corresponding signals to the Battery Management System (BMS), such as signals indicating that the battery temperature is too low or too high, to trigger the BMS to generate a test request signal.
[0044] It should be noted that the BMS will determine whether it is necessary to start the battery heating or cooling function based on the received signal, and generate a corresponding request signal to ensure that the battery is in the best working condition.
[0045] Step S104: triggering the vehicle controller to generate a test permission signal according to the working condition simulation data and the test request signal.
[0046] Once the BMS generates a test request signal, it is passed to the Vehicle Control Unit (VCU). Based on the received operating condition simulation data and the BMS test request signal, the VCU determines whether to enable the heating or cooling function. It then generates a test enable signal and feeds it back to the BMS, forming a closed-loop control process. This process verifies the VCU's ability to correctly understand and respond to BMS requests.
[0047] Step S105 , performing a vehicle battery function test on the test request signal and the test permission signal to obtain a test result, wherein the test result is used to reflect the effectiveness of the vehicle battery function.
[0048] The generated test request signal and test permission signal are tested to determine whether the current vehicle battery function is valid.
[0049] In an embodiment of the present invention, a test case is determined according to a vehicle test requirement, wherein the vehicle test requirement is determined based on a test object, and the test object includes one of the following: a battery heating function during vehicle driving, and a battery cooling function during vehicle driving; according to the test case, the simulation software is controlled to perform operating condition simulation to obtain operating condition simulation data, wherein the operating condition simulation data is used to characterize the operating conditions required for the vehicle battery function test; according to the operating condition simulation data, the battery management system is triggered to generate a test request signal; according to the operating condition simulation data and the test request signal, the vehicle controller is triggered to generate a test permission signal; the vehicle battery function test is performed on the test request signal and the test permission signal to obtain a test result, wherein the test result is used to reflect the effectiveness of the vehicle battery function. The present invention uses simulation software to simulate operating conditions, replacing actual vehicle testing, greatly reducing testing costs. Precise control of operating condition simulation data enables testing to be performed quickly and repeatedly in a virtual environment, improving testing efficiency and shortening the time of the entire testing process. At the same time, the simulation software can simulate all operating conditions required for the vehicle's on-the-go battery heating and cooling functions, which overcomes the problem of environmental condition limitations in actual vehicle testing and allows testing to be performed at any time and any place, improving the flexibility and comprehensiveness of the test, and achieving efficient and flexible testing of the vehicle's on-the-go heating and cooling functions, thereby solving the technical problem of how to achieve efficient and flexible testing of the vehicle's on-the-go heating and cooling functions.
[0050] Optionally, triggering the battery management system to generate a test request signal based on the operating condition simulation data includes the following steps:
[0051] Step S1031, using hardware test bench resources to perform signal simulation processing on the working condition simulation data to obtain a test simulation signal;
[0052] Optionally, within the hardware-in-the-loop (HIL) simulation testing framework, hardware test bench resources refer to a series of hardware devices capable of simulating the actual operating conditions of a vehicle, including but not limited to power simulators, signal generators, temperature sensors, and current simulators. These resources simulate signals such as battery pack temperature, vehicle charging status, and thermal management system status based on the operating condition simulation data generated by the simulation software, generating test simulation signals.
[0053] Step S1032: triggering the battery management system to generate a test request signal according to the test simulation signal.
[0054] After the BMS receives the operating condition signal (i.e., test simulation signal) simulated by the hardware test bench resources, it will make a judgment based on the preset algorithm and decision logic and generate a corresponding test request signal.
[0055] For example, if the received test simulation signal indicates that the battery temperature is below a preset threshold, the temperature control algorithm within the BMS determines whether the conditions for activating the heating function are met. If so, the BMS generates a test request signal, which instructs the vehicle controller to activate the heating function.
[0056] Optionally, triggering the vehicle controller to generate a test permission signal based on the operating condition simulation data and the test request signal includes the following steps:
[0057] Step S1041, using hardware test bench resources to perform signal simulation processing on the working condition simulation data to obtain a test simulation signal;
[0058] The hardware test bench resources simulate signals such as battery pack temperature, vehicle charging status, and thermal management system status based on the operating condition simulation data generated by the simulation software to form test simulation signals.
[0059] Step S1042: triggering the vehicle controller to generate a test permission signal according to the test simulation signal and the test request signal.
[0060] When the VCU receives the test request signal from the BMS and the test simulation signal simulated by the hardware test bench resources, it will execute its built-in logical judgment and decision-making algorithm based on the current vehicle status and the received signals.
[0061] If the current vehicle status and operating conditions meet the requirements for activating the battery heating or cooling function, the VCU generates a test permission signal, which is a signal sent to the BMS to confirm that the corresponding function can be activated. This process verifies that the VCU can respond appropriately when receiving the request signal.
[0062] Optionally, performing a vehicle battery function test on the test request signal and the test permission signal to obtain a test result includes: performing a vehicle battery function test on the test request signal and the test permission signal based on preset evaluation criteria to obtain a test result.
[0063] The preset evaluation criteria are predefined evaluation standards used to measure the correctness of the generated test request signal and test permission signal, thereby determining whether the battery's in-transit heating and cooling functions are effective.
[0064] Optionally, performing a vehicle battery function test on the test request signal and the test permission signal based on a preset evaluation criterion to obtain a test result includes the following steps:
[0065] Step S1051, in response to the test request signal and the test permission signal being consistent with the expected result preset in the preset evaluation criteria, determining the test result as a test pass;
[0066] The test request signal and test permission signal actually generated during the test are compared with the expected results defined in the preset evaluation criteria to determine whether they are consistent.
[0067] The expected results are pre-defined based on the working condition simulation data and are used to characterize the test request signal and test permission signal that should be generated under ideal circumstances.
[0068] If the test request signal generated by the BMS and the test permission signal responded by the VCU are completely consistent with expectations, the test system will determine the test result as "test passed", which means that the battery in-transit heating or cooling function works normally as expected under the current test environment.
[0069] Step S1052 , in response to at least one of the test request signal and the test permission signal being inconsistent with an expected result preset in a preset evaluation criterion, determining that the test result is a test abnormality.
[0070] If during the test process, whether it is the test request signal sent by the BMS or the test permission signal responded by the VCU, as long as any signal does not match the expected result defined in the preset evaluation criteria, the test system will determine the test result as "test abnormality".
[0071] Optionally, the vehicle battery function testing method further includes the following steps:
[0072] Step S1061, in response to the test result being a test abnormality, obtaining test abnormality information;
[0073] When a test result is determined to be "test abnormal," relevant test abnormality information is automatically collected, including but not limited to vehicle status data at the time of the abnormality, signal interaction records between the BMS and VCU, etc. This information provides basic data for subsequent abnormality cause analysis.
[0074] Step S1062, determining the cause of the test abnormality based on the test abnormality information;
[0075] Based on the collected test anomaly information, conduct an in-depth analysis of the root cause of the anomaly. This involves reviewing software algorithms, checking hardware performance, or troubleshooting at the system integration level. For example, if the generated test request signal is abnormal, check the temperature control logic in the BMS; if the generated test enable signal does not meet expectations, focus on the temperature control logic in the VCU.
[0076] Step S1063: trigger the exception handling process according to the test exception cause and the preset exception handling mechanism.
[0077] After determining the cause of the test exception, the corresponding exception handling process is initiated according to the preset exception handling mechanism. The exception handling mechanism usually includes the repair strategy for different types of exceptions, the assignment of responsibilities, the prioritization, and the subsequent testing arrangements.
[0078] For example, if the cause of the anomaly is due to improper temperature control logic in the BMS, the software development team may need to re-optimize the algorithm logic; if the anomaly is attributed to insufficient hardware performance, the hardware design team may need to upgrade or replace related components.
[0079] The triggering of the exception handling process ensures that problems can be identified and effectively resolved in a timely manner, avoiding abnormal problems from causing greater impact in subsequent development or mass production stages.
[0080] Optionally, the test case includes a first test case. Determining the test case according to vehicle test requirements includes the following steps:
[0081] Step S1071: In response to the current test object being the battery heating function during vehicle driving, a first test scenario is determined based on vehicle testing requirements, wherein the first test scenario includes at least one of the following: an instant battery heating scenario in a low-temperature environment, and a battery heating scenario in a low-temperature environment based on fault injection;
[0082] When it is determined that the current test object is to verify the battery heating function of the vehicle during driving, a first test scenario most relevant to the battery heating function is selected according to vehicle testing requirements.
[0083] In an optional embodiment, the first test scenario includes an immediate battery heating scenario in a low-temperature environment and a battery heating scenario in a low-temperature environment based on fault injection. The immediate battery heating scenario in a low-temperature environment focuses on testing whether the function can be started correctly, while the battery heating scenario in a low-temperature environment based on fault injection is intended to verify the robustness and fault handling capabilities of the function.
[0084] The instant battery heating scenario in a low-temperature environment is used to simulate whether the battery heating function can be effectively started and the battery pack temperature can be effectively increased when the vehicle is driving in a cold environment.
[0085] The battery heating scenario in a low-temperature environment based on fault injection is used to simulate a low-temperature environment while artificially injecting certain fault signals (such as battery pack short circuit, heating element failure, etc.) to test the performance of the battery heating function under fault conditions.
[0086] Step S1072: Determine a first test case according to the first test scenario.
[0087] After determining the first test scenario, a specific first test case is designed based on the characteristics and functional requirements of that scenario. The test case should cover key parameters of the scenario, such as the ambient temperature range, initial battery temperature, fault type, and fault injection timing. By precisely setting these parameters, the test case can comprehensively verify the performance of the battery heating function in a specific scenario and the response strategy when faced with a fault.
[0088] Optionally, the test case includes a second test case. Determining the test case according to vehicle test requirements includes the following steps:
[0089] Step S1081: In response to the current test object being the battery cooling function during vehicle driving, a second test scenario is determined based on vehicle testing requirements, wherein the second test scenario includes at least one of the following: an immediate battery cooling scenario in a high temperature environment, and a battery heating scenario in a high temperature environment based on fault injection;
[0090] When the current test object is the battery cooling function during vehicle driving, a second test scenario suitable for cooling function testing is determined based on the actual needs of the vehicle driving in a high temperature environment.
[0091] In an optional embodiment, the second test scenario includes an immediate cooling scenario in a high temperature environment and a battery cooling scenario in a high temperature environment based on fault injection.
[0092] The instant battery cooling scenario in a high-temperature environment is used to simulate whether the cooling function can be effectively activated and effectively reduce the battery temperature when the vehicle is driving in a hot environment (such as a temperature above 40°C).
[0093] The battery cooling scenario in a high-temperature environment based on fault injection is used to simulate a high-temperature environment while artificially injecting specific faults (such as coolant leakage, fan failure, etc.) to evaluate the processing logic of the battery cooling function under fault conditions.
[0094] Step S1082: Determine a second test case according to the second test scenario.
[0095] Based on the second test scenario, design specific second test cases to refine the test execution parameters and conditions. The construction of the second test case should cover the key elements of the scenario, such as the high temperature environment setting, vehicle driving status, fault type, and injection timing.
[0096] In an optional embodiment, Figure 2 FIG. 1 is a block diagram of an automated test device for hardware-in-the-loop simulation of vehicle heating and cooling functions in transit according to one embodiment of the present invention. Figure 2As shown, the device includes: a host computer system 10, a real-time simulation system (i.e., a hardware-in-the-loop simulation platform) 20, a BMS controller 30, and a vehicle controller 40. By manipulating the software in the host computer system 10, the simulation model in the host computer in the hardware-in-the-loop simulation platform sends a corresponding signal to the simulation board, which then sends the signal to the BMS controller 30 and the vehicle controller 40. The in-transit heating and cooling related signals fed back by the BMS and the vehicle controller are collected and transmitted to the host computer to check the test results. The host computer system 10 is connected to the HIL simulation platform (Hardware-in-the-Loop, Hardware-in-the-Loop simulation platform) 20 via Ethernet; the HIL simulation platform 20 is connected to the BMS controller 30 under test via a CAN line and a hard line, and the HIL simulation platform 20 is connected to the vehicle controller 40 via a CAN line, a hard line, and an on-board Ethernet line.
[0097] In an optional embodiment, Figure 3 FIG. 1 is a block diagram of a host computer of an automated testing device for vehicle heating and cooling functions in transit according to one embodiment of the present invention. Figure 3 As shown, the host computer includes: a test management module 11 , an automated test module 12 and a fault injection module 13 .
[0098] The test management module 11 is used to determine the test conditions, test procedures and test parameters, including: a test case library 111, which is used to build executable test sequences and update each test sequence library; a test scenario library 112, which is used to build various test scenarios required for in-transit heating and cooling function tests; a test variable management 113, which is used to store variables required for in-transit heating and cooling function tests, so that users can easily find, use, delete and change them; a test project management 114, which is used to track and record test progress and test defects; a test user management 115, which is used for user authority management and can perform data backup and emergency data recovery; a test problem management 116, which can record defect-related data during the test process, including test problem descriptions, responsible persons for test problems, responsible departments and other related information.
[0099] The automated testing module 12 is used to generate test sequences and update test conditions, test processes, and test parameters based on configuration information. This includes: establishing an action library 121, establishing a sequence 122, parameter mapping 123, executing a test sequence 124, generating a test report 125, and uploading test questions 126. Specific test items require parameter mapping from the parameter mapping library, running the established test sequence, and generating a test report.
[0100] The fault injection module 13 is used to send fault information to the passenger car hardware-in-the-loop simulation platform to simulate the fault signal corresponding to the fault information during the test through the HIL simulation platform, and send the fault signal to the BMS controller and the vehicle controller.
[0101] In an optional embodiment, Figure 4 FIG. 1 is a schematic diagram of a hardware-in-the-loop simulation platform for vehicle on-the-go heating and cooling functions, a battery management system controller, and a vehicle controller according to one embodiment of the present invention. Figure 4 As shown, it specifically includes a hardware-in-the-loop simulation platform 20, a BMS controller 30 and a vehicle controller 40. The hardware-in-the-loop simulation platform 20 includes a real-time simulation machine 21 and hardware resources 22.
[0102] Furthermore, the real-time simulator 21 is used to run the real-time simulation model and process the real-time model data, specifically including the vehicle model 211 and the IO model 212. Furthermore, the vehicle model 211 includes a vehicle dynamics model 2111, a battery pack model 2112, a driver model 2113 and a vehicle host model 2114; the IO model 212 includes a HIL system input and output model 2121 and a network signal simulation model 2122. The hardware resources 22 mainly include a programmable power supply 221, a power switching board 222, an IO board 223, a voltage simulation board 224, a temperature simulation board 225, an Ethernet signal simulation board 226, a CAN signal simulation board 227 and a fault injection board 228. The battery management system controller 30 and the vehicle controller 40 refer to the control units of the test samples that need to be tested, which contain functional software that needs to be tested and verified.
[0103] Furthermore, the real-time simulation machine 21 is directly connected to the IO board 223, the voltage simulation board 224, the temperature simulation board 225, the Ethernet signal simulation board 226, and the CAN signal simulation board 227 through the PCIe bus; the real-time simulation machine 21 is connected to the fault injection board 228 through a hard line, using the DSI3 protocol simulation method.
[0104] It can be understood that by simulating the battery pack temperature through the temperature simulation board, the temperature control accuracy of the battery pack is improved, so that the test is not limited by the natural ambient temperature; the Ethernet signal simulation board is used to transmit the navigation and distance signals, so that the test is not restricted by the geographical location; the CAN signal simulation board is used to simulate the battery pack SOC signal, so that the test is not restricted by the actual battery SOC, saving test costs and test time; the fault injection board is used to implement fault injection to verify whether the logic of the on-the-go heating and cooling functions is correct under different fault conditions, thereby realizing the test verification of the on-the-go heating and cooling functions in a laboratory environment.
[0105] In an optional embodiment, Figure 5 FIG. 1 is a flow chart of an automated simulation test method for vehicle battery on-the-go heating and cooling functions according to one embodiment of the present invention. Figure 5 As shown, the method is specifically implemented as follows:
[0106] First, obtain and analyze the test requirements based on the product requirement document, design logical test cases based on the content to be tested, compile automated test code in the host computer, and then write specific test cases. Then, use automated test software in the host computer to execute the test cases to control the operation of the entire test equipment. Check the test results according to the set results, automatically generate a test report, upload the test problems to the test management platform, and complete the automated test verification of the functions of the sample under test.
[0107] In an optional embodiment, Figure 6 FIG. 1 is a flow chart of a method for simulating a vehicle battery on-the-go heating and cooling function test according to one embodiment of the present invention. Figure 6 As shown, the method is specifically implemented as follows:
[0108] Step S510, obtaining battery in-transit heating or cooling test case parameters stored in the test case library in the test management module;
[0109] Step S520, importing the test case parameters into the automated testing software;
[0110] Step S530: Generate test instructions using the automated test software in the host computer and send them to the simulation environment. The test instructions should include signals such as battery pack temperature, pressure, voltage, vehicle insulation fault level, host navigation status, navigation location, and battery pack remaining power.
[0111] Step S540, the battery management system BMS generates a battery in-transit heating or cooling request based on the received interaction signal;
[0112] Step S550, the vehicle controller generates a battery in-transit heating or cooling permission signal based on the received interaction signal;
[0113] Step S560: Based on the instructions sent by the BMS controller and the in-transit heating or cooling permission signal sent by the vehicle controller, combined with preset evaluation criteria, determine whether the in-transit heating or cooling function logic of the BMS controller and the vehicle controller is normal, and automatically generate a test report;
[0114] Step S570: Analyze the test problems based on the automated test report and upload them to the server test management system. At the same time, notify the person in charge of the in-transit heating or cooling function to rectify and track the problems.
[0115] In summary, the present invention provides a hardware-in-the-loop (HIL) simulation automated testing device and method for the on-the-go heating and cooling functions of electric vehicle battery packs. By building a HIL simulation system, the battery management system and vehicle controller of the electric vehicle are used as the controllers under test to simulate the operating conditions required for the BMS's on-the-go heating and cooling functions, such as the battery pack temperature, vehicle navigation distance, remaining vehicle mileage, and thermal management system operating status, to test whether its on-the-go heating or cooling functions are functioning properly. By using the HIL simulation system for simulation testing, design errors in the battery's on-the-go heating or cooling functions can be discovered earlier in the development process, reducing the cost of error repair. Using a simulation board to simulate the battery pack temperature solves the problem of being unable to create extreme operating conditions in real vehicle testing, as well as the difficulty and poor repeatability of creating real vehicle testing conditions. It also solves the problems of low test efficiency, long test cycles, incomplete coverage, and proneness to errors. At the same time, by using the simulation test equipment to create reverse operating conditions such as various faults, the robustness of the software can be guaranteed. The introduced automated testing system shortens testing time and improves testing efficiency. At the end of the test, a test report is automatically generated and test issues are uploaded to the test problem management system. In addition, the present invention enables the test scenarios to be supplemented at any time, thereby increasing the test coverage and functional test depth.
[0116] Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus the necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present invention.
[0117] In an embodiment of the present invention, a vehicle battery function test system is also provided for implementing the above-mentioned embodiments and preferred embodiments. Details already described will not be repeated here. As used below, the term "module" may refer to a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation using hardware, or a combination of software and hardware, is also possible and contemplated.
[0118] Figure 7 FIG. 7 is a structural block diagram of a vehicle battery function test system 700 according to one embodiment of the present invention. Figure 7As shown, the system includes: a determination module 701, which is used to determine test cases according to vehicle test requirements, wherein the vehicle test requirements are determined based on test objects, and the test objects include one of the following: battery heating function during vehicle driving, battery cooling function during vehicle driving; a simulation module 702, which is used to control the simulation software to perform operating condition simulation according to the test case, and obtain operating condition simulation data, wherein the operating condition simulation data is used to characterize the operating conditions required for vehicle battery function testing; a first generation module 703, which is used to trigger the battery management system to generate a test request signal according to the operating condition simulation data; a second generation module 704, which is used to trigger the vehicle controller to generate a test permission signal according to the operating condition simulation data and the test request signal; a test module 705, which is used to perform a vehicle battery function test on the test request signal and the test permission signal to obtain a test result, wherein the test result is used to reflect the effectiveness of the vehicle battery function.
[0119] Optionally, the first generating module 703 is further configured to: utilize hardware test bench resources to perform signal simulation processing on the operating condition simulation data to obtain a test simulation signal; and trigger the battery management system to generate a test request signal according to the test simulation signal.
[0120] Optionally, the second generation module 704 is further used to: utilize hardware test bench resources to perform signal simulation processing on the working condition simulation data to obtain a test simulation signal; and trigger the vehicle controller to generate a test permission signal based on the test simulation signal and the test request signal.
[0121] Optionally, the testing module 705 is further configured to perform a vehicle battery function test on the test request signal and the test permission signal based on a preset evaluation criterion to obtain a test result.
[0122] Optionally, the test module 705 is also used to: in response to the test request signal and the test permission signal being consistent with the expected results preset in the preset evaluation criteria, determine that the test result is a test pass; in response to at least one of the test request signal and the test permission signal being inconsistent with the expected results preset in the preset evaluation criteria, determine that the test result is a test abnormality.
[0123] Optionally, the test module 705 is further used to: in response to the test result being a test exception, obtain test exception information; determine the cause of the test exception based on the test exception information; and trigger the exception handling process based on the test exception cause and a preset exception handling mechanism.
[0124] Optionally, the test case includes a first test case, and the determination module 701 is further used to: in response to the current test object being the battery heating function during vehicle driving, determine a first test scenario according to vehicle testing requirements, wherein the first test scenario includes at least one of the following: an instant battery heating scenario in a low temperature environment, a battery heating scenario in a low temperature environment based on fault injection; and determine a first test case based on the first test scenario.
[0125] Optionally, the test case includes a second test case, and the determination module 701 is further used to: in response to the current test object being the battery cooling function during vehicle driving, determine a second test scenario according to vehicle testing requirements, wherein the second test scenario includes at least one of the following: an instant battery cooling scenario in a high temperature environment, a battery heating scenario in a high temperature environment based on fault injection; and determine a second test case based on the second test scenario.
[0126] An embodiment of the present invention further provides an electronic device, comprising: a memory storing an executable program; and a processor for running the executable program, wherein the executable program executes the vehicle battery function test method described in any of the above embodiments when running.
[0127] Optionally, in this embodiment, the processor in the electronic device may be configured to run an executable program to perform the following steps:
[0128] Step S101 : determining a test case based on vehicle test requirements, wherein the vehicle test requirements are determined based on a test object, and the test object includes one of the following: a battery heating function during vehicle driving, and a battery cooling function during vehicle driving.
[0129] Step S102 : According to the test case, the simulation software is controlled to perform operating condition simulation to obtain operating condition simulation data, wherein the operating condition simulation data is used to characterize the operating conditions required for the vehicle battery function test.
[0130] Step S103: triggering the battery management system to generate a test request signal according to the operating condition simulation data.
[0131] Step S104: triggering the vehicle controller to generate a test permission signal according to the working condition simulation data and the test request signal.
[0132] Step S105 , performing a vehicle battery function test on the test request signal and the test permission signal to obtain a test result, wherein the test result is used to reflect the effectiveness of the vehicle battery function.
[0133] Optionally, the processor in the above-mentioned electronic device can be configured to run an executable program to perform the following steps: using hardware test bench resources to perform signal simulation processing on the operating condition simulation data to obtain a test simulation signal; based on the test simulation signal, triggering the battery management system to generate a test request signal.
[0134] Optionally, the processor in the above-mentioned electronic device can be configured to run an executable program to perform the following steps: using hardware test bench resources to perform signal simulation processing on the operating condition simulation data to obtain a test simulation signal; based on the test simulation signal and the test request signal, triggering the vehicle controller to generate a test permission signal.
[0135] Optionally, the processor in the above electronic device can be configured to run an executable program to perform the following steps: perform a vehicle battery function test on the test request signal and the test permission signal based on preset evaluation criteria to obtain a test result.
[0136] Optionally, the processor in the above-mentioned electronic device can be configured to run an executable program to perform the following steps: in response to the test request signal and the test permission signal being consistent with the expected results preset in the preset evaluation criteria, determining that the test result is a test pass; in response to at least one of the test request signal and the test permission signal being inconsistent with the expected results preset in the preset evaluation criteria, determining that the test result is a test abnormality.
[0137] Optionally, the processor in the above-mentioned electronic device can be configured to run an executable program to perform the following steps: in response to the test result being a test exception, obtaining test exception information; determining the cause of the test exception based on the test exception information; and triggering the exception handling process based on the test exception cause and a preset exception handling mechanism.
[0138] Optionally, the test case includes a first test case, and the processor in the above-mentioned electronic device can be configured to run an executable program to perform the following steps: in response to the current test object being the battery heating function during vehicle driving, according to the vehicle testing requirements, a first test scenario is determined, wherein the first test scenario includes at least one of the following: an instant battery heating scenario in a low temperature environment, a battery heating scenario in a low temperature environment based on fault injection; based on the first test scenario, a first test case is determined.
[0139] Optionally, the test case includes a second test case, and the processor in the above-mentioned electronic device can be configured to run an executable program to perform the following steps: in response to the current test object being the battery cooling function during vehicle driving, according to the vehicle testing requirements, a second test scenario is determined, wherein the second test scenario includes at least one of the following: an instant battery cooling scenario in a high temperature environment, a battery heating scenario in a high temperature environment based on fault injection; based on the second test scenario, a second test case is determined.
[0140] An embodiment of the present invention further provides a computer program product, including a computer program, which implements the vehicle battery function testing method described in any of the above embodiments when executed by a processor.
[0141] Optionally, in this embodiment, the computer program implements the following steps when executed by a processor:
[0142] Step S101 : determining a test case based on vehicle test requirements, wherein the vehicle test requirements are determined based on a test object, and the test object includes one of the following: a battery heating function during vehicle driving, and a battery cooling function during vehicle driving.
[0143] Step S102 : According to the test case, the simulation software is controlled to perform operating condition simulation to obtain operating condition simulation data, wherein the operating condition simulation data is used to characterize the operating conditions required for the vehicle battery function test.
[0144] Step S103: triggering the battery management system to generate a test request signal according to the operating condition simulation data.
[0145] Step S104: triggering the vehicle controller to generate a test permission signal according to the working condition simulation data and the test request signal.
[0146] Step S105 , performing a vehicle battery function test on the test request signal and the test permission signal to obtain a test result, wherein the test result is used to reflect the effectiveness of the vehicle battery function.
[0147] Optionally, the above-mentioned computer program implements the following steps when executed by the processor: using hardware test bench resources to perform signal simulation processing on the operating condition simulation data to obtain a test simulation signal; based on the test simulation signal, triggering the battery management system to generate a test request signal.
[0148] Optionally, the above-mentioned computer program implements the following steps when executed by the processor: using hardware test bench resources to perform signal simulation processing on the working condition simulation data to obtain a test simulation signal; based on the test simulation signal and the test request signal, triggering the vehicle controller to generate a test permission signal.
[0149] Optionally, when the computer program is executed by the processor, the following steps are implemented: performing a vehicle battery function test on the test request signal and the test permission signal based on preset evaluation criteria to obtain a test result.
[0150] Optionally, the above-mentioned computer program implements the following steps when executed by the processor: in response to the test request signal and the test permission signal being consistent with the expected results preset in the preset evaluation criteria, determining that the test result is a test pass; in response to at least one of the test request signal and the test permission signal being inconsistent with the expected results preset in the preset evaluation criteria, determining that the test result is a test abnormality.
[0151] Optionally, the above-mentioned computer program implements the following steps when executed by the processor: in response to the test result being a test exception, obtaining test exception information; determining the cause of the test exception based on the test exception information; and triggering the exception handling process based on the test exception cause and a preset exception handling mechanism.
[0152] Optionally, the test case includes a first test case, and the above-mentioned computer program implements the following steps when executed by the processor: in response to the current test object being the battery heating function during vehicle driving, according to the vehicle testing requirements, a first test scenario is determined, wherein the first test scenario includes at least one of the following: an instant battery heating scenario in a low temperature environment, a battery heating scenario in a low temperature environment based on fault injection; according to the first test scenario, a first test case is determined.
[0153] Optionally, the test case includes a second test case, and the above-mentioned computer program implements the following steps when executed by the processor: in response to the current test object being the battery cooling function during vehicle driving, according to the vehicle testing requirements, a second test scenario is determined, wherein the second test scenario includes at least one of the following: an instant battery cooling scenario in a high temperature environment, a battery heating scenario in a high temperature environment based on fault injection; based on the second test scenario, a second test case is determined.
[0154] An embodiment of the present invention further provides a computer-readable storage medium, which includes a stored executable program, wherein when the executable program runs, the device where the computer-readable storage medium is located is controlled to execute the vehicle battery function testing method described in any of the above embodiments.
[0155] Optionally, in this embodiment, the executable program may be configured to store an executable program for executing the following steps:
[0156] Step S101 : determining a test case based on vehicle test requirements, wherein the vehicle test requirements are determined based on a test object, and the test object includes one of the following: a battery heating function during vehicle driving, and a battery cooling function during vehicle driving.
[0157] Step S102 : According to the test case, the simulation software is controlled to perform operating condition simulation to obtain operating condition simulation data, wherein the operating condition simulation data is used to characterize the operating conditions required for the vehicle battery function test.
[0158] Step S103: triggering the battery management system to generate a test request signal according to the operating condition simulation data.
[0159] Step S104: triggering the vehicle controller to generate a test permission signal according to the working condition simulation data and the test request signal.
[0160] Step S105 , performing a vehicle battery function test on the test request signal and the test permission signal to obtain a test result, wherein the test result is used to reflect the effectiveness of the vehicle battery function.
[0161] Optionally, the above-mentioned executable program can be configured to store an executable program for executing the following steps: using hardware test bench resources to perform signal simulation processing on operating condition simulation data to obtain a test simulation signal; based on the test simulation signal, triggering the battery management system to generate a test request signal.
[0162] Optionally, the above-mentioned executable program can be configured to store an executable program for executing the following steps: using hardware test bench resources to perform signal simulation processing on the working condition simulation data to obtain a test simulation signal; triggering the vehicle controller to generate a test permission signal based on the test simulation signal and the test request signal.
[0163] Optionally, the executable program may be configured to store an executable program for executing the following steps: performing a vehicle battery function test on the test request signal and the test permission signal based on preset evaluation criteria to obtain a test result.
[0164] Optionally, the above-mentioned executable program can be configured to store an executable program for performing the following steps: in response to the test request signal and the test permission signal being consistent with the expected results preset in the preset evaluation criteria, determining that the test result is a test pass; in response to at least one of the test request signal and the test permission signal being inconsistent with the expected results preset in the preset evaluation criteria, determining that the test result is a test abnormality.
[0165] Optionally, the above-mentioned executable program can be configured to store an executable program for performing the following steps: in response to the test result being a test exception, obtaining test exception information; determining the cause of the test exception based on the test exception information; and triggering the exception handling process based on the test exception cause and a preset exception handling mechanism.
[0166] Optionally, the test case includes a first test case, and the above-mentioned executable program can be configured to store an executable program for performing the following steps: in response to the current test object being the battery heating function during vehicle driving, according to the vehicle testing requirements, determining a first test scenario, wherein the first test scenario includes at least one of the following: an instant battery heating scenario in a low temperature environment, a battery heating scenario in a low temperature environment based on fault injection; and determining a first test case based on the first test scenario.
[0167] Optionally, the test case includes a second test case, and the above-mentioned executable program can be configured to store an executable program for performing the following steps: in response to the current test object being the battery cooling function during vehicle driving, according to the vehicle testing requirements, determining a second test scenario, wherein the second test scenario includes at least one of the following: an instant battery cooling scenario in a high temperature environment, a battery heating scenario in a high temperature environment based on fault injection; and determining a second test case based on the second test scenario.
[0168] Optionally, specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.
[0169] In the above embodiments of the present invention, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0170] In some embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the system embodiments described above are only exemplary. For example, the division of units can be a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0171] Units described as separate components may or may not be physically separate, and components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple units. Some or all of the units may be selected to achieve the purpose of the present embodiment according to actual needs.
[0172] In addition, the functional units in the various embodiments of the present invention may be integrated into a single processing unit, each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0173] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk, etc. Various media that can store program codes.
[0174] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as within the scope of protection of the present invention.
Claims
1. A vehicle battery function testing method, characterized in that: include: Determine test cases based on vehicle test requirements, wherein the vehicle test requirements are determined based on test objects, and the test objects include one of the following: battery heating function during vehicle driving, battery cooling function during vehicle driving; According to the test case, controlling the simulation software to perform operating condition simulation to obtain operating condition simulation data, wherein the operating condition simulation data is used to characterize the operating conditions required for the vehicle battery function test; triggering the battery management system to generate a test request signal according to the operating condition simulation data; triggering the vehicle controller to generate a test permission signal according to the working condition simulation data and the test request signal; A vehicle battery function test is performed on the test request signal and the test permission signal to obtain a test result, wherein the test result is used to reflect the effectiveness of the vehicle battery function.
2. The vehicle battery function testing method according to claim 1, characterized in that: The triggering the battery management system to generate a test request signal according to the operating condition simulation data includes: Using hardware test bench resources to perform signal simulation processing on the working condition simulation data to obtain a test simulation signal; The battery management system is triggered to generate the test request signal according to the test simulation signal.
3. The vehicle battery function testing method according to claim 1, characterized in that: The triggering the vehicle controller to generate a test permission signal according to the operating condition simulation data and the test request signal includes: Using hardware test bench resources to perform signal simulation processing on the working condition simulation data to obtain a test simulation signal; According to the test simulation signal and the test request signal, the vehicle controller is triggered to generate the test permission signal.
4. The vehicle battery function testing method according to claim 1, characterized in that: The performing a vehicle battery function test on the test request signal and the test permission signal to obtain a test result includes: A vehicle battery function test is performed on the test request signal and the test permission signal based on a preset evaluation criterion to obtain the test result.
5. The vehicle battery function testing method according to claim 4, characterized in that: The performing a vehicle battery function test on the test request signal and the test permission signal based on a preset evaluation criterion to obtain a test result includes: In response to the test request signal and the test permission signal being consistent with the expected result preset in the preset evaluation criterion, determining that the test result is a test pass; In response to at least one of the test request signal and the test permission signal being inconsistent with an expected result preset in the preset evaluation criterion, the test result is determined to be a test abnormality.
6. The vehicle battery function testing method according to claim 5, characterized in that: The vehicle battery function testing method further includes: In response to the test result being a test abnormality, obtaining test abnormality information; Determining the cause of the test abnormality based on the test abnormality information; According to the test exception cause and the preset exception handling mechanism, the exception handling process is triggered.
7. The vehicle battery function testing method according to claim 1, characterized in that: The test case includes a first test case, and determining the test case according to the vehicle test requirements includes: In response to the current test object being a battery heating function during vehicle driving, a first test scenario is determined based on vehicle testing requirements, wherein the first test scenario includes at least one of the following: an instant battery heating scenario in a low-temperature environment, and a battery heating scenario in a low-temperature environment based on fault injection; Determine the first test case based on the first test scenario.
8. The vehicle battery function testing method according to claim 1, characterized in that: The test case includes a second test case, and determining the test case according to the vehicle test requirements includes: In response to the current test object being the battery cooling function during vehicle driving, a second test scenario is determined based on vehicle testing requirements, wherein the second test scenario includes at least one of the following: an immediate battery cooling scenario in a high temperature environment, and a battery heating scenario in a high temperature environment based on fault injection; According to the second test scenario, the second test case is determined.
9. A vehicle battery function test system, characterized in that: include: a determination module, configured to determine a test case based on a vehicle test requirement, wherein the vehicle test requirement is determined based on a test object, and the test object includes one of the following: a battery heating function during vehicle driving, and a battery cooling function during vehicle driving; A simulation module, configured to control the simulation software to perform operating condition simulation according to the test case, and obtain operating condition simulation data, wherein the operating condition simulation data is used to characterize the operating conditions required for the vehicle battery function test; A first generating module, configured to trigger a battery management system to generate a test request signal according to the operating condition simulation data; A second generating module is configured to trigger a vehicle controller to generate a test permission signal according to the operating condition simulation data and the test request signal; The test module is used to perform a vehicle battery function test on the test request signal and the test permission signal to obtain a test result, wherein the test result is used to reflect the effectiveness of the vehicle battery function.
10. An electronic device, characterized in that: include: a memory storing an executable program; A processor, configured to run the executable program, wherein the executable program executes the method according to any one of claims 1 to 8 when running.
11. A computer program product, characterized in that The invention comprises a computer program which, when executed by a processor, implements the method according to any one of claims 1 to 8.
12. 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 method according to any one of claims 1 to 8.