A SENT protocol decoding detection circuit

By integrating the SENT protocol decoding and detection circuit into the receiving host or transmitting chip, the problem that the SENT protocol can only rely on the receiving host for decoding is solved, realizing real-time data decoding and error monitoring, and improving the security and efficiency of data transmission.

CN116886779BActive Publication Date: 2026-11-27PINGJIE ELECTRONIC TECHNOLOGY (JIANGSU) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310971279.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-03
Publication Date
2026-11-27
Estimated Expiration
2043-08-03

AI Technical Summary

Technical Problem

The existing SENT protocol can only perform data decoding and correctness verification through the receiving host, which makes the decoding operation complex and poses security risks.

Method used

Design a SENT protocol decoding and detection circuit, integrated into the receiving host or transmitting chip, including a data decoding circuit and a data verification circuit, which can perform decoding and error detection before the data enters the receiving host.

Benefits of technology

It reduces the complexity of decoding operations on the receiving host, improves the security and efficiency of data transmission, and enables real-time self-checking and error monitoring of data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116886779B_ABST
    Figure CN116886779B_ABST
Patent Text Reader

Abstract

The application discloses a SENT protocol decoding detection circuit and relates to the field of decoding; the SENT protocol decoding detection circuit comprises a data decoding circuit, a data verification circuit and an external system provided with a receiving host; the data decoding circuit is used for generating SENT decoding data according to SENT frame format information and filtered SENT serial data and transmitting the SENT decoding data to the data verification circuit and the external system provided with the receiving host; and the data verification circuit is used for generating error monitoring information according to the SENT decoding data and the filtered SENT serial data and transmitting the error monitoring information to the external system provided with the receiving host. The SENT protocol decoding detection circuit is integrated between a sending chip and an interface chip of the receiving host, can perform decoding processing on data before the data enters the receiving host, avoids the limitation that decoding detection can only be performed by relying on the receiving host, and reduces the operation complexity of the receiving host by performing decoding detection on the data before the data enters the receiving host.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of decoding, and in particular to a SENT protocol decoding detection circuit. Background Technology

[0002] Single Edge Nibble Transmission (SENT) is a low-cost, one-way, point-to-point data transmission protocol specified by the Society of Automotive Engineers (SAE). It is widely used in information transmission for automotive sensors and electronic control units. As a one-way transmission protocol, the SENT data transmission module of a chip cannot promptly identify errors in the transmitted data, leading to a series of security risks. Furthermore, the currently widely used SENT protocol is a one-way transmission protocol; decoding and verifying the correctness of the transmitted data can only be achieved by the receiving host using relevant decoding and verification tools, thus limiting the decoding and verification of transmitted data.

[0003] The complexity of decoding operations for the receiving host arises because the decoding and verification of transmitted data can only be achieved by the receiving host using relevant decoding and verification tools. Summary of the Invention

[0004] The purpose of this invention is to provide a SENT protocol decoding and detection circuit, which overcomes the limitation of existing technologies that rely on the receiving host for decoding and detection.

[0005] To achieve the above objectives, the present invention provides the following solution:

[0006] A SENT protocol decoding and detection circuit, the SENT protocol decoding and detection circuit being integrated into the interface chip or transmitting chip of the receiving host, the SENT protocol decoding and detection circuit comprising:

[0007] Data decoding circuit, used for:

[0008] Based on the SENT decoding clock and start signal, SENT decoding data is generated according to the SENT frame format information and the filtered SENT serial data.

[0009] The SENT decoded data is transmitted to the data verification circuit and an external system equipped with a receiving host;

[0010] Data verification circuit, used for:

[0011] Based on the SENT frame format information, the SENT decoding clock, and the start signal, error monitoring information is generated according to the SENT decoded data and the filtered SENT serial data.

[0012] The error detection information is transmitted to an external system equipped with a receiving host.

[0013] Optionally, the SENT protocol decoding and detection circuit further includes:

[0014] Data synchronization and filtering circuitry is used for:

[0015] The SENT serial data is synchronized to obtain synchronized SENT serial data.

[0016] The synchronized SENT serial data is filtered to obtain filtered SENT serial data.

[0017] The filtered SENT serial data is transmitted to the data decoding circuit and the data verification circuit.

[0018] Optionally, the SENT protocol decoding and detection circuit further includes:

[0019] Start signal generation logic, used for:

[0020] The start signal is generated based on the filtered SENT serial data;

[0021] The start signal is transmitted to the data decoding circuit and the data verification circuit.

[0022] Optionally, the data decoding circuit specifically includes:

