An automated testing system and method for remote scheduled heating of electric vehicle battery packs
Through the automated test system, the test software and the HIL bench are used to simulate the peripheral controller, and the automated test of the remote reservation heating function of the electric vehicle battery pack is realized, which solves the problem of low test efficiency in the existing technology and improves the test efficiency and quality.
Patent Information
- Application Number
- CN202210713410.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-22
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2042-06-22
AI Technical Summary
The existing technology lacks automated testing methods to ensure the effectiveness of the remote reservation heating function of electric vehicle battery packs, resulting in manual operation by testers, inefficiency, and difficulty in rapid iteration.
An automated test system for remote reservation heating of electric vehicle battery packs is adopted, including test software, Internet of Vehicles platform TSP and HIL bench. The battery reservation heating interface is executed by calling a script, and instructions are issued to the vehicle controller SVDC and passed through HIL. The bench simulates the peripheral controller BCU to obtain heating status feedback to realize automated testing.
It realizes automated testing, reduces manual testing costs, improves work efficiency, can quickly complete testing, and is compatible with remote control testing of different electric vehicle projects and HIL benches.
Smart Images

Figure CN115128377B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of electric vehicles, and in particular relates to an automated testing technology for remote scheduled heating of an electric vehicle battery pack. Background Art
[0002] In winter, especially in northern regions, low temperatures will greatly reduce the range of pure electric vehicles, and even make them unable to charge. At present, both lithium iron phosphate batteries and ternary lithium batteries will be affected by the activity of positive and negative electrode materials and the reduced conductivity of the electrolyte in low temperatures. The charging time will increase accordingly, and it will be more difficult to fully charge. During use, the power battery pack will "lose power" faster.
[0003] The use of battery remote heating technology allows users to set the heating mode through a mobile phone APP before traveling to achieve battery preheating and make the battery temperature reach the optimal operating temperature. It is very effective for the comprehensive promotion of electric vehicles. However, there is currently no method to automatically test the remote scheduled heating function of the battery pack of an electric vehicle to ensure that the battery scheduled heating function of the electric vehicle meets the standards. Summary of the invention
[0004] The purpose of the present invention is to provide an automated testing system and method for remote scheduled heating of an electric vehicle battery pack, and the technical problems to be solved are:
[0005] First, to test the battery pre-heating function, testers need to log in to the app, manually set various pre-heating modes and departure times, and send requests to the vehicle network platform TSP. This is a tedious operation and not conducive to recording statistics.
[0006] Second, after TSP sends the instruction to the vehicle controller SVDC, SVDC determines that the preheating conditions are met and sends the preheating request to the battery management system BCU. After receiving the request, BCU needs to give feedback values based on the current heating conditions in a very short time. Currently, manual testing is used to give feedback values, which is difficult to control in terms of time.
[0007] Third, SVDC reports the heating status fed back by BCU to TSP, and testers need to log in to the TSP platform to manually check the feedback value, which is inefficient;
[0008] Fourth, in terms of stress testing, it takes a lot of time to meet the requirements, which does not meet the current rapid iteration testing rhythm.
[0009] In order to solve the above technical problems, the technical solution adopted by the present invention is: an automated testing system for remote scheduled heating of electric vehicle battery packs, comprising:
[0010] Test software, Internet of Vehicles platform TSP and HIL bench;
[0011] The test software calls the script to execute the battery scheduled heating interface. The Internet of Vehicles platform TSP sends the battery scheduled heating instruction to the vehicle controller SVDC under test. The vehicle controller SVDC determines the validity of the battery scheduled heating instruction, and then reports the battery scheduled heating instruction response result to the Internet of Vehicles platform TSP; the vehicle controller SVDC determines whether the scheduled heating time has been reached. If the scheduled heating time has been reached, the vehicle controller SVDC sends a preheating request to the peripheral controller BCU simulated by the HIL bench; the peripheral controller BCU sends a heating status feedback value to the vehicle controller SVDC according to the environmental value given in the test case. The vehicle controller SVDC determines the execution status of the remote scheduled heating according to the heating status feedback value, and uploads the heating status feedback value to the Internet of Vehicles platform TSP; the test software calls the script to obtain the heating status feedback value from the Internet of Vehicles platform TSP, compares it with the expected result, and generates a test report.
[0012] The present invention also provides an automated testing method for remote scheduled heating of an electric vehicle battery pack, comprising the steps of:
[0013] S01, the test software calls the script to execute the battery scheduled heating interface;
[0014] S02, the vehicle networking platform TSP sends a battery reservation heating instruction to the vehicle controller SVDC as the tested vehicle;
[0015] S03, after receiving the battery scheduled heating instruction, the vehicle controller SVDC calls the script in the test software to obtain the response information of the TaskId corresponding to the battery scheduled heating instruction on the Internet of Vehicles platform TSP, and compares it with the expected result to determine whether the battery scheduled heating instruction is valid;
[0016] S04, if the battery pre-heating instruction is valid, the vehicle controller SVDC determines whether the conditions for immediate heating are met;
[0017] S05, if the immediate heating condition is met, the vehicle controller SVDC sends a preheating request signal to the peripheral controller BCU simulated by the HIL bench. The preheating request signal on the corresponding CAN is read through the associated Mapping in the test software and compared with the expected result;
[0018] S06, if the comparison is successful, the peripheral controller BCU receives the reservation request signal sent by the vehicle controller SVDC, and sends a heating state feedback value to the vehicle controller SVDC based on the environmental variables;
[0019] S07, the vehicle controller SVDC reports the heating state feedback value to the vehicle networking platform TSP, and the test software calls the script to obtain the heating state feedback value of the vehicle networking platform TSP and compares it with the expected result;
[0020] S08, judging, based on the comparison result, that the battery is currently in a state of continuous heating or unable to be heated;
[0021] S09, if it is in continuous heating, the test software calls the script to execute the battery scheduled heating cancellation interface, the vehicle controller SVDC determines the validity of the battery scheduled heating cancellation instruction, the test software calls the script to obtain the response information of the TaskId corresponding to the battery scheduled heating cancellation instruction on the vehicle network platform TSP, and compares it with the expected result to determine whether the battery scheduled heating cancellation instruction is valid;
[0022] S10, if the battery scheduled heating cancellation command is valid, the vehicle controller SVDC ends the preheating request, the test software reads the preheating request signal on the corresponding CAN, and compares it with the expected result to complete the remote scheduled heating test.
[0023] Preferably,
[0024] In the S01, authorization information, heating mode and travel time are passed in the input parameters of the battery reservation heating interface. When obtaining the authorization information, the user login interface and vehicle information interface are executed, and the Token, CarId and vehicle control code returned by the interface are stored as global variables in the test software.
[0025] Preferably,
[0026] In S04, the vehicle controller SVDC determines whether the conditions for immediate heating are met based on the heating mode in the battery scheduled heating instruction, the travel time, and the estimated heating time fed back by the BCU.
[0027] Preferably,
[0028] In S04, if the conditions for immediate heating are not met, a waiting time is set in the test software for single scheduled heating or repeated scheduled heating mode, and the waiting end time is the travel time minus the estimated heating time. After the waiting end time is reached, the preheating request signal on the corresponding CAN is read and compared with the expected result. If the comparison is passed, S06 is executed.
[0029] Preferably,
[0030] In S09, if the battery scheduled heating cancellation instruction is invalid, a waiting time is set in the test software, and the end time is equal to the travel time. When the travel time is reached, the vehicle controller SVDC ends the preheating request, reads the preheating request signal on the corresponding CAN, and compares it with the expected result.
[0031] Preferably,
[0032] In the above-mentioned S03, if the battery scheduled heating instruction is invalid, the test ends.
[0033] By adopting the above technical scheme, the beneficial technical effect that can be achieved by the present invention is as follows: the technical means of the present invention can call the APP interface to simulate user operations, and three battery scheduled heating modes and various travel times are issued through the TSP platform. The three battery scheduled heating modes are immediate heating, single scheduled heating and repeated scheduled heating, and the heating status feedback reported to the platform is automatically obtained and compared with the expected results. After the APP interface is executed, the scheduled heating mode and travel time are issued to the TSP, and the TSP sends the instruction to the SVDC through the network. The SVDC performs execution condition judgment. When the heating condition is met, the HIL bench sends the simulated peripheral controller BCU to which the preheating request is sent. After receiving the request, the BCU sends the corresponding heating status feedback value to the SVDC according to the environmental value given in the test case. The SVDC judges the execution of the remote scheduled heating according to the feedback value, and reports the heating status feedback to the TSP to achieve closed-loop control. In the field of electric vehicle electronic control testing, it can reduce the cost of manual testing, improve work efficiency, and ensure the quality of work completion. It is compatible with remote control tests of different electric vehicle projects and different HIL benches, and is easy to change. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 Schedule heating automation test framework for batteries;
[0035] Figure 2 Schedule heating for the battery and automate the test execution flow chart;
[0036] Figure 3 This is one of the schematic diagrams of the heating state of the BCU feedback part simulated by Matlab;
[0037] Figure 4 This is the second schematic diagram of the heating state of the BCU feedback part simulated by Matlab. DETAILED DESCRIPTION
[0038] The present invention will be further described below in conjunction with the accompanying drawings.
[0039] During the test process, it is first necessary to complete the test case design of the battery remote scheduled heating function, analyze and design the test scenario or test ideas, and convert them into executable ECU-TEST test steps; use the automation tool ECU-TEST to call the Python script, simulate the APP to send the scheduled heating interface, adjust the input parameters, and realize the three appointment modes and various travel time settings; use Matlab to establish a Simulink model and integrate it into the HIL environment, simulate the sending of the heating status value fed back by the peripheral controller BCU, configure ECU-TEST to connect with the HIL bench host computer, and read the CAN signal; ECU-TEST calls the Python script to obtain the battery heating status feedback value reported to the TSP platform, and compare it with the expected results in the test case steps; the entire process is looped multiple times in ECU-TEST, and a test report is automatically generated after execution.
[0040] like Figure 1 As shown, the present invention provides an automated test system for remote scheduled heating of an electric vehicle battery pack, including: test software, a vehicle networking platform TSP and a HIL bench;
[0041] The test software calls the script to execute the battery scheduled heating interface. The Internet of Vehicles platform TSP sends the battery scheduled heating instruction to the vehicle controller SVDC under test. The vehicle controller SVDC determines the validity of the battery scheduled heating instruction, and then reports the battery scheduled heating instruction response result to the Internet of Vehicles platform TSP; the vehicle controller SVDC determines whether the scheduled heating time has been reached. If the scheduled heating time has been reached, the vehicle controller SVDC sends a preheating request to the peripheral controller BCU simulated by the HIL bench; the peripheral controller BCU sends a heating status feedback value to the vehicle controller SVDC according to the environmental value given in the test case. The vehicle controller SVDC determines the execution status of the remote scheduled heating according to the heating status feedback value, and uploads the heating status feedback value to the Internet of Vehicles platform TSP; the test software calls the script to obtain the heating status feedback value from the Internet of Vehicles platform TSP, compares it with the expected result, and generates a test report.
[0042] As one of the main methods for controller hardware verification, HIL testing is widely used in the field of electric vehicles. In this embodiment, the scenario is designed according to the ECU-TEST (test software) test case, the corresponding parameters are input, and the output of the model integrated into the HIL environment is controlled to achieve the purpose of simulating the peripheral controller to quickly feedback information to the vehicle controller according to the situation.
[0043] ECU-TEST is an automotive automated testing software. In this tool, you can design test cases according to your needs, form a test set, set the corresponding waiting time and number of cycles, and automatically execute each case in the test set. By configuring the association with the HIL bench, calling Python functions and passing in parameters, reading or writing corresponding signal values in the HIL environment, obtaining the return value of the Python function, comparing the obtained results with the expected results, and generating a test summary report.
[0044] The Python script (the script in this embodiment is written in Python) in this embodiment is mainly composed of the following functions: calling the battery scheduled heating interface, obtaining the instruction execution result in TSP, and obtaining the heating status feedback value in TSP and feeding it back to ECU-TEST.
[0045] The Internet of Vehicles Service Platform (TSP), as an intermediate platform between users and vehicle-side controllers, mainly sends user operations to the vehicle-side in the form of instructions through wireless communication, and also receives instruction execution results and actively reported information fed back by the vehicle-side. In this embodiment, the TSP platform can be accessed according to the Python script to capture the corresponding information.
[0046] The vehicle controller SVDC, as the ECU under test, is connected to the SVDC through the HIL bench to form a vehicle test environment. After receiving the command sent by the TSP through the network, the SVDC determines the validity of the command and then reports the command response result to the TSP. If the scheduled heating time is reached, a preheating request is sent to the peripheral controller BCU simulated by the HIL bench to obtain the heating status feedback from the BCU, and then the value is reported to the TSP platform.
[0047] like Figure 2 As shown, the present invention also provides an automated testing method for remote scheduled heating of an electric vehicle battery pack, the steps comprising:
[0048] S01, the test software calls the script to execute the battery appointment heating interface. In the ECU-TEST tool, the Python script is called through the built-in function to execute the battery appointment heating interface. The authorization information, heating mode and travel time are passed in the interface input parameters. There are several problems that need to be solved in this step. First, to obtain authorization information, you first need to execute the user login interface and vehicle information interface, and then store the Token, CarId and vehicle control code returned by the interface as global variables in ECU-TEST for use by other functions; second, because the test scenario needs to cover the comparison between the travel time and the current time, the travel time cannot be fixed during automated testing, and the current time can be obtained through the datetime module in Python. For example, to cover the appointment heating scenario in the test case, the travel time needs to be set to be greater than the current time. The travel time can be set to the current time + 5min.
[0049] S02, the Internet of Vehicles platform TSP sends a battery reservation heating instruction to the vehicle controller SVDC under test.
[0050] S03, after the vehicle controller SVDC receives the battery pre-heating instruction, it calls the script in the test software to obtain the response information of the TaskId corresponding to the battery pre-heating instruction on the vehicle networking platform TSP, and compares it with the expected result to determine whether the battery pre-heating instruction is valid. SVDC receives the battery pre-heating instruction, determines the validity of the instruction, calls the Python script in ECU-TEST to obtain the response information of the TaskId corresponding to the instruction on the TSP platform, and compares it with the corresponding expected result in the test case. If the instruction is invalid, the test ends. If the instruction is valid, execute S04.
[0051] S04: If the battery pre-heating instruction is valid, the vehicle controller SVDC determines whether the conditions for immediate heating are met. The SVDC determines whether the conditions for immediate heating are met based on the heating mode in the instruction, the travel time, and the estimated heating time fed back by the BCU. If the conditions for immediate heating are met, S05 is executed.
[0052] S05, if the conditions for immediate heating are met, the vehicle controller SVDC sends a preheating request signal to the peripheral controller BCU simulated by the HIL bench. The preheating request signal on the corresponding CAN is read by associating Mapping in the test software and compared with the expected result. SVDC sends a preheating request signal to the HIL bench simulation BCU controller. At this time, the preheating request signal on the corresponding CAN is read by associating Mapping in ECU-TEST and compared with the expected result of the signal in the test case. If the comparison is successful, S06 is executed.
[0053] S06, if the comparison is successful, the peripheral controller BCU receives the reservation request signal sent by the vehicle controller SVDC, and sends the heating status feedback value to the vehicle controller SVDC based on the environment variables. Execute the test case, write the integrated heating environment variables, and the HIL bench simulation controller BCU receives the preheating request signal sent by SVDC, and sends the heating status feedback signal to SVDC based on the environment variables.
[0054] S07, the vehicle controller SVDC reports the heating status feedback value to the Internet of Vehicles platform TSP, and the test software calls the script to obtain the heating status feedback value of the Internet of Vehicles platform TSP and compares it with the expected result. After receiving the feedback signal value, SVDC uses wireless communication to report the heating status to the TSP platform. At this time, in ECU-TEST, call the Python script to obtain the heating status value on the TSP platform, and return the obtained value to ECU-TEST for comparison with the expected result.
[0055] S08, judging whether the battery is currently in a state of continuous heating or unable to be heated according to the comparison result. Judging whether the battery is currently in a state of continuous heating or unable to be heated according to the feedback value.
[0056] S09, if it is in continuous heating, the test software calls the script to execute the battery scheduled heating cancellation interface, the vehicle controller SVDC determines the validity of the battery scheduled heating cancellation instruction, and the test software calls the script to obtain the response information of the TaskId corresponding to the battery scheduled heating cancellation instruction on the vehicle network platform TSP, and compares it with the expected result to determine whether the battery scheduled heating cancellation instruction is valid. ECU-TEST calls the Python script to execute the battery scheduled heating cancellation interface. To determine the validity of the instruction, call the Python script in ECU-TEST to obtain the response information of the TaskId corresponding to the instruction on the TSP platform, and compare it with the corresponding expected result in the test case.
[0057] S10, if the battery scheduled heating cancellation command is valid, the vehicle controller SVDC ends the preheating request, the test software reads the preheating request signal on the corresponding CAN, and compares it with the expected result to complete the remote scheduled heating test. After the cancellation is successful, the SVDC ends the preheating request, and the test case is executed at this time, the preheating request signal on the corresponding CAN is read, and the expected result of the signal in the test case is compared. The test ends.
[0058] Specifically, in S04, if the conditions for immediate heating are not met, for single-time scheduled heating or repeated scheduled heating mode, a waiting time is set in the test software, and the waiting end time is the travel time minus the estimated heating time. After the waiting end time is reached, the preheating request signal on the corresponding CAN is read and compared with the expected result. If the comparison is passed, S06 is executed. For single-time scheduled heating or repeated scheduled heating mode, a waiting time needs to be set in ECU-TEST, and the waiting end time is the travel time minus the estimated heating time. After the waiting end time is reached, the execution case reads the preheating request signal on the corresponding CAN and compares it with the expected result of the signal in the test case. If the comparison is passed, S06 is executed.
[0059] Specifically, in S09, if the battery scheduled heating cancellation instruction is invalid, a waiting time is set in the test software, and the end time is the travel time. When the travel time is reached, the vehicle controller SVDC ends the preheating request, reads the preheating request signal on the corresponding CAN, and compares it with the expected result. Set a waiting time in ECU-TEST, and the end time is the travel time. When the travel time is reached, the SVDC ends the preheating request. At this time, the preheating request signal on the corresponding CAN can be read by executing the test case, and compared with the expected result of the signal in the test case, and the test ends.
[0060] like Figure 3 and Figure 4 As shown in the figure, the feedback model of the battery management system built by Matlab. This model simulates the battery heating status fed back to the SVDC according to the parameter control after receiving the preheating request from the SVDC. Therefore, it only needs to change the environmental parameters in the use case, and after the TSP issues the instruction, the required status feedback can be obtained.
Claims
1. An automated test system for remote scheduled heating of electric vehicle battery packs, characterized in that: include: Test software, Internet of Vehicles platform TSP and HIL bench; The test software calls the script to execute the battery scheduled heating interface. The Internet of Vehicles platform TSP sends the battery scheduled heating instruction to the vehicle controller SVDC under test. The vehicle controller SVDC determines the validity of the battery scheduled heating instruction, and then reports the battery scheduled heating instruction response result to the Internet of Vehicles platform TSP; the vehicle controller SVDC determines whether the scheduled heating time has been reached. If the scheduled heating time has been reached, the vehicle controller SVDC sends a preheating request to the peripheral controller BCU simulated by the HIL bench; the peripheral controller BCU sends a heating status feedback value to the vehicle controller SVDC according to the environmental value given in the test case. The vehicle controller SVDC determines the execution status of the remote scheduled heating according to the heating status feedback value, and uploads the heating status feedback value to the Internet of Vehicles platform TSP; the test software calls the script to obtain the heating status feedback value from the Internet of Vehicles platform TSP, compares it with the expected result, and generates a test report.
2. An automated testing method for remote scheduled heating of an electric vehicle battery pack, characterized in that: The steps involved are: S01, the test software calls the script to execute the battery scheduled heating interface; S02, the vehicle networking platform TSP sends a battery reservation heating instruction to the vehicle controller SVDC as the tested vehicle; S03, after receiving the battery scheduled heating instruction, the vehicle controller SVDC calls the script in the test software to obtain the response information of the TaskId corresponding to the battery scheduled heating instruction on the Internet of Vehicles platform TSP, and compares it with the expected result to determine whether the battery scheduled heating instruction is valid; S04, if the battery pre-heating instruction is valid, the vehicle controller SVDC determines whether the conditions for immediate heating are met; S05, if the immediate heating condition is met, the vehicle controller SVDC sends a preheating request signal to the peripheral controller BCU simulated by the HIL bench. The preheating request signal on the corresponding CAN is read through the associated Mapping in the test software and compared with the expected result; S06, if the comparison is successful, the peripheral controller BCU receives the reservation request signal sent by the vehicle controller SVDC, and sends a heating state feedback value to the vehicle controller SVDC based on the environmental variables; S07, the vehicle controller SVDC reports the heating state feedback value to the vehicle networking platform TSP, and the test software calls the script to obtain the heating state feedback value of the vehicle networking platform TSP and compares it with the expected result; S08, judging, based on the comparison result, that the battery is currently in a state of continuous heating or unable to be heated; S09, if it is in continuous heating, the test software calls the script to execute the battery scheduled heating cancellation interface, the vehicle controller SVDC determines the validity of the battery scheduled heating cancellation instruction, the test software calls the script to obtain the response information of the TaskId corresponding to the battery scheduled heating cancellation instruction on the vehicle network platform TSP, and compares it with the expected result to determine whether the battery scheduled heating cancellation instruction is valid; S10, if the battery scheduled heating cancellation command is valid, the vehicle controller SVDC ends the preheating request, the test software reads the preheating request signal on the corresponding CAN, and compares it with the expected result to complete the remote scheduled heating test.
3. The method according to claim 2, characterized in that In the S01, authorization information, heating mode and travel time are passed in the input parameters of the battery reservation heating interface. When obtaining the authorization information, the user login interface and vehicle information interface are executed, and the Token, CarId and vehicle control code returned by the interface are stored as global variables in the test software.
4. The method according to claim 2, characterized in that: In S04, the vehicle controller SVDC determines whether the conditions for immediate heating are met based on the heating mode in the battery scheduled heating instruction, the travel time, and the estimated heating time fed back by the BCU.
5. The method according to claim 2, characterized in that: In S04, if the conditions for immediate heating are not met, a waiting time is set in the test software for single scheduled heating or repeated scheduled heating mode, and the waiting end time is the travel time minus the estimated heating time. After the waiting end time is reached, the preheating request signal on the corresponding CAN is read and compared with the expected result. If the comparison is passed, S06 is executed.
6. The method according to claim 2, characterized in that In S09, if the battery scheduled heating cancellation instruction is invalid, a waiting time is set in the test software, and the end time is equal to the travel time. When the travel time is reached, the vehicle controller SVDC ends the preheating request, reads the preheating request signal on the corresponding CAN, and compares it with the expected result.
7. The method according to claim 2, characterized in that In the above-mentioned S03, if the battery scheduled heating instruction is invalid, the test ends.
