A hardware-in-the-loop test system and test method for a new energy vehicle controller
By introducing a hardware-in-the-loop testing method based on defect estimation into the vehicle control system of new energy vehicles, using real-time simulation systems and Python scripts, the problem of lack of defect measurement in traditional testing is solved, and testing efficiency and quality assessment are improved. Multiple iterations of the optimization algorithm enabled adequate testing of the newly developed system.
Patent Information
- Application Number
- CN202011245231.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-10
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2040-11-10
AI Technical Summary
The lack of defect measurement in traditional vehicle control system hardware-in-the-loop testing makes it difficult to evaluate test adequacy and quality. Especially for newly developed systems, it is difficult to improve efficiency and quality.
A hardware-in-the-loop testing method for new energy vehicle vehicle control systems based on defect prediction is designed. Through the real-time simulation system and defect prediction method, a test environment is built to conduct hardware-in-the-loop testing, and Python is used to write script files to identify test requirements. Matrix, calculate the defect estimation results, and optimize the test algorithm through multiple iterations until the target is achieved.
It implements defect measurement before hardware-in-the-loop testing to ensure test adequacy and effectiveness of quality assessment. By comparing defect predictions with actual results, the algorithm is adjusted to obtain fully effective test results.
Smart Images

Figure CN114460914B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of hardware-in-the-loop testing systems, and in particular relates to a hardware-in-the-loop testing system and a testing method for a new energy vehicle controller. Background Art
[0002] The vehicle control system is the core control system of new energy vehicles. The safety, power, energy economy and driving comfort of new energy vehicles are closely related to the vehicle control system. As the core control system of new energy vehicles, the hardware-in-the-loop test of the vehicle control system is particularly important for the safety verification of new energy vehicles. How to improve the quality of the hardware-in-the-loop test of the vehicle control system and improve the efficiency of the hardware-in-the-loop test of the vehicle control system is a problem that vehicle control system R&D and management personnel are most concerned about.
[0003] Traditionally, for the hardware-in-the-loop test of the whole vehicle control system, only the hardware-in-the-loop test data is collected, the hardware-in-the-loop test requirements are analyzed, the hardware-in-the-loop test is executed, and the hardware-in-the-loop test summary is not performed before the hardware-in-the-loop test is executed. This is not conducive to the effective evaluation of the test adequacy and test quality after the hardware-in-the-loop test is completed, especially for the newly developed vehicle control system. Summary of the invention
[0004] In order to improve the quality and efficiency of hardware-in-the-loop testing, the present invention designs a hardware-in-the-loop testing method for a whole vehicle control system of a new energy vehicle based on defect prediction.
[0005] In order to solve the above problems existing in the prior art, the technical solution adopted by the present invention is:
[0006] A hardware-in-the-loop test system for a new energy vehicle controller, the system comprising:
[0007] Host computer, test cabinet and vehicle controller.
[0008] The host computer is connected to the test cabinet via Ethernet.
[0009] The test cabinet is communicatively connected to the vehicle controller.
[0010] Furthermore, the test cabinet includes a real-time simulation system, which is used to run the test model, and the test model includes: a vehicle power model, including a vehicle dynamics model, a drive motor model, and a battery model. Among them, the main parameters of the vehicle dynamics model include curb weight, center of mass position, frontal area, tire radius, main reduction ratio, etc.; the main parameters of the drive motor model are the motor rated / peak power efficiency characteristic data; the battery model mainly includes the number of series and parallel connections, and the charge and discharge characteristic data of monomers at different temperatures; the driving environment model includes wind speed, road rolling resistance coefficient, altitude, etc.; the road spectrum model includes various typical working condition data; the driver and cab model is divided into a driver model and a cab model. The driver model simulates the driving habits of different drivers based on the opening information of the accelerator pedal and brake pedal of the actual vehicle road test; the cab model simulates some cab panel signals to facilitate hardware-in-the-loop test input; the extreme working condition model is mainly used to quickly and conveniently set various abnormal fault information.
[0011] Furthermore, the host computer is connected to the vehicle controller through a calibration observation tool for reading the test operation results. The vehicle controller and the test cabinet are connected through a wiring harness, and the signals transmitted by the wiring harness mainly include various hard-wired signals and CAN line signals.
[0012] A hardware-in-the-loop testing method for a new energy vehicle controller comprises the following steps:
[0013] Step A: Obtain the hardware-in-the-loop test data of the vehicle controller, perform hardware-in-the-loop test requirements analysis, and edit the test requirements matrix analysis list.
[0014] The hardware-in-the-loop test data of the vehicle controller includes the control system communication network topology, the vehicle controller communication matrix, the software and hardware interface specifications, and the vehicle controller function specifications.
[0015] The step A comprises: defining the hardware-in-the-loop test scope, hardware-in-the-loop test function items, hardware-in-the-loop test depth and hardware-in-the-loop test target of the vehicle controller in the demand analysis matrix.
[0016] Step B: According to the hardware-in-the-loop test requirements analysis, build the hardware-in-the-loop test environment of the vehicle controller and build the extreme operating condition model according to the test depth described in step A.
[0017] The hardware-in-the-loop test environment includes a vehicle model, a driving environment model, a road spectrum model, a driver and cab model, a battery model, and a motor model.
[0018] Step B1: Build the hardware-in-the-loop test environment of the vehicle controller in the modeling software of the host computer and compile it.
[0019] Step B2: According to the network topology of the vehicle controller, configure the network mapping relationship of the nodes, the mapping relationship between the hardware of the vehicle controller and the hard-wired signal of the test cabinet in the VeriStand test management software of the host computer.
[0020] Step B3: In the Veristand software, deploy the configured hardware-in-the-loop test environment of the vehicle controller to the test cabinet, and the test cabinet simulates the real-time operation of the hardware-in-the-loop test environment of the vehicle controller.
[0021] Step C: Based on the test requirement matrix analysis list and the hardware-in-the-loop test environment, determine the hardware-in-the-loop test defect estimation method and hardware-in-the-loop test result evaluation, and generate the hardware-in-the-loop test defect estimation.
[0022] Step D: Based on the hardware-in-the-loop test defect estimation, set the vehicle controller test architecture, test case design method for each sub-function, number of test cases for each sub-function, test execution priority, and test cutoff criteria.
[0023] Step E: Perform hardware-in-the-loop testing, including the following steps:
[0024] Design test cases according to the set test case design method.
[0025] Execute test cases according to the set test execution priority and record the test case execution results.
[0026] Cut off test execution according to the estimated test cutoff criteria.
[0027] Step F: Hardware-in-the-loop test evaluation.
[0028] According to the test case execution results and hardware-in-the-loop test result evaluation, the hardware-in-the-loop test of the vehicle controller is evaluated to obtain the hardware-in-the-loop test evaluation results.
[0029] Step G: The hardware-in-the-loop test optimization is to improve the hardware-in-the-loop test defect assessment or the set test environment based on the hardware-in-the-loop test evaluation result.
[0030] Step H: Based on the improved hardware-in-the-loop test defect prediction method, repeat steps D to F until the test evaluation reaches the hardware-in-the-loop test goal.
[0031] Further, the step C specifically includes step C1: using Python software to write a script file, identifying the test requirement matrix analysis list and the constructed vehicle controller test environment, determining the hardware-in-the-loop test defect estimation method and defect result measurement criteria, and the hardware-in-the-loop test defect estimation is calculated according to BugNUM;
[0032] Formula 1:
[0033] BugNUM=A×λ A +(IN1+IN2+OUT)×λ Port +MAX{NUM1,NUM2}×λ NUM +Ff×λ f
[0034] In formula 1:
[0035] A is the number of related analog input signals.
[0036] λ A It is the contribution rate of the number of historical statistical simulation input signals to the number of bugs.
[0037] IN1 is the number of hard-wired input signals other than analog signals.
[0038] IN2 is the CAN input signal number.
[0039] OUT is the number of output signals.
[0040] λ PORT It is the contribution rate of historical statistics interface test to the number of bugs.
[0041] NUM1 is the number of related test items.
[0042] NUM2 is the number of components related to the test item.
[0043] λ NUM It is the contribution rate of the historical statistics function related analysis test to the number of bugs.
[0044] Ff is the number of sub-function items of the test item.
[0045] λf is the contribution rate of the number of historical statistical sub-function items to the number of bugs.
[0046] Step C2: Perform hardware-in-the-loop test defect estimation calculation to generate hardware-in-the-loop test defect estimation results.
[0047] Furthermore, in step E, the test case with the highest priority is executed, and if the test cutoff criteria are met, the hardware-in-the-loop test execution result is evaluated.
[0048] Furthermore, in the step F, the hardware-in-the-loop test result evaluation BugEval is calculated. When the absolute value of the hardware-in-the-loop test result evaluation is not less than 27, the setting of the hardware-in-the-loop test environment is analyzed; when the absolute value of the hardware-in-the-loop test result evaluation is less than 27, but the defect prediction is not less than 1.5 times the actual test result, the test defect prediction algorithm is analyzed; when the absolute value of the hardware-in-the-loop test result evaluation is less than 27, and the defect prediction is less than 1.5 times the test result, it is considered that this HIL test is sufficient and the test can be terminated.
[0049] Formula 2:
[0050]
[0051] In formula 2:
[0052] N is the number of test modules divided in the test architecture;
[0053] λ i is the weight of the i-th test module.
[0054] K1 is the BUG prediction coefficient, which is closely related to the complexity of the functional module, the maturity of the test design, and the maturity of the functional design;
[0055] BugRel is the number of test defects corresponding to the actual test of each functional module;
[0056] BugNUM is the estimated number of test defects for each functional module;
[0057] Through formula 2, the hardware-in-the-loop test defect estimation is obtained.
[0058] K1 in formula 2 is obtained according to formula 3.
[0059] Formula 3:
[0060] K1=C1×M1+C2×M2+C3×M3
[0061] In formula 3, the constraint condition is C1+C2+C3=1.
[0062] C1 is the weight of functional complexity;
[0063] M1 is the functional complexity, which is rated according to the type of functions implemented by the functional module.
[0064] C2 is the test design maturity weight;
[0065] M2 is the test design maturity, which is rated based on the historical testing experience of the module and the experience of the test designer.
[0066] C3 is the functional design maturity weight;
[0067] M3 is the functional design maturity, the historical application experience of the design module and the experience rating of the designer.
[0068] The beneficial effects of the present invention are:
[0069] (1) The present invention adds a hardware-in-the-loop test defect prediction algorithm and defect result measurement criteria, so that defect measurement can be performed before the hardware-in-the-loop test is executed, which is beneficial to the effective evaluation of the test adequacy and test quality after the hardware-in-the-loop test is completed, especially for the newly developed vehicle control system.
[0070] (2) The present invention compares and analyzes the distribution of hardware-in-the-loop test defect prediction results with the actual test defect results. When the error is large, it returns to the previous step and adjusts the algorithm. After multiple tests, sufficient and effective test results can be obtained. BRIEF DESCRIPTION OF THE DRAWINGS
[0071] Figure 1 It is the hardware-in-the-loop test system of the vehicle controller in the present invention;
[0072] Figure 2 This is the hardware-in-the-loop test process of the vehicle controller in the present invention;
[0073] Figure 3 Setting the hardware-in-the-loop test environment in the present invention;
[0074] Figure 4 This is the hardware-in-the-loop test defect assessment in the present invention. DETAILED DESCRIPTION
[0075] The present invention will be further described below with reference to the accompanying drawings and the accompanying drawings.
[0076] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, 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 described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.
[0077] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0078] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0079] In the description of the embodiments of the present invention, the terms "first", "second", "third", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0080] In the description of the embodiments of the present invention, "plurality" means at least 2.
[0081] In the description of the embodiments of the present invention, it is also necessary to explain that, unless otherwise clearly specified and limited, the terms "set", "install", "connect", and "connect" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal connection of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0082] The specific implementation of the present invention is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described here is only used to illustrate and explain the present invention, and is not used to limit the present invention.
[0083] Embodiment 1:
[0084] like Figure 1 As shown, a new energy vehicle controller hardware-in-the-loop test system, the system includes:
[0085] Host computer, test cabinet and vehicle controller.
[0086] The host computer is connected to the test cabinet via Ethernet.
[0087] The test cabinet is communicatively connected to the vehicle controller.
[0088] The test cabinet includes a real-time simulation system, which is used to run a test model. The test model includes: a vehicle power model, a driving environment model, a road spectrum model, a driver and cab model, and an extreme operating condition model.
[0089] The host computer is connected to the vehicle controller through a calibration observation tool to read the test operation results.
[0090] The vehicle controller and the test cabinet are connected by a wiring harness, and the signals transmitted by the wiring harness mainly include various hard-wire signals and CAN line signals.
[0091] Embodiment 2:
[0092] like Figure 1-4 As shown, a new energy vehicle controller hardware-in-the-loop test system, the system includes:
[0093] Host computer, test cabinet and vehicle controller.
[0094] The host computer is connected to the test cabinet via Ethernet.
[0095] The test cabinet is communicatively connected to the vehicle controller.
[0096] The test cabinet includes a real-time simulation system, which is used to run the test model. The test model includes: a vehicle power model, a driving environment model, a road spectrum model, a driver and cab model, and an extreme working condition model. The vehicle power model includes a vehicle dynamics model, a drive motor model, and a battery model. Among them, the main parameters of the vehicle dynamics model include curb weight, center of mass position, frontal area, tire radius, main reduction ratio, etc.; the main parameters of the drive motor model are the motor rated / peak power efficiency characteristic data; the battery model mainly includes the number of series and parallel connections and the charge and discharge characteristic data of monomers at different temperatures; the driving environment model includes wind speed, road rolling resistance coefficient, altitude, etc.; the road spectrum model includes various typical working condition data; the driver and cab model is divided into a driver model and a cab model. The driver model simulates the driving habits of different drivers according to the opening information of the accelerator pedal and the brake pedal of the actual vehicle road test; the cab model simulates some cab panel signals to facilitate hardware-in-the-loop test input; the extreme working condition model is mainly used to quickly and conveniently set various abnormal fault information.
[0097] The host computer is connected to the vehicle controller through a calibration observation tool to read the test operation results.
[0098] The vehicle controller and the test cabinet are connected by a wiring harness, and the signals transmitted by the wiring harness mainly include various hard-wire signals and CAN line signals.
[0099] A hardware-in-the-loop testing method for a new energy vehicle controller comprises the following steps:
[0100] Step A: Obtain the hardware-in-the-loop test data of the vehicle controller, perform hardware-in-the-loop test requirements analysis, and edit the test requirements matrix analysis list (as shown in Table 1).
[0101]
[0102] Table 1
[0103] The hardware-in-the-loop test data of the vehicle controller includes the control system communication network topology, the vehicle controller communication matrix, the software and hardware interface specifications, and the vehicle controller function specifications.
[0104] The step A comprises: defining the hardware-in-the-loop test scope, test function items, test depth and test objectives of the vehicle controller in the demand analysis matrix.
[0105] Step B: According to the hardware-in-the-loop test requirements analysis, build the hardware-in-the-loop test environment of the vehicle controller and build the extreme operating condition model according to the test depth described in step A.
[0106] The hardware-in-the-loop test environment includes a vehicle model, a driving environment model, a road spectrum model, a driver and cab model, a battery model, and a motor model.
[0107] Step B specifically includes:
[0108] Step B1: Build the hardware-in-the-loop test environment of the vehicle controller in the modeling software of the host computer and compile it.
[0109] Step B2: According to the network topology of the vehicle controller, configure the network mapping relationship of the nodes, the mapping relationship between the hardware of the vehicle controller and the hard-wired signal of the test cabinet in the VeriStand test management software of the host computer.
[0110] Step B3: In the Veristand software, deploy the configured hardware-in-the-loop test environment of the vehicle controller to the test cabinet, and the test cabinet simulates the real-time operation of the hardware-in-the-loop test environment of the vehicle controller.
[0111] Step C: Based on the test requirement matrix analysis list and the hardware-in-the-loop test environment, determine the hardware-in-the-loop test defect estimation method and hardware-in-the-loop test result evaluation, and generate the hardware-in-the-loop test defect estimation.
[0112] The step C specifically includes
[0113] Step C1: Use Python software to write a script file, identify the test requirement matrix analysis list and the constructed vehicle controller test environment, determine the hardware-in-the-loop test defect estimation method and defect result measurement criteria, and the hardware-in-the-loop test defect estimation is calculated based on BugNUM;
[0114] Formula 1:
[0115] BugNUM=A×λ A +(IN1+IN2+OUT)×λ Port +MAX{NUM1,NUM2}×λ NUM +Ff×λ f
[0116] In formula 1:
[0117] A is the number of relevant analog input signals;
[0118] λ A The contribution rate of the number of input signals to the number of bugs for historical statistics;
[0119] IN1 is the number of hard-wire input signals other than analog signals;
[0120] IN2 is the number of CAN input signals;
[0121] OUT is the number of output signals;
[0122] λ PORT To calculate the contribution rate of interface testing to the number of bugs in historical statistics;
[0123] NUM1 is the number of related test items;
[0124] NUM2 is the number of components related to the test item;
[0125] λ NUM The contribution rate of the historical statistics function related analysis test to the number of bugs;
[0126] Ff is the number of sub-function items of the test item;
[0127] λf is the contribution rate of the number of historical statistical sub-function items to the number of bugs;
[0128] Step C2: Perform hardware-in-the-loop test defect estimation calculation to generate hardware-in-the-loop test defect estimation results.
[0129] Step D: Based on the hardware-in-the-loop test defect estimation, set the vehicle controller test architecture, test case design method for each sub-function, number of test cases for each sub-function, test execution priority, and test cutoff criteria.
[0130] Step E: Perform hardware-in-the-loop testing, including the following steps:
[0131] Design test cases according to the set test case design method.
[0132] Execute test cases according to the set test execution priority and record the test case execution results.
[0133] Cut off test execution according to the estimated test cutoff criteria.
[0134] In step E, the test case with the highest priority is executed, and if the test cutoff criteria are met, the hardware-in-the-loop test execution result is evaluated.
[0135] Step F: Hardware-in-the-loop test evaluation.
[0136] According to the test case execution results and hardware-in-the-loop test result evaluation, the hardware-in-the-loop test of the vehicle controller is evaluated to obtain the hardware-in-the-loop test evaluation results.
[0137] In the step F, the hardware-in-the-loop test result evaluation BugEval is calculated. When the absolute value of the hardware-in-the-loop test result evaluation is not less than 27, the setting of the hardware-in-the-loop test environment is analyzed; when the absolute value of the hardware-in-the-loop test result evaluation is less than 27, but the defect prediction is not less than 1.5 times the actual test result, the test defect prediction algorithm is analyzed; when the absolute value of the hardware-in-the-loop test result evaluation is less than 27, and the defect prediction is less than 1.5 times the test result, it is considered that this HIL test is sufficient and the test can be terminated.
[0138] Formula 2:
[0139]
[0140] In formula 2:
[0141] N is the number of test modules divided in the test architecture;
[0142] λ i is the weight of the i-th test module.
[0143] K1 is the BUG prediction coefficient, which is closely related to the complexity of the functional module, the maturity of the test design, and the maturity of the functional design;
[0144] BugRel is the number of test defects corresponding to the actual test of each functional module;
[0145] BugNUM is the estimated number of test defects for each functional module;
[0146] Through formula 2, the hardware-in-the-loop test defect estimation is obtained.
[0147] K1 in formula 2 is obtained according to formula 3.
[0148] Formula 3:
[0149] K1=C1×M1+C2×M2+C3×M3
[0150] In formula 3, the constraint condition is C1+C2+C3=1.
[0151] C1 is the weight of functional complexity;
[0152] M1 is the functional complexity, which is rated according to the type of functions implemented by the functional module.
[0153] C2 is the test design maturity weight;
[0154] M2 is the test design maturity, which is rated based on the historical testing experience of the module and the experience of the test designer.
[0155] C3 is the functional design maturity weight;
[0156] M3 is the functional design maturity, the historical application experience of the design module and the experience rating of the designer.
[0157] Step G: The hardware-in-the-loop test optimization: based on the hardware-in-the-loop test evaluation results, improve the hardware-in-the-loop test defect assessment or improve the set test environment.
[0158] Step H: Based on the improved hardware-in-the-loop test defect prediction method, repeat steps D to F until the test evaluation reaches the hardware-in-the-loop test goal.
[0159] The present invention is not limited to the above-mentioned optional implementation modes. Anyone can derive other various forms of products under the inspiration of the present invention. However, no matter what changes are made in the shape or structure, all technical solutions that fall within the scope defined by the claims of the present invention fall within the protection scope of the present invention.
Claims
1. A testing method for a hardware-in-the-loop testing system for a new energy vehicle controller, characterized in that: The test system comprises: Host computer, test cabinet and vehicle controller; The host computer is connected to the test cabinet via Ethernet; The test cabinet is communicatively connected with the vehicle controller; The test cabinet includes a real-time simulation system, which is used to run a test model, wherein the test model includes: a vehicle power model, a driving environment model, a road spectrum model, a driver and cab model, and an extreme operating condition model; The test method comprises the following steps: Step A: Obtain the hardware-in-the-loop test data of the vehicle controller, perform hardware-in-the-loop test requirements analysis, and edit the test requirements matrix analysis list; Step B: Build the hardware-in-the-loop test environment of the vehicle controller according to the hardware-in-the-loop test requirements analysis; Step C: Based on the test requirement matrix analysis list and the hardware-in-the-loop test environment of the vehicle controller, determine the hardware-in-the-loop test defect estimation method and hardware-in-the-loop test result evaluation, and generate the hardware-in-the-loop test defect estimation; The step C specifically includes step C1: using Python software to write a script file, identifying the test requirement matrix analysis list and the constructed vehicle controller test environment, determining the hardware-in-the-loop test defect estimation method and defect result measurement criteria, and the hardware-in-the-loop test defect estimation is calculated according to BugNUM; Formula 1: BugNUM=A×λ A +(IN1+IN2+OUT)×λ Port +MAX{NUM1,NUM2}×λ NUM +Ff×λ f In formula 1: A is the number of related analog input signals; λ A The contribution rate of the number of analog input signals to the number of bugs for historical statistics; IN1 is the number of hard-wire input signals other than analog signals; IN2 is the number of CAN input signals; OUT is the number of output signals; λ PORT To record the contribution rate of interface testing to the number of bugs in history; NUM1 is the number of related test items; NUM2 is the number of components related to the test item; λ NUM The contribution rate of the historical statistics function related analysis test to the number of bugs; Ff is the number of sub-function items of the test item; λf is the contribution rate of the number of historical statistical sub-function items to the number of bugs; Step C2: performing hardware-in-the-loop test defect estimation calculation to generate hardware-in-the-loop test defect estimation results; Step D: Based on the hardware-in-the-loop test defect estimation, set the vehicle controller test architecture, test case design method for each sub-function, number of test cases for each sub-function, test execution priority, and test cutoff criteria; Step E: Hardware-in-the-loop testing: design test cases according to the set test case design method; execute test cases according to the test execution priority and record the test case execution results; terminate the test execution according to the estimated test cutoff criteria; Step F: hardware-in-the-loop test evaluation, based on the test case execution results and the hardware-in-the-loop test result evaluation, evaluate the hardware-in-the-loop test of the vehicle controller and obtain the hardware-in-the-loop test evaluation result; In the step F, the hardware-in-the-loop test result evaluation BugEval is calculated. When the absolute value of the hardware-in-the-loop test result evaluation is not less than 27, the setting of the hardware-in-the-loop test environment is analyzed; when the absolute value of the hardware-in-the-loop test result evaluation is less than 27, but the defect estimation is not less than 1.5 times the actual test result, the test defect estimation algorithm is analyzed; when the absolute value of the hardware-in-the-loop test result evaluation is less than 27, and the defect estimation is less than 1.5 times the test result, it is considered that this HIL test is sufficient and the test is terminated; Formula 2: In formula 2: N is the number of test modules divided in the test architecture; λ i is the weight of the i-th test module; K1 is the BUG prediction coefficient, which is closely related to the complexity of the functional module, the maturity of the test design, and the maturity of the functional design; BugRel is the number of test defects corresponding to the actual test of each functional module; BugNUM is the estimated number of test defects for each functional module; The hardware-in-the-loop test defect estimation is obtained through formula 2; K1 in formula 2 is obtained according to formula 3; Formula 3: K1=C1×M1+C2×M2+C3×M3 In formula 3, the constraint condition is C1+C2+C3=1. C1 is the weight of functional complexity; M1 is the functional complexity, which is rated according to the type of functions implemented by the functional module; C2 is the test design maturity weight; M2 is the test design maturity, which is rated based on the historical testing experience of the module and the experience of the test designer; C3 is the functional design maturity weight; M3 is the functional design maturity, the historical application experience of the design module and the experience rating of the designer; Step G: Hardware-in-the-loop test optimization, based on the hardware-in-the-loop test evaluation results, improving the hardware-in-the-loop test defect estimation or improving the set hardware-in-the-loop test environment; Step H: Based on the improved hardware-in-the-loop test defect prediction algorithm, repeat steps D to F until the hardware-in-the-loop test evaluation result reaches the hardware-in-the-loop test target.
2. The testing method according to claim 1, characterized in that: The host computer is connected to the vehicle controller through a calibration observation tool to read the test operation results.
3. The testing method according to claim 2, characterized in that: The vehicle controller and the test cabinet are connected by a wiring harness, and the signals transmitted by the wiring harness mainly include various hard-wire signals and CAN line signals.
4. The testing method according to claim 1, characterized in that: In step A, the hardware-in-the-loop test data of the vehicle controller includes the control system communication network topology, the vehicle controller communication matrix, the software and hardware interface specifications, and the vehicle controller function specifications.
5. The testing method according to claim 1, characterized in that: The step A includes: defining the hardware-in-the-loop test scope, hardware-in-the-loop test function items, hardware-in-the-loop test depth and hardware-in-the-loop test target of the vehicle controller in the hardware-in-the-loop test requirement analysis.
6. The testing method according to claim 5, characterized in that: Step B specifically includes: Step B1: Build the hardware-in-the-loop test environment of the vehicle controller in the modeling software of the host computer and compile it; Step B2: According to the network topology of the vehicle controller, configure the network mapping relationship of the nodes, the mapping relationship between the hardware of the vehicle controller and the hard-wire signal of the test cabinet in the VeriStand test management software of the host computer; Step B3: In the Veristand software, deploy the configured hardware-in-the-loop test environment of the vehicle controller to the test cabinet, and the test cabinet simulates the real-time operation of the hardware-in-the-loop test environment of the vehicle controller.
7. The testing method according to claim 1, characterized in that: In the step E, the execution of the test case with the highest priority is completed and the test cutoff criteria are met, and then the hardware-in-the-loop test execution result is evaluated.
Citation Information
Patent Citations
Method, device and system for testing ECU (Electronic Control Unit)
CN103020401A
Calibration system and calibration method for whole automobile controller of electric automobile
CN105511326A
In-loop simulation method and device and control platform
CN110837231A
Real-time simulation and test method for control system of automatic driving truck
CN110888417A
Hardware-in-the-loop test platform for vehicle control unit and method thereof
CN111007840A