[0023] A counter is used to decode the filtered SENT serial data based on the SENT decoding clock and the start signal to obtain decoded data; the decoded data includes a status nib, a data nib, and a cyclic redundancy check nib.

[0024] The frame structure determination logic is used to determine subsequent pulses based on the synchronization pulse and the SENT frame format information; the synchronization pulse is identified based on the length of the high-level pulse detected in the decoded data.

[0025] The count value-data conversion logic is used to generate SENT decoded data based on the decoded data and subsequent pulses;

[0026] An internal register is used to store the SENT decoded data and transmit the SENT decoded data to the data verification circuit and the external system equipped with a receiving host.

[0027] Optionally, the data verification circuit includes:

[0028] The serial data level detection logic is used to detect whether the duration of the high and low levels of the filtered SENT serial data is abnormal, and to obtain the detection result.

[0029] If the detection result is negative, it indicates that there are no errors in the filtered SENT serial data;

[0030] If the detection result is yes, it indicates that there is an error in the filtered SENT serial data, generates a first error signal, and transmits the first error signal to the error status register;

[0031] The status nibble data extraction logic is used to generate channel messages based on the SENT decoded data, and transmit the channel messages to the cyclic redundancy check calculation module and the cyclic redundancy check result comparison module respectively; the channel messages include fast channel information and slow channel information.

[0032] The cyclic redundancy check calculation module is used to perform calculations based on the channel message, obtain a first calculation result, and transmit the first calculation result to the cyclic redundancy check result comparison module.

[0033] The cyclic redundancy check result comparison module is used to compare whether the first calculation result and the slow channel message are consistent, and obtain the comparison result;

[0034] If the comparison result is yes, it indicates that there are no errors in the SENT decoded data;

[0035] If the comparison result is negative, it indicates that there is an error in the SENT decoded data, a second error signal is generated, and the second error signal is transmitted to the error status register;

[0036] The error status register is used to store the second error signal and the first error result as the error monitoring information, and transmits the error monitoring information to an external system equipped with a receiving host.

[0037] Optionally, the slow channel information includes a cyclic redundancy check value and the slow channel data to be checked.

[0038] Optionally, the fast channel information includes a cyclic redundancy check value and fast channel data to be checked.

[0039] Optionally, the anomaly includes the low-level duration of the filtered SENT serial data being inconsistent with the low-level duration threshold and the high-level duration of the filtered SENT serial data not being within the normal high-level duration threshold range.

[0040] According to specific embodiments provided by the present invention, the present invention discloses the following technical effects:

[0041] The SENT protocol decoding and detection circuit provided by this invention can be integrated between the interface chip of the transmitting chip and the receiving host. The data can be decoded before entering the receiving host, thereby avoiding the limitation of relying solely on the receiving host for decoding and detection. Furthermore, since the data is decoded and detected by the SENT protocol decoding and detection circuit before entering the receiving host, the operational complexity of the receiving host is reduced. Attached Figure Description

[0042] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0043] Figure 1 This is a schematic diagram of the SENT protocol decoding and detection circuit in an embodiment of the present invention;

[0044] Figure 2 This is a schematic diagram of the data decoding circuit in an embodiment of the present invention;

[0045] Figure 3 This is a basic SENT frame structure diagram in an embodiment of the present invention;

[0046] Figure 4 This is a schematic diagram of the data verification circuit in an embodiment of the present invention.

[0047] Symbol explanation:

[0048] 301. Synchronization pulse; 302. Status nibble; 303. Data nibble; 304. Cyclic redundancy check nibble. Detailed Implementation

[0049] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0050] The purpose of this invention is to provide a SENT protocol decoding and detection circuit, which overcomes the limitation of existing technologies that rely on the receiving host for decoding and detection.

[0051] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0052] like Figure 1 As shown in the diagram, in this invention, an external clock is first input and converted by a corresponding module into an internal SENT decoding clock for decoding and detection. The data decoding circuit, data verification circuit, data synchronization and filtering circuit, and start signal generation logic in the block diagram all operate under the SENT decoding clock. For the input SENT serial data, the data synchronization and filtering circuit uses the SENT decoding clock to synchronize and filter it. Then, a start signal is generated based on the filtered SENT serial data. The SENT input bus is always high when there is no input; therefore, when a falling edge occurs, the start signal generation logic detects it and generates a start signal to enable the data decoding circuit and data verification circuit. The data verification circuit simultaneously detects both the SENT decoded data and the filtered SENT serial data. Finally, the SENT protocol decoding and detection circuit outputs the decoded data and error detection information (if an error is detected). It should be noted that the circuit designed according to this invention needs to know the current SENT data frame structure, such as... Figure 3 and Figure 2 As shown, the detection function of the circuit differs under different frame structures.

