HIL platform-based sent sensor fault diagnosis test system and method

By constructing a SENT sensor fault diagnosis and testing system based on the HIL platform, and utilizing virtual signal injection and signal analysis technologies, the problem of inaccurate SENT sensor signal fault diagnosis and testing was solved, achieving efficient and comprehensive fault diagnosis and reducing costs.

CN122108023APending Publication Date: 2026-05-29SHAANXI FAST GEAR CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610094983.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-01-23
Publication Date
2026-05-29

AI Technical Summary

Technical Problem

The existing HIL platform is unable to accurately simulate and analyze the microsecond-level high-precision signals of the SENT sensor, and it is also difficult to fully cover the various fault types of the SENT sensor, resulting in inaccurate fault diagnosis test results.

Method used

A fault diagnosis and testing system for SENT sensors based on the HIL platform was constructed, including a vehicle physical model, ConfigurationDesk unit, ControlDesk unit, HIL test cabinet and diagnostic test unit. Faults were injected by generating virtual SENT sensor fault signals, and signal analysis was performed using a Pico oscilloscope and PicoScope software to achieve comprehensive fault diagnosis of SENT sensors.

Benefits of technology

It enables accurate fault diagnosis of SENT sensor signals, covering a variety of fault types, improving testing efficiency, reducing costs, and avoiding the complexities of real-vehicle testing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122108023A_ABST
    Figure CN122108023A_ABST
Patent Text Reader

Abstract

The application relates to a SENT sensor fault diagnosis test system and method based on an HIL platform, and aims to solve the technical problem that the fault diagnosis test result of a SENT sensor signal of an existing fault diagnosis test system based on an HIL platform is not accurate enough. The application provides a SENT sensor fault diagnosis test system based on an HIL platform, a software platform is constructed by setting a whole vehicle physical model, a ConfigurationDesk unit, a ControlDesk unit and PicoScope software, an HIL test cabinet is set, a hardware platform is built by a diagnosis test unit, and the SENT sensor fault diagnosis test system based on the HIL platform is established.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to SENT sensors, and more specifically to a fault diagnosis and testing system and method for SENT sensors based on the HIL platform. Background Technology

[0002] SENT (Single Edge Nibble Transmission) is a point-to-point, unidirectional transmission protocol developed by the SAE (Society of Automotive Engineers) for transmitting high-precision sensor information between automotive sensors and electronic control units (ECUs). The SENT protocol helps replace analog signal transmission between sensors and microcontrollers and is suitable for equipment with stringent safety requirements in the automotive and transportation industries. SENT sensors, based on the SENT protocol, offer microsecond-level signal accuracy and feature high precision, low power consumption, low cost, multi-sensor fusion capabilities, and the ability to transmit fault codes, making them widely used in the automotive industry.

[0003] SENT sensors are often used in AMT (Automated Mechanical Transmission) products. Therefore, the HIL platform not only needs to be able to correctly simulate microsecond-level SENT signals, but also needs to be able to correctly analyze SENT signals and perform fault diagnosis tests on SENT signals.

[0004] The existing HIL platform is mainly used to simulate PWM type displacement sensor signals and perform fault diagnosis tests on them. It is difficult to meet the high-precision requirements of the single-sided half-byte characteristic of SENT sensors. In addition, there are many types of faults in SENT sensor signals, including open circuit, short circuit to power, short circuit to ground, sensor rolling counter error, ADC or DSP internal self-test error, CRC error, and SENT sensor temperature out-of-range fault. However, PWM type displacement sensor signals only have three types of electrical faults: open circuit, short circuit to power, and short circuit to ground. Therefore, it is also difficult to meet the fault diagnosis test requirements of SENT sensor signals, resulting in inaccurate fault diagnosis test results for SENT sensor signals. Summary of the Invention

[0005] The purpose of this invention is to solve the technical problem that the fault diagnosis test results of SENT sensor signals in existing fault diagnosis test systems based on the HIL platform are not accurate enough, and to provide a fault diagnosis test system and method for SENT sensors based on the HIL platform.

[0006] To achieve the above objectives, the technical solution provided by this invention is as follows:

