Intelligent integrated test system and control method for electronic control module in whole vehicle environment, and computer readable storage medium
By designing an intelligent integrated test system in the vehicle environment, the problem of insufficient stability and safety detection of the refresh function of the electronic control module in the existing technology is solved, multi-dimensional intelligent refresh and bus data detection are realized, and the reliability of the test is improved. Sex and safety.
Patent Information
- Application Number
- CN202411286373.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-13
- Publication Date
- 2024-12-27
AI Technical Summary
The prior art is difficult to effectively test the stability and safety of the refresh function of the on-board electronic control module in the vehicle environment, especially the lack of support for multi-dimensional detection of bus data and automated integration testing, resulting in the inreliability and safety of the test results.
An intelligent integrated testing system for electronic control modules in the vehicle environment is designed, including upper computers, testing equipment and vehicle test benches. Through user customized modules, multi-dimensional intelligent refresh modules, data intelligent detection modules and diagnostic intelligence The detection module realizes multi-dimensional intelligent refresh of the electronic control module, intelligent detection of bus communication data and intelligent analysis of diagnostic data.
It realizes highly modular and automated integrated testing, maximizes the simulation of the vehicle environment, improves the reliability and safety of the test, enhances the portability and integration of the test, and makes the test results more reliable and safe.
Smart Images