[0053] like Figure 1 As shown, this invention discloses a SENT protocol decoding and detection circuit, which is integrated into the interface chip or transmitting chip of the receiving host. The SENT protocol decoding and detection circuit includes:

[0054] The data decoding circuit is used to generate SENT decoded data based on the SENT decoding clock and start signal, according to the SENT frame format information and the filtered SENT serial data, and transmit the SENT decoded data to the data verification circuit and an external system equipped with a receiving host.

[0055] The data verification circuit is used to generate error monitoring information based on SENT frame format information, SENT decoding clock and start signal, according to SENT decoded data and filtered SENT serial data, and transmit the error detection information to an external system equipped with a receiving host.

[0056] As one specific embodiment, the SENT protocol decoding and detection circuit further includes:

[0057] The data synchronization and filtering circuit is used to synchronize the SENT serial data to obtain synchronized SENT serial data; to filter the synchronized SENT serial data to obtain filtered SENT serial data; and to transmit the filtered SENT serial data to the data decoding circuit and the data verification circuit.

[0058] As one specific embodiment, the SENT protocol decoding and detection circuit further includes:

[0059] The start signal generation logic is used to generate a start signal based on the filtered SENT serial data; and transmit the start signal to the data decoding circuit and the data verification circuit.

[0060] like Figure 2 As shown, in one specific embodiment, the data decoding circuit specifically includes:

[0061] The counter is used to decode the filtered SENT serial data based on the SENT decoding clock and start signal to obtain decoded data. The decoded data includes a status nib 302, a data nib 303, and a cyclic redundancy check nib 304.

[0062] The frame structure judgment logic is used to determine the subsequent pulses based on the synchronization pulse 301 and the SENT frame format information; the synchronization pulse 301 is identified based on the length of the high-level pulse of the detected decoded data.

[0063] The count-to-data conversion logic is used to generate SENT decoded data based on the decoded data and subsequent pulses.

[0064] Internal registers are used to store SENT decoded data and transmit the SENT decoded data to the data verification circuit and an external system equipped with a receiving host.

[0065] In practical applications, the decoding scheme of the data decoding circuit is designed based on the SENT protocol, according to the standard SENT protocol, such as... Figure 3 As shown, the first pulse of each SENT data input frame is the synchronization pulse 301. The length between the rising edge of the synchronization pulse 301 and the rising edge of the status nibble 302 is fixed at 56 clock ticks. Therefore, the synchronization pulse 301 is identified by detecting the length of the high-level pulse, and the meaning of subsequent pulses is determined sequentially based on the synchronization pulse 301 and the SENT frame format information. The decoding of the status nibble 302, data nibble 303, and cyclic redundancy check nibble 304 is implemented based on a counter. The module uses a counter to record the length (number of ticks) of each nibble and obtains the representative data of each nibble through the count value-data conversion logic, generating SENT decoded data. The count value-data conversion logic here is determined according to the SENT protocol, that is, the number of ticks from the rising edge of each nibble pulse to the rising edge of the next nibble pulse minus the fixed number of ticks gives the nibble data, which is temporarily stored in an internal register. The counter here is reusable, which saves hardware resources. The decoded data is sent to the data verification circuit and an external system equipped with a receiving host.

[0066] like Figure 4 As shown, in one specific embodiment, the data verification circuit includes:

[0067] The serial data level detection logic is used to detect whether the duration of the high and low levels of the filtered SENT serial data is abnormal, and to obtain the detection result.

[0068] If the detection result is negative, it indicates that there are no errors in the filtered SENT serial data.

[0069] If the detection result is yes, it indicates that there is an error in the filtered SENT serial data, generates a first error signal, and transmits the first error signal to the error status register.

[0070] The status nibble data extraction logic is used to generate channel messages based on SENT decoded data, and transmit the channel messages to the cyclic redundancy check calculation module and the cyclic redundancy check result comparison module respectively; the channel messages include fast channel information and slow channel information.

[0071] The cyclic redundancy check calculation module is used to perform calculations based on the channel messages, obtain the first calculation result, and transmit the first calculation result to the cyclic redundancy check result comparison module.

[0072] The cyclic redundancy check result comparison module is used to compare whether the first calculation result and the slow channel message are consistent, and obtain the comparison result.

[0073] If the comparison result is yes, it indicates that there are no errors in the SENT decoded data.

[0074] If the comparison result is negative, it indicates that there is an error in the SENT decoded data, a second error signal is generated, and the second error signal is transmitted to the error status register.