[0007] The present invention discloses a SENT sensor fault diagnosis and testing system based on the HIL platform, which is characterized by including a HIL platform, a whole vehicle physical model, and a diagnostic testing unit; the HIL platform includes a ConfigurationDesk unit, a ControlDesk unit, and a HIL test cabinet.

[0008] The vehicle physical model is used to generate the data content and logical state of the SENT signal based on the simulated vehicle state, and to form a valid vehicle physical model corresponding to the vehicle physical state; the valid vehicle physical model is used to import the ConfigurationDesk unit.

[0009] The ConfigurationDesk unit is used to configure the hardware I / O channels and protocol parameters of the SENT signal, and generate the SENT signal model interface in conjunction with a valid vehicle physical model; the SENT signal model interface is used to access the valid vehicle physical model.

[0010] The ConfigurationDesk unit is used to compile the valid vehicle physical model that is connected to the SENT signal model interface to obtain a runnable real-time application, and map it to the ControlDesk unit; the real-time application is used to generate virtual SENT sensor signals.

[0011] The ControlDesk unit is used to send fault injection commands to real-time applications;

[0012] The output of the real-time application is connected to the input of the HIL test cabinet, and is used to generate a virtual SENT sensor fault signal according to the fault injection command and send it to the HIL test cabinet.

[0013] The output end of the HIL test cabinet is connected to the input end of the diagnostic test unit, and is used to generate an actual SENT sensor fault signal based on the virtual SENT sensor fault signal and send it to the diagnostic test unit.

[0014] The diagnostic testing unit is used to perform fault diagnosis tests on the SENT sensor based on the actual SENT sensor fault signal.

[0015] Furthermore, the ConfigurationDesk unit includes a module for defining external devices, a module for configuring hardware topology, a module for configuring I / O functions, and a module for generating model interfaces;

[0016] The defined external device module is used to establish a device library list for the HIL test cabinet; the configured hardware topology module is used to establish a mapping relationship between hardware I / O channels and the HIL test cabinet; the device library list and mapping relationship are used to build the connection relationship between real-time applications and the HIL test cabinet.

[0017] The configuration I / O function module is used to configure the protocol parameters of the SENT signal;

[0018] The model interface generation module is used to generate the SENT signal model interface.

[0019] Furthermore, the parameters of the virtual SENT sensor signal include Message Length, Serial ID, Serial data, Serial Message, SENT signal value, Channel state, Counter Modify, and CRCModify;

[0020] The Counter Modify and Message Length are used to set the SENT signal rolling counter fault;

[0021] The SENT signal value and Channel state are used to set the SENT signal ADC or DSP internal self-test fault.

[0022] The CRC Modify is used to set the CRC fault for the SENT signal;

[0023] The Serial ID, Serial data, and Serial Message are used to set the SENT signal temperature out-of-range fault.

[0024] Furthermore, the diagnostic testing unit includes a transmission control module and a CANoe test box;

[0025] The input terminal of the gearbox control module is connected to the output terminal of the HIL test cabinet to receive actual SENT sensor fault signals;

[0026] The output of the transmission control module and the input of the CANoe test box are connected via diagnostic CAN. This is used to generate fault information based on the received actual SENT sensor fault signal and send the fault information to the CANoe test box via diagnostic CAN.

[0027] The CANoe test box is used to generate DTCs based on fault information and analyze them, and to complete the fault diagnosis test of the SENT sensor based on the analysis results.

[0028] Furthermore, it also includes the Pico oscilloscope and the PicoScope software used with it;

[0029] The input terminal of the Pico oscilloscope is connected to the output terminal of the HIL test cabinet to acquire actual SENT sensor fault signals. The PicoScope software is used to analyze the signals and compare the analysis results with the preset actual SENT sensor signals to ensure successful fault injection.

[0030] Meanwhile, this invention also provides a SENT sensor fault diagnosis and testing method based on the HIL platform. The method employs the aforementioned SENT sensor fault diagnosis and testing system based on the HIL platform, and its unique feature lies in including the following steps:

