A hardware-in-the-loop based tire low pressure alarm test system
By using a hardware-in-the-loop tire low-pressure alarm test system, which simulates ambient temperature and tire internal pressure, the complexity and safety issues of real vehicle testing are solved, and efficient automated tire low-pressure alarm testing is achieved.
Patent Information
- Application Number
- CN202510075766.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-17
- Publication Date
- 2025-11-04
- Estimated Expiration
- 2045-01-17
AI Technical Summary
In the current TPMS development and verification process, real vehicle testing is complex and cumbersome, has low testing efficiency, cannot cover abnormal and extreme conditions, and poses a threat to personal safety.
A hardware-in-the-loop tire low-pressure alarm test system is adopted, which includes a hardware-in-the-loop test bench, a vehicle control unit, a tire pressure simulation device, and test management software. By simulating ambient temperature and tire internal pressure, the system enables automated testing of tire low-pressure alarms.
Simplify testing operations, improve testing efficiency, cover various working conditions, avoid threats to personal safety, and achieve automated testing of low tire pressure alarms.
Smart Images

Figure CN120008799B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of automotive testing technology, and more specifically to a hardware-in-the-loop tire low-pressure alarm testing system. Background Technology
[0002] With the rapid development of the automotive industry and the increasing importance of vehicles in people's daily lives, Tire Pressure Monitoring Systems (TPMS) have begun to receive increasing attention as active safety components in automobiles. TPMS enables real-time monitoring of tire pressure and temperature, allowing for timely adjustments to maintain proper tire pressure during driving. This not only increases vehicle safety and reduces the risk of tire blowouts at high speeds but also effectively ensures vehicle stability and fuel economy, making it of great significance. Currently, the primary testing method in the development and verification of TPMS is functional verification testing in a real-world vehicle environment after integration.
[0003] However, real-vehicle testing environments are complex and cumbersome to operate, have low testing efficiency, cannot cover some abnormal and extreme working conditions, and pose a threat to the personal safety of test personnel under some special working conditions. Summary of the Invention
[0004] To solve the above-mentioned technical problems, or at least partially solve them, this application provides a hardware-in-the-loop tire low-pressure alarm test system.
[0005] In a first aspect, this application provides a hardware-in-the-loop tire low-pressure alarm test system, comprising:
[0006] Hardware includes a ring test bench, vehicle control unit, tire pressure simulation device, and experiment management software.
[0007] The hardware is used to simulate ambient temperature and to send the ambient temperature to the vehicle control unit.
[0008] The tire pressure simulation device is used to simulate the internal temperature and internal pressure of the tire, and to send the internal temperature and internal pressure of the tire to the vehicle control unit.
[0009] The vehicle control unit is configured to trigger an alarm scenario service based on the ambient temperature, the tire internal temperature, and the tire internal pressure to perform a low-pressure alarm operation, and to send the first execution result of the low-pressure alarm operation to the experimental management software.
[0010] The experimental management software is used to instruct the hardware to simulate the ambient temperature on the ring test bench, instruct the tire pressure simulation device to simulate the internal temperature and internal pressure of the tire, and determine the corresponding low tire pressure alarm test result based on the first execution result.
[0011] In one possible implementation, the tire pressure simulation device includes: a serial port tool, a serial port board, and a sensor;
[0012] The serial port tool is used to drive the serial port board to input the tire's internal temperature and tire's internal pressure to the sensor;
[0013] The serial port board is used to input the tire's internal temperature and tire's internal pressure to the sensor;
[0014] The sensor is used to simulate the internal temperature and pressure of the tire, and to send the internal temperature and pressure of the tire to the vehicle control unit.
[0015] In one possible implementation, the sensor includes: a microcontroller unit and a radio frequency module;
[0016] The microcontroller unit is used to simulate the internal temperature and internal pressure of the tire, and to send the internal temperature and internal pressure of the tire to the radio frequency module.
[0017] The radio frequency module is used to send the tire internal temperature and the tire internal pressure to the vehicle control unit.
[0018] In one possible implementation, the serial port board is further configured to convert the data input by the serial port tool into a target format, wherein the target format is a radio frequency data frame format defined in the vehicle control unit.
[0019] In one possible implementation, the tire pressure simulation device is further configured to simulate tire fault data and send the fault data to the vehicle control unit.
[0020] The vehicle control unit is also configured to trigger an alarm scenario service to perform a fault alarm operation based on the fault data, and to send the second execution result of the fault alarm operation to the experiment management software.
[0021] The experimental management software is also used to determine the corresponding tire fault alarm test result based on the second execution result.
[0022] In one possible implementation, the experiment management software is further configured to generate a corresponding test report based on the first execution result and the tire fault alarm test result corresponding to the first execution result, as well as the second execution result and the tire fault alarm test result corresponding to the second execution result.
[0023] In one possible implementation, the experiment management software is also used to send the test report to the user terminal.
[0024] In one possible implementation, the vehicle control unit is further configured to trigger an alarm scenario service to perform a low-pressure alarm operation when the internal temperature of the tire is lower than the ambient temperature, or when the internal pressure of the tire is lower than a low-pressure alarm threshold.
[0025] In one possible implementation, the hardware in the ring-on-ring test bench is also used to receive the ambient temperature to be simulated sent by the experimental management software, determine the resistance value corresponding to the ambient temperature in a resistance-temperature correspondence table, and transmit the resistance value to the IO simulation board so that the IO simulation board can simulate the ambient temperature.
[0026] In one possible implementation, the system further includes: automated testing software;
[0027] The automated testing software is used to control the experimental management software to execute the following steps: instructing the hardware to simulate the ambient temperature on the ring test bench, instructing the tire pressure simulation device to simulate the internal temperature and internal pressure of the tire, and determining the corresponding low tire pressure alarm test result based on the first execution result.
[0028] The technical solutions provided in this application have the following advantages compared with the prior art:
[0029] The hardware-in-the-loop tire low-pressure alarm testing system provided in this application includes: a hardware-in-the-loop test bench, a vehicle control unit, a tire pressure simulation device, and experimental management software. The hardware-in-the-loop test bench is used to simulate ambient temperature and send the ambient temperature to the vehicle control unit. The tire pressure simulation device is used to simulate the internal temperature and pressure of the tire and send the internal temperature and pressure of the tire to the vehicle control unit. The vehicle control unit is used to trigger an alarm scenario service based on the ambient temperature, the internal temperature of the tire, and the internal pressure of the tire to execute a low-pressure alarm operation, and to send a first execution result of the low-pressure alarm operation to the experimental management software. The experimental management software is used to instruct the hardware-in-the-loop test bench to simulate the ambient temperature, instruct the tire pressure simulation device to simulate the internal temperature and pressure of the tire, and determine the corresponding low-pressure alarm test result based on the first execution result. In this solution, tire pressure and temperature can be simulated through a tire pressure simulation device, and ambient temperature can be simulated through a hardware-in-the-loop test bench. This enables automated testing of low tire pressure alarms without the need for functional verification testing in a real vehicle environment. This simplifies testing operations, improves testing efficiency, covers various abnormal and extreme operating conditions, and avoids threats to the personal safety of test personnel under certain special conditions. Attached Figure Description
[0030] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0031] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0032] Figure 1 A schematic diagram of a hardware-in-the-loop tire low-pressure alarm test system provided in this application embodiment;
[0033] Figure 2 A schematic diagram of a serial port board and a sensor simulating the transmission of radio frequency signals is provided in an embodiment of this application;
[0034] Figure 3 A schematic diagram of the connection between VIU, HIL cabinet, and PC is provided for an embodiment of this application;
[0035] Figure 4 This is a schematic diagram of a voltage divider circuit provided in an embodiment of this application. Detailed Implementation
[0036] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0037] To facilitate understanding of the embodiments of this application, the following will provide further explanation and description with reference to the accompanying drawings and specific embodiments. These embodiments do not constitute a limitation on the embodiments of this application.
[0038] See Figure 1 This is a schematic diagram of a hardware-in-the-loop tire low-pressure alarm test system provided in an embodiment of this application. Figure 1 As shown, the system includes: a hardware-in-the-loop test bench, a vehicle control unit, a tire pressure simulation device, and experimental management software; the hardware-in-the-loop test bench is used to simulate ambient temperature and send the ambient temperature to the vehicle control unit; the tire pressure simulation device is used to simulate tire internal temperature and tire internal pressure and send the tire internal temperature and tire internal pressure to the vehicle control unit; the vehicle control unit is used to trigger an alarm scenario service to execute a low-pressure alarm operation based on the ambient temperature, the tire internal temperature, and the tire internal pressure, and send a first execution result of the low-pressure alarm operation to the experimental management software; the experimental management software is used to instruct the hardware-in-the-loop test bench to simulate the ambient temperature, instruct the tire pressure simulation device to simulate the tire internal temperature and tire internal pressure, and determine the corresponding tire low-pressure alarm test result based on the first execution result.
[0039] This application provides a hardware-in-the-loop tire low pressure alarm test system for testing the tire low pressure alarm of a vehicle. Specifically, it tests whether the vehicle control unit can execute the alarm action normally when the tire is in an abnormal state. If it can execute the alarm normally, the alarm function is normal; otherwise, the alarm function is abnormal.
[0040] Ambient temperature is a temperature value used to characterize the environment in which the vehicle is located.
[0041] Tire internal temperature is a temperature value used to characterize the inside of a tire.
[0042] Tire internal pressure is used to characterize the pressure value inside the tire.
[0043] The first execution result is used to characterize whether the vehicle control unit performs an alarm action based on the simulated ambient temperature, tire internal temperature, and tire internal pressure. In other words, if the simulated ambient temperature, tire internal temperature, and tire internal pressure correspond to low tire pressure, and the alarm function is normal, the first execution result is to execute the alarm action; if the simulated ambient temperature, tire internal temperature, and tire internal pressure correspond to low tire pressure, and the alarm function is abnormal, the first execution result is not to execute the alarm action.
[0044] The tire low pressure alarm test results include two types: normal alarm function and abnormal alarm function. Specifically, if the simulated ambient temperature, tire internal temperature, and tire internal pressure correspond to low tire pressure, and the first execution result is to execute the alarm action, then the tire low pressure alarm test result is that the alarm function is normal. If the simulated ambient temperature, tire internal temperature, and tire internal pressure correspond to low tire pressure, and the first execution result is not to execute the alarm action, then the tire low pressure alarm test result is that the alarm function is abnormal.
[0045] In this embodiment, the system specifically includes a HIL (Hardware in the Loop) test bench, a VIU (Vehicle Integration Unit), a tire pressure simulation device, and desktop software (i.e., experiment management software) on a PC (Personal Computer). In practice, a wiring harness connector is typically used to connect the VIU to the HIL test bench. The tire pressure simulation device automatically simulates and sends tire pressure signals, the HIL test bench simulates ambient temperature, and the PC's experiment management software monitors the VIU output and controls the VIU input to perform the low tire pressure alarm test. After receiving the simulated data, the VIU transmits it to the MCU (Microcontroller Unit) for processing. After processing, the data is distributed to various functional modules via the Controller Area Network (CAN) bus.
[0046] The hardware-in-the-loop tire low-pressure alarm testing system provided in this application includes: a hardware-in-the-loop test bench, a vehicle control unit, a tire pressure simulation device, and experimental management software. The hardware-in-the-loop test bench is used to simulate ambient temperature and send the ambient temperature to the vehicle control unit. The tire pressure simulation device is used to simulate the internal temperature and pressure of the tire and send the internal temperature and pressure of the tire to the vehicle control unit. The vehicle control unit is used to trigger an alarm scenario service based on the ambient temperature, the internal temperature of the tire, and the internal pressure of the tire to execute a low-pressure alarm operation, and to send a first execution result of the low-pressure alarm operation to the experimental management software. The experimental management software is used to instruct the hardware-in-the-loop test bench to simulate the ambient temperature, instruct the tire pressure simulation device to simulate the internal temperature and pressure of the tire, and determine the corresponding low-pressure alarm test result based on the first execution result. In this solution, tire pressure and temperature can be simulated through a tire pressure simulation device, and ambient temperature can be simulated through a hardware-in-the-loop test bench. This enables automated testing of low tire pressure alarms without the need for functional verification testing in a real vehicle environment. This simplifies testing operations, improves testing efficiency, covers various abnormal and extreme operating conditions, and avoids threats to the personal safety of test personnel under certain special conditions.
[0047] In one possible implementation, the tire pressure simulation device can be a tire pressure sensor that integrates an MCU (Microcontroller Unit), a radio frequency module, a pressure sensor, a temperature sensor, and an acceleration sensor, thereby simulating the internal temperature and pressure of the tire.
[0048] In another possible implementation, the tire pressure simulation device includes: a serial port tool, a serial port board, and a sensor; the serial port tool is used to drive the serial port board to input the tire's internal temperature and tire's internal pressure to the sensor; the serial port board is used to input the tire's internal temperature and tire's internal pressure to the sensor; the sensor is used to simulate the tire's internal temperature and tire's internal pressure, and to send the tire's internal temperature and tire's internal pressure to the vehicle control unit. This implementation utilizes a combination of a serial port board and a common sensor to simulate tire's internal temperature and tire's internal pressure, resulting in lower cost compared to using a tire pressure sensor that integrates an MCU, RF module, pressure sensor, temperature sensor, and acceleration sensor.
[0049] Furthermore, the sensor includes an MCU (Microcontroller Unit) and a radio frequency (RF) module. The MCU is used to simulate the internal temperature and pressure of the tire, and to transmit the internal temperature and pressure of the tire to the RF module. The RF module is used to transmit the internal temperature and pressure of the tire to the vehicle control unit. In this solution, the sensor only needs to include an MCU and an RF module, resulting in low cost.
[0050] Furthermore, the serial port board is also used to convert the data input by the serial port tool into a target format, wherein the target format is the radio frequency data frame format defined in the vehicle control unit. In this scheme, the data frame format sent by the serial port board is consistent with the radio frequency data frame format defined by the VIU. In application, the data frame format is generally hexadecimal. Thus, after the VIU receives the data sent by the serial port board and the sensor, it can use it directly without further data format conversion.
[0051] Figure 2 The diagram shown illustrates the serial port board and sensor simulating the transmission of radio frequency signals. Figure 2 As shown, the serial port tool connects to one end of the serial port board, and the other end of the serial port board connects to the MCU in the sensor. During testing, the serial port tool drives the serial port board to input the simulated value to the MCU in the sensor. The MCU in the sensor sends the simulated value to the RF module in the VIU via the RF (Radio Frequency) module. In applications, this is typically the RF module of the VIUFL (Left Front), and then the RF module in the VIU transmits the value to the MCU in the VIU. The specific operation steps are as follows:
[0052] 1) Install a serial port driver (such as CH34SER) to enable serial communication via the PC's USB port;
[0053] 2) The serial port board and sensor module are connected to the PC via USB for communication;
[0054] 3) Open the serial port utility software and configure the COM port, serial port baud rate, data bits, etc.
[0055] 4) Input a byte data frame containing the pressure value to be simulated (i.e., tire internal pressure) and the temperature value (i.e., tire internal temperature);
[0056] 5) Click send to simulate sending a frame of tire pressure data.
[0057] The above solution can be used to simulate the internal temperature and pressure of a tire using a serial port board and ordinary sensors. It is low-cost and easy to promote.
[0058] In another possible implementation, the tire pressure simulation device is further configured to simulate tire fault data and send the fault data to the vehicle control unit; the vehicle control unit is further configured to trigger an alarm scenario service to perform a fault alarm operation based on the fault data, and send a second execution result of the fault alarm operation to the experiment management software; the experiment management software is further configured to determine the corresponding tire fault alarm test result based on the second execution result.
[0059] Fault data is used to characterize the type of data frame, such as normal frame or fault frame.
[0060] The second execution result is used to characterize the vehicle control unit's execution of the alarm action based on the fault data. That is, if the simulated data frame is an abnormal frame and the alarm function is normal, the second execution result is to execute the alarm action; if the simulated data frame is a normal frame and the alarm function is abnormal, the second execution result is not to execute the alarm action.
[0061] Correspondingly, if the simulated data frame is an abnormal frame and the second execution result is to execute an alarm action, then the tire low pressure alarm test result is that the alarm function is normal; if the simulated data frame is a normal frame and the second execution result is not to execute an alarm action, then the tire low pressure alarm test result is that the alarm function is abnormal.
[0062] This solution allows for the simulation of fault data using a combination of a serial port board and sensors. It is inexpensive, easy to implement, and simple to operate.
[0063] In another possible implementation, the experiment management software is further configured to generate a corresponding test report based on the first execution result and the tire fault alarm test result corresponding to the first execution result, as well as the second execution result and the tire fault alarm test result corresponding to the second execution result.
[0064] The test report can include data from each simulation, the corresponding execution results, and the corresponding tire fault alarm test results, so that users can easily understand the test process and test results based on the test report.
[0065] In another possible implementation, the experiment management software is also used to send the test report to a user terminal. This allows users to conveniently view the test report via their user terminal.
[0066] In another possible implementation, the vehicle control unit is further configured to trigger an alarm scenario service to perform a low-pressure alarm operation when the internal temperature of the tire is lower than the ambient temperature, or when the internal pressure of the tire is lower than a low-pressure alarm threshold.
[0067] The low pressure alarm threshold is used to determine whether the tire internal pressure is too low. It is generally calculated based on the standard tire internal pressure. Specifically, the low pressure alarm threshold is 75% of the standard tire pressure (i.e., the standard tire internal pressure).
[0068] Alarm scenario service, used to perform low-voltage alarm operations.
[0069] During the specific testing process, the vehicle control unit can determine whether to trigger the alarm scenario service to execute a low-pressure alarm operation by comparing the internal tire temperature with the ambient temperature, and the internal tire pressure with the low-pressure alarm threshold. Under normal circumstances, if the internal tire temperature is lower than the ambient temperature, or if the internal tire pressure is lower than the low-pressure alarm threshold, the vehicle control unit will trigger the alarm scenario service to execute the low-pressure alarm operation. This achieves the low tire pressure alarm.
[0070] In another possible implementation, the hardware in the ring test bench is also used to receive the ambient temperature to be simulated sent by the experimental management software, determine the resistance value corresponding to the ambient temperature in the correspondence table of resistance and temperature, and transmit the resistance value to the IO simulation board so that the IO simulation board can simulate the ambient temperature.
[0071] Figure 3 The diagram shown illustrates the connection between the VIU, HIL cabinet, and PC. Figure 3 As shown, the hardware includes an Ethernet board and an I / O simulation board on the ring-on-ring test bench. The Ethernet board is connected to the experimental management software to receive the ambient temperature to be simulated sent by the software. The I / O simulation board is connected to FL (left front drive), FR (right front drive), and R (rear drive) in the VIU to simulate different temperatures.
[0072] In applications, the MCU in the vehicle control unit typically acquires ambient temperature data using thermistor technology. A thermistor is a sensor resistor whose resistance changes with temperature. Figure 4 The diagram shown is a schematic of a voltage divider circuit. Figure 4As shown, the MCU has an internal 5V VCC power supply, which is connected to a fixed-value pull-up resistor R1 and a thermistor R2 in series. The other end of R2 is grounded. The MCU obtains the resistance value and temperature of R2 by sampling the voltage between R1 and R2. The VCC power supply and resistor R1 are integrated inside the MCU. Resistor R2 is simulated using HIL. After the experimental management software inputs the corresponding temperature, the HIL model looks up the corresponding resistance value according to the calibrated RT (Resistance-Temperature) relationship table, and then transmits the resistance parameter to the IO simulation board, which performs simulations at different temperatures.
[0073] To facilitate understanding, the overall testing process is illustrated using the following example:
[0074] Prerequisites:
[0075] 1) Set the standard tire pressure to 203 Bar. Generally, based on the vehicle weight, the standard pressure values for the front and rear tires are set to 203 Bar using diagnostic tools.
[0076] 2) With an ambient temperature of 20℃, check the VIU_FR area controller assembly interface definition. The external temperature sensor pin is J3_65. In the experimental management software, assign the associated variable of J3_65 a value of 20℃. The HIL simulation model will automatically process the data according to the RT table and transmit the resistance value of 10kΩ corresponding to 20℃ to the IO simulation board.
[0077] 3) The average effective temperature of the four tire sensors is 18℃. However, there is a temperature offset; the actual temperature is T-40. Therefore, the simulated average temperature of the four tires is 58℃, which is converted to hexadecimal as 0x3A. According to the tire pressure data frame format defined in the document, including sensor ID, pressure, temperature, and information bits, the serial port tool sends the data frame as follows:
[0078] 0A 01 2c 41ca 3d CB 3A 0F
[0079] 0A 01 2c 41cc 72CB 3A 0F
[0080] 0A 01 2c 41cd 67CB 3A 0F
[0081] 0A 01 2c 41cc f7 CB 3A 0F
[0082] 4) According to the tire low pressure alarm threshold calculation formula, the low pressure alarm threshold is 75% of the standard tire pressure, which gives a low pressure alarm threshold of 152.25 Bar, or 0x98 in hexadecimal.
[0083] Test steps:
[0084] 1) Subscribe to the tire alarm scene service Cnr_TPMSWarn_Ntf_TireWarnInfo and monitor the return value of the alarm scene service interface in real time through the experimental management software.
[0085] 2) The serial port tool sends a pressure value of 0x95 that is less than the low-pressure alarm threshold:
[0086] 0A 01 2c 41ca 3d 95 3A 0F
[0087] 0A 01 2c 41cc 72 95 3A 0F
[0088] 0A 01 2c 41cd 67 95 3A 0F
[0089] 0A 01 2c 41cc f7 95 3A 0F
[0090] Expected result:
[0091] If a pressure below the low-pressure alarm threshold is sent, triggering a low-pressure alarm, the parameters TirePLowWarnFL, TirePLowWarnFR, TirePLowWarnRL, and TirePLowWarnRR returned by the alarm scenario service interface will all be 1, indicating that the alarm scenario service has executed the alarm operation and the test was successful.
[0092] In addition, in another possible implementation, the system further includes: automated testing software; the automated testing software is used to control the experimental management software to perform the steps of instructing the hardware to simulate the ambient temperature on the ring test bench, instructing the tire pressure simulation device to simulate the internal temperature and internal pressure of the tire, and determining the corresponding low tire pressure alarm test result based on the first execution result.
[0093] like Figure 3 As shown, the automated testing software is set up on the PC and connected to the experimental management software to instruct the experimental management software to automatically execute the testing steps.
[0094] Specifically, the automated testing software maps the interface variables of pins, buses, and DDS interfaces in the experimental management software through mapping. The mapping table stores the correspondence between variable names in the automated testing software and variable addresses in the experimental management software. Calling the `write` method of a variable can modify the parameter values of IO pins, CAN signals, and services in the experimental management software, thereby modifying the magnitude of the physical signals output by the HIL board. Calling the `read` method of a variable can obtain the IO pins and CAN signals collected by the experimental management software, and then the `assert` method of the variable is used to compare them with the expected values. If the assertion passes, the test passes. Following the above low-voltage alarm test steps, each step is written as a script in the automated testing software, and then calling the script enables automated testing.
[0095] Following the example above, the process of implementing the testing workflow using automated testing software is as follows:
[0096] Prerequisites:
[0097] 1) Set the standard tire pressure value to 203 Bar. Modify the standard pressure value to 203 Bar by writing 2e service diagnostic commands in Python. The hexadecimal value is 0xCB. The 2e service commands are 2e 09 01CB and 2e 09 02CB to achieve automatic configuration.
[0098] 2) With an ambient temperature of 20℃, query the Mapping table to find the resistance value of the variable TX_J3_65_Outcar_Temperature_Sensor_deg mapped to the J3_65 associated variable address in the experimental management software. Then, use the write method to assign the value 20 to TX_J3_65_Outcar_Temperature_Sensor_deg.
[0099] 3) The average effective temperature of the four tire sensors is 18℃. Serial communication is handled using Python's serial standard library to automatically send data. First, a serial port instance is created using the `Serial()` method of the serial library, passing in parameters such as the COM port number and baud rate. The serial port instance is opened using the `open()` method, and then the `write()` method is called to write bytes of data to the serial port. After the operation is complete, the serial port is closed using the `close()` method. The specific code is as follows:
[0100] Ser=serial.Serial(port,baudrate)
[0101] Ser.open()
[0102] Ser.write(“0A 01 2c 41ca 3d CB 3A 0F”)
[0103] Ser.write(“0A 01 2c 41cc 72CB 3A 0F”)
[0104] Ser.write(“0A 01 2c 41cd 67CB 3A 0F”)
[0105] Ser.write(“0A 01 2c 41cc f7 95 3A 0F”)
[0106] Ser.close()
[0107] Test steps:
[0108] 1) Subscribe to the tire pressure warning scenario service Cnr_TPMSWarn. The experimental management software continuously collects the service return values. The automated testing software can obtain tire pressure warning information in real time through the read() method of variables RX_DDS_Cnr_TPMSWarn_Ntf_TireWarnInfo_TirePLowWarnFL, RX_DDS_Cnr_TPMSWarn_Ntf_TireWarnInfo_TirePLowWarnFR, RX_DDS_Cnr_TPMSWarn_Ntf_TireWarnInfo_TirePLowWarnRL, and RX_DDS_Cnr_TPMSWarn_Ntf_TireWarnInfo_TirePLowWarnRR.
[0109] 2) Simulate sending a pressure value lower than the low-pressure alarm threshold, which is automatically implemented using Python code, as shown below:
[0110] Ser=serial.Serial(port,baudrate)
[0111] Ser.open()
[0112] Ser.write(“0A 01 2c 41ca 3d 95 3A 0F”)
[0113] Ser.write(“0A 01 2c 41cc 72 95 3A 0F”)
[0114] Ser.write(“0A 01 2c 41cd 67 95 3A 0F”)
[0115] Ser.write(“0A 01 2c 41cc f7 95 3A 0F”)
[0116] Ser.close()
[0117] Expected result: Obtain the return value of the variables RX_DDS_Cnr_TPMSWarn_Ntf_TireWarnInfo_TirePLowWarnFL, RX_DDS_Cnr_TPMSWarn_Ntf_TireWarnInfo_TirePLowWarnFR, RX_DDS_Cnr_TPMSWarn_Ntf_TireWarnInfo_TirePLowWarnRL, and RX_DDS_Cnr_TPMSWarn_Ntf_TireWarnInfo_TirePLowWarnRR using the Read method, and then use the assert method of the variables to assert that the variable value is equal to 1. If the assertion passes, the test is successful.
[0118] The above solution allows for the automated testing of tire low pressure alarms using automated testing software, eliminating the need for manual testing, thus saving manpower and improving testing efficiency.
[0119] The communication bus mentioned in the above electronic devices can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This communication bus can be divided into address bus, data bus, control bus, etc. For ease of illustration, only one thick line is used to represent it in the diagram, but this does not indicate that there is only one bus or one type of bus.
[0120] The communication interface is used for communication between the aforementioned electronic devices and other devices.
[0121] The memory may include random access memory (RAM) or non-volatile memory (NVM), such as at least one disk storage device. Optionally, the memory may also be at least one storage device located remotely from the aforementioned processor.
[0122] The processors mentioned above can be general-purpose processors, including central processing units (CPUs), network processors (NPs), etc.; they can also be digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.
[0123] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0124] The above description is merely a specific embodiment of the present invention, enabling those skilled in the art to understand or implement the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the present invention is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features claimed herein.
Claims
1. A hardware-in-the-loop tire low-pressure alarm test system, characterized in that, The system includes: a hardware-in-the-loop test bench, a vehicle control unit, a tire pressure simulation device, and experimental management software; The hardware is used to simulate ambient temperature and to send the ambient temperature to the vehicle control unit. The tire pressure simulation device is used to simulate the internal temperature and internal pressure of the tire, and to send the internal temperature and internal pressure of the tire to the vehicle control unit. The vehicle control unit is configured to trigger an alarm scenario service based on the ambient temperature, the tire internal temperature, and the tire internal pressure to perform a low-pressure alarm operation, and to send the first execution result of the low-pressure alarm operation to the experiment management software. The experimental management software is used to instruct the hardware to simulate the ambient temperature on the ring test bench, instruct the tire pressure simulation device to simulate the internal temperature and internal pressure of the tire, and determine the corresponding low tire pressure alarm test result based on the first execution result. The tire pressure simulation device includes: a serial port tool, a serial port board, and a sensor; The serial port tool is used to drive the serial port board to input the tire's internal temperature and tire's internal pressure to the sensor; The serial port board is used to input the tire's internal temperature and tire's internal pressure to the sensor; The sensor is used to simulate the internal temperature and pressure of the tire, and to send the internal temperature and pressure of the tire to the vehicle control unit.
2. The system according to claim 1, characterized in that, The sensor includes: a microcontroller unit and a radio frequency module; The microcontroller unit is used to simulate the internal temperature and internal pressure of the tire, and to send the internal temperature and internal pressure of the tire to the radio frequency module. The radio frequency module is used to send the tire internal temperature and the tire internal pressure to the vehicle control unit.
3. The system according to claim 1, characterized in that, The serial port board is also used to convert the data input by the serial port tool into a target format, wherein the target format is the radio frequency data frame format defined in the vehicle control unit.
4. The system according to claim 1, characterized in that, The tire pressure simulation device is also used to simulate tire fault data and send the fault data to the vehicle control unit. The vehicle control unit is also configured to trigger an alarm scenario service to perform a fault alarm operation based on the fault data, and to send the second execution result of the fault alarm operation to the experiment management software. The experimental management software is also used to determine the corresponding tire fault alarm test result based on the second execution result.
5. The system according to claim 4, characterized in that, The experimental management software is also used to generate a corresponding test report based on the first execution result and the tire fault alarm test result corresponding to the first execution result, as well as the second execution result and the tire fault alarm test result corresponding to the second execution result.
6. The system according to claim 5, characterized in that, The experimental management software is also used to send the test report to the user terminal.
7. The system according to claim 1, characterized in that, The vehicle control unit is further configured to trigger an alarm scenario service to perform a low-pressure alarm operation when the internal temperature of the tire is lower than the ambient temperature, or when the internal pressure of the tire is lower than the low-pressure alarm threshold.
8. The system according to claim 1, characterized in that, The hardware in-loop test bench is also used to receive the ambient temperature to be simulated sent by the experimental management software, determine the resistance value corresponding to the ambient temperature in the resistance-temperature correspondence table, and transmit the resistance value to the IO simulation board so that the IO simulation board can simulate the ambient temperature.
9. The system according to claim 1, characterized in that, The system also includes: automated testing software; The automated testing software is used to control the experimental management software to execute the following steps: instructing the hardware to simulate the ambient temperature on the ring test bench, instructing the tire pressure simulation device to simulate the internal temperature and internal pressure of the tire, and determining the corresponding low tire pressure alarm test result based on the first execution result.
Citation Information
Patent Citations
Vehicle tire safety detection method and device, electronic equipment and storage medium
CN116512821A
Automobile tire pressure monitoring and testing system
CN209326874U