[0075] The error status register is used to store the second error signal and the first error result as error monitoring information, and transmits the error monitoring information to an external system equipped with a receiving host.

[0076] In practical applications, the serial data level detection logic directly detects the duration of the high and low levels of the filtered SENT serial data. If the level duration is abnormal, an error is reported. Abnormalities include the low level duration being inconsistent with the setting and the high level duration being outside the normal range (based on the upper and lower limits of the half-byte high level length set according to the frame structure).

[0077] For SENT decoded data verification, the decoded status nibble data is first extracted into a complete slow channel message by the status nibble data extraction logic. The slow channel message includes a cyclic redundancy check (CR) check value and the slow channel data to be verified. After extraction, the CR calculation module performs the calculation, and the result is compared with the decoded CR value by the CR result comparison module. If they do not match, the status nibble data is considered incorrect. SENT fast channel messages also undergo CR check detection. The CR calculation module performs CR calculation on the data nibble of each frame, and the result is compared with... Figure 3 The cyclic redundancy check (CRUD) performs a 304 comparison of the half-byte; if they do not match, the half-byte of the frame is considered erroneous. Finally, all error information is temporarily stored in an internal error status register for external circuitry to read. This allows the external system to promptly determine how to handle errors based on the received information. Integrating the SENT protocol decoding and detection circuit into the transmitting chip allows for immediate error detection and processing in conjunction with other processing modules, eliminating the need to wait for external host intervention and effectively improving data transmission efficiency and chip security.

[0078] As one specific implementation, the slow channel information includes the cyclic redundancy check value and the slow channel data to be checked.

[0079] As one specific embodiment, the fast channel information includes the cyclic redundancy check value and the fast channel data to be checked.

[0080] As one specific embodiment, the anomalies include the low-level duration of the filtered SENT serial data being inconsistent with the low-level duration threshold and the high-level duration of the filtered SENT serial data not being within the normal high-level duration threshold range.

[0081] This invention can be integrated as a submodule into the transmitting chip to provide it with the ability to promptly acquire error information. It can be combined with other modules to significantly improve the security of the transmitting chip. The decoding function, in addition to supporting data self-testing, also enables the chip to perform bidirectional communication. If necessary, it can be connected to the SENT protocol decoding and detection circuit via GPIO to enable SENT bidirectional communication. The data verification circuit employs multiple detection schemes, including CRC check and serial input level judgment, greatly improving the coverage of data error detection. This is more reliable than a single loopback detection, and the different error messages obtained help the chip handle them flexibly. Simultaneously, this invention can also be integrated into the receiving host as the first verification threshold, allowing the host to perform decoding detection without performing it again, reducing dependence on verification tools and software. Data can be decoded before entering the receiving host, thus avoiding the limitation of relying solely on the receiving host for decoding detection. Furthermore, because the data is decoded and detected by the SENT protocol decoding and detection circuit before entering the receiving host, the operational complexity of the receiving host is reduced. The circuit designed according to this invention can be integrated as a submodule into the transmitting chip to achieve real-time data self-testing. Alternatively, the circuit designed in this invention can be integrated as an independent module into the interface chip of the receiving host, which can replace the host in decoding information and detecting its correctness, thus reducing the complexity of host operation and improving the security level.

[0082] This invention has two application methods: it can be integrated into the SENT transmitting chip or into the relevant interface chip of the receiving host to realize the data decoding and verification function.

[0083] If integrated into the transmitting chip, circuit engineers can use the circuit designed according to this invention as a sub-module of the transmitting module. The SENT configuration information, system clock, and external SENT serial data from the transmitting module are input to the SENT protocol decoding and detection circuit. Control signals such as enable checks can also be added as needed. Subsequently, the SENT protocol decoding and detection circuit will automatically detect the data (if enabled) and output decoded data (if only detection is needed, data output can be internally disabled). External error status reading logic needs to be added to the SENT protocol decoding and detection circuit to determine how to handle different errors and whether an interrupt needs to be generated. The external SENT input terminal of the SENT protocol decoding and detection circuit can be directly connected to the output of the transmitting module, or connected to the SENT data interface at the top layer of the transmitting chip to form a loopback. Alternatively, the input terminal can be selected via a mux method to determine whether it is loopback data or SENT data supplied by external I / O.

[0084] If integrated into the interface chip of the receiving host, the circuit engineer can directly use the circuit designed according to the present invention as a digital peripheral module to connect to the IO input. The SENT protocol decoding and detection circuit also needs to know the frame structure information of the current SENT input. Therefore, the frame structure information can be input into the module by setting the SFR. The decoded data can be directly stored in the memory such as FIFO or RAM for reading and use. The error status value can also be read out by the register.