[0031] S1. The vehicle physical model is used to generate the data content and logical state of the SENT signal based on the simulated vehicle state, and to form an effective vehicle physical model corresponding to the vehicle physical state based on the data content and logical state of the SENT signal.

[0032] S2. After importing the valid vehicle physical model into the ConfigurationDesk unit, the ConfigurationDesk unit generates the SENT signal model interface by combining the hardware I / O channels and protocol parameters of the SENT signal configured therein.

[0033] S3. After the SENT signal model interface is connected to the valid vehicle physical model, the ConfigurationDesk unit compiles the valid vehicle physical model to obtain a runnable real-time application, and maps the real-time application to the ControlDesk unit; the real-time application is used to generate virtual SENT sensor signals.

[0034] S4 and ControlDesk units send fault injection commands to the real-time application. The real-time application generates virtual SENT sensor fault signals according to the fault injection commands and sends them to the HIL test cabinet.

[0035] The S5 and HIL test cabinets generate actual SENT sensor fault signals based on virtual SENT sensor fault signals and send them to the diagnostic test unit.

[0036] S6. The diagnostic test unit performs fault diagnosis tests on the SENT sensor based on the actual SENT sensor fault signal.

[0037] Further, in step S4, the virtual SENT sensor fault signals include SENT signal Rollingcounter fault, SENT signal ADC or DSP internal self-test fault, SENT signal CRC fault, SENT signal temperature out-of-range fault, and SENT signal loss fault.

[0038] The injection method for the SENT signal Rolling counter fault includes:

[0039] a1. Set the value of Counter Modify to a cycle of 0~255;

[0040] b1. Set the value of Message Length to 270;

[0041] c1. In the ControlDesk unit, after performing the operation of short-circuiting the virtual SENT sensor fault signal to ground at a frequency greater than 100Hz and at a set interval, perform the operation of restoring the virtual SENT sensor fault signal to ground.

[0042] The injection method for the SENT signal ADC or DSP internal self-test fault includes:

[0043] a2. Set the value of Channel state to 1;

[0044] b2. Set the SENT signal value to 4089;

[0045] The injection method for the SENT signal CRC fault is as follows: set the value of CRC Modify to 1;

[0046] The injection method for the SENT signal temperature out-of-range fault is as follows: first, set the value of Serial ID to 35, then set the value of Serial data to 4089, and finally import the Serial ID and Serial data into the virtual SENT sensor signal through Serial Message;

[0047] The injection method for the SENT signal loss fault is as follows: perform virtual SENT sensor fault signal open circuit, short circuit to power, and short circuit to ground operations within the ControlDesk unit.

[0048] Furthermore, step S6 specifically includes:

[0049] S6.1 The transmission control unit generates fault information based on the actual SENT sensor fault signal and sends the fault information to the CANoe test box via the diagnostic CAN.

[0050] S6.2 The CANoe test box generates a DTC based on the fault information and analyzes it. Based on the analysis results, it completes the fault diagnosis test of the SENT sensor.

[0051] Furthermore, in step S2, the protocol parameters of the SENT signal are configured through the configuration I / O function module; the SENT signal model interface is generated through the model interface generation module.

[0052] In step S4, the connection between the real-time application and the HIL test cabinet is established as follows:

[0053] S4.1 Define the external device module and establish the device library list for the HIL test cabinet;

[0054] S4.2 Configure the hardware topology module to establish the mapping relationship between the hardware I / O channels and the HIL test cabinet;

[0055] S4.3. Based on the equipment library list and mapping relationships, complete the construction of the connection relationship between the real-time application and the HIL test cabinet.

[0056] Furthermore, in step S5, the Pico oscilloscope acquires the actual SENT sensor fault signal and analyzes it using PicoScope software. The analysis result is then compared with the preset actual SENT sensor signal to ensure successful fault injection.

[0057] Compared with the prior art, the present invention has the following beneficial technical effects:

[0058] 1. The present invention provides a fault diagnosis and testing system for SENT sensors based on the HIL platform. The HIL diagnostic testing platform for SENT sensors can accurately simulate and analyze SENT signals, and can inject various types of faults into SENT signals, thereby realizing fault diagnosis and testing of SENT sensors. This solves the problem that the fault diagnosis and testing results of existing SENT sensor signals are not accurate enough, and omits the complex steps of disconnection and simulated magnetic field when testing with real sensors, thus improving testing efficiency.