Figure CN119200563A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of automotive electronic testing, and in particular to an intelligent integrated testing system, a control method and a computer-readable storage medium for an electronic control module in a complete vehicle environment. Background Art
[0002] China's automobile manufacturing industry is also rapidly developing towards electrification, networking and intelligence, which inevitably leads to the complexity of functional integration of on-board electronic control modules and the frequent release of software iterations, which brings greater challenges to integration testing.
[0003] As the core of the vehicle electronic control module, the vehicle electronic control software will be continuously updated during the development stage due to changes in demand and different vehicle models. For the OEM, all electronic control software needs to complete the refresh stability and reliability verification in the real vehicle or vehicle test bench environment before it is officially launched to ensure the safety of large-scale software updates in the factory or after-sales. Although the existing refresh test devices and methods have reduced labor costs to a certain extent, they only cover the test of the closed scene of the single module, and do not simulate the stability of the refresh function under the environmental conditions of the whole vehicle well, and also lack multi-dimensional detection of the security of the refresh file itself, such as a method and device for automatic refresh test of automobile ECU program (CN106874055A) and a flash writing test method, device, equipment and storage medium for a vehicle controller (CN115061450A).
[0004] Due to the further urgent demand for intelligence and networking, automobiles require more frequent data interaction between on-board electronic control modules. Therefore, detecting whether the communication data complies with the specification is gradually becoming one of the focuses of electronic control module software integration testing. Although some of the current communication test technologies test the bus general physical layer, link layer, etc., and there are also a small number of anti-interference tests, the test method is only a test of the single module in a closed scene, and there is also a lack of inspection and testing of the bus data cycle, length, deviation and other standards, especially the lack of automated integrated detection of on-board electronic control module bus data in the whole vehicle environment, such as an original vehicle bus simulation software and system for debugging and testing of on-board electronic products (CN107368063), a portable automatic test system for on-board bus (CN109375613A) and an automotive CAN communication fault test system, method, device and storage medium (CN113259209A).
[0005] With the increase in vehicle platforms and projects, and the frequent software iteration releases, software integration testers have an increasing demand for automated testing processes. However, due to the different styles of each tester, the engineering scripts produced independently are not unified, have poor portability, and low integration. Although existing diagnostic testing technologies can partially realize diagnostic automation and replace manual testing to a certain extent, they only focus on observing whether the module fault code is set as expected after fault injection, that is, they only cover a small part of the complete set of diagnostic services, and have poor portability between different architectures, such as an automated diagnostic test case generation system and method (CN111983998A). Summary of the invention
[0006] The present invention provides an intelligent integrated test system for an electronic control module in a whole vehicle environment, which can make the integrated test results more reliable and safe.
[0007] According to one aspect of the present invention, an intelligent integrated test system for an electric control module in a whole vehicle environment is provided, wherein the intelligent integrated test system for an electric control module in a whole vehicle environment comprises a host computer, a test device and a whole vehicle test bench.
[0008] The host computer includes a user customization module, a multi-dimensional intelligent refresh module, a data intelligent detection module and a diagnosis intelligent detection module.
[0009] The user customization module is used to complete customized settings according to user needs, the multi-dimensional intelligent refresh module is used to complete multi-dimensional intelligent refresh in the whole vehicle environment, the data intelligent detection module is used to complete intelligent detection of bus communication data, and the diagnostic intelligent detection module is used to complete intelligent analysis of diagnostic data.
[0010] According to an intelligent integrated test system for an electric control module in a vehicle environment provided by one aspect of the present invention, the host computer includes a signal processing module, a process control module, a process monitoring module and a data processing module.
[0011] The signal processing module is used to complete signal processing such as the interaction between the host computer and the whole vehicle test bench. The process control module is used to perform process control according to the relevant data and status feedback from the process monitoring module. The process monitoring module is used to monitor the running status of the host computer test software and record relevant monitoring data and status. The data processing module is used to complete the processing of test log data and the generation of test reports.
[0012] According to an intelligent integrated test system for an electric control module in a whole vehicle environment provided in one aspect of the present invention, the whole vehicle test bench includes a control cabinet and a vehicle-mounted module, and the whole vehicle test bench is used to simulate a whole vehicle environment.
[0013] According to an intelligent integrated testing system for an electronic control module in a whole vehicle environment proposed in one aspect of the present invention, the host computer is connected to a whole vehicle test bench through a testing device, and the testing device serves as an intermediate medium to simultaneously connect the host computer and the whole vehicle test bench, and the on-board module is connected to a control cabinet according to a whole vehicle network topology, and the control cabinet also includes a power supply, a wiring harness, a sensor, and an actuator.
[0014] According to one aspect of the present invention, a control method of an intelligent integrated test system for an electronic control module in a vehicle environment is provided, the control method comprising the following steps:
[0015] B: Determine whether the user customized parameters have been set. If they have been set, jump to step E; if they have not been set, jump to step C;
[0016] C: Initialize configuration parameters;
[0017] D: Set user customized parameters;
[0018] E: Determine whether the parameter setting is valid. If it is valid, jump to step F; if it is invalid, jump to step R;
[0019] F: Determine whether the parameters need to be saved. If necessary, jump to step G; if not, jump to step H;
[0020] G: Save user customized parameters;
[0021] H: Determine whether the refresh test is checked. If it is checked, jump to step I; if it is not checked, jump to step K;
[0022] I: Perform multi-dimensional intelligent refresh;
[0023] J: Determine whether the refresh test is completed. If completed, jump to step K; if not completed, jump to step R;
[0024] K: Determine whether data detection is checked. If it is checked, jump to step L; if it is not checked, jump to step O;
[0025] L: perform data intelligent detection;
[0026] M: Determine whether the data detection is completed, if completed, jump to step O; if not completed, jump to step R;
[0027] O: Determine whether the diagnostic test is checked. If it is checked, jump to step P; if it is not checked, jump to step R;
[0028] P: Perform diagnostic intelligent testing;
[0029] Q: Determine whether the diagnostic test is completed. If completed, jump to step S; if not completed, jump to step R;
[0030] R: error message;
[0031] S: Generate test results and save them.
[0032] According to a control method of an intelligent integrated test system for an electronic control module in a vehicle environment provided by one aspect of the present invention, a multi-dimensional intelligent refresh comprises the following steps:
[0033] A1: Start the software automatic refresh test;
[0034] B1: Initialize the parameters software refresh retry times c=1, single refresh calibration retry times d=1, software interrupt retry times e=1, calibration interrupt retry times f=1; configure the basic information of the module to be refreshed, the maximum retry times x1, x2, x3, x4;
[0035] C1: Check whether the information is configured correctly. If not, jump to step W1; if correct, jump to D1;
[0036] D1: Call the refresh software and open it;
[0037] E1: If the call succeeds, jump to F1; if it fails, jump to step W1;
[0038] F1: Automatically configure the information required to refresh the software;
[0039] G1: Execute software refresh test;
[0040] H1: If the refresh is successful, jump to J1; if it fails, jump to I1;
[0041] I1: Retry the software refresh test. If the number of retries is less than the set maximum number of retries x1, jump to step Ic1; if the number of retries c is not less than x1, jump to step W1;
[0042] Ic1: number of retries c = c + 1;
[0043] J1: Determine whether a single-brush calibration test needs to be performed. If necessary, jump to K1; if not, jump to O1;
[0044] K1: Perform single brush calibration test;
[0045] L1: If the refresh succeeds, jump to O1; if it fails, jump to M1;
[0046] M1: Retry the single-brush calibration test. If the number of retries d is less than the set maximum number of retries x2, jump to step Md1; if the number of retries is not less than x2, jump to step W1;
[0047] Md1: number of retries d = d + 1;
[0048] O1: Determine whether a software interrupt test needs to be performed. If necessary, jump to P1; if not, jump to step S1;
[0049] P1: Execute software interrupt test;
[0050] Q1: If the interruption test succeeds, jump to step S1; if it fails, jump to step R1;
[0051] R1: Retry the software interrupt test. If the number of retries e is less than the set maximum number of retries x3, jump to step Re1; if the number of retries is not less than x3, jump to step W1;
[0052] Re1: number of retries e = e + 1;
[0053] S1: Determine whether to perform the calibration interruption test. If necessary, jump to step T1; if not, jump to step X1;
[0054] T1: Execute calibration interrupt test;
[0055] U1: If the interrupt test succeeds, jump to X1; if the interrupt test fails, jump to step V1;
[0056] V1: Retry the calibration interruption test. If the number of retries d is less than the set maximum number of retries x4, jump to step Vf1; if the number of retries is not less than x4, jump to step W1;
[0057] Vf1: number of retries d = d + 1;
[0058] W1: error message;
[0059] X1: Determine whether to perform a security refresh test, if yes, jump to step Z1; if not, jump to step C21;
[0060] Z1: Determine whether the input of the security refresh test file is correct. If it is correct, jump to step C11; if it is not correct, jump to step W1;
[0061] A11: Automatically generate test results;
[0062] C11: Determine whether the module under test is in factory mode, if yes, jump to D11; if not, jump to R11;
[0063] D11: Write a valid authorization bypass file;
[0064] E11: Determine whether the authorization bypass file is written successfully. If it is written successfully, continue to execute step F11; if it fails to write, jump to step W1;
[0065] F11: Refresh unauthorized file a;
[0066] G11: Determine whether the refresh of unauthorized file a is successful, if yes, execute step H11; if not, jump to step W1;
[0067] H11: Refresh authorization file b;
[0068] I11: Determine whether the authorization file b is updated successfully. If yes, continue to execute J11; if not, jump to step W1;
[0069] J11: Clear the valid authorization bypass file;
[0070] L11: Refresh unauthorized file a;
[0071] M11: Determine whether the refresh of the unauthorized file a fails, if yes, continue to execute O11; if not, jump to step W1;
[0072] O11: Refresh authorization file b;
[0073] P11: Determine whether the authorization file b is refreshed successfully, if yes, continue to execute Q11; if not, jump to step W1;
[0074] Q11: Exit factory mode;
[0075] R11: Write a valid authorization bypass file
[0076] S11: Determine whether the authorization bypass file is written successfully. If it is written successfully, continue to execute step T11; if it fails to write, jump to step W1;
[0077] T11: Refresh unauthorized file a;
[0078] U11: Determine whether the refresh of unauthorized file a is successful, if yes, continue to execute V11; if not, jump to step W1;
[0079] V11: Refresh authorization file b;
[0080] W11: Determine whether the authorization file b is refreshed successfully, if yes, continue to execute X11; if not, jump to step W1;
[0081] X11: Clear valid authorization bypass files;
[0082] Z11: refresh unauthorized file a;
[0083] A21: Determine whether the unauthorized file a fails to be refreshed. If yes, continue to execute B21; if not, jump to step W1;
[0084] B21: Refresh authorization file b;
[0085] C21: Determine whether the authorization file b is refreshed successfully, if yes, continue to execute D21; if not, jump to step W1;
[0086] D21: Reminder that the test has been completed.
[0087] According to a control method of an intelligent integrated test system for an electronic control module in a vehicle environment provided by one aspect of the present invention, data intelligent detection comprises the following steps:
[0088] B2: Perform parameter configuration;
[0089] C2: Send a request to the database to obtain the corresponding version of the communication specification;
[0090] D2: Determine whether the request is passed. If so, jump to E2, otherwise jump to U2;
[0091] E2: If the request is approved, obtain the communication specification document;
[0092] F2: Perform data consistency check on the communication specification file;
[0093] G2: Correct invalid values in communication specifications;
[0094] H2: Calculate the data cycle in the data and fill it to the end of the data;
[0095] I2: Determine the communication type based on the parameter identification in the data specification file;
[0096] J2: Automatically match relevant inspection mechanisms for different communication specifications and classify the data covered by the corresponding communication specifications;
[0097] K2: After parameter configuration, it identifies whether real-time data collection or offline data detection is required. If real-time data collection is required, it jumps to L2; if offline data detection is required, it jumps to O2.
[0098] L2: Send data collection request to the device;
[0099] M2: Determine whether the request is passed. If the request is passed, jump to P2; if the request is not passed, jump to U2;
[0100] O2: Report an error and give a prompt;
[0101] P2: If the request passes, start intercepting and transmitting data;
[0102] Q2: Perform data consistency check on actual data;
[0103] R2: Remove invalid values in actual data;
[0104] S2: Correct the erroneous data in the actual data;
[0105] T2: Compare the actual data generated by the vehicle environment communication network with the corresponding type of communication specifications;
[0106] U2: Report an error and give a prompt;
[0107] V2: Get the test results and automatically output the test result report.
[0108] According to a control method of an intelligent integrated test system of an electronic control module in a vehicle environment provided by one aspect of the present invention, the intelligent diagnostic detection comprises the following steps:
[0109] B3: Determine whether the tool is connected; if it is connected, execute step B3; if it is not connected, jump to step X3;
[0110] C3: configure parameters;
[0111] D3: Determine whether the parameters are correct. If they are correct, execute step D3; if they are not correct, jump to step X3;
[0112] E3: Scan and extract the diagnostic instructions to be tested in the test document;
[0113] F3: Check whether there are any illegal diagnostic instructions. If there are no illegal instructions, execute step H3; if there are illegal instructions, jump to step X3;
[0114] H3: Determine whether the rack status meets the requirements. If it does, go to step J3; otherwise, jump to step I3;
[0115] I3: Set the rack status to the required status;
[0116] J3: Match the correct diagnostic instruction type;
[0117] K3: Extract the diagnostic instructions to be tested in the test case;
[0118] L3: Determine whether there are preconditions for sending the message, if yes, execute step J3; otherwise, execute step M3;
[0119] M3: construct the diagnostic header and diagnostic payload, and assemble them into the diagnostic message to be sent;
[0120] O3: Send diagnostic instructions;
[0121] P3: receiving diagnostic feedback;
[0122] Q3: Search for the feedback message of the target module in the message cache;
[0123] R3: Determine whether the number of waiting times is less than 3 times, if so, execute step P3; if not, execute step T3;
[0124] S3: Determine whether the feedback message is negative feedback and needs to continue waiting, if so, execute step R3; if not, execute step T3;
[0125] T3: Intelligent processing feedback;
[0126] U3: record original data;
[0127] V3: Determine whether the feedback meets the requirements, if yes, execute step W23; if no, execute step W13;
[0128] W13: There is a problem with the labeling;
[0129] W23: mark pass;
[0130] X3: Error message;
[0131] Z13: Save the results.
[0132] According to a control method of an intelligent integrated test system of an electronic control module in a vehicle environment provided by one aspect of the present invention, intelligent processing feedback of diagnostic intelligent detection comprises the following steps:
[0133] T23: Poll to determine whether the feedback has timed out, if so, execute step T133; if not, execute step T33;
[0134] T33: Determine whether the message is in an extended format, if so, execute step T413; if not, execute step T423;
[0135] T413: Process the feedback message according to the extended format;
[0136] T423: Process the feedback message according to the non-extended format;
[0137] T53: Determine whether the message is in multi-frame format, if so, execute step T613; if not, execute step T73;
[0138] T613: Get the first frame of valid data;
[0139] T623: Send flow control frame;
[0140] T633: Get continuous frame valid data;
[0141] T73: Get single frame valid data;
[0142] T83: Determine whether the message format needs to be reprocessed, if yes, execute step T93; if no, execute step T103;
[0143] T93: message format conversion / cutting;
[0144] T103: Determine whether there is historical diagnostic data, if yes, execute step T113; if no, execute step T123;
[0145] T113: Compare the two diagnostic results to see if they are the same;
[0146] T123: Returns an array containing valid data.
[0147] A computer-readable storage medium according to one aspect of the present invention stores a computer program, which implements the steps of the control method according to the present invention when executed by a processor.
[0148] The beneficial effects of the present invention include: (1) the system of the present invention highly modularizes the integrated test, optimizes the integrated test verification algorithm, and maximizes the simulation of the whole vehicle environment; (2) it can complete the automated intelligent integrated test of the electronic control module such as multi-dimensional intelligent refresh, bus communication data intelligent detection and diagnostic data intelligent analysis in the whole vehicle environment in a customized manner according to user needs; (3) it has good portability and high integration, making the integrated test results more reliable and safe, and the test process more user-friendly. BRIEF DESCRIPTION OF THE DRAWINGS
[0149] The disclosure of the present invention is described with reference to the accompanying drawings. It should be understood that the drawings are only for illustrative purposes and are not intended to limit the scope of protection of the present invention. Among them:
[0150] Figure 1 A system block diagram schematically shows an embodiment of an intelligent integrated test system for an electronic control module in a whole vehicle environment designed by the present invention.
[0151] Figure 2 The main flow chart of an embodiment of a control method of an intelligent integrated test system for an electronic control module in a whole vehicle environment provided by the present invention is schematically shown.
[0152] Figure 3-1 and Figure 3-2A multi-dimensional intelligent refresh sub-flow chart of an embodiment of a control method of an intelligent integrated test system for an electronic control module in a whole vehicle environment provided by the present invention is schematically shown.
[0153] Figure 4 A data intelligent detection sub-flow chart of an embodiment of a control method of an intelligent integrated test system of an electronic control module in a whole vehicle environment provided by the present invention is schematically shown.
[0154] Figure 5-1 and Figure 5-2 A diagnostic intelligent detection sub-flow chart of an embodiment of a control method of an intelligent integrated test system of an electronic control module in a whole vehicle environment provided by the present invention is schematically shown.
[0155] exist Figure 1 middle:
[0156] 1-host computer, 2-test equipment, 3-vehicle test bench, 11-signal processing module, 12-user customization module, 13-multi-dimensional intelligent refresh module, 14-data intelligent detection module, 15-diagnosis intelligent detection module, 16-process control module, 17-process monitoring module, 18-data processing module, 31-control cabinet, 32-vehicle module. DETAILED DESCRIPTION
[0157] It is easy to understand that according to the technical solution of the present invention, without changing the essential spirit of the present invention, a person skilled in the art can propose a variety of interchangeable structural modes and implementation modes. Therefore, the following specific implementation modes and drawings are only exemplary descriptions of the technical solution of the present invention, and should not be regarded as the whole of the present invention or as a limitation or restriction to the technical solution of the present invention.
[0158] An implementation example of an intelligent integrated test system for an electronic control module in a vehicle environment designed by the present invention is as follows: Figure 1 As shown, it mainly includes a host computer 1, a test device 2 and a whole vehicle test bench 3; the host computer 1 includes a signal processing module 11, a user customization module 12, a multi-dimensional intelligent refresh module 13, a data intelligent detection module 14, a diagnostic intelligent detection module 15, a process control module 16, a process monitoring module 17 and a data processing module 18; the whole vehicle test bench 3 includes a control cabinet 31 and a vehicle-mounted module 32.
[0159] In this embodiment, the host computer 1 is connected to the vehicle test bench 3 through the test equipment 2; the test equipment 2 acts as an intermediate medium to simultaneously connect the host computer 1 and the vehicle test bench 3; the vehicle-mounted module 32 is connected to the control cabinet 31 according to the vehicle network topology; the control cabinet 31 also includes a power supply, a wiring harness, and a sensor.
[0160] In this embodiment, the signal processing module 11 is used to complete signal processing such as the interaction between the host computer 1 and the whole vehicle test bench 3; the user customization module 12 is used to complete the customized settings of user needs; the multi-dimensional intelligent refresh module 13 is used to complete the multi-dimensional intelligent refresh in the whole vehicle environment; the data intelligent detection module 14 is used to complete the intelligent detection of bus communication data; the diagnostic intelligent detection module 15 is used to complete the intelligent analysis of diagnostic data; the process control module 16 is used to perform process control according to the relevant data and status feedback from the process monitoring module 17; the process monitoring module 17 is used to monitor the running status of the test software of the host computer 1 and record the relevant monitoring data and status; the data processing module 18 is used to complete the processing of test log data and the generation of test reports; the whole vehicle test bench 3 is used to simulate the whole vehicle environment.
[0161] In this embodiment, the signal processing module 11 supports one or a combination of CAN communication, LIN communication, Ethernet communication, MOST communication, Flexray communication and wireless network communication; the test equipment 2 adopts one or a combination of CANoe hardware and NeoVI Fire2; the test bench supports one or a combination of CAN communication, LIN communication, Ethernet communication and wireless network communication.
[0162] In this embodiment, the present invention provides a control method for an intelligent integrated test system of an electric control module in a vehicle environment, such as Figure 2 As shown, the following steps are included:
[0163] A: Start the software through the start button on the UI interface;
[0164] B: Determine whether the user customized parameters have been set. If they have been set, jump to step E; if they have not been set, jump to step C;
[0165] C: Initialize the UI interface configuration parameters a=0 (ID of the module to be flashed), b=0 (architecture type), c=0 (protocol information), d=0 (bus channel), e=0 (flash package file path);
[0166] D: Set user customized parameters;
[0167] E: Determine whether the parameter setting is valid. If it is valid, jump to step F; if it is invalid, jump to step R;
[0168] F: Determine whether the parameters need to be saved. If necessary, jump to step G; if not, jump to step H;
[0169] G: Save user customized parameters;
[0170] H: Determine whether the refresh test is checked. If it is checked, jump to step I; if it is not checked, jump to step K;
[0171] I: Perform multi-dimensional intelligent refresh;
[0172] J: Determine whether the refresh test is completed. If completed, jump to step K; if not completed, jump to step R;
[0173] K: Determine whether data detection is checked. If it is checked, jump to step L; if it is not checked, jump to step O;
[0174] L: perform data intelligent detection;
[0175] M: Determine whether the data detection is completed, if completed, jump to step O; if not completed, jump to step R;
[0176] O: Determine whether the diagnostic test is checked. If it is checked, jump to step P; if it is not checked, jump to step R;
[0177] P: Perform diagnostic intelligent testing;
[0178] Q: Determine whether the diagnostic test is completed. If completed, jump to step S; if not completed, jump to step R;
[0179] R: prompt the user for an error;
[0180] S: Generate test results and save;
[0181] T: End the run and exit.
[0182] In this embodiment, the present invention provides a control method for an intelligent integrated test system of an electronic control module in a vehicle environment, and its multi-dimensional intelligent refresh sub-process is as follows: Figure 3-1 and 3-2 As shown, the following steps are included:
[0183] A1: Start the software automatic refresh test through the start button on the UI interface;
[0184] B1: Initialization parameter software refresh retry times c=1, single refresh calibration retry times d=1, software interrupt retry times e=1, calibration interrupt retry times f=1; users configure the basic information of the module to be refreshed (ID, architecture type, protocol information, bus channel and refresh package file path of the module to be refreshed) through the UI interface, and the maximum retry times x1, x2, x3, x4 (non-zero natural integers, which can be customized by users);
[0185] C1: Automatically check whether the information is configured correctly. If not, jump to step W1; if correct, jump to D1;
[0186] D1: Call the refresh software and open it;
[0187] E1: If the call succeeds, jump to F1; if it fails, jump to step W1;
[0188] F1: Automatically configure the information required to refresh the software;
[0189] G1: Execute software refresh test;
[0190] H1: If the refresh is successful, jump to J1; if it fails, jump to I1;
[0191] I1: Retry the software refresh test. If the number of retries is less than the maximum number of retries x1 set by the user, jump to step Ic1; if the number of retries c is not less than x1, jump to step W1. The maximum number of retries x1 can be customized by the user (x1 is a non-zero natural integer);
[0192] Ic1: number of retries c = c + 1;
[0193] J1: Determine whether a single-brush calibration test needs to be performed. If necessary, jump to K1; if not, jump to O1;
[0194] K1: Perform single brush calibration test;
[0195] L1: If the refresh succeeds, jump to O1; if it fails, jump to M1;
[0196] M1: Retry the single-brush calibration test. If the number of retries d is less than the maximum number of retries x2 set by the user, jump to step Md1; if the number of retries is not less than x2, jump to step W1; the maximum number of retries x2 can be customized by the user (x2 is a non-zero natural integer);
[0197] Md1: number of retries d = d + 1;
[0198] O1: Determine whether a software interrupt test needs to be performed. If necessary, jump to P1; if not, jump to step S1;
[0199] P1: Execute software interrupt test;
[0200] Q1: If the interruption test succeeds, jump to step S1; if it fails, jump to step R1;
[0201] R1: Retry the software interrupt test. If the number of retries e is less than the maximum number of retries x3 set by the user, jump to step Re1; if the number of retries is not less than x3, jump to step W1; the maximum number of retries x3 can be customized by the user (x3 is a non-zero positive integer);
[0202] Re1: number of retries e = e + 1;
[0203] S1: Determine whether to perform the calibration interruption test. If necessary, jump to step T1; if not, jump to step X1;
[0204] T1: Execute calibration interrupt test;
[0205] U1: If the interrupt test succeeds, jump to X1; if the interrupt test fails, jump to step V1;
[0206] V1: Retry the calibration interruption test. If the number of retries d is less than the maximum number of retries x4 set by the user, jump to step Vf1; if the number of retries is not less than x4, jump to step W1. The maximum number of retries x4 can be customized by the user;
[0207] Vf1: number of retries d = d + 1;
[0208] W1: Report an error to the user;
[0209] X1: Determine whether to perform a security refresh test, if yes, jump to step Z1; if not, jump to step C21;
[0210] Z1: Determine whether the input of the security refresh test file is correct. If it is correct, jump to step C11; if it is not correct, jump to step W1;
[0211] A11: Automatically generate test results;
[0212] C11: Determine whether the module under test is in factory mode. If yes, jump to D11; otherwise, jump to R11 (in factory mode, developers or testers can write some protected information into the module.)
[0213] D11: Write a valid authorization bypass file; (After the module writes a valid authorization bypass file, the authorization verification step of refreshing the file can be skipped)
[0214] E11: Determine whether the authorization bypass file is written successfully. If it is written successfully, continue to execute step F11; if it fails to write, jump to step W1;
[0215] F11: Refresh unauthorized file a;
[0216] G11: Determine whether the refresh of unauthorized file a is successful, if yes, execute step H11; if not, jump to step W1;
[0217] H11: Refresh authorization file b;
[0218] I11: Determine whether the authorization file b is updated successfully. If yes, continue to execute J11; if not, jump to step W1;
[0219] J11: Clear the valid authorization bypass file;
[0220] L11: Refresh unauthorized file a;
[0221] M11: Determine whether the refresh of the unauthorized file a fails, if yes, continue to execute O11; if not, jump to step W1;
[0222] O11: Refresh authorization file b;
[0223] P11: Determine whether the authorization file b is refreshed successfully, if yes, continue to execute Q11; if not, jump to step W1;
[0224] Q11: Exit factory mode;
[0225] R11: Write a valid authorization bypass file
[0226] S11: Determine whether the authorization bypass file is written successfully. If it is written successfully, continue to execute step T11; if it fails to write, jump to step W1;
[0227] T11: Refresh unauthorized file a;
[0228] U11: Determine whether the refresh of unauthorized file a is successful, if yes, continue to execute V11; if not, jump to step W1;
[0229] V11: Refresh authorization file b;
[0230] W11: Determine whether the authorization file b is refreshed successfully, if yes, continue to execute X11; if not, jump to step W1;
[0231] X11: Clear effective authorization bypass files
[0232] Z11: refresh unauthorized file a;
[0233] A21: Determine whether the unauthorized file a fails to be refreshed. If yes, continue to execute B21; if not, jump to step W1;
[0234] B21: Refresh authorization file b;
[0235] C21: Determine whether the authorization file b is refreshed successfully, if yes, continue to execute D21; if not, jump to step W1;
[0236] D21: Remind the user that the test has been completed;
[0237] B11: End.
[0238] The present invention provides a control method for an intelligent integrated test system of an electric control module in a vehicle environment, wherein the data intelligent detection sub-process is as follows: Figure 4 As shown, it mainly includes the following steps:
[0239] A2: Start running the program;
[0240] B2: Configure parameters through the UI interface;
[0241] C2: Send a request to the database to obtain the corresponding version of the communication specification;
[0242] D2: Determine whether the request is passed. If so, jump to E2, otherwise jump to U2;
[0243] E2: If the request is approved, obtain the communication specification document;
[0244] F2: Perform data consistency check on the communication specification file;
[0245] G2: Correct invalid values in communication specifications;
[0246] H2: Calculate the data cycle in the data and fill it to the end of the data;
[0247] I2: Determine the communication type based on the parameter identification in the data specification file;
[0248] J2: Automatically match relevant inspection mechanisms for different communication specifications and classify the data covered by the corresponding communication specifications;
[0249] K2: Through the parameter configuration of the UI interface, it is determined whether real-time data collection or offline data detection is required. If real-time data collection is required, it will jump to L2; if offline data detection is required, it will jump to O2.
[0250] L2: Send data collection request to the device;
[0251] M2: Determine whether the request is passed. If the request is passed, jump to P2; if the request is not passed, jump to U2;
[0252] O2: Report an error and prompt the user;
[0253] P2: If the request passes, start intercepting and transmitting data;
[0254] Q2: Perform data consistency check on actual data;
[0255] R2: Remove invalid values in actual data;
[0256] S2: Correct the erroneous data in the actual data;
[0257] T2: Compare the actual data generated by the vehicle environment communication network with the corresponding type of communication specifications;
[0258] U2: Report an error and prompt the user;
[0259] V2: Get the test results and automatically output the test result report;
[0260] W2: The program ends.
[0261] The present invention provides a control method for an intelligent integrated test system of an electronic control module in a vehicle environment, wherein the diagnosis intelligent detection sub-process is as follows: Figure 5-1 As shown, it mainly includes the following steps:
[0262] A3: Start running the program;
[0263] B3: Determine whether the tool is connected; if it is connected, execute step B3; if it is not connected, jump to step X3;
[0264] C3: Configure parameters through the UI interface, such as a (ID of the module to be flashed), d (bus channel), f (baud rate), and g (test case document path);
[0265] D3: Determine whether the parameters are correct. If they are correct, execute step D3; if they are not correct, jump to step X3;
[0266] E3: Scan and extract the diagnostic instructions to be tested in the test document;
[0267] F3: Check whether there are any illegal diagnostic instructions. If there are no illegal instructions, execute step H3; if there are illegal instructions, jump to step X3;
[0268] H3: Determine whether the test bench status meets the requirements (such as power mode = a, vehicle speed
[0269] = b33, bus error number = c33), if it meets the requirements, execute step J3; otherwise jump to step I3;
[0270] I3: Set the rack status to the required status;
[0271] J3: Match the correct diagnostic instruction type (such as DoIP=a, CANFD=d, CAN2.0=f);
[0272] K3: Extract the diagnostic instructions to be tested in the test case;
[0273] L3: Determine whether there are preconditions for sending the message, if yes, execute step J3; otherwise, execute step M3;
[0274] M3: construct the diagnostic header and diagnostic payload, and assemble them into the diagnostic message to be sent;
[0275] O3: Send diagnostic instructions;
[0276] P3: receiving diagnostic feedback;
[0277] Q3: Search for the feedback message of the target module in the message cache;
[0278] R3: Determine whether the number of waiting times is less than 3 times, if so, execute step P3; if not, execute step T3;
[0279] S3: Determine whether the feedback message is negative feedback and needs to continue waiting, if so, execute step R3; if not, execute step T3;
[0280] T3: Intelligent processing feedback (this sub-process, such as process Figure 5-2 shown);
[0281] U3: record original data;
[0282] V3: Determine whether the feedback meets the requirements, if yes, execute step W23; if no, execute step W13;
[0283] W13: There is a problem with the labeling;
[0284] W23: mark pass;
[0285] X3: Report an error to the user;
[0286] Z13: Save the result;
[0287] Z23: Testing completed.
[0288] The present invention provides a control method for an intelligent integrated test system of an electronic control module in a vehicle environment, wherein the intelligent processing feedback sub-process of the intelligent diagnosis detection is as follows: Figure 5-2 As shown, it mainly includes the following steps:
[0289] T13: Start;
[0290] T23: Poll to determine whether the feedback has timed out, if so, execute step T133; if not, execute step T33;
[0291] T33: Determine whether the message is in an extended format, if so, execute step T413; if not, execute step T423;
[0292] T413: Process the feedback message according to the extended format;
[0293] T423: Process the feedback message according to the non-extended format;
[0294] T53: Determine whether the message is in multi-frame format, if so, execute step T613; if not, execute step T73;
[0295] T613: Get the first frame of valid data;
[0296] T623: Send flow control frame;
[0297] T633: Get continuous frame valid data;
[0298] T73: Get single frame valid data;
[0299] T83: Determine whether the message format needs to be reprocessed, if yes, execute step T93; if no, execute step T103;
[0300] T93: message format conversion / cutting (such as hexadecimal to decimal, or hexadecimal to ASCII);
[0301] T103: Determine whether there is historical diagnostic data, if yes, execute step T113; if no, execute step T123;
[0302] T113: Compare the two diagnostic results to see if they are the same;
[0303] T123: The subprocess ends and returns an array containing valid data.
[0304] The test system and control method according to one embodiment of the present invention highly modularize the integrated test, optimize the integrated test verification algorithm, and maximize the simulation of the whole vehicle environment. It can complete the automated intelligent integrated test of the electronic control module such as multi-dimensional intelligent refresh, bus communication data intelligent detection and diagnostic data intelligent analysis in the whole vehicle environment in a customized manner according to user needs. It has good portability and high integration, making the integrated test results more reliable and safe and the test process more user-friendly.
[0305] The present invention also includes a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the computer program implements the steps of the control method described in any one or more of the aforementioned embodiments. The technical features and technical effects thereof correspond to the previous description and will not be repeated here.
[0306] The technical scope of the present invention is not limited to the contents in the above description. Those skilled in the art can make various deformations and modifications to the above embodiments without departing from the technical idea of the present invention, and these deformations and modifications should all fall within the protection scope of the present invention.
Claims
1. An intelligent integrated test system for electronic control modules in a vehicle environment, characterized in that: The intelligent integrated test system of the electric control module in the whole vehicle environment includes a host computer, a test device and a whole vehicle test bench. The host computer includes a user customization module, a multi-dimensional intelligent refresh module, a data intelligent detection module and a diagnosis intelligent detection module. The user customization module is used to complete customized settings according to user needs, the multi-dimensional intelligent refresh module is used to complete multi-dimensional intelligent refresh in the whole vehicle environment, the data intelligent detection module is used to complete intelligent detection of bus communication data, and the diagnostic intelligent detection module is used to complete intelligent analysis of diagnostic data.
2. The intelligent integrated test system for electronic control modules in a vehicle environment according to claim 1 is characterized in that: The host computer includes a signal processing module, a process control module, a process monitoring module and a data processing module. The signal processing module is used to complete signal processing such as the interaction between the host computer and the whole vehicle test bench. The process control module is used to perform process control according to the relevant data and status feedback from the process monitoring module. The process monitoring module is used to monitor the running status of the host computer test software and record relevant monitoring data and status. The data processing module is used to complete the processing of test log data and the generation of test reports.
3. The intelligent integrated test system for the electronic control module in the vehicle environment according to claim 1 is characterized in that: The whole vehicle test bench comprises a control cabinet and a vehicle-mounted module, and the whole vehicle test bench is used to simulate a whole vehicle environment.
4. The intelligent integrated test system for the electronic control module in the vehicle environment according to claim 3 is characterized in that: The host computer is connected to the vehicle test bench through the test equipment. The test equipment serves as an intermediate medium to simultaneously connect the host computer and the vehicle test bench. The on-board module is connected to the control cabinet according to the vehicle network topology. The control cabinet also includes a power supply, a wiring harness, a sensor and an actuator.
5. A control method for an intelligent integrated test system of an electronic control module in a vehicle environment, characterized in that: The control method comprises the following steps: B: Determine whether the user customized parameters have been set. If they have been set, jump to step E; if they have not been set, jump to step C; C: Initialize configuration parameters; D: Set user customized parameters; E: Determine whether the parameter setting is valid. If it is valid, jump to step F; if it is invalid, jump to step R; F: Determine whether the parameters need to be saved. If necessary, jump to step G; if not, jump to step H; G: Save user customized parameters; H: Determine whether the refresh test is checked. If it is checked, jump to step I; if it is not checked, jump to step K; I: Perform multi-dimensional intelligent refresh; J: Determine whether the refresh test is completed. If completed, jump to step K; if not completed, jump to step R; K: Determine whether data detection is checked. If it is checked, jump to step L; if it is not checked, jump to step O; L: perform data intelligent detection; M: Determine whether the data detection is completed, if completed, jump to step O; if not completed, jump to step R; O: Determine whether the diagnostic test is checked. If it is checked, jump to step P; if it is not checked, jump to step R; P: Perform diagnostic intelligent testing; Q: Determine whether the diagnostic test is completed. If completed, jump to step S; If not completed, jump to step R; R: error message; S: Generate test results and save them.
6. The control method according to claim 5, characterized in that: Multi-dimensional intelligent refresh includes the following steps: A1: Start the software automatic refresh test; B1: Initialize the parameters software refresh retry times c=1, single refresh calibration retry times d=1, software interrupt retry times e=1, calibration interrupt retry times f=1; configure the basic information of the module to be refreshed, the maximum retry times x1, x2, x3, x4; C1: Check whether the information is configured correctly. If not, jump to step W1; if correct, jump to D1; D1: Call the refresh software and open it; E1: If the call succeeds, jump to F1; if it fails, jump to step W1; F1: Automatically configure the information required to refresh the software; G1: Execute software refresh test; H1: If the refresh is successful, jump to J1; If it fails, jump to I1; I1: Retry the software refresh test. If the number of retries is less than the set maximum number of retries x1, jump to step Ic1; if the number of retries c is not less than x1, jump to step W1; Ic1: number of retries c = c + 1; J1: Determine whether a single-brush calibration test needs to be performed. If necessary, jump to K1; If not needed, jump to O1; K1: Perform single brush calibration test; L1: If the refresh is successful, jump to O1; If it fails, jump to M1; M1: Retry the single-brush calibration test. If the number of retries d is less than the set maximum number of retries x2, jump to step Md1; if the number of retries is not less than x2, jump to step W1; Md1: number of retries d = d + 1; O1: Determine whether a software interrupt test needs to be performed. If necessary, jump to P1; if not, jump to step S1; P1: Execute software interrupt test; Q1: If the interruption test succeeds, jump to step S1; If it fails, jump to step R1; R1: Retry the software interrupt test. If the number of retries e is less than the set maximum number of retries x3, jump to step Re1; if the number of retries is not less than x3, jump to step W1; Re1: number of retries e = e + 1; S1: Determine whether to perform the calibration interruption test. If necessary, jump to step T1; if not, jump to step X1; T1: Execute calibration interrupt test; U1: If the interrupt test succeeds, jump to X1; If the interrupt test fails, jump to step V1; V1: Retry the calibration interruption test. If the number of retries d is less than the set maximum number of retries x4, jump to step Vf1; if the number of retries is not less than x4, jump to step W1; Vf1: number of retries d = d + 1; W1: error message; X1: Determine whether to perform a security refresh test, if yes, jump to step Z1; if not, jump to step C21; Z1: Determine whether the input of the security refresh test file is correct. If it is correct, jump to step C11; if it is not correct, jump to step W1; A11: Automatically generate test results; C11: Determine whether the module under test is in factory mode, if yes, jump to D11; if not, jump to R11; D11: Write a valid authorization bypass file; E11: Determine whether the authorization bypass file is written successfully. If it is written successfully, continue to execute step F11; if it fails to write, jump to step W1; F11: Refresh unauthorized file a; G11: Determine whether the refresh of unauthorized file a is successful, if yes, execute step H11; if not, jump to step W1; H11: Refresh authorization file b; I11: Determine whether the authorization file b is updated successfully. If yes, continue to execute J11; if not, jump to step W1; J11: Clear the valid authorization bypass file; L11: Refresh unauthorized file a; M11: Determine whether the refresh of the unauthorized file a fails, if yes, continue to execute O11; if not, jump to step W1; O11: Refresh authorization file b; P11: Determine whether the authorization file b is refreshed successfully, if yes, continue to execute Q11; if not, jump to step W1; Q11: Exit factory mode; R11: Write a valid authorization bypass file S11: Determine whether the authorization bypass file is written successfully. If it is written successfully, continue to execute step T11; if it fails to write, jump to step W1; T11: Refresh unauthorized file a; U11: Determine whether the refresh of unauthorized file a is successful, if yes, continue to execute V11; if not, jump to step W1; V11: Refresh authorization file b; W11: Determine whether the authorization file b is refreshed successfully, if yes, continue to execute X11; if not, jump to step W1; X11: Clear valid authorization bypass files; Z11: refresh unauthorized file a; A21: Determine whether the unauthorized file a fails to be refreshed. If yes, continue to execute B21; if not, jump to step W1; B21: Refresh authorization file b; C21: Determine whether the authorization file b is refreshed successfully, if yes, continue to execute D21; if not, jump to step W1; D21: Reminder that the test has been completed.
7. The control method according to claim 5, characterized in that: Data intelligent detection includes the following steps: B2: Perform parameter configuration; C2: Send a request to the database to obtain the corresponding version of the communication specification; D2: Determine whether the request is passed. If so, jump to E2, otherwise jump to U2; E2: If the request is approved, obtain the communication specification document; F2: Perform data consistency check on the communication specification file; G2: Correct invalid values in communication specifications; H2: Calculate the data cycle in the data and fill it to the end of the data; I2: Determine the communication type based on the parameter identification in the data specification file; J2: Automatically match relevant inspection mechanisms for different communication specifications and classify the data covered by the corresponding communication specifications; K2: After parameter configuration, it identifies whether real-time data collection or offline data detection is required. If real-time data collection is required, it jumps to L2; if offline data detection is required, it jumps to O2. L2: Send data collection request to the device; M2: Determine whether the request is passed. If the request is passed, jump to P2; if the request is not passed, jump to U2; O2: Report an error and give a prompt; P2: If the request passes, start intercepting and transmitting data; Q2: Perform data consistency check on actual data; R2: Remove invalid values in actual data; S2: Correct the erroneous data in the actual data; T2: Compare the actual data generated by the vehicle environment communication network with the corresponding type of communication specifications; U2: Report an error and give a prompt; V2: Get the test results and automatically output the test result report.
8. The control method according to claim 5, characterized in that: The diagnostic smart test consists of the following steps: B3: Determine whether the tool is connected; if it is connected, execute step B3; if it is not connected, jump to step X3; C3: configure parameters; D3: Determine whether the parameters are correct. If they are correct, execute step D3; if they are not correct, jump to step X3; E3: Scan and extract the diagnostic instructions to be tested in the test document; F3: Check whether there are any illegal diagnostic instructions. If there are no illegal instructions, execute step H3; if there are illegal instructions, jump to step X3; H3: Determine whether the rack status meets the requirements. If it does, go to step J3; otherwise, jump to step I3; I3: Set the rack status to the required status; J3: Match the correct diagnostic instruction type; K3: Extract the diagnostic instructions to be tested in the test case; L3: Determine whether there are preconditions for sending the message, if yes, execute step J3; otherwise, execute step M3; M3: construct the diagnostic header and diagnostic payload, and assemble them into the diagnostic message to be sent; O3: Send diagnostic instructions; P3: receiving diagnostic feedback; Q3: Search for the feedback message of the target module in the message cache; R3: Determine whether the number of waiting times is less than 3 times, if so, execute step P3; if not, execute step T3; S3: Determine whether the feedback message is negative feedback and needs to continue waiting, if so, execute step R3; if not, execute step T3; T3: Intelligent processing feedback; U3: record original data; V3: Determine whether the feedback meets the requirements, if yes, execute step W23; if no, execute step W13; W13: There is a problem with the labeling; W23: mark pass; X3: Error message; Z13: Save the results.
9. The control method according to claim 8, characterized in that: The intelligent processing feedback of diagnostic intelligent detection includes the following steps: T23: Poll to determine whether the feedback has timed out, if so, execute step T133; if not, execute step T33; T33: Determine whether the message is in an extended format, if so, execute step T413; if not, execute step T423; T413: Process the feedback message according to the extended format; T423: Process the feedback message according to the non-extended format; T53: Determine whether the message is in multi-frame format, if so, execute step T613; if not, execute step T73; T613: Get the first frame of valid data; T623: Send flow control frame; T633: Get continuous frame valid data; T73: Get single frame valid data; T83: Determine whether the message format needs to be reprocessed, if yes, execute step T93; if no, execute step T103; T93: message format conversion / cutting; T103: Determine whether there is historical diagnostic data, if yes, execute step T113; if no, execute step T123; T113: Compare the two diagnostic results to see if they are the same; T123: Returns an array containing valid data.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the control method according to any one of claims 5 to 9 are implemented.
Citation Information
Patent Citations
Method and device used for automatically flashing and testing automobile ECU programs
CN106874055A
Vehicle-borne bus portable automatic test system
CN109375613A
Automatic diagnosis test case generation system and method
CN111983998A
Automobile CAN communication fault test system, method and device and storage medium
CN113259209A
Brush-write test method, device and equipment of vehicle-mounted controller and storage medium
CN115061450A