A device and control method for testing SENT sending and receiving
By providing a device for testing SENT transmission and reception, and using the combination of the main controller and the SENT communication module, the problem of SENT protocol analysis is solved, high testing efficiency and cost savings are achieved, and the SENT signal can be analyzed and simulated in real time.
Patent Information
- Application Number
- CN202111130005.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-26
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2041-09-26
AI Technical Summary
The analysis of the SENT protocol in the existing technology is cumbersome, and it is difficult to trace the changes of each frame, resulting in low test efficiency and high cost.
Provides a device for testing SENT sending and receiving, including a power module, a main controller, an indicator light module and a SENT communication module. The main controller parses the control command and sets the SENT communication module to sending or receiving mode. The serial communication module is connected to the PC to realize real-time data analysis and analog signal transmission.
It greatly improves the efficiency of SENT analysis and testing, saves testing time and costs, can display the analyzed data in real time, and simulates the action status of the ECU under various environments or faults without the need for a real test environment.
Smart Images

Figure CN114019840B
Abstract
Description
Technical Field
[0001] The present invention is applicable to the field of sensor communication technology, and specifically relates to a device and a control method for testing SENT sending and receiving. Background Art
[0002] Single Edge Nibble Transmission for Automotive Applications is a point-to-point, unidirectional transmission solution launched by SAE. It is used for data transmission between vehicle sensors and electronic control units (ECUs) and is applicable to the standard SAE J2716.
[0003] At present, more and more sensors are using the SENT protocol. However, in the existing technology, the analysis of the SENT protocol is often cumbersome, and it is difficult to trace the changes in each frame. It is necessary to develop a receiving module to check the data of each frame by itself, which can easily lead to the risk of being difficult to find. Summary of the invention
[0004] The object of the present invention is to provide a device and a control method for testing SENT sending and receiving, aiming to overcome at least one problem existing in the prior art.
[0005] According to an embodiment of this specification, a device for testing SENT sending and receiving is provided, and the device for testing SENT sending and receiving includes:
[0006] A power module is configured to provide the entire system device with a voltage required for normal operation;
[0007] A main controller is configured to parse the control command and then set the SENT communication module to a SENT sending mode or a receiving mode according to the parsed command;
[0008] An indicator light module, connected to the main controller; the indicator light module is configured to indicate the working state, working mode and working frequency band of the device;
[0009] A SENT communication module is connected to the main controller; the SENT communication module includes a receiving module and a sending module;
[0010] Among them, when the SENT communication module is set to the receiving working mode, the receiving module receives the data information of the SENT sensor and sends the received SENT data information to the main controller, the main controller stores and sends the received SENT data information to the PC, and the PC displays the received SENT data information in real time; when the SENT communication module is set to the sending working mode, the main controller receives the data information sent by the PC, the sending module receives the SENT data information sent from the main controller, and then sends the SENT data information.
[0011] Preferably, the main controller establishes a communication connection with the PC via a serial port communication module.
[0012] Preferably, the main controller parses and packages the data received from the receiving module and sends the data to the PC.
[0013] Preferably, the main controller unpacks the data received from the PC and sends the data to the sending module.
[0014] Preferably, the operating parameters of the device for testing SENT sending and receiving include: Tick time, operating mode, Nibble length, SENT mode and data length.
[0015] Preferably, the indicator light module includes three indicator lights: a power light, a sending light, and a receiving light;
[0016] The receiving light is configured to flash green to indicate that the device is in a receiving state;
[0017] The sending light is configured to flash yellow to indicate that the device is in a sending state;
[0018] The power light is configured to be red to indicate that the device is in normal working state after being powered on.
[0019] Preferably, the receiving module receives data information sent by the SENT sensor including pressure, temperature, humidity and air flow.
[0020] Preferably, the serial communication module uses a USB to serial port cable, a custom protocol between the PC and the main controller, and a vehicle-specific communication protocol to achieve PC communication based on the main controller.
[0021] According to an embodiment of this specification, a control method for sending and receiving SENT is also provided.
[0022] The PC transmits parameter control commands and data to the main controller;
[0023] The main controller parses the control command;
[0024] The main controller sets the SENT communication module to a sending mode or a receiving mode according to the parsed command;
[0025] Among them, when the SENT communication module is set to the sending working mode, the main controller sends the received data stream to the sending module, and the SENT signal sending module sends the data information; when the SENT communication module is set to the receiving working mode, the data signal sent by the SENT sensor is directly observed on the PC display interface.
[0026] Preferably, the PC and the main controller establish a communication connection via a serial port communication module.
[0027] In summary, due to the adoption of the above technical scheme, the beneficial effects of the present invention are: the main controller parses the control commands of the PC, and the device can be set to the receiving mode or the sending mode, which can not only parse the data information sent by the SENT sensor in real time, but also simulate the sending of the SENT signal, which greatly improves the SENT analysis test efficiency, saves test time and saves test costs.
[0028] 1. In this embodiment, when the device is set to receiving mode, the receiving module obtains the SENT signal of the sensor, and the main controller performs data analysis on the received SENT signal. The analyzed data is sent to the PC through the serial port of the device. Compared with the prior art of using an oscilloscope to display the waveform, this embodiment can see the analyzed data in real time, which greatly improves the efficiency of the SENT analysis test and saves the test time.
[0029] 2. In this embodiment, when the device is set to the sending mode, it can also simulate the SENT signal of the sensor. Through the PC setting, the simulated SENT signal is sent to the ECU. It does not need to be placed in various real test environments. The action state of the ECU in various environments or faults can be simulated, which simplifies the test process, saves test time and saves test costs.
[0030] Other advantages, objectives and features of the present invention will be embodied in part through the following description, and in part will be understood by those skilled in the art through study and practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 It is a principle block diagram of the device when the working mode of the device of the present invention is the SENT sending mode;
[0032] Figure 2 It is a principle block diagram of the device when the working mode of the device of the present invention is the SENT receiving mode;
[0033] Figure 3It is a flow chart of the control method for testing SENT reception and transmission of the present invention;
[0034] Figure 4 It is a flow chart of the sending part of the control method for testing SENT receiving and sending of the present invention;
[0035] Figure 5 It is a flow chart of the receiving part of the control method for testing SENT reception and transmission of the present invention. DETAILED DESCRIPTION
[0036] The technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0037] It should be noted that the terms "including" and "having" and any variations thereof in the embodiments and drawings of this specification are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device including a series of steps or units is not limited to the listed steps or modules, but may optionally include steps or modules not listed, or may optionally include other steps or modules inherent to these processes, methods, products or devices.
[0038] It should be noted that, unless otherwise clearly specified and limited, the terms "connected" and "connected" in the embodiments of this specification should be understood in a broad sense, for example, directly connected or indirectly connected through an intermediate medium. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0039] The embodiment of the present invention discloses a receiving and sending device for testing SENT.
[0040] Figure 1-2 A device for testing SENT reception and transmission is provided according to an embodiment of the present invention. Figure 1-2 As shown, a device for testing SENT reception and invention includes: a power module, a main controller, an indicator light module, and a SENT communication module.
[0041] In an embodiment of the present invention, the power module is configured to provide the voltage required for normal operation of the entire system device; the main controller is configured to parse the control command, and then set the SENT communication module to the SENT sending mode or receiving mode according to the parsed command; the indicator light module is connected to the main controller and is configured to indicate the working state, working mode and working frequency band of the device; the SENT communication module is connected to the main controller, and the SENT communication module includes a receiving module and a sending module;
[0042] Among them, when the SENT communication module is set to the receiving working mode, the receiving module receives the data information of the SENT sensor and sends the received SENT data information to the main controller. The main controller stores and parses the data information and then sends the SENT data information to the PC; when the SENT communication module is set to the sending working mode, the main controller receives the data information sent by the PC and sends the unpacked data to the sending module. The sending module sends the SENT data signal to the electronic control ECU.
[0043] The embodiment of the present invention provides a device for testing SENT reception and transmission. The device adopts IO coding mode. The main controller of the device parses the control command of the PC. The device can be set to receiving mode or sending mode. It can not only parse the data information sent by the SENT sensor in real time, but also simulate the sending of SENT signals. When the device is set to receiving mode, the receiving module obtains the SENT signal of the sensor, and the main controller parses the received SENT signal. The parsed data is sent to the PC through the serial port of the device. Compared with the prior art that uses an oscilloscope to display the waveform, the present embodiment can see the parsed data in real time; when the device is set to sending mode, the SENT signal of the sensor can also be simulated. Through the PC setting, the simulated SENT signal is sent to the ECU. It does not need to be placed in various real test environments, and the action state of the ECU under various environments or faults can be simulated. The efficiency of SENT parsing test is greatly improved, and the test time and test cost are saved.
[0044] In one embodiment, the main controller establishes a communication connection with the PC through a serial communication module, and the baud rate of the serial communication module is 9.6 kbps±5%.
[0045] In other implementations, the serial communication method can replace or add hardware interfaces such as the SPI communication method and the IIC communication method.
[0046] In one embodiment, the operating parameters of the apparatus for testing SENT transmission and reception include: Tick time, operating mode, Nibble length, SENT mode and data length.
[0047] Specifically, the data of the SENT protocol is encoded using half a byte Nibble, that is, 4 bits. A half byte Nibble is defined by the time difference between two falling edges. The time accuracy is defined by 1 tick, and generally 1 tick is 3 to 90us. A complete SENT data frame structure is;
[0048] (1) Synchronous pulse: The starting segment of the SENT signal. The time interval between this pulse and the subsequent falling edge is 56 clock ticks. The unit time of the tick can be identified through this pulse signal, so as to correctly analyze the specific values represented by the subsequent data segments (nibbles).
[0049] (2) Status / communication pulse segment: After the synchronization pulse, the status / communication segment (4 bits) expresses more information by splicing and combining multiple SENT signal data. The time interval is 12-27 ticks, that is, 1 Nibble.
[0050] (3) Data pulse segment: Up to 6 Nibble data can be filled, each data can represent the range of 1-16, and generally 3 Nibbles (12 bits) are combined into complete data information.
[0051] (4) CRC check segment: The time interval is 1-27 ticks, that is, 1 Nibble.
[0052] (5) Stop pulse segment: A 12-728 tick pause pulse can be selectively inserted at the end of each signal. The SENT signal without a stop pulse has different frame lengths due to different transmitted data. The introduction of the stop pulse segment can fix the length of each signal frame.
[0053] In one embodiment, the indicator light module includes three indicator lights: a power light, a sending light, and a receiving light; when the receiving light is configured to flash green, it indicates that the device is in a receiving state; when the sending light is configured to flash yellow, it indicates that the device is in a sending state; and when the power light is configured to flash red, it indicates that the device is in a normal working state after power-on.
[0054] After the power is turned on, the red light of the indicator module lights up, indicating that the device is in normal working condition; when the main controller is set to SENT receiving mode according to the parsing command, the green light starts to flash; when the main controller is set to SENT sending mode according to the parsing command, the yellow light starts to flash.
[0055] In one embodiment, the receiving module receives data information sent by the SENT sensor including pressure, temperature, humidity and air flow.
[0056] In one embodiment, the serial communication module uses a USB to serial cable, a custom protocol between the PC and the main controller, and a vehicle-specific communication protocol to implement PC communication based on the main controller.
[0057] The embodiment of the present invention further discloses a control method for testing SENT sending and receiving, which is described in detail below.
[0058] Figure 3-5 A control method for testing reception and transmission provided according to an embodiment of the present invention is shown. Figure 3-5 As shown, a specific step of a control method for testing SENT reception and transmission includes:
[0059] Step A: The PC transmits parameter control commands and data to the main controller.
[0060] Specifically, the PC sets parameters and control commands according to specific test requirements, and sends parameter control commands and data to the main controller through the serial communication interface. Parameters include Tick time, working mode, Nibble length, SENT mode and data length.
[0061] Step B: the main controller parses the control command.
[0062] Specifically, the main controller establishes a communication connection with the PC through the serial communication module, receives the control command sent by the PC, and parses the control command according to the internally defined communication protocol.
[0063] Step C: the main controller sets the SENT communication module to a sending mode or a receiving mode according to the parsed command.
[0064] Step D, when the SENT communication module is set to the sending working mode, the main controller sends the received SENT data to the sending module, and the SENT signal sending module sends the data information; when the SENT communication module is set to the receiving working mode, the data signal sent by the SENT sensor is directly observed on the PC display interface.
[0065] In a specific embodiment, when the SENT communication module is set to the sending working mode, the main controller unpacks the received SENT data and then sends the unpacked data through the SENT sending module; when the SENT communication module is set to the receiving working mode, the main controller receives data through the SENT receiving module, then parses and packages the received SENT data stream, and transmits the packaged data to the PC through the serial port module and interface, and the PC displays the received SENT data stream in real time.
[0066] Although the embodiments of the present invention have been disclosed as above, they are not limited to the applications listed in the specification and the implementation modes. They can be fully applied to various fields suitable for the present invention. For those familiar with the art, additional modifications can be easily implemented. Therefore, without departing from the general concept defined by the claims and the scope of equivalents, the present invention is not limited to the specific details and the embodiments shown and described herein.
Claims
1. A device for testing SENT transmission and reception, It is characterized in that include: A power module is configured to provide the entire system device with a voltage required for normal operation; The main controller is configured to parse the control command and then set the SENT communication module to a SENT sending mode or a receiving mode according to the parsed command; An indicator light module, connected to the main controller; the indicator light module is configured to display the working state, working mode and working frequency band; A SENT communication module is connected to the main controller; the SENT communication module includes a receiving module and a sending module; wherein, when the SENT communication module is set to a receiving working mode, the receiving module receives data information of the SENT sensor, and sends the received SENT data information to the main controller, the main controller stores and sends the received SENT data information to the PC, and the PC displays the received SENT data information in real time; when the SENT communication module is set to a sending working mode, the main controller receives the data information sent by the PC and sends it to the sending module, and the sending module sends the SENT data information to the electronic control ECU; The main controller establishes a communication connection with the PC via a serial communication module; The main controller parses and packages the data received from the receiving module and sends the data to the PC; The main controller unpacks the SENT data received from the PC and sends it to the sending module; The operating parameters of the device for testing SENT sending and receiving include: Tick time, working mode, Nibble length, SENT mode and data length; The indicator light module includes three indicator lights: power light, sending light, and receiving light; The receiving light is configured to flash green to indicate that the device is in a receiving state; The sending light is configured to flash yellow to indicate that the device is in a sending state; The power light is configured to be red to indicate that the device is in normal working state after being powered on; The receiving module receives data information sent by the SENT sensor including pressure, temperature, humidity and air flow.
2. The device for testing SENT transmission and reception as claimed in claim 1, It is characterized in that The serial communication module uses a USB to serial cable, a custom protocol between the PC and the main controller, and a vehicle-specific communication protocol to achieve PC communication based on the main controller.