[0059] 2. The present invention provides a SENT sensor fault diagnosis test method based on the HIL platform. By setting the parameters of the virtual SENT sensor signal to simulate the SENT sensor fault signal, the fault signal is injected, thereby realizing the fault diagnosis test of the SENT sensor signal. This makes the fault diagnosis test more comprehensive, and compared with the actual vehicle test, the problem is exposed earlier, reducing the cost. Attached Figure Description

[0060] Figure 1This is a schematic diagram of an embodiment of a SENT sensor fault diagnosis and testing method based on the HIL platform according to the present invention.

[0061] Figure 2 This is a simplified diagram of the SENT displacement sensor model in an embodiment of the SENT sensor fault diagnosis and testing method based on the HIL platform of the present invention. Detailed Implementation

[0062] To make the objectives, advantages, and features of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. Those skilled in the art should understand that these embodiments are merely used to explain the technical principles of the present invention and are not intended to limit the scope of protection of the present invention.

[0063] This embodiment provides a SENT sensor fault diagnosis and testing system based on the HIL platform, such as Figure 1 As shown, it includes the HIL platform, a vehicle physical model, and a diagnostic testing unit; the HIL platform includes the ConfigurationDesk unit, the ControlDesk unit, and the HIL test cabinet.

[0064] The vehicle physical model is used to generate the data content and logical state of the SENT signal based on the simulated vehicle state, and to form a valid vehicle physical model corresponding to the vehicle physical state; the valid vehicle physical model is used to import the ConfigurationDesk unit.

[0065] The ConfigurationDesk unit is used to configure the hardware I / O channels and protocol parameters of the SENT signal, and generate the SENT signal model interface in conjunction with a valid vehicle physical model; the SENT signal model interface is used to access the valid vehicle physical model.

[0066] The ConfigurationDesk unit includes a defining external device module, a configuring hardware topology module, a configuring I / O function module, and a model interface generation module. The defining external device module is used to establish the device library list for the HIL test cabinet. The configuring hardware topology module is used to establish the mapping relationship between hardware I / O channels and the HIL test cabinet. The device library list and mapping relationship are used to build the connection relationship between real-time applications and the HIL test cabinet. The configuring I / O function module is used to configure the protocol parameters of the SENT signal. The model interface generation module is used to generate the SENT signal model interface, and it also includes an adding I / O resource module, which is used to configure the SENT Out type output channel resources of the HIL test cabinet in the virtual SENT sensor signal.

[0067] The specific settings for configuring I / O function modules and adding I / O resource modules are as follows: set the Protocol file for the corresponding SENT protocol of the sensor; set hardware resources, define functional characteristics, define fault simulation, set load description, and display hardware information; set initial and termination values; set the name, description information, and channel information of each module.

[0068] At the interface front end, complete the parameter configuration to correctly simulate the components of SENT, including MessageLength and various SENT signal parameters. Based on the SENT protocol, establish the model parameters required for relevant calculations or functions, including SENT signal values, Channel state, Counter Modify, and CRC Modify. At the SerialMessage input interface front end, based on the slow-channel serial message scheduling table, create a functional module for cyclically sending slow-channel serial messages to more realistically simulate the slow-channel message transmission function of actual SENT sensor signals. The parameters set include Serial ID, Serial data, and Serial CRC Modify. Finally, the generated complete HIL model diagram of the SENT sensor is shown below. Figure 2 As shown.

[0069] The ConfigurationDesk unit is used to compile a valid vehicle physical model that has been connected to the SENT signal model interface to obtain a runnable real-time application, and then map it to the ControlDesk unit. The real-time application is used to generate virtual SENT sensor signals. The ControlDesk unit is used to send fault injection commands to the real-time application.