[0085] For ease of use, internal decoding completion and error detection flags can be output as module outputs to generate interrupt signals, allowing the chip to determine when to read or process data.

[0086] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.

[0087] This document uses specific examples to illustrate the principles and implementation methods of the present invention. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of the present invention. Furthermore, those skilled in the art will recognize that, based on the ideas of the present invention, there will be changes in the specific implementation methods and application scope. Therefore, the content of this specification should not be construed as a limitation of the present invention.

Claims

1. A SENT protocol decoding and detection circuit, characterized in that, The SENT protocol decoding and detection circuit is integrated into the interface chip or transmitting chip of the receiving host, and the SENT protocol decoding and detection circuit includes: Data decoding circuit, used for: Based on the SENT decoding clock and start signal, SENT decoding data is generated according to the SENT frame format information and the filtered SENT serial data. The SENT decoded data is transmitted to the data verification circuit and an external system equipped with a receiving host; Data verification circuit, used for: Based on the SENT frame format information, the SENT decoding clock, and the start signal, error monitoring information is generated according to the SENT decoded data and the filtered SENT serial data. The error monitoring information is transmitted to an external system equipped with a receiving host; The data verification circuit simultaneously detects both the SENT decoded data and the filtered SENT serial data. The data verification circuit includes: The serial data level detection logic is used to detect whether the duration of the high and low levels of the filtered SENT serial data is abnormal, and to obtain the detection result. If the detection result is negative, it indicates that there are no errors in the filtered SENT serial data; If the detection result is yes, it indicates that there is an error in the filtered SENT serial data, generates a first error signal, and transmits the first error signal to the error status register; The status nibble data extraction logic is used to generate channel messages based on the SENT decoded data, and transmit the channel messages to the cyclic redundancy check calculation module and the cyclic redundancy check result comparison module respectively; the channel messages include fast channel information and slow channel information. The cyclic redundancy check calculation module is used to perform calculations based on the channel message, obtain a first calculation result, and transmit the first calculation result to the cyclic redundancy check result comparison module. The cyclic redundancy check result comparison module is used to compare whether the first calculation result and the slow channel message are consistent, and obtain the comparison result; If the comparison result is yes, it indicates that there are no errors in the SENT decoded data; If the comparison result is negative, it indicates that there is an error in the SENT decoded data, a second error signal is generated, and the second error signal is transmitted to the error status register; The error status register is used to store the second error signal and the first error signal as error monitoring information, and to transmit the error monitoring information to an external system equipped with a receiving host.

2. The SENT protocol decoding and detection circuit according to claim 1, characterized in that, The SENT protocol decoding and detection circuit also includes: Data synchronization and filtering circuitry is used for: The SENT serial data is synchronized to obtain synchronized SENT serial data. The synchronized SENT serial data is filtered to obtain filtered SENT serial data. The filtered SENT serial data is transmitted to the data decoding circuit and the data verification circuit.

3. The SENT protocol decoding and detection circuit according to claim 2, characterized in that, The SENT protocol decoding and detection circuit also includes: Start signal generation logic, used for: The start signal is generated based on the filtered SENT serial data; The start signal is transmitted to the data decoding circuit and the data verification circuit.

4. The SENT protocol decoding and detection circuit according to claim 1, characterized in that, The data decoding circuit specifically includes: A counter is used to decode the filtered SENT serial data based on the SENT decoding clock and the start signal to obtain decoded data; the decoded data includes a status nib, a data nib, and a cyclic redundancy check nib. The frame structure determination logic is used to determine subsequent pulses based on the synchronization pulse and the SENT frame format information; the synchronization pulse is identified based on the length of the high-level pulse detected in the decoded data. The count-to-data conversion logic is used to generate SENT decoded data based on the decoded data and subsequent pulses. An internal register is used to store the SENT decoded data and transmit the SENT decoded data to the data verification circuit and an external system equipped with a receiving host.

5. The SENT protocol decoding and detection circuit according to claim 1, characterized in that, The slow channel information includes cyclic redundancy check values ​​and slow channel data to be checked.

6. The SENT protocol decoding and detection circuit according to claim 1, characterized in that, The fast channel information includes the cyclic redundancy check value and the fast channel data to be checked.

7. The SENT protocol decoding and detection circuit according to claim 1, characterized in that, The anomalies include the low-level duration of the filtered SENT serial data being inconsistent with the low-level duration threshold and the high-level duration of the filtered SENT serial data not being within the normal high-level duration threshold range.

Citation Information

Patent Citations

  • Decoding method and device of agent protocol

    CN115225723A

  • SENT signal receiving system and chip

    CN116094531A