Vacuum pump control system hardware-in-the-loop test method and device and terminal equipment
By building a vacuum pump simulation model in the ring system in the hardware, simulating different working conditions and conducting accuracy and fault diagnosis tests, the accuracy and comprehensiveness of the vacuum pump control system test are solved, and efficient test results are achieved.
Patent Information
- Application Number
- CN202510556367.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-29
- Publication Date
- 2025-08-12
AI Technical Summary
The existing vacuum pump control system testing methods rely on manual vehicle operation, resulting in insufficient testing accuracy and comprehensiveness, and the inability to fully simulate the fault conditions of the vehicle vacuum pump, and the test results are not good.
By constructing a vacuum pump simulation model of the hardware in-ring system, different working conditions of the vacuum pump are simulated, including normal, pump body failure, sensor failure and pump body leakage, the vacuum degree pressure value is calculated using vehicle control variables, and accuracy test and fault diagnosis are carried out to generate the test results of the vacuum pump controller.
It improves the comprehensiveness and convenience of vacuum pump controller testing, reduces physical testing resources and costs, and ensures the accuracy and reliability of test results.
Smart Images

Figure CN120469385A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of vacuum pump control testing, and in particular to a vacuum pump control system hardware-in-the-loop testing method, device and terminal equipment. Background Art
[0002] As a crucial component for electric vehicle safety, the electric vacuum pump is powered by the vehicle's onboard power supply, driving the motor in the pump to generate vacuum. This provides a single, reliable vacuum source for the brake system, thereby improving the vehicle's braking performance. The effectiveness of the vacuum pump's boost depends on the relative vacuum level. The vacuum pump control system must maintain this relative vacuum level within a reasonable range by controlling the motor.
[0003] The existing testing method for vacuum pump control systems verifies the vacuum pump control system through manual operation of a real vehicle. Due to manual real vehicle operation and vehicle safety, high control precision and accuracy are required. However, the precision and accuracy of manual real vehicle testing are affected by human factors and cannot meet the testing requirements. At the same time, manual real vehicle operation cannot fully simulate the fault conditions of the vehicle vacuum pump, resulting in incomplete testing and poor test results. Summary of the Invention
[0004] The present invention provides a hardware-in-the-loop testing method for a vacuum pump control system, so as to improve the comprehensiveness and convenience of the performance test of the vacuum pump controller.
[0005] In order to solve the above technical problems, an embodiment of the present invention provides a vacuum pump control system hardware-in-the-loop testing method, comprising:
[0006] Building a vacuum pump simulation model based on hardware-in-the-loop system
[0007] Acquiring a working condition to be tested, initializing simulation parameters of the vacuum pump simulation model based on the working condition to be tested, and acquiring vehicle control variables based on the working condition to be tested;
[0008] Calculating a vacuum pressure value based on the vacuum pump simulation model and the vehicle control variable;
[0009] Performing an accuracy test and a fault diagnosis test on the vacuum pump controller based on the working condition to be tested and the vacuum pressure value, and obtaining an accuracy test result and a fault diagnosis result;
[0010] A vacuum pump controller test result is generated based on the accuracy test result and the fault diagnosis result.
[0011] The present invention constructs a vacuum pump simulation model in a hardware-in-the-loop system and initializes simulation parameters of the vacuum pump simulation model according to the working conditions to be tested, so as to simulate different working conditions of the vacuum pump, and then reproduce different working conditions of the vacuum pump in a simulation environment, so as to test the fault response and response accuracy of the vacuum pump controller under different working conditions, and test the performance of the vacuum pump controller according to the response logic of the vacuum pump to various working conditions, thereby improving the comprehensiveness of the test of the vacuum pump controller. At the same time, testing based on the vacuum pump simulation model reduces the resources and costs required for physical testing and improves the convenience of testing.
[0012] Furthermore, the working conditions to be tested include normal working conditions, pump failure working conditions, sensor failure working conditions, and pump leakage working conditions; obtaining the working conditions to be tested and setting simulation parameters of the vacuum pump simulation model based on the working conditions to be tested include:
[0013] Acquire a working condition to be tested, and when the working condition to be tested is a pump failure working condition, set the vacuum extraction rate of the vacuum pump simulation model to zero;
[0014] When the working condition to be measured is a sensor failure working condition, setting the vacuum pump pressure parameter of the vacuum pump simulation model to a first pressure value;
[0015] When the working condition to be measured is a pump body leakage working condition, the vacuum pump pressure parameter of the vacuum pump simulation model is reduced within a preset time period.
[0016] By introducing these fault conditions into the simulation model, the present invention can comprehensively evaluate the response capability and fault diagnosis function of the vacuum pump controller under various abnormal conditions without affecting the actual vehicle system, thereby improving the comprehensiveness and convenience of the test.
[0017] Furthermore, the vehicle control variables include brake pedal opening and brake pedal opening; the obtaining of the vehicle control variables based on the working condition to be tested, and the calculation of the vacuum pressure value based on the vehicle control variables and the vacuum pump simulation model include:
[0018] When the working condition to be measured is a normal working condition and a pump failure working condition, obtaining a brake pedal opening, calculating a vacuum consumption value based on the vacuum pump simulation model and the brake pedal opening, and calculating a vacuum pressure value based on the vacuum consumption value;
[0019] When the working condition to be measured is a sensor failure working condition, obtaining a brake pedal opening, and obtaining a vacuum pressure value based on a vacuum pump pressure parameter of the vacuum pump simulation model;
[0020] When the working condition to be measured is a pump body leakage working condition, a vacuum degree pressure value is obtained based on the vacuum pump pressure parameter of the vacuum pump simulation model.
[0021] By acquiring and utilizing vehicle control variables and combining them with a vacuum pump simulation model to calculate vacuum pressure values, the present invention helps to realistically reproduce the impact of driving operations on vacuum levels during testing, accurately simulate various operating conditions and fault scenarios, and comprehensively evaluate the performance and reliability of the vacuum pump controller.
[0022] Furthermore, performing an accuracy test and a fault diagnosis test on the vacuum pump controller based on the working condition to be tested and the vacuum pressure value to obtain an accuracy test result and a fault diagnosis result includes:
[0023] When the working condition to be tested is a normal working condition, performing an accuracy test on the vacuum pump controller based on the vacuum pressure value to obtain an accuracy test result; the accuracy test result includes a control response logic of the vacuum pump controller;
[0024] When the working condition to be tested is a pump body failure condition, a sensor failure condition or a pump body leakage condition, a fault diagnosis test is performed on the vacuum pump controller based on the vacuum pressure value to obtain a fault diagnosis result, which includes the fault response logic of the vacuum pump controller and the vacuum pump fault type.
[0025] This method evaluates the controller's accuracy and stability by comparing vacuum pressure values with the controller's expected response under normal operating conditions, ensuring its reliability under standard operating conditions. Simulating fault conditions, such as pump failure, sensor failure, and pump leakage, analyzes the controller's response to abnormalities and verifies the effectiveness of its fault detection and handling logic.
[0026] Furthermore, when the working condition to be tested is a normal working condition, the response logic is an accuracy response logic, and generating a vacuum pump controller test result based on the response logic, the accuracy test result, and the fault diagnosis result includes:
[0027] When the control response logic of the accuracy test result is consistent with the accuracy response logic, the vacuum pump controller passes the verification;
[0028] The accuracy response logic includes the vacuum pump controller enabling a relay when the vacuum pressure value is lower than a first threshold value, so that the relay increases the vacuum pressure value, and stopping enabling the relay when the vacuum pressure value is greater than a second threshold value.
[0029] The present invention verifies the control accuracy of the controller under different working conditions by comparing its actual response with the preset accuracy response logic, ensuring that it operates correctly according to the predetermined logic. At the same time, based on the accuracy test results and the test results analysis generated by the preset response logic, the performance and reliability of the vacuum pump controller can be comprehensively evaluated.
[0030] Furthermore, when the working condition to be tested is a pump failure working condition, the response logic is a pump failure response logic, and generating a vacuum pump controller test result based on the response logic, the accuracy test result, and the fault diagnosis result includes:
[0031] When the vacuum pump fault type in the fault diagnosis result is vacuum pump failure and the fault response logic is consistent with the pump body failure response logic, the vacuum pump controller passes the verification;
[0032] The pump failure response logic includes: when the vacuum pressure value is lower than a first threshold, the vacuum pump controller enables a relay; within a preset first time period, the vacuum pressure value remains unchanged; and a vacuum pump failure is recorded.
[0033] The present invention presets the pump failure response logic and clearly stipulates that when the vacuum pressure value is lower than the first threshold value, the controller should enable the relay and keep the vacuum pressure value unchanged within a preset time, so as to accurately identify the situation of pump failure, enable the system to accurately detect the vacuum pump failure, and compare it with the fault diagnosis results to ensure that the fault handling function of the controller meets expectations.
[0034] Furthermore, when the working condition to be tested is a sensor failure working condition, the response logic is a sensor failure response logic, and generating a vacuum pump controller test result based on the response logic, the accuracy test result, and the fault diagnosis result includes:
[0035] When the vacuum pump fault type in the fault diagnosis result is sensor failure and the fault response logic is consistent with the sensor failure response logic, the vacuum pump controller passes the verification;
[0036] The sensor failure response logic includes the vacuum pump controller acquiring a brake pedal opening signal, and if the vacuum pump pressure value remains unchanged within a preset second time period, recording sensor failure.
[0037] The present invention monitors the brake pedal opening signal and requires the vacuum pump pressure value to remain unchanged within a preset second time period. The response logic can accurately distinguish between sensor failures and avoid misjudgments caused by short-term fluctuations or transient anomalies, thereby ensuring that faults are only recorded when there is a real sensor failure.
[0038] Furthermore, when the working condition to be tested is a pump leakage working condition, the response logic is a pump leakage response logic, and generating a vacuum pump controller test result based on the response logic, the accuracy test result, and the fault diagnosis result includes:
[0039] When the vacuum pump fault type in the fault diagnosis result is vacuum pump leakage and the fault response logic is consistent with the pump body leakage response logic, the vacuum pump controller passes the verification;
[0040] The pump body leakage response logic includes recording vacuum pump leakage when the vacuum pump controller does not obtain the brake pedal opening signal and detects that the vacuum pressure value decreases.
[0041] The present invention records pump leakage when no brake pedal opening signal is obtained and the vacuum pressure value decreases, thereby effectively distinguishing between vacuum changes under normal braking conditions and vacuum reduction caused by pump leakage, thereby avoiding misjudgment.
[0042] In a second aspect, the present invention provides a hardware-in-the-loop test device for a vacuum pump control system, comprising: a model building module, a parameter setting module, a vacuum degree calculation module, a simulation module, and a result generation module;
[0043] The model building module is used to build a vacuum pump simulation model based on the hardware-in-the-loop system and initialize the vacuum pump simulation model;
[0044] The parameter setting module is used to obtain the working conditions to be tested and set the simulation parameters of the vacuum pump simulation model based on the working conditions to be tested;
[0045] The vacuum degree calculation module is used to obtain a vehicle control variable based on the working condition to be tested, and calculate a vacuum degree pressure value based on the vehicle control variable and the vacuum pump simulation model;
[0046] The simulation module is used to perform an accuracy test and a fault diagnosis test on the vacuum pump controller based on the working condition to be tested and the vacuum pressure value, and obtain an accuracy test result and a fault diagnosis result;
[0047] The result generation module is used to obtain the response logic corresponding to each working condition based on the working condition to be tested, and generate a vacuum pump controller test result based on the response logic, the accuracy test result and the fault diagnosis result.
[0048] In a third aspect, the present invention provides a terminal device comprising a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, it implements a vacuum pump control system hardware-in-the-loop testing method as described in claims 1 to 8. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 A flowchart of a hardware-in-the-loop testing method for a vacuum pump control system provided in an embodiment of the present invention;
[0050] Figure 2A schematic structural diagram of a vacuum pump simulation model provided by an embodiment of the present invention;
[0051] Figure 3 A schematic diagram of a test process under normal working conditions provided by an embodiment of the present invention;
[0052] Figure 4 A schematic diagram of a pump failure test process provided by an embodiment of the present invention;
[0053] Figure 5 A schematic diagram of a sensor failure test process provided by an embodiment of the present invention;
[0054] Figure 6 A schematic diagram of a sensor failure test process provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0055] The following embodiments of the present invention are described in further detail with reference to the accompanying drawings and examples. The following examples are used to illustrate the present invention but are not intended to limit the scope of the present invention.
[0056] The terms "first," "second," and the like in the specification, claims, and drawings of this application are used to distinguish between different objects, not to describe a particular order. Furthermore, the terms "including," "having," and any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or apparatus comprising a series of steps or elements is not limited to the listed steps or elements, but may optionally include steps or elements not listed, or may optionally include other steps or elements inherent to the process, method, product, or apparatus.
[0057] References herein to "embodiments" mean that a particular feature, structure, or characteristic described in connection with the embodiments may be included in at least one embodiment of the present application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it constitute an independent or alternative embodiment that is mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0058] Example 1
[0059] See also Figure 1 , Figure 1 101 to 105, as follows:
[0060] Step 101: constructing a vacuum pump simulation model based on a hardware-in-the-loop system, and initializing the vacuum pump simulation model;
[0061] In this embodiment, the vacuum pump controller is tested using the Dspace hardware-in-the-loop test system. The vacuum pump is simulated on the hardware-in-the-loop system to build a simplified vacuum pump simulation model that does not consider temperature changes, leakage, and non-ideal gas.
[0062] Please refer to Figure 2 , Figure 2 A schematic structural diagram of a vacuum pump simulation model provided in an embodiment of the present invention.
[0063] In this embodiment, a vacuum pump simulation model is built using Simulink. The model runs on a real-time machine in the DSpace system and provides real-time feedback on the current pressure value of the vacuum pump based on the driver's brake pedal opening and the working status of the relay controlled by the vacuum pump.
[0064] In this embodiment, the vacuum pump simulation model includes a first module, a second module and a third module, wherein the first module is used to calculate the increased vacuum degree according to the time when the relay is closed, and the second module is used to calculate the consumed true vacuum value according to the brake pedal opening. The outputs of the first module and the second module are transmitted to the third module, and the third module is used to select the source of the vacuum degree, wherein the source of the vacuum degree includes the outputs of the first module and the second module and the vacuum pump pressure value directly set by the system.
[0065] Step 102: Acquire a working condition to be tested, and set simulation parameters of the vacuum pump simulation model based on the working condition to be tested;
[0066] In this embodiment, several working conditions to be tested are set based on the actual working conditions of the vacuum pump. During each test, the working conditions to be tested are obtained, and the vacuum pump simulation model is adjusted according to the working conditions to be tested, so that the vacuum pump simulation model can simulate the scenario of the working conditions.
[0067] In this embodiment, the working conditions to be tested include normal working conditions, pump failure working conditions, sensor failure working conditions, and pump leakage working conditions; obtaining the working conditions to be tested and setting simulation parameters of the vacuum pump simulation model based on the working conditions to be tested include:
[0068] Acquire a working condition to be tested, and when the working condition to be tested is a pump failure working condition, set the vacuum extraction rate of the vacuum pump simulation model to zero;
[0069] When the working condition to be measured is a sensor failure working condition, setting the vacuum pump pressure parameter of the vacuum pump simulation model to a first pressure value;
[0070] When the working condition to be measured is a pump body leakage working condition, the vacuum pump pressure parameter of the vacuum pump simulation model is reduced within a preset time period.
[0071] In this embodiment, the normal working condition indicates that the vacuum pump operates normally; the pump body failure working condition indicates that the vacuum pump cannot draw vacuum; the sensor failure working condition indicates that the vacuum pump pressure sensor is abnormal; and the pump body leakage working condition indicates that the vacuum pump is leaking.
[0072] In this embodiment, the vacuum extraction rate of the vacuum pump simulation model is set to zero to simulate the failure of the vacuum pump to extract vacuum; the vacuum pump pressure parameter of the vacuum pump simulation model is set to a fixed first pressure value to simulate the abnormality of the vacuum pump pressure sensor; and the vacuum pump leakage failure is simulated by reducing the vacuum pump pressure parameter of the vacuum pump simulation model within a preset time period.
[0073] In this embodiment, by introducing these fault scenarios into the simulation model, the response capability and fault diagnosis function of the vacuum pump controller under various abnormal conditions can be comprehensively evaluated without affecting the actual system, thereby improving the comprehensiveness and convenience of the test.
[0074] Step 103: obtaining a vehicle control variable based on the working condition to be tested, and calculating a vacuum pressure value based on the vehicle control variable and the vacuum pump simulation model;
[0075] In this embodiment, the vehicle control variables include the brake pedal opening and the brake pedal opening.
[0076] In this embodiment, the brake pedal opening directly affects the braking system's operating intensity, which in turn affects the vacuum pump's vacuum consumption. By acquiring the brake pedal opening and inputting it into the vacuum pump simulation model, the vacuum consumption and vacuum pressure values can be accurately calculated, simulating the actual impact of the driver's braking operation on the vacuum level.
[0077] In this embodiment, the brake pedal opening also affects the operating state of the brake system. By acquiring the brake pedal opening and combining it with the pressure parameters of the vacuum pump simulation model, we can simulate the impact of different braking operations on vacuum pressure, ensuring comprehensive testing scenarios.
[0078] In this embodiment, under normal operating conditions and pump failure conditions, by obtaining the brake pedal opening and calculating the vacuum consumption value, the normal changes in vacuum degree or changes caused by pump failure can be simulated, and the response accuracy and response logic of the controller in these situations can be evaluated.
[0079] In this embodiment, under the conditions of sensor failure and pump leakage, the vacuum pressure value is obtained directly based on the pressure parameters of the vacuum pump simulation model to simulate the impact of sensor failure or pump leakage on the vacuum degree and test the fault diagnosis capability of the controller.
[0080] In this embodiment, actual vehicle control variables are input into the simulation model to generate test data that is highly consistent with actual driving behavior, thereby ensuring the accuracy of the test results. In addition, the test process covers normal operating conditions, fault conditions, and various driving operations to ensure a comprehensive evaluation of the vacuum pump controller performance.
[0081] In this embodiment, obtaining and utilizing vehicle control variables and calculating vacuum pressure values in combination with a vacuum pump simulation model helps to realistically reproduce the impact of driving operations on vacuum during testing, accurately simulate various operating conditions and fault scenarios, and comprehensively evaluate the performance and reliability of the vacuum pump controller.
[0082] Step 104: performing an accuracy test and a fault diagnosis test on the vacuum pump controller based on the working condition to be tested and the vacuum pressure value, and obtaining an accuracy test result and a fault diagnosis result;
[0083] In this embodiment, the accuracy test and fault diagnosis test are performed on the vacuum pump controller based on the working condition to be tested and the vacuum pressure value, and the accuracy test result and the fault diagnosis result are obtained, including:
[0084] When the working condition to be tested is a normal working condition, performing an accuracy test on the vacuum pump controller based on the vacuum pressure value to obtain an accuracy test result; the accuracy test result includes a control response logic of the vacuum pump controller;
[0085] When the working condition to be tested is a pump body failure condition, a sensor failure condition or a pump body leakage condition, a fault diagnosis test is performed on the vacuum pump controller based on the vacuum pressure value to obtain a fault diagnosis result, which includes the fault response logic of the vacuum pump controller and the vacuum pump fault type.
[0086] In this embodiment, under normal operating conditions, the accuracy and stability of the controller are evaluated by comparing the vacuum pressure value with the expected response of the controller to ensure its reliability under standard operating conditions.
[0087] In this embodiment, when simulating fault conditions (such as pump failure, sensor failure, and pump leakage), the controller's response capability to abnormal conditions is analyzed to verify the effectiveness of its fault detection and processing logic.
[0088] Step 105: Acquire response logic corresponding to each working condition based on the working condition to be tested, and generate a vacuum pump controller test result based on the response logic, the accuracy test result, and the fault diagnosis result.
[0089] In this embodiment, when the working condition to be tested is a normal working condition, the response logic is an accuracy response logic, and generating a vacuum pump controller test result based on the response logic, the accuracy test result, and the fault diagnosis result includes:
[0090] When the control response logic of the accuracy test result is consistent with the accuracy response logic, the vacuum pump controller passes the verification;
[0091] The accuracy response logic includes the vacuum pump controller enabling a relay when the vacuum pressure value is lower than a first threshold value, so that the relay increases the vacuum pressure value, and stopping enabling the relay when the vacuum pressure value is greater than a second threshold value.
[0092] Please refer to Figure 3 , Figure 3 A schematic diagram of a test flow under normal operating conditions provided by an embodiment of the present invention.
[0093] Under normal working conditions, the system initializes the vacuum pump simulation model. The initialized vacuum pump simulation model defaults to normal working conditions. When the test starts, the vacuum pump model calculates the vacuum consumption value based on the pedal opening, obtains the current vacuum degree of the vacuum pump, and transmits the current vacuum degree to the vacuum pump controller through the HIL test cabinet. Subsequently, after the vacuum pump controller receives the vacuum degree, if the vacuum degree pressure value is lower than the first threshold, the vacuum pump controller enables the relay. After the HIL cabinet receives the relay enable signal, the vacuum degree increases. After the vacuum pump controller detects that the vacuum pump is higher than the second threshold, it stops enabling the relay.
[0094] In this embodiment, the current vacuum degree is the vacuum pressure value, which is calculated by subtracting the vacuum pump pressure consumption from the vacuum pump pressure increase value.
[0095] In this embodiment, by comparing the actual response of the controller with the preset accuracy response logic, its control accuracy under different working conditions is verified to ensure that it operates correctly according to the predetermined logic. By comparing the test results with the preset logic, the performance differences of the controller under specific working conditions are discovered, providing a basis for adjusting and optimizing the control strategy and improving system performance.
[0096] In this embodiment, when the working condition to be tested is a pump failure working condition, the response logic is a pump failure response logic, and generating a vacuum pump controller test result based on the response logic, the accuracy test result, and the fault diagnosis result includes:
[0097] When the vacuum pump fault type in the fault diagnosis result is vacuum pump failure and the fault response logic is consistent with the pump body failure response logic, the vacuum pump controller passes the verification;
[0098] The pump failure response logic includes: when the vacuum pressure value is lower than a first threshold, the vacuum pump controller enables a relay; within a preset first time period, the vacuum pressure value remains unchanged; and a vacuum pump failure is recorded.
[0099] Please refer to Figure 4 , Figure 4 A schematic diagram of a pump failure test process provided by an embodiment of the present invention.
[0100] In this embodiment, the vacuum pump extraction rate of the vacuum pump simulation model is set to 0, and the brake pedal opening signal is obtained. The vacuum pump model calculates the vacuum consumption value based on the pedal opening, obtains the current vacuum degree of the vacuum pump, and transmits the current vacuum degree to the vacuum pump controller through the HIL test cabinet. When the vacuum pressure value is lower than the threshold, the vacuum pump controller enables the relay. After the HIL cabinet receives the relay enable signal, the vacuum degree remains unchanged. After a certain period of time, the vacuum pump controller records the vacuum pump inoperative fault code.
[0101] In this embodiment, by presetting the pump failure response logic, it is explicitly stipulated that when the vacuum pressure value falls below a first threshold, the controller should enable the relay and maintain the vacuum pressure value for a preset time, thereby accurately identifying pump failure. This clear response logic enables the system to accurately detect vacuum pump failure and compare it with the fault diagnosis results, ensuring that the controller's fault handling function meets expectations.
[0102] In this embodiment, by matching the actual fault response (i.e., the vacuum pressure remains unchanged within a preset time period) with the preset pump failure response logic, it is possible to verify the consistency of the controller's response under pump failure conditions. This not only ensures the accuracy of the test results, but also maintains a high degree of consistency across repeated tests. Furthermore, the use of standardized response logic (e.g., below a threshold, relay enabled, and pressure remaining unchanged within a time period) facilitates automated implementation on a hardware-in-the-loop test platform and can automatically determine whether the controller meets design requirements through data comparison, thereby improving test efficiency and reducing testing costs.
[0103] In this embodiment, when the working condition to be tested is a sensor failure working condition, the response logic is a sensor failure response logic, and generating a vacuum pump controller test result based on the response logic, the accuracy test result, and the fault diagnosis result includes:
[0104] When the vacuum pump fault type in the fault diagnosis result is sensor failure and the fault response logic is consistent with the sensor failure response logic, the vacuum pump controller passes the verification;
[0105] The sensor failure response logic includes the vacuum pump controller acquiring a brake pedal opening signal, and if the vacuum pump pressure value remains unchanged within a preset second time period, recording sensor failure.
[0106] Please refer to Figure 5 , Figure 5 A schematic diagram of a sensor failure test process provided by an embodiment of the present invention.
[0107] In this embodiment, the vacuum pump pressure is set to a fixed value, and the brake pedal opening signal is obtained. The vacuum pump controller determines whether the vacuum pump is faulty based on the vacuum degree and brake status transmitted from the HIL cabinet. When the vacuum pump controller detects the brake pedal opening signal and the pressure value does not change, a vacuum pump pressure sensor fault is recorded.
[0108] In this embodiment, by monitoring the brake pedal opening signal and requiring the vacuum pump pressure value to remain unchanged within a preset second time period, the response logic can accurately distinguish sensor failure situations and avoid misjudgments caused by short-term fluctuations or transient anomalies, thereby ensuring that faults are recorded only when there is a real sensor failure.
[0109] In this embodiment, the preset response logic and fixed time window provide clear criteria for fault diagnosis testing, standardizing the testing process and making the results repeatable. This facilitates consistency verification and data comparison under different test conditions. Furthermore, by simulating sensor failure conditions using a simulation model, the controller's fault diagnosis capabilities can be verified without relying on actual fault conditions, reducing the need for physical testing, thereby lowering testing costs and improving testing convenience.
[0110] In this embodiment, when the working condition to be tested is a pump leakage working condition, the response logic is a pump leakage response logic, and generating a vacuum pump controller test result based on the response logic, the accuracy test result, and the fault diagnosis result includes:
[0111] When the vacuum pump fault type in the fault diagnosis result is vacuum pump leakage and the fault response logic is consistent with the pump body leakage response logic, the vacuum pump controller passes the verification;
[0112] The pump body leakage response logic includes recording vacuum pump leakage when the vacuum pump controller does not obtain the brake pedal opening signal and detects that the vacuum pressure value decreases.
[0113] Please refer to Figure 6 , Figure 6 A schematic diagram of a sensor failure test process provided by an embodiment of the present invention.
[0114] In this embodiment, the vacuum pump pressure is set to continuously decrease, and the vacuum pump controller determines whether the vacuum pump is faulty based on the vacuum degree and brake status transmitted from the HIL cabinet. When the vacuum pump controller fails to detect the brake pedal opening signal and the pressure becomes low, a vacuum pump leakage fault code is recorded.
[0115] In this embodiment, by stipulating that pump leakage is recorded when the brake pedal opening signal is not obtained and the vacuum pressure value decreases, the vacuum change under normal braking conditions and the vacuum reduction caused by pump leakage can be effectively distinguished, thereby avoiding misjudgment.
[0116] In this embodiment, the preset pump leakage response logic provides a clear and quantitative standard for testing. When the test results are consistent with this logic, it can quickly confirm that the controller's detection and response capabilities to pump leakage failures are in line with expectations, which is conducive to unifying test standards and result evaluation.
[0117] In this embodiment, accurately recording and diagnosing pump leakage failures helps to promptly discover and correct potential problems, ensuring that the vacuum pump controller can respond quickly under abnormal operating conditions, thereby improving the safety and stability of the overall system.
[0118] In this embodiment, the automatic judgment mechanism based on preset response logic can realize the automation of fault diagnosis, reduce manual intervention, improve test efficiency, and provide a reliable basis for subsequent data analysis and system optimization.
[0119] In this embodiment, a vacuum pump simulation model is constructed in a hardware-in-the-loop system, and the simulation parameters of the vacuum pump simulation model are initialized according to the working conditions to be tested to simulate different working conditions of the vacuum pump, and then the different working conditions of the vacuum pump are reproduced in the simulation environment, so as to test the fault response and response accuracy of the vacuum pump controller under different working conditions, and test the performance of the vacuum pump controller according to the response logic of the vacuum pump to various working conditions, thereby improving the comprehensiveness of the test of the vacuum pump controller, and at the same time, testing based on the vacuum pump simulation model reduces the resources and costs required for physical testing and improves the convenience of testing.
[0120] The embodiment of the present invention further provides a vacuum pump control system hardware-in-the-loop test device, comprising: a model building module, a parameter setting module, a vacuum degree calculation module, a simulation module and a result generation module;
[0121] The model building module is used to build a vacuum pump simulation model based on the hardware-in-the-loop system and initialize the vacuum pump simulation model;
[0122] The parameter setting module is used to obtain the working conditions to be tested and set the simulation parameters of the vacuum pump simulation model based on the working conditions to be tested;
[0123] The vacuum degree calculation module is used to obtain a vehicle control variable based on the working condition to be tested, and calculate a vacuum degree pressure value based on the vehicle control variable and the vacuum pump simulation model;
[0124] The simulation module is used to perform an accuracy test and a fault diagnosis test on the vacuum pump controller based on the working condition to be tested and the vacuum pressure value, and obtain an accuracy test result and a fault diagnosis result;
[0125] The result generation module is used to obtain the response logic corresponding to each working condition based on the working condition to be tested, and generate a vacuum pump controller test result based on the response logic, the accuracy test result and the fault diagnosis result.
[0126] In this embodiment, the parameter setting module is used to:
[0127] Acquire a working condition to be tested, and when the working condition to be tested is a pump failure working condition, set the vacuum extraction rate of the vacuum pump simulation model to zero;
[0128] When the working condition to be measured is a sensor failure working condition, setting the vacuum pump pressure parameter of the vacuum pump simulation model to a first pressure value;
[0129] When the working condition to be measured is a pump body leakage working condition, the vacuum pump pressure parameter of the vacuum pump simulation model is reduced within a preset time period.
[0130] In this embodiment, the vacuum degree calculation module is used to:
[0131] When the working condition to be measured is a normal working condition and a pump failure working condition, obtaining a brake pedal opening, calculating a vacuum consumption value based on the vacuum pump simulation model and the brake pedal opening, and calculating a vacuum pressure value based on the vacuum consumption value;
[0132] When the working condition to be measured is a sensor failure working condition, obtaining a brake pedal opening, and obtaining a vacuum pressure value based on a vacuum pump pressure parameter of the vacuum pump simulation model;
[0133] When the working condition to be measured is a pump body leakage working condition, a vacuum degree pressure value is obtained based on the vacuum pump pressure parameter of the vacuum pump simulation model.
[0134] In this embodiment, the simulation module is used to:
[0135] When the working condition to be tested is a normal working condition, performing an accuracy test on the vacuum pump controller based on the vacuum pressure value to obtain an accuracy test result; the accuracy test result includes a control response logic of the vacuum pump controller;
[0136] When the working condition to be tested is a pump body failure condition, a sensor failure condition or a pump body leakage condition, a fault diagnosis test is performed on the vacuum pump controller based on the vacuum pressure value to obtain a fault diagnosis result, which includes the fault response logic of the vacuum pump controller and the vacuum pump fault type.
[0137] In this embodiment, the result generation module is used to:
[0138] When the control response logic of the accuracy test result is consistent with the accuracy response logic, the vacuum pump controller passes the verification;
[0139] The accuracy response logic includes the vacuum pump controller enabling a relay when the vacuum pressure value is lower than a first threshold value, so that the relay increases the vacuum pressure value, and stopping enabling the relay when the vacuum pressure value is greater than a second threshold value.
[0140] In this embodiment, the result generation module is used to:
[0141] When the vacuum pump fault type in the fault diagnosis result is vacuum pump failure and the fault response logic is consistent with the pump body failure response logic, the vacuum pump controller passes the verification;
[0142] The pump failure response logic includes: when the vacuum pressure value is lower than a first threshold, the vacuum pump controller enables a relay; within a preset first time period, the vacuum pressure value remains unchanged; and a vacuum pump failure is recorded.
[0143] In this embodiment, the result generation module is used to:
[0144] When the vacuum pump fault type in the fault diagnosis result is sensor failure and the fault response logic is consistent with the sensor failure response logic, the vacuum pump controller passes the verification;
[0145] The sensor failure response logic includes the vacuum pump controller acquiring a brake pedal opening signal, and if the vacuum pump pressure value remains unchanged within a preset second time period, recording sensor failure.
[0146] In this embodiment, the result generation module is used to:
[0147] When the vacuum pump fault type in the fault diagnosis result is vacuum pump leakage and the fault response logic is consistent with the pump body leakage response logic, the vacuum pump controller passes the verification;
[0148] The pump body leakage response logic includes recording vacuum pump leakage when the vacuum pump controller does not obtain the brake pedal opening signal and detects that the vacuum pressure value decreases.
[0149] In an embodiment of the present invention, a terminal device is also provided, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, the above-mentioned vacuum pump control system hardware-in-the-loop testing method is implemented.
[0150] In an embodiment of the present invention, a computer-readable storage medium is further provided, which includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the above-mentioned vacuum pump control system hardware-in-the-loop testing method.
[0151] For example, a computer program may be divided into one or more modules, one or more of which are stored in a memory and executed by a processor to implement the present invention. One or more modules may be a series of computer program instruction segments capable of performing specific functions, and the instruction segments are used to describe the execution process of the computer program in a terminal device.
[0152] The terminal device may be a computing device such as a desktop computer, laptop, PDA, or cloud server. The terminal device may include, but is not limited to, a processor, memory, and display. Those skilled in the art will appreciate that the aforementioned components are merely examples of terminal devices and do not constitute a limitation of the terminal device. The terminal device may include more or fewer components, or a combination of certain components, or different components. For example, the terminal device may also include input / output devices, network access devices, buses, and the like.
[0153] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor. The processor is the control center of the terminal device, connecting various parts of the entire terminal device using various interfaces and lines.
[0154] The memory can be used to store computer programs and / or modules. The processor implements various functions of the terminal device by running or executing the computer programs and / or modules stored in the memory and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area. The program storage area can store an operating system and at least one application required for a function (such as a sound playback function, a text conversion function, etc.); the data storage area can store data generated based on the use of the mobile phone (such as audio data, text message data, etc.). In addition, the memory can include high-speed random access memory and non-volatile memory, such as a hard disk, internal memory, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, at least one disk storage device, a flash memory device, or other volatile solid-state storage device.
[0155] If the module based on hardware-in-the-loop testing of the vacuum pump control system is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention can implement all or part of the process of the above-mentioned method embodiment by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by a processor, it can implement the steps of each of the above-mentioned method embodiments. The computer program includes computer program code, which can be in source code form, object code form, executable file, or some intermediate form. Computer-readable media can include: any entity or device capable of carrying computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal, and software distribution medium. Those skilled in the art can understand and implement it without expending any creative effort.
[0156] The specific embodiments described above further illustrate the objectives, technical solutions, and beneficial effects of the present invention. It should be understood that the above descriptions are merely specific embodiments of the present invention and are not intended to limit the scope of protection of the present invention. In particular, it should be noted that any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included within the scope of protection of the present invention for those skilled in the art.
Claims
1. A vacuum pump control system hardware-in-the-loop testing method, characterized in that: include: Constructing a vacuum pump simulation model based on a hardware-in-the-loop system, and initializing the vacuum pump simulation model; Acquire a working condition to be tested, and set simulation parameters of the vacuum pump simulation model based on the working condition to be tested; Acquiring a vehicle control variable based on the working condition to be tested, and calculating a vacuum pressure value based on the vehicle control variable and the vacuum pump simulation model; Performing an accuracy test and a fault diagnosis test on the vacuum pump controller based on the working condition to be tested and the vacuum pressure value, and obtaining an accuracy test result and a fault diagnosis result; Response logic corresponding to each working condition is obtained based on the working condition to be tested, and a vacuum pump controller test result is generated based on the response logic, the accuracy test result and the fault diagnosis result.
2. A vacuum pump control system hardware-in-the-loop testing method according to claim 1, characterized in that: The working conditions to be tested include normal working conditions, pump failure working conditions, sensor failure working conditions and pump leakage working conditions; The obtaining of the working condition to be measured and setting simulation parameters of the vacuum pump simulation model based on the working condition to be measured includes: Acquire a working condition to be tested, and when the working condition to be tested is a pump failure working condition, set the vacuum extraction rate of the vacuum pump simulation model to zero; When the working condition to be measured is a sensor failure working condition, setting the vacuum pump pressure parameter of the vacuum pump simulation model to a first pressure value; When the working condition to be measured is a pump body leakage working condition, the vacuum pump pressure parameter of the vacuum pump simulation model is reduced within a preset time period.
3. A vacuum pump control system hardware-in-the-loop testing method according to claim 2, characterized in that: The vehicle control variables include brake pedal opening and brake pedal opening; the obtaining of the vehicle control variables based on the working condition to be tested, and the calculation of the vacuum pressure value based on the vehicle control variables and the vacuum pump simulation model include: When the working condition to be measured is a normal working condition and a pump failure working condition, obtaining a brake pedal opening, calculating a vacuum consumption value based on the vacuum pump simulation model and the brake pedal opening, and calculating a vacuum pressure value based on the vacuum consumption value; When the working condition to be measured is a sensor failure working condition, obtaining a brake pedal opening, and obtaining a vacuum pressure value based on a vacuum pump pressure parameter of the vacuum pump simulation model; When the working condition to be measured is a pump body leakage working condition, a vacuum degree pressure value is obtained based on the vacuum pump pressure parameter of the vacuum pump simulation model.
4. A vacuum pump control system hardware-in-the-loop testing method according to claim 3, characterized in that: The performing of an accuracy test and a fault diagnosis test on the vacuum pump controller based on the working condition to be tested and the vacuum pressure value, and obtaining an accuracy test result and a fault diagnosis result, includes: When the working condition to be tested is a normal working condition, performing an accuracy test on the vacuum pump controller based on the vacuum pressure value to obtain an accuracy test result; the accuracy test result includes a control response logic of the vacuum pump controller; When the working condition to be tested is a pump body failure condition, a sensor failure condition or a pump body leakage condition, a fault diagnosis test is performed on the vacuum pump controller based on the vacuum pressure value to obtain a fault diagnosis result, which includes the fault response logic of the vacuum pump controller and the vacuum pump fault type.
5. A vacuum pump control system hardware-in-the-loop testing method according to claim 4, characterized in that: When the working condition to be tested is a normal working condition, the response logic is an accuracy response logic, and generating a vacuum pump controller test result based on the response logic, the accuracy test result, and the fault diagnosis result includes: When the control response logic of the accuracy test result is consistent with the accuracy response logic, the vacuum pump controller passes the verification; The accuracy response logic includes the vacuum pump controller enabling a relay when the vacuum pressure value is lower than a first threshold value, so that the relay increases the vacuum pressure value, and stopping enabling the relay when the vacuum pressure value is greater than a second threshold value.
6. A vacuum pump control system hardware-in-the-loop testing method according to claim 4, characterized in that: When the working condition to be tested is a pump failure working condition, the response logic is a pump failure response logic, and generating a vacuum pump controller test result based on the response logic, the accuracy test result, and the fault diagnosis result includes: When the vacuum pump fault type in the fault diagnosis result is vacuum pump failure and the fault response logic is consistent with the pump body failure response logic, the vacuum pump controller passes the verification; The pump failure response logic includes: when the vacuum pressure value is lower than a first threshold, the vacuum pump controller enables a relay; within a preset first time period, the vacuum pressure value remains unchanged; and a vacuum pump failure is recorded.
7. A vacuum pump control system hardware-in-the-loop testing method according to claim 4, characterized in that: When the working condition to be tested is a sensor failure working condition, the response logic is a sensor failure response logic, and generating a vacuum pump controller test result based on the response logic, the accuracy test result, and the fault diagnosis result includes: When the vacuum pump fault type in the fault diagnosis result is sensor failure and the fault response logic is consistent with the sensor failure response logic, the vacuum pump controller passes the verification; The sensor failure response logic includes the vacuum pump controller acquiring a brake pedal opening signal, and if the vacuum pump pressure value remains unchanged within a preset second time period, recording sensor failure.
8. A vacuum pump control system hardware-in-the-loop testing method according to claim 4, characterized in that: When the working condition to be tested is a pump leakage working condition, the response logic is a pump leakage response logic, and generating a vacuum pump controller test result based on the response logic, the accuracy test result, and the fault diagnosis result includes: When the vacuum pump fault type in the fault diagnosis result is vacuum pump leakage and the fault response logic is consistent with the pump body leakage response logic, the vacuum pump controller passes the verification; The pump body leakage response logic includes recording vacuum pump leakage when the vacuum pump controller does not obtain the brake pedal opening signal and detects that the vacuum pressure value decreases.
9. A vacuum pump control system hardware-in-the-loop test device, characterized in that: include: Model building module, parameter setting module, vacuum degree calculation module, simulation module and result generation module; The model building module is used to build a vacuum pump simulation model based on the hardware-in-the-loop system and initialize the vacuum pump simulation model; The parameter setting module is used to obtain the working conditions to be tested and set the simulation parameters of the vacuum pump simulation model based on the working conditions to be tested; The vacuum degree calculation module is used to obtain a vehicle control variable based on the working condition to be tested, and calculate a vacuum degree pressure value based on the vehicle control variable and the vacuum pump simulation model; The simulation module is used to perform an accuracy test and a fault diagnosis test on the vacuum pump controller based on the working condition to be tested and the vacuum pressure value, and obtain an accuracy test result and a fault diagnosis result; The result generation module is used to obtain the response logic corresponding to each working condition based on the working condition to be tested, and generate a vacuum pump controller test result based on the response logic, the accuracy test result and the fault diagnosis result.
10. A terminal device, characterized in that: The system comprises a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, a vacuum pump control system hardware-in-the-loop testing method as claimed in claims 1 to 8 is implemented.