[0070] The output of the real-time application is connected to the input of the HIL test cabinet. It is used to generate a virtual SENT sensor fault signal according to the fault injection command and send it to the HIL test cabinet. The connection between the real-time application and the HIL test cabinet is that after the real-time application is compiled, it is deployed to the real-time processor in the HIL cabinet. The virtual signal of the real-time application is converted into an actual signal output by the cabinet.

[0071] Among them, Counter Modify and Message Length are used to set the SENT signal Rolling counter fault; SENT signal value and Channel state are used to set the SENT signal ADC or DSP internal self-test fault; CRC Modify is used to set the SENT signal CRC fault; Serial ID, Serial data, and Serial Message are used to set the SENT signal temperature out-of-range fault.

[0072] The output of the HIL test cabinet is connected to the input of the diagnostic test unit. This connection is used to generate actual SENT sensor fault signals based on virtual SENT sensor fault signals and send them to the diagnostic test unit. The diagnostic test unit includes a transmission control unit (TCU) and a CANoe test box. The input of the transmission control unit is connected to the output of the HIL test cabinet to receive actual SENT sensor fault signals. The output of the transmission control unit is connected to the input of the CANoe test box via a diagnostic CAN bus to generate fault information based on the received actual SENT sensor fault signals and send the fault information to the CANoe test box via the diagnostic CAN bus. The CANoe test box generates a diagnostic fault diagnosis (DTC) based on the fault information, parses it, and completes the fault diagnosis test of the SENT sensor based on the parsing results.

[0073] This embodiment of the system also includes a Pico oscilloscope and PicoScope software used in conjunction with it; the input terminal of the Pico oscilloscope is connected to the output terminal of the HIL test cabinet to acquire actual SENT sensor fault signals, and the PicoScope software analyzes them, compares the analysis results with the preset actual SENT sensor signals to ensure successful fault injection.

[0074] The vehicle physical model, ConfigurationDesk unit, ControlDesk unit, and PicoScope software are integrated on the host computer.

[0075] This embodiment presents a SENT sensor fault diagnosis and testing method based on the HIL platform, employing the aforementioned SENT sensor fault diagnosis and testing system based on the HIL platform, and includes the following steps:

[0076] S1. The vehicle physical model is used to generate the data content and logical state of the SENT signal based on the simulated vehicle state, and to form an effective vehicle physical model corresponding to the vehicle physical state based on the data content and logical state of the SENT signal.

[0077] S2. After importing the effective vehicle physical model into the ConfigurationDesk unit through the RTI real-time simulation interface, the ConfigurationDesk unit generates the SENT signal model interface by combining the hardware I / O channels and protocol parameters of the configured SENT signal. The protocol parameters of the SENT signal are configured through the configuration I / O function module; the SENT signal model interface is generated through the model interface generation module.

[0078] S3. After the SENT signal model interface is connected to the valid vehicle physical model, the ConfigurationDesk unit compiles the valid vehicle physical model to obtain a runnable real-time application, and maps the real-time application to the ControlDesk unit; the real-time application is used to generate virtual SENT sensor signals.

[0079] The S4 and ControlDesk units send fault injection commands to the real-time application. The real-time application generates a virtual SENT sensor fault signal based on the fault injection command and sends it to the HIL test cabinet.

[0080] The connection between the real-time application and the HIL test cabinet is established as follows:

[0081] S4.1 Define the external device module and establish the device library list for the HIL test cabinet;

[0082] S4.2 Configure the hardware topology module to establish the mapping relationship between the hardware I / O channels and the HIL test cabinet;

[0083] S4.3. Based on the equipment library list and mapping relationships, complete the construction of the connection relationship between the real-time application and the HIL test cabinet.

[0084] The virtual SENT sensor fault signals include SENT signal Rolling counter fault, SENT signal ADC or DSP internal self-test fault, SENT signal CRC fault, SENT signal temperature out-of-range fault, and SENT signal loss fault.

[0085] To inject a Rolling Counter fault into the SENT signal, the SENT signal of the currently used SENT displacement sensor consists of a synchronization domain, a communication status domain, a data domain, a CRC check domain, and a stop pulse field. The data field contains six Nibs, with the 4th and 5th Nibs acting as a counter. The counter increments by one for each frame of data transmitted, cycling between 0 and 255. To inject a Rolling Counter fault, the counter needs to be accumulating errors. Methods include:

[0086] a1. Modify the input of the counter modify interface of the model: This method is equivalent to adding an extra counter value to the counter modify interface. If a fixed constant is added, it is equivalent to adding all counters, and it will automatically loop when it reaches 255. The accumulation will still proceed normally and there will be no rolling counter error. However, if a constantly changing number is added, it will break the accumulation loop, causing incorrect counting and reporting a rolling counter error. In this method, a number that continuously changes from 0 to 255 is added to the counter.

[0087] b1. Set the Message Length value to 270. The SENT signal frequency of common SENT displacement sensors is specified as 1kHz, and the length of each message frame is 1ms, or 333 ticks. Therefore, the Message Length value in a normal signal is 333. This method injects a fault by changing the length of each message frame. When the difference from the specified value is too large, the SENT signal frequency is incorrect, and the counter will count repeatedly, resulting in an error. In this method, it is changed to 270. The modified SENT signal, after being transmitted to the TCU, correctly reports a Rolling counter fault.

[0088] c1. Simulate signal frame loss by injecting high-frequency signal loss faults: Performing a short-circuit operation to ground at a high frequency (greater than 100Hz) in the Control Desk can also inject rolling counter faults. After the modified SENT signal is transmitted to the TCU, the rolling counter fault is correctly reported. After performing a short-circuit operation to ground on the virtual SENT sensor fault signal at a frequency greater than 100Hz and at a set interval in the Control Desk unit, the short-circuit recovery operation on the virtual SENT sensor fault signal to ground is then performed.

[0089] The injection method for the SENT signal ADC or DSP internal self-test fault includes:

[0090] a2. Set the Channel state value to 1; modify the Channel state field of the SENT signal, that is, change the value of the Channel state of the SENT model interface from 0 to 1 in the Control Desk. After the change, the value of the status field of the SENT frame was found to be increased by 1, which caused the slow channel information to be incorrect. After being sent to the TCU, the ADC or DSP internal self-test fault was reported.

[0091] b2. Set the SENT signal value to 4089; if it exceeds the normal range of 2~4088, the TCU will report an internal self-test fault of the ADC or DSP.

[0092] The injection method for the SENT signal CRC fault is as follows: set the value of CRC Modify to 1; change the value of CRC Modify from 0 to 1 in ControlDesk, which is equivalent to adding 1 to the value of the CRC field of the SENT signal, causing its verification error. This fault signal is transmitted to the TCU and reports a CRC fault.

[0093] The injection method for the SENT signal temperature out-of-range fault is as follows: First, set the value of Serial ID to 35, then set the value of Serial data to 4089, and finally import Serial ID and Serial data into the virtual SENT sensor signal via Serial Message. The temperature of the currently used SENT sensor is transmitted through the slow channel serial message. According to the slow channel serial message scheduling table, the serial message ID corresponding to the temperature information is 0x23, and the corresponding decimal value is 35. Therefore, in the Control Desk, change Serial ID to 35 to indicate the transmission of SENT sensor temperature information, and then change Serial data to out-of-range data 4089 (out of the range of 2~4088). The modified Serial ID and Serial data are imported into the complete virtual SENT sensor signal through the slow channel Serial Message of the SENT signal. After being transmitted to the TCU, the SENT signal temperature out-of-range fault is reported.

[0094] The injection method for the SENT signal loss fault is as follows: perform virtual SENT sensor fault signal open circuit, short circuit to power, and short circuit to ground operations within the ControlDesk unit.

[0095] The S5 and HIL test cabinets generate actual SENT sensor fault signals based on virtual SENT sensor fault signals and send them to the diagnostic test unit. The Pico oscilloscope acquires the actual SENT sensor fault signals and analyzes them using PicoScope software. The analysis results are compared with the preset actual SENT sensor signals to ensure successful fault injection.

[0096] S6. The diagnostic test unit performs fault diagnosis tests on the SENT sensor based on the actual SENT sensor fault signal, specifically as follows:

