SENT protocol-based sensor signal simulator
Through the SENT protocol-based sensor signal simulator, power supply, buck module, FPGA board and inverter output signals that comply with SENT protocol are solved, and the safety of the test is improved and environmental adaptability.
Patent Information
- Application Number
- CN202420506599.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-15
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2034-03-15
AI Technical Summary
In vehicle-mounted sensor testing, the test piece generates higher heat, resulting in poor stability and low safety factor, and at the same time, high requirements for the test circuit and environment.
Design a sensor signal simulator based on the SENT protocol, including power supply, step-down module, FPGA board and inverter, and output signals that comply with the SENT protocol through the FPGA board, realize digital programmable testing, and reduce the requirements of the test circuit and environment.
It realizes reducing heat generation during testing, improving stability and safety factor, meeting the signal output of the SENT protocol, and simplifying the requirements of the test environment.
Smart Images

Figure CN222071080U_ABST
Abstract
Description
Technical Field
[0001] The utility model belongs to the technical field of sensor simulation, and in particular relates to a sensor signal simulator based on a SENT protocol. Background Art
[0002] With the continuous growth of automobile increments, the number of main control boards in production has also continued to increase. During the testing process of the main control boards, it is inevitable to test pressure sensors, air flow sensors and other equipment.
[0003] The Chinese name of the SENT protocol is: Single Edge Half-Word Transmission Protocol. It is a point-to-point, unidirectional transmission solution launched by SAE and is used for data transmission between vehicle-mounted sensors and electronic control units. The main features of SENT are as follows: (1) No receiver and integrated transmitter are required, so the cost is lower than CAN or Lin, and it has good transmission accuracy and speed. The digital data transmission speed can reach 30kb / s. (2) Single-wire data transmission, a total of 3 wires (signal line above 4.1V is high, below 0.5V is low); unidirectional transmission protocol, data can only be transmitted from the sensor to the ECU, the transmission is continuous, and no request command is required. Based on this, the SENT protocol is widely used in the testing of vehicle-mounted sensors.
[0004] However, in the actual test system of vehicle-mounted sensors, the tested device will generate high heat during the test, resulting in poor stability and low safety factor, while also placing high requirements on the test circuit and test environment.
[0005] The information disclosed in this background technology section is only intended to increase the understanding of the overall background of the present invention, and should not be regarded as acknowledging or suggesting in any form that the information constitutes the prior art already known to a person skilled in the art. Utility Model Content
[0006] The purpose of the utility model is to provide a sensor signal simulator based on the SENT protocol, which can solve the problems in the above-mentioned background technology.
[0007] In order to achieve the above purpose, the technical solution provided by a specific embodiment of the utility model is as follows:
[0008] A sensor signal simulator based on the SENT protocol, comprising: a power supply, a voltage reduction module, an FPGA board, an inverter and a host computer;
[0009] Among them, the power supply is electrically connected to the step-down module and the host computer, and is used to power the FPGA board and the host computer. The step-down module is electrically connected to the inverter, and is used to reduce the voltage transmitted by the step-down module, and is also used to convert the signal level transmitted by the inverter. The FPGA board is electrically connected to the host computer, and is used to output the SENT signal. The inverter is connected to the output end of the FPGA board, and is used to transmit the SENT signal to the outside.
[0010] In one or more embodiments of the present invention, the rated voltage of the power supply is 12V.
[0011] In one or more embodiments of the present invention, the minimum output voltage of the step-down module is 5V.
[0012] In one or more embodiments of the present invention, the voltage reduction module uses a 5V to 3.3V chip to convert a 5V voltage into a 3.3V voltage.
[0013] In one or more embodiments of the present invention, the number of output signals of the FPGA board is two.
[0014] In one or more embodiments of the present invention, the time node of the SENT signal is 3us.
[0015] In one or more embodiments of the present invention, a manual input port and an automatic input port are provided on the FPGA board, and the automatic input port is communicatively connected to the host computer.
[0016] In one or more embodiments of the present invention, the communication protocol between the automatic input port and the host computer includes 12 bytes, wherein Byte 0: AA frame header, Byte 1: 10 / 20 is the channel for selecting SENT1 / SENT2, Byte 2: OD is the data packet length, Byte 3: STATUS parameter of SENT, Byte 4-9: DATA parameter of SENT, Byte 10: CRC parameter of SENT, Byte 11: PAUSE parameter of SENT, and Byte 12: checksum of the data packet.
[0017] Compared with the prior art, the sensor signal simulator based on the SENT protocol of the utility model can output the same SENT signal as a real sensor, and realize digital programmable testing by inputting control instructions through a serial port, thereby solving the problem that the tested device will generate high heat, poor stability and low safety factor during testing, and at the same time can also reduce the requirements for the test circuit and the test environment. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the embodiments of the utility model or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the utility model. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0019] Figure 1 This is a system block diagram of a sensor signal simulator based on the SENT protocol in one embodiment of the utility model;
[0020] Figure 2 This is a power supply circuit diagram of a sensor signal simulator based on the SENT protocol in one embodiment of the utility model;
[0021] Figure 3 This is a circuit diagram of a voltage reduction module of a sensor signal simulator based on the SENT protocol in one embodiment of the utility model;
[0022] Figure 4 This is a circuit diagram of an automatic input port of a sensor signal simulator based on the SENT protocol in one embodiment of the utility model;
[0023] Figure 5 A manual input port circuit diagram of a sensor signal simulator based on the SENT protocol in one embodiment of the utility model;
[0024] Figure 6 This is a circuit diagram of an FPGA board of a sensor signal simulator based on the SENT protocol in one embodiment of the utility model;
[0025] Figure 7 This is a SENT signal output circuit diagram of a sensor signal simulator based on the SENT protocol in one embodiment of the utility model;
[0026] Figure 8 A SENT protocol calculation diagram of a sensor signal simulator based on the SENT protocol in one embodiment of the utility model;
[0027] Fig. 9 The present invention is a serial communication protocol diagram of a sensor signal simulator based on the SENT protocol in one embodiment of the present invention. DETAILED DESCRIPTION
[0028] In order to enable those skilled in the art to better understand the technical solutions in the present invention, the following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0029] like Figure 1-Figure 9 As shown, a sensor signal simulator based on the SENT protocol in one embodiment of the utility model includes a power supply, a step-down module, an FPGA board, an inverter and a host computer.
[0030] The power supply is electrically connected to the step-down module and the host computer, and is used to supply power to the FPGA board and the host computer.
[0031] Preferably, the rated voltage of the power supply is 12V.
[0032] In addition, the minimum output voltage of the step-down module is 5V, that is, the step-down module can reduce the 12V voltage of the power supply to 5V, and then reduce the voltage to 3.3V for use by the FPGA board.
[0033] like Figure 1-Figure 9 As shown, the step-down module and the inverter are electrically connected to reduce the voltage delivered by the step-down module and to convert the signal level delivered by the inverter.
[0034] Among them, the inverter can convert the 3.3V high level of the SENT signal into a 5V high level signal for output.
[0035] In addition, the FPGA board is electrically connected to the host computer for outputting the SENT signal.
[0036] Preferably, the FPGA board is provided with a manual input port and an automatic input port, and the automatic input port is connected to the host computer for communication. The number of output signals of the FPGA board is two.
[0037] In manual testing, the sensor values to be input can be input to the FPGA board through the manual input port. In automatic testing, the sensor values to be tested are input to the FPGA through the automatic input port through the host computer programming.
[0038] Specifically, the time node of the SENT signal is 3us, that is, the FPGA board outputs a corresponding SENT signal every 3us.
[0039] Preferably, each frame of the SENT signal output by the present application mainly includes the following five parts:
[0040] 1. Synchronization / calibration pulse (contains 56 clock ticks).
[0041] 2. A Nibble (i.e. 4 bits) Status and Serial Communication pulse (12-27 clock ticks).
[0042] 3. Six consecutive nibbles’ data pulses (each nibble: 12-27 clock ticks).
[0043] 4. A Nibble (i.e. 4 bits) CRC and checksum pulse (12-27 clock ticks).
[0044] 5An optional pause pulse.
[0045] Among them, 1tick=3us, Minimun 12 ticks (data=0), Maximun 27 ticks (data=15).
[0046] like Figure 8 As shown, the pressure sensor value is calculated as follows: every 4 bits is a data, and the obtained data is converted into corresponding Nibbles.
[0047] like Figure 1-Figure 9 As shown, the communication protocol between the automatic input port and the host computer includes 12 bytes.
[0048] Among them, Byte 0: AA frame header, Byte 1: 10 / 20 is the channel for selecting SENT1 / SENT2, Byte 2: OD is the data packet length, Byte 3: SENT's STATUS parameter, Byte 4-9: SENT's DATA parameter, Byte 10: SENT's CRC parameter, Byte 11: SENT's PAUSE parameter, Byte 12: The checksum of the data packet.
[0049] like Figure 1-Figure 9 As shown, the inverter is connected to the output end of the FPGA board and is used to transmit the SENT signal to the outside. That is, the SENT signal output by the FPGA board is transmitted to the outside through the inverter, so that the 3.3V level of the SENT signal is converted into a 5V level and then output.
[0050] The voltage difference 200 / 2240 waveform is drawn according to the output SENT signal. In the voltage difference 200 / 2240 waveform, Synchronization / calibration pulse is 56 ticks, 168us; STATUS is 27 ticks, 81us; DATA1 is 12 ticks, 36us; DATA2 is 18 ticks, 54us; DATA3 is 14 ticks, 52us; DATA4 is 12 ticks, 52us; DATA5 is 18 ticks, 8lus; DATA6 is 12 ticks, 36us; CRC is 15 ticks, 45us; PAUSE is 56 ticks, 168us.
[0051] The signal simulator of the present application uses an FPGA board, which can convert the sensor's numerical value into a SENT signal, which complies with J2716 and JAN2010 standards. It has the advantages of being small in size and easy to add test fixtures to realize automated testing, ensuring that the signal simulator can simulate the device under test, effectively solving the problem that the device under test will generate high heat, poor stability and low safety factor during testing, and can also reduce the requirements for the test circuit and test environment.
[0052] It is obvious to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the present invention can be implemented in other specific forms without departing from the spirit or essential features of the present invention. Therefore, the embodiments should be regarded as exemplary and non-restrictive from any point of view, and the scope of the present invention is defined by the appended claims rather than the above description, and it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims be included in the present invention. Any reference numeral in a claim should not be regarded as limiting the claim to which it relates.
[0053] In addition, it should be understood that although the present specification is described according to implementation modes, not every implementation mode contains only one independent technical solution. This description of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each embodiment may also be appropriately combined to form other implementation modes that can be understood by those skilled in the art.
Claims
1. A sensor signal simulator based on the SENT protocol, It is characterized in that include: Power supply, step-down module, FPGA board, inverter and host computer; Among them, the power supply is electrically connected to the step-down module and the host computer, and is used to power the FPGA board and the host computer. The step-down module is electrically connected to the inverter, and is used to reduce the voltage transmitted by the step-down module, and is also used to convert the signal level transmitted by the inverter. The FPGA board is electrically connected to the host computer, and is used to output the SENT signal. The inverter is connected to the output end of the FPGA board, and is used to transmit the SENT signal to the outside.
2. A sensor signal simulator based on the SENT protocol according to claim 1, It is characterized in that The rated voltage of the power supply is 12V.
3. A sensor signal simulator based on the SENT protocol according to claim 1, It is characterized in that The minimum output voltage of the step-down module is 5V.
4. A sensor signal simulator based on the SENT protocol according to claim 1, It is characterized in that The step-down module uses a 5V to 3.3V chip to convert 5V voltage into 3.3V voltage.
5. A sensor signal simulator based on the SENT protocol according to claim 1, It is characterized in that The number of output signals of the FPGA board is two.
6. A sensor signal simulator based on the SENT protocol according to claim 5, It is characterized in that The time node of the SENT signal is 3us.
7. A sensor signal simulator based on the SENT protocol according to claim 5, It is characterized in that The FPGA board is provided with a manual input port and an automatic input port, and the automatic input port is communicatively connected with the host computer.