[0097] S6.1 The transmission control unit generates fault information based on the actual SENT sensor fault signal and sends the fault information to the CANoe test box via the diagnostic CAN.

[0098] S6.2 The CANoe software in the CANoe test box generates DTCs based on the fault information and analyzes them. Based on the analysis results, it completes the fault diagnosis test of the SENT sensor.

[0099] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit them. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the present invention.

Claims

1. A fault diagnosis and testing system for SENT sensors based on the HIL platform, characterized in that: It includes the HIL platform, a complete vehicle physical model, and a diagnostic testing unit; the HIL platform includes a ConfigurationDesk unit, a ControlDesk unit, and an HIL test cabinet; The vehicle physical model is used to generate the data content and logical state of the SENT signal based on the simulated vehicle state, and to form a valid vehicle physical model corresponding to the vehicle physical state; the valid vehicle physical model is used to import into the ConfigurationDesk unit; The ConfigurationDesk unit is used to configure the hardware I / O channels and protocol parameters of the SENT signal, and generate the SENT signal model interface in conjunction with a valid vehicle physical model; the SENT signal model interface is used to access the valid vehicle physical model. The ConfigurationDesk unit is used to compile the valid vehicle physical model that is connected to the SENT signal model interface to obtain a runnable real-time application, and map it to the ControlDesk unit. The ControlDesk unit is used to send a fault injection command to the real-time application based on a preset SENT sensor fault signal. The output of the real-time application is connected to the input of the HIL test cabinet, and is used to generate a virtual SENT sensor fault signal according to the fault injection command and send it to the HIL test cabinet. The output end of the HIL test cabinet is connected to the input end of the diagnostic test unit, and is used to generate an actual SENT sensor fault signal based on the virtual SENT sensor fault signal and send it to the diagnostic test unit. The diagnostic testing unit is used to perform fault diagnosis tests on the SENT sensor based on the actual SENT sensor fault signal.

2. The SENT sensor fault diagnosis and testing system based on the HIL platform according to claim 1, characterized in that: The ConfigurationDesk unit includes a module for defining external devices, a module for configuring hardware topology, a module for configuring I / O functions, and a module for generating model interfaces. The defined external device module is used to establish a device library list for the HIL test cabinet; the configured hardware topology module is used to establish a mapping relationship between hardware I / O channels and the HIL test cabinet; the device library list and mapping relationship are used to build the connection relationship between real-time applications and the HIL test cabinet. The configuration I / O function module is used to configure the protocol parameters of the SENT signal; The model interface generation module is used to generate the SENT signal model interface.

3. The SENT sensor fault diagnosis and testing system based on the HIL platform according to claim 2, characterized in that: The parameters of the virtual SENT sensor signal include Message Length, Serial ID, Serial data, Serial Message, SENT signal value, Channel state, Counter Modify, and CRC Modify; The Counter Modify and Message Length are used to set the SENT signal rolling counter fault; The SENT signal value and Channel state are used to set the SENT signal ADC or DSP internal self-test fault. The CRC Modify is used to set the CRC fault for the SENT signal; The Serial ID, Serial data, and Serial Message are used to set the SENT signal temperature out-of-range fault.

4. The SENT sensor fault diagnosis and testing system based on the HIL platform according to claim 3, characterized in that: The diagnostic testing unit includes a transmission control module and a CANoe test box; The input terminal of the gearbox control module is connected to the output terminal of the HIL test cabinet to receive actual SENT sensor fault signals; The output of the transmission control module and the input of the CANoe test box are connected via diagnostic CAN. This is used to generate fault information based on the received actual SENT sensor fault signal and send the fault information to the CANoe test box via diagnostic CAN. The CANoe test box is used to generate DTCs based on fault information and analyze them, and to complete the fault diagnosis test of the SENT sensor based on the analysis results.

5. The SENT sensor fault diagnosis and testing system based on the HIL platform according to claim 4, characterized in that: It also includes a Pico oscilloscope and a PicoScope module that connects to the Pico oscilloscope; The input terminal of the Pico oscilloscope is connected to the output terminal of the HIL test cabinet to acquire actual SENT sensor fault signals. The PicoScope module analyzes the signals and compares the analysis results with the preset actual SENT sensor signals to ensure successful fault injection.

6. A fault diagnosis and testing method for SENT sensors based on the HIL platform, employing the SENT sensor fault diagnosis and testing system based on the HIL platform as described in any one of claims 1-5, characterized in that, Includes the following steps: S1. The vehicle physical model is used to generate the data content and logical state of the SENT signal based on the simulated vehicle state, and to form an effective vehicle physical model corresponding to the vehicle physical state based on the data content and logical state of the SENT signal. S2. After importing the valid vehicle physical model into the ConfigurationDesk unit, the ConfigurationDesk unit generates the SENT signal model interface by combining the hardware I / O channels and protocol parameters of the SENT signal configured therein. S3. After the SENT signal model interface is connected to the valid vehicle physical model, the ConfigurationDesk unit compiles the valid vehicle physical model to obtain a runnable real-time application, and maps the real-time application to the ControlDesk unit. S4 and ControlDesk units send fault injection commands to the real-time application. The real-time application generates virtual SENT sensor fault signals according to the fault injection commands and sends them to the HIL test cabinet. The S5 and HIL test cabinets generate actual SENT sensor fault signals based on virtual SENT sensor fault signals and send them to the diagnostic test unit. S6. The diagnostic test unit performs fault diagnosis tests on the SENT sensor based on the actual SENT sensor fault signal.

7. The SENT sensor fault diagnosis test method based on the HIL platform according to claim 6, characterized in that: In step S4, the virtual SENT sensor fault signals include SENT signal Rolling counter fault, SENT signal ADC or DSP internal self-test fault, SENT signal CRC fault, SENT signal temperature out-of-range fault, and SENT signal loss fault. The injection method for the SENT signal Rolling counter fault includes: a1. Set the value of Counter Modify to a cycle of 0~255; b1. Set the value of Message Length to 270; c1. In the ControlDesk unit, after performing the operation of short-circuiting the virtual SENT sensor fault signal to ground at a frequency greater than 100Hz and at a set interval, perform the operation of restoring the virtual SENT sensor fault signal to ground. The injection method for the SENT signal ADC or DSP internal self-test fault includes: a2. Set the value of Channel state to 1; b2. Set the SENT signal value to 4089; The injection method for the SENT signal CRC fault is as follows: set the value of CRC Modify to 1; The injection method for the SENT signal temperature out-of-range fault is as follows: first, set the value of Serial ID to 35, then set the value of Serial data to 4089, and finally import the Serial ID and Serial data into the virtual SENT sensor signal through Serial Message; The injection method for the SENT signal loss fault is as follows: perform virtual SENT sensor fault signal open circuit, short circuit to power, and short circuit to ground operations within the ControlDesk unit.

8. The SENT sensor fault diagnosis test method based on the HIL platform according to claim 7, characterized in that, Step S6 is as follows: S6.1 The transmission control unit generates fault information based on the actual SENT sensor fault signal and sends the fault information to the CANoe test box via the diagnostic CAN. S6.2 The CANoe test box generates a DTC based on the fault information and analyzes it. Based on the analysis results, it completes the fault diagnosis test of the SENT sensor.

9. The SENT sensor fault diagnosis and testing method based on the HIL platform according to claim 8, characterized in that: In step S2, the protocol parameters of the SENT signal are configured through the configuration I / O function module; the SENT signal model interface is generated through the model interface generation module. In step S4, the connection between the real-time application and the HIL test cabinet is established as follows: S4.1 Define the external device module and establish the device library list for the HIL test cabinet; S4.2 Configure the hardware topology module to establish the mapping relationship between the hardware I / O channels and the HIL test cabinet; S4.

3. Based on the equipment library list and mapping relationships, complete the construction of the connection relationship between the real-time application and the HIL test cabinet.

10. The SENT sensor fault diagnosis test method based on the HIL platform according to claim 9, characterized in that: Step S5 also includes using a Pico oscilloscope to acquire the actual SENT sensor fault signal, analyzing it through the PicoScope module, comparing the analysis result with the preset actual SENT sensor signal, and ensuring that the fault injection is successful.