Method and system for enhancing data transmission reliability based on interleaving

By using interleaving processing technology in vehicle-mounted high-speed media transmission, multiple consecutive bit errors are dispersed into different data frames, the problem of multiple consecutive bit errors in data transmission in the prior art is solved, and the reliability and image quality of data transmission are improved.

CN119728014AActive Publication Date: 2025-03-28MOTORCOMM (SHANGHAI) ELECTRONIC TECH CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202411603096.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-11
Publication Date
2025-03-28
Estimated Expiration
2044-11-11

AI Technical Summary

Technical Problem

The prior art in vehicle-mounted high-speed media transmission is affected by electromagnetic radiation and radio frequency interference, resulting in multiple consecutive bit errors in data transmission, which exceeds the ECC error correction and error detection capabilities, affecting image quality and user experience.

Method used

Using an interleaving-based data transmission method, the sending end interleaved the original data sequence to be sent, and disperses multiple consecutive bit errors into different data frames, thereby enhancing error detection and error correction capabilities. After receiving the interleaved data, the receiver performs deinterleaving and error checking, and determines whether it is necessary to continue interleaving or adjust the interleaving parameters based on the error checking results.

Benefits of technology

Through the interleaving method, the reliability of data transmission is improved, the impact on image quality is reduced, the user's experience is improved, and multiple consecutive bit errors can be corrected.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119728014A_ABST
    Figure CN119728014A_ABST
Patent Text Reader

Abstract

The invention provides a method and system for enhancing data transmission reliability based on interleaving, and the method comprises the steps: A1, enabling a transmitting end to interleave a to-be-transmitted original data sequence to form first data, and transmitting the first data to a receiving end; a2, the receiving end receives the first data and carries out de-interleaving to obtain second data; and step A3, the receiving end performs error check on the second data. Through an interleaving method, a plurality of continuous bit errors appearing in data frames are dispersed to different data frames or different positions of the data frames, the error detection capability is enhanced, the influence on the data quality is reduced, the user experience is improved, the plurality of continuous bit errors can be corrected, and the method is suitable for MIPI, HSMT and ASA image transmission protocols.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data communication technology, and in particular to a method and system for enhancing data transmission reliability based on interleaving. Background Art

[0002] Currently, there are two types of in-vehicle high-speed media transmission protocols: private protocols and open standard protocols. American companies TI and Maxim use private protocols for in-vehicle high-speed media transmission. Open standard protocols include MIPI APHY, HSMT and ASA.

[0003] MIPI (Mobile Industry Processor Interface) is the abbreviation of Mobile Industry Processor Interface. MIPI APHY is an open standard initiated by the MIPI Alliance for long-distance transmission of mobile application processors. When transmitting data, the existing MIPI APHY protocol uses ECC and CRC methods to correct and detect errors in the transmitted data.

[0004] ECC (Error Correction Code), or error checking and correction, is an error correction technology commonly used in data transmission. It can detect and correct errors during data transmission to ensure the correctness of data. The MIPI APHY protocol defines a one-byte ECC field in the data frame header. After calculating the original data, a one-byte ECC data is obtained. Through this ECC data, 1-bit errors can be corrected and 2-bit errors can be detected.

[0005] CRC (Cyclic Redundancy Check) is a commonly used method to detect whether errors occur in data transmission. It has no error correction capability. The MIPI protocol defines a CRC field for error detection.

[0006] MIPI frames are divided into short frames (fixed length: 4 bytes) and long frames (variable length: 6 to 65541 bytes).

[0007] MIPI short frame contains only a 32-bit header. The header consists of 8-bit data identifier + 16-bit data + 8-bit error detection (ECC). MIPI long frame contains a 32-bit header, N-byte data field and 16-bit CRC. The long frame header format is the same as the short frame header format, including 8-bit data identifier + 16-bit data + 8-bit error detection (ECC).

[0008] HSMT is a draft standard formulated by my country, named "Technical Requirements and Test Methods of Automotive Wired High-Speed ​​Media Transmission System". The protocol adds forward error correction coding to correct errors in data transmission.

[0009] ASA is a standard set by the Automotive SerDes Alliance. The error correction capability of this protocol is also relatively weak.

[0010] There is a lot of electromagnetic radiation and radio frequency interference in electric vehicles, and the MIPI transmission rate is relatively high, which may cause multiple consecutive bit errors in MIPI data transmission. This exceeds the error correction and detection capabilities of ECC. The MIPI protocol is used to transmit image data. After the CRC detects an error packet, the application layer decides whether to discard it or continue to use the error packet for image output. If multiple bits are wrong in succession, the image quality will be greatly affected, affecting the user experience. HSMT adds forward error correction coding, which can correct more than 1 bit error, but the error correction capability is still limited. Summary of the invention

[0011] Based on the above content, the present invention provides a method and system for enhancing data transmission reliability based on interleaving, which aims to solve the technical problems in the prior art such as data transmission being affected by interference and data error correction.

[0012] A method for enhancing data transmission reliability based on interleaving, comprising:

[0013] Step A1, the transmitting end interleaves the original data sequence to be sent to form first data, and sends the first data to the receiving end;

[0014] Step A2, the receiving end receives the first data and deinterleaves it to obtain the second data;

[0015] Step A3: The receiving end performs an error check on the second data.

[0016] Further, in step A3, the receiving end performs an error check on the second data to obtain an error check result;

[0017] Step A3 and later also include:

[0018] Step A4, the receiving end determines whether it is necessary to continue to interleave the original data sequence to be sent and adjust the interleaving parameters according to the error check result;

[0019] If interleaving is required but the interleaving parameters do not need to be adjusted, the determination is terminated;

[0020] If interleaving is required and the interleaving parameters need to be adjusted, proceed to step A5;

[0021] If interleaving is not required, proceed to step A7;

[0022] Step A5, the receiving end generates a first command for adjusting the interleaving parameters and sends it to the transmitting end, and then proceeds to step A6;

[0023] Step A6, the transmitting end dynamically adjusts the interleaving parameters according to the first command, then interleaves the original data sequence to be sent according to the adjusted interleaving parameters to form first data, sends the first data to the receiving end, and then enters step A2;

[0024] Step A7, the receiving end generates a second command to stop interleaving and sends it to the transmitting end, and then proceeds to step A8;

[0025] Step A8, the sending end sends the original data sequence to be sent to the receiving end, and then proceeds to step A9;

[0026] Step A9: The receiving end performs an error check on the received original data sequence, obtains an error check result, and proceeds to step A4.

[0027] Furthermore, the transmission protocol adopted by the sending end when sending the image data to the receiving end is one of image transmission protocols such as MIPI, HSMT, and ASA.

[0028] Furthermore, the original data sequence Original data sequence Contains image data to be sent;

[0029] In step A1, the original data sequence Original data sequence The interleaving method of the image data adopts intra-frame interleaving of data frames and / or inter-frame interleaving between data frames.

[0030] Further, in the step A4, the receiving end analyzes the number of consecutive error bits and the error duration according to the error check results continuously received to determine whether it is necessary to continue to interleave the original data sequence to be sent and adjust the interleaving parameters;

[0031] The interleaving parameters include interleaving depth and interleaving level.

[0032] The present invention also provides a system for enhancing data transmission reliability based on interleaving, which is used to execute the aforementioned method for enhancing data transmission reliability based on interleaving, and includes a transmitting end and a receiving end;

[0033] The sending end includes:

[0034] An interleaving processing module, used for interleaving an original data sequence to be sent to form first data;

[0035] A first sending module, connected to the interleaving processing module, configured to send the first data to a receiving end;

[0036] The receiving end includes:

[0037] A second receiving module, used for receiving first data;

[0038] A deinterleaving processing module, connected to the second receiving module, configured to deinterleave the first data to obtain second data;

[0039] The error checking module is connected to the deinterleaving processing module and is used for performing error checking on the second data.

[0040] Further, the error checking module performs an error check on the second data and obtains an error checking result;

[0041] The receiving end also includes:

[0042] A judgment module, connected to the error checking module, is used to judge whether it is necessary to continue to interleave the original data sequence to be sent and adjust the interleaving parameters according to the error checking result to obtain a judgment result;

[0043] The command generation module is connected to the judgment module and the second sending module, and is used to:

[0044] When the judgment result is that interleaving is required and the interleaving parameters need to be adjusted, a first command for adjusting the interleaving parameters is generated and the first command is sent to the transmitting end through the second sending module;

[0045] When the result of the judgment is that interleaving is not required, generating a second command to stop interleaving and sending the second command to the transmitting end through the second sending module;

[0046] The sending end includes:

[0047] A first receiving module, used for receiving a first command or a second command;

[0048] A first sending module, connected to the first receiving module, for sending the original data sequence to be sent to the receiving end when the received command is the second command;

[0049] The interleaving processing module is also connected to the first receiving module, and is used to dynamically adjust the interleaving parameters according to the first command when the received command is the first command, and then interleave the original data sequence to be sent according to the adjusted interleaving parameters to form first data, and send the first data to the receiving end;

[0050] The error checking module is also connected to the second receiving module, and is also used to perform error checking on the received original data sequence to obtain an error checking result.

[0051] Furthermore, the transmission protocol adopted by the first sending module of the sending end when sending image data to the receiving end is one of image transmission protocols such as MIPI, HSMT, and ASA.

[0052] Furthermore, the original data sequence Original data sequence Contains image data to be sent;

[0053] The interleaving processing module processes the original data sequence Original data sequence The interleaving method of the image data adopts intra-frame interleaving of data frames and / or inter-frame interleaving between data frames.

[0054] Furthermore, the judgment module of the receiving end analyzes the number of consecutive error bits and the error duration according to the error check results continuously received to determine whether it is necessary to continue to interleave the original data sequence to be sent and adjust the interleaving parameters;

[0055] The interleaving parameters include interleaving depth and interleaving level.

[0056] The beneficial technical effect of the present invention is that: through the interleaving method, multiple consecutive bit errors appearing in a data frame are dispersed into different data frames, thereby enhancing the error detection capability, reducing the impact on data quality, improving user experience, and being able to correct multiple consecutive bit errors. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] Figure 1 , Figure 2 and Figure 4 A flowchart of a method for enhancing data transmission reliability based on interleaving according to the present invention;

[0058] Figure 3 and Figure 5 They are schematic diagrams of inter-frame interleaving and intra-frame interleaving respectively.

[0059] Figure 6 and Figure 7 The present invention is a module schematic diagram of a system for enhancing data transmission reliability based on interleaving. DETAILED DESCRIPTION

[0060] 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 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.

[0061] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments may be combined with each other.

[0062] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments, but they are not intended to limit the present invention.

[0063] See also Figure 1 The present invention provides a method for enhancing data transmission reliability based on interleaving, comprising:

[0064] Step A1, the transmitting end interleaves the original data sequence to be sent to form first data, and sends the first data to the receiving end;

[0065] Step A2, the receiving end receives the first data and deinterleaves it to obtain the second data;

[0066] Step A3: The receiving end performs an error check on the second data.

[0067] See also Figure 2 , further, in step A3, the receiving end performs an error check on the second data to obtain an error check result;

[0068] Step A3 and later also include:

[0069] Step A4, the receiving end determines whether it is necessary to continue to interleave the original data sequence to be sent and adjust the interleaving parameters according to the error check result;

[0070] If interleaving is required but the interleaving parameters do not need to be adjusted, the determination is terminated;

[0071] If interleaving is required and the interleaving parameters need to be adjusted, proceed to step A5;

[0072] If interleaving is not required, proceed to step A7;

[0073] Step A5, the receiving end generates a first command for adjusting the interleaving parameters and sends it to the transmitting end, and then proceeds to step A6;

[0074] Step A6, the transmitting end dynamically adjusts the interleaving parameters according to the first command, then interleaves the original data sequence to be sent according to the adjusted interleaving parameters to form first data, sends the first data to the receiving end, and then enters step A2;

[0075] Step A7, the receiving end generates a second command to stop interleaving and sends it to the transmitting end, and then proceeds to step A8;

[0076] Step A8, the sending end sends the original data sequence to be sent to the receiving end, and then proceeds to step A9;

[0077] Step A9: The receiving end performs an error check on the received original data sequence, obtains an error check result, and proceeds to step A4.

[0078] Furthermore, the transmission protocol adopted by the first sending module of the sending end when sending image data to the receiving end is one of image transmission protocols such as MIPI, HSMT, and ASA.

[0079] Furthermore, the original data sequence Original data sequence Contains image data to be sent;

[0080] The interleaving processing module processes the original data sequence Original data sequence The interleaving method of the image data adopts intra-frame interleaving of data frames and / or inter-frame interleaving between data frames.

[0081] Furthermore, the judgment module of the receiving end analyzes the number of consecutive error bits and the error duration according to the error check results continuously received to determine whether it is necessary to continue to interleave the original data sequence to be sent and adjust the interleaving parameters;

[0082] The interleaving parameters include interleaving depth and interleaving level.

[0083] In order to reduce the impact of latency and memory. When there is no interference, interleaving can be omitted; after the receiving end detects an erroneous bit through ECC or CRC, it notifies the sending end to interleave. The interleaving depth can be dynamically adjusted according to the intensity and duration of the interference. For example, if the interleaving depth is 4, 4 consecutive bit errors can be corrected. If the interference is small, there are only 4 or fewer consecutive bit errors, and ECC can correct them without increasing the interleaving depth; if the interference is large, there are more than 4 consecutive bit errors, and the receiving end can notify the sending end to increase the interleaving depth, thereby correcting more bits. If the receiving end finds that the number of consecutive erroneous bits decreases or no longer has erroneous consecutive bits after a period of time, it can notify the sending end to reduce the interleaving depth or stop interleaving.

[0084] If there are many consecutive bit errors, and ECC or other forward error correction codes still cannot correct all the error bits after deinterleaving, you can increase the number of interleavings to disperse the error bits to different rows and frames of the image, reduce the impact on image quality, and improve user experience.

[0085] Specifically, the interleaving parameters include interleaving depth and interleaving level. The interleaving depth refers to the number of data frames involved in the interleaving and the interleaving level.

[0086] Specifically, after the receiving end detects an erroneous bit through ECC / CRC or forward error correction coding, the interleaving decision device notifies the sending end whether to perform interleaving, the interleaving depth and the interleaving level according to the number of consecutive erroneous bits and the duration of the error. After receiving the interleaving command, the sending end notifies the interleaving processing module to perform interleaving and then sends the data. The receiving end deinterleaves the received data, then performs ECC / CRC or forward error correction coding detection, and notifies the interleaving decision device of the detection result. If there are two or three interleavings, further deinterleaving is required.

[0087] See also Figure 3 , further, as an application example, when the original data sequence to be sent is a MIPI short frame, in step A1, the interleaving of the original data sequence is inter-frame interleaving between data frames.

[0088] Before sending a data frame, the transmitter performs ECC calculation on each data frame and then interleaves the data in different data frames. Figure 3 as shown, and then send it. Figure 3 The example shows the interleaving between four data frames. The first bit data of data frames 1-4 sequentially constitute the first 4 bits of data frame 1, and the second bit data of data frames 1-4 sequentially constitute the last 4 bits of data frame 1. The third bit data of data frames 1-4 sequentially constitute the first 4 bits of data frame 2, and the fourth bit data of data frames 1-4 sequentially constitute the last 4 bits of data frame 2. The fifth bit data of data frames 1-4 sequentially constitute the first 4 bits of data frame 3, and the sixth bit data of data frames 1-4 sequentially constitute the last 4 bits of data frame 3. The seventh bit data of data frames 1-4 constitute the first 4 bits of data frame 4, and the eighth bit data of data frames 1-4 sequentially constitute the last 4 bits of data frame 4.

[0089] After receiving the data frame, the receiving end first buffers the data frame, and after the interleaved data frames are collected, deinterleaves them, and then performs error correction and detection processing through ECC.

[0090] If electromagnetic interference occurs during the transmission of a data frame, four consecutive bits will be wrong, such as Figure 3 In the case of interleaving, ECC cannot perform error correction and error detection. This is because ECC can only correct 1 bit error and detect 2 bit errors. In the case of interleaving, these 4 dark bits come from different data frames. The receiving end receives 4 data frames for deinterleaving, and the 4 red bits are scattered in different data frames. In this way, each data frame actually has one bit error, and ECC can perform error correction to ensure the correctness of the data.

[0091] superior Figure 3In the example, 4 data frames are interleaved, and the interleaving depth is 4. Similarly, more data frames can be interleaved, so that more consecutive bit errors can be corrected after processing. For example, if 8 data frames are interleaved, and the interleaving depth is 8, 8 consecutive bit errors can be corrected.

[0092] The deeper the interleaving depth, the more data frames need to be cached for interleaving and deinterleaving, which increases latency and memory. For example, if 8 data frames are interleaved, 8 consecutive bit errors can be corrected. The sender needs to cache 8 data frames for interleaving, and the receiver needs to receive 8 data frames before deinterleaving.

[0093] Since the MIPI short frame is only 32 bits in length, the delay and memory added by interleaving and deinterleaving can be ignored.

[0094] See also Figure 4 ,Furthermore, as an application example, when the original data sequence to be sent is a MIPI long frame, the data frame in the original data sequence includes a packet header, image data in a data field, and a cyclic redundancy check;

[0095] The processing of the original data sequence of the MIPI long frame in step A1 includes:

[0096] Step A11, splitting the data frame in the original data sequence into a header and a data field;

[0097] Step A12, interleaving the packet header to form first data about the packet header and sending the first data to the receiving end;

[0098] Step A13, interleaving the image data in the data domain and combining it with a cyclic redundancy check to form first data about the data domain and send it to the receiving end.

[0099] Since the MIPI long frame is long, the header of the long frame can be interleaved and sent as a short frame (same as the MIPI short frame), and then the data field can be interleaved and sent as a long frame. The N-byte data field in the MIPI long frame is image data. If multiple consecutive bit errors occur, noise will appear, which will significantly affect the user's visual experience. The sender can interleave the data field in the MIPI long frame, and then deinterleave it after the receiver receives the MIPI long frame, as shown below Figure 5 As shown. For example, the length of the data domain of a MIPI long frame is 1920*8 bits. Bit interleaving is performed every 480*8 bits and then transmitted. During the transmission process, the 4 bits of dark data are interfered. After receiving the data, the receiving end deinterleaves it. In this way, the errors of multiple consecutive bits in the image data frame are dispersed to different positions of the image, reducing the impact on image quality and improving user experience. Since the interleaving is performed in the data domain part of the frame, it has little impact on latency and memory.

[0100] If the latency requirement is relatively low and the memory is sufficient, inter-frame interleaving can also be performed between the data domain parts of the MIPI long frames to increase the reliability of data transmission and enhance user experience.

[0101] Interleaving is performed according to data domains at different locations, such as image data in a MIPI long frame, which can be divided into intra-frame interleaving and inter-frame interleaving.

[0102] Intra-frame data interleaving refers to interleaving data at different positions in a frame data field, such as interleaving data at different rows, or interleaving different data in the same row.

[0103] Inter-frame data interleaving refers to interleaving data fields between different frames, such as image data between different frames.

[0104] Specifically, the interleaving parameters include interleaving depth and interleaving level. The interleaving depth refers to the number of data frames involved in the interleaving.

[0105] The interleaving level includes the number of interleavings, which can be divided into one interleaving, two interleavings, three interleavings, or more interleavings.

[0106] In step A1, the original data sequence may be interleaved before ECC encoding or forward error correction encoding, or may be ECC encoded or forward error correction encoded after interleaving the original data sequence to obtain first data. The specific encoding depends on the specific type.

[0107] In step A3, if ECC coding is used, ECC error checking and error correction are performed. If forward error correction coding is used, forward error correction is performed. In addition, if CRC is calculated for the original data sequence, CRC checking is also performed in step A3.

[0108] One-time interleaving means interleaving after ECC encoding or forward error correction encoding of data. The interleaving can be intra-frame data interleaving or inter-frame data interleaving. For example, interleaving after forward error correction encoding of MIPI long frame image data, for example, interleaving after ECC encoding of MIPI long frame header or MIPI short frame.

[0109] Secondary interleaving means that before the data is ECC encoded or forward error correction encoded, it is interleaved once, which can be intra-frame interleaving or inter-frame interleaving, and then the data is ECC encoded or forward error correction encoded, and then interleaved again. That is, it includes secondary interleaving. For example, for the data field of MIPI long frame, different rows of data can be interleaved first, then ECC encoding or forward error correction encoding can be performed, and then the interleaved data in the same row can be interleaved again.

[0110] The three-way interleaving is to first interleave the data between frames and within frames before ECC encoding or forward error correction encoding is performed on the data, and then ECC encoding or forward error correction encoding is performed on the data, and then interleaving is performed again. That is, it includes three interleavings.

[0111] Depending on whether the interleaving is performed before or after ECC encoding or forward error correction encoding, it can be divided into pre-coding interleaving and post-coding interleaving.

[0112] The purpose of interleaving before encoding is to disperse the erroneous bits to different positions of the image and reduce the impact on data quality.

[0113] The function of post-coding interleaving is to correct multiple consecutive bit errors or to disperse the uncorrectable error bits to different positions of the data. Post-coding interleaving can be intra-frame data interleaving or inter-frame data interleaving.

[0114] It should be noted that the interleaved data frames should not be transmitted simultaneously in multiple channels, because this will cause continuous data frames to be transmitted in parallel in different channels at the same time, causing electromagnetic radiation interference to interfere with multiple continuous data frames at the same time, and causing a large number of continuous bit errors, which is not conducive to reliable data transmission. Therefore, the continuously interleaved data frames, that is, the related data frames interleaved after ECC or other forward error correction coding, need to be transmitted in one channel.

[0115] Specifically, the data of the HSMT and ASA image transmission protocols can also be interleaved to enhance the transmission reliability.

[0116] See also Figure 6 The present invention also provides a system for enhancing data transmission reliability based on interleaving, which is used to execute the aforementioned method for enhancing data transmission reliability based on interleaving, and comprises a transmitting end (1) and a receiving end (2);

[0117] The sending end (1) comprises:

[0118] An interleaving processing module (11), used for interleaving an original data sequence to be sent to form first data;

[0119] A first sending module (12), connected to the interleaving processing module (11), and configured to send first data to a receiving end (2);

[0120] The receiving end (2) comprises:

[0121] A second receiving module (21), configured to receive first data;

[0122] A deinterleaving processing module (22), connected to the second receiving module (21), configured to deinterleave the first data to obtain second data;

[0123] The error checking module (23) is connected to the deinterleaving processing module (22) and is used to perform error checking on the second data.

[0124] Furthermore, the error checking module (23) performs an error check on the second data and obtains an error checking result;

[0125] The receiving end (2) also includes:

[0126] A judgment module (24), connected to the error checking module (23), is used to judge whether it is necessary to continue to interleave the original data sequence to be sent and adjust the interleaving parameters according to the error checking result, to obtain a judgment result;

[0127] The command generating module (25) is connected to the judging module (24) and the second sending module (26) and is used for:

[0128] When the judgment result is that interleaving is required and the interleaving parameters need to be adjusted, a first command for adjusting the interleaving parameters is generated and the first command is sent to the sending end (1) through a second sending module;

[0129] When the result of the judgment is that interleaving is not required, a second command to stop interleaving is generated and the second command is sent to the sending end (1) through a second sending module;

[0130] The sending end (1) comprises:

[0131] A first receiving module (13), configured to receive a first command or a second command;

[0132] A first sending module (12), connected to the first receiving module (13), is used to send the original data sequence to be sent to the receiving end (2) when the received command is the second command;

[0133] The interleaving processing module (11) is also connected to the first receiving module (13) and is used to dynamically adjust the interleaving parameters according to the first command when the received command is the first command, then interleave the original data sequence to be sent according to the adjusted interleaving parameters to form first data, and send the first data to the receiving end (2);

[0134] The error checking module (23) is also connected to the second receiving module (21) and is also used to perform an error check on the received original data sequence to obtain an error checking result.

[0135] Specifically, the judgment module is an interleaving judger.

[0136] In order to reduce the impact of latency and memory. When there is no interference, interleaving can be omitted; after the receiving end detects an erroneous bit through ECC or CRC, it notifies the sending end to interleave. The interleaving depth can be dynamically adjusted according to the intensity and duration of the interference. The interleaving parameters include interleaving depth and interleaving level. The interleaving depth refers to the number of data frames involved in the interleaving and the interleaving level. After the receiving end detects an erroneous bit through ECC / CRC or forward error correction coding, the interleaving decision device notifies the sending end whether to interleave, the interleaving depth and the interleaving level according to the number of consecutive erroneous bits and the duration of the error. After receiving the interleaving command, the sending end notifies the interleaving processing module to interleave and then sends the data. The receiving end deinterleaves the received data, then performs ECC / CRC or forward error correction coding detection, and notifies the detection result to the interleaving decision device. If there are two or three interleavings, further deinterleaving is required.

[0137] Specifically, the transmitting end further comprises an error correction coding module (14), which is connected to the interleaving processing module (11), the first receiving module (13) and the first transmitting module (12). After error correction coding is performed on the original data sequence to be transmitted, when interleaving processing is not required, the error correction coded data is directly sent to the receiving end, and the receiving end performs error checking and error correction. When interleaving is required, the receiving end cooperates with the interleaving module to complete interleaving and error correction coding to form first data. For example, according to the interleaving level in the interleaving parameter, error correction coding is performed before interleaving, or after interleaving, or both before and after error correction coding are performed to obtain the first data. The error correction coding is ECC coding or forward error correction coding.

[0138] Furthermore, the transmission protocol adopted by the first sending module of the sending end when sending image data to the receiving end is one of image transmission protocols such as MIPI, HSMT, and ASA.

[0139] Furthermore, the original data sequence Original data sequence Contains image data to be sent;

[0140] The interleaving processing module processes the original data sequence Original data sequence The interleaving method of the image data adopts intra-frame interleaving of data frames and / or inter-frame interleaving between data frames.

[0141] Furthermore, the judgment module of the receiving end analyzes the number of consecutive error bits and the error duration according to the error check results continuously received to determine whether it is necessary to continue to interleave the original data sequence to be sent and adjust the interleaving parameters;

[0142] The interleaving parameters include interleaving depth and interleaving level.

[0143] Further, as an application example, when the original data sequence to be sent is a MIPI short frame, the interleaving processing module interleaves the original data sequence as inter-frame interleaving between data frames.

[0144] See also Figure 7 , further, as an application example, when the original data sequence to be sent is a MIPI long frame, the data frame in the original data sequence includes a packet header, a data field and a cyclic redundancy check; the interleaving processing module (11) includes:

[0145] A data splitting unit (111), used for splitting a data frame in an original data sequence into a packet header and a data field;

[0146] A first interleaving unit (112) is connected to the data splitting unit (111) and is used to perform interleaving processing on the packet header to form first data about the packet header and send the first data to the receiving end;

[0147] The second interleaving unit (113) is connected to the data splitting unit and the first interleaving unit (111) respectively, and is used to interleave the data field and combine it with a cyclic redundancy check to form the first data about the data field after the first data about the packet header is sent to the receiving end (2), and send it to the receiving end (2).

[0148] Since the MIPI long frame is longer, the header of the long frame can be first interleaved and sent as a short frame (the same as the MIPI short frame), and then the data field can be interleaved and sent as a long frame.

[0149] Furthermore, the second interleaving unit (113) interleaves the data field by adopting intra-frame interleaving of data frames and / or inter-frame interleaving between data frames.

[0150] Through the interleaving method, ECC and forward error correction coding can be used to correct and detect multiple consecutive bit errors. The greater the interleaving depth, the more bits are corrected and detected.

[0151] Through multiple interleaving methods, the errors of multiple consecutive bits in the data frame can be dispersed to different positions of the image, reducing the impact on image quality and improving user experience.

[0152] The technical solution of the present invention can be applied to data such as MIPI, HSMT, and ASA, but is not limited to data of these three transmission protocols, and can also be applied to other transmission protocols to enhance reliability transmission.

[0153] The above are only preferred embodiments of the present invention, and are not intended to limit the implementation methods and protection scope of the present invention. Those skilled in the art should be aware that all solutions obtained by equivalent substitutions and obvious changes made using the description and illustrations of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for enhancing data transmission reliability based on interleaving, characterized in that: include: Step A1, the transmitting end interleaves the original data sequence to be sent to form first data, and sends the first data to the receiving end; Step A2, the receiving end receives the first data and deinterleaves it to obtain second data; Step A3: the receiving end performs an error check on the second data.

2. The method for enhancing data transmission reliability based on interleaving as claimed in claim 1, characterized in that: Step A3, the receiving end performs an error check on the second data to obtain an error check result; After step A3, the following steps are also included: Step A4, the receiving end determines whether it is necessary to continue to interleave the original data sequence to be sent and adjusts the interleaving parameters according to the error check result; If interleaving is required but the interleaving parameters do not need to be adjusted, the determination is terminated; If interleaving is required and the interleaving parameters need to be adjusted, proceed to step A5; If interleaving is not required, proceed to step A7; Step A5, the receiving end generates a first command for adjusting interleaving parameters and sends it to the transmitting end, and then proceeds to step A6; Step A6, the transmitting end dynamically adjusts the interleaving parameters according to the first command, then interleaves the original data sequence to be transmitted according to the adjusted interleaving parameters to form the first data, sends the first data to the receiving end, and then enters the step A2; Step A7, the receiving end generates a second command to stop interleaving and sends it to the transmitting end, and then proceeds to step A8; Step A8: the transmitting end sends the original data sequence to be sent to the receiving end, and then Step A9; Step A9: the receiving end performs an error check on the received original data sequence, obtains an error check result, and continues with step A4.

3. The method for enhancing data transmission reliability based on interleaving as claimed in claim 1, characterized in that: The transmission protocol adopted by the sending end when sending image data to the receiving end is one of MIPI, HSMT, and ASA image transmission protocols.

4. The method for enhancing data transmission reliability based on interleaving as claimed in claim 3, characterized in that: The original data sequence includes image data to be sent; In the step A1, the interleaving method of the image data in the original data sequence adopts intra-frame interleaving of data frames and / or inter-frame interleaving between data frames.

5. The method for enhancing data transmission reliability based on interleaving as claimed in claim 2, characterized in that: In the step A4, the receiving end analyzes the number of consecutive error bits and the error duration according to the error check results continuously received to determine whether it is necessary to continue to interleave the original data sequence to be sent and adjust the interleaving parameters; The interleaving parameters include interleaving depth and interleaving level.

6. A system for enhancing data transmission reliability based on interleaving, characterized in that: Used to perform a method for enhancing data transmission reliability based on interleaving as described in any one of claims 1 to 5, comprising a transmitting end and a receiving end; The transmitting end comprises: An interleaving processing module, used for interleaving an original data sequence to be sent to form first data; A first sending module, connected to the interleaving processing module, and configured to send the first data to the receiving end; The receiving end comprises: A second receiving module, used for receiving the first data; a deinterleaving processing module, connected to the second receiving module, and configured to deinterleave the first data to obtain second data; An error checking module is connected to the deinterleaving processing module and is used to perform error checking on the second data.

7. A system for enhancing data transmission reliability based on interleaving as claimed in claim 6, characterized in that: The error checking module performs an error check on the second data and obtains an error checking result; The receiving end also includes: A judgment module, connected to the error checking module, used to judge whether it is necessary to continue to interleave the original data sequence to be sent and adjust the interleaving parameters according to the error checking result to obtain a judgment result; A command generating module is connected to the judging module and the second sending module and is used for: When the judgment result is that interleaving is required and the interleaving parameters need to be adjusted, generating a first command for adjusting the interleaving parameters and sending the first command to the transmitting end through the second sending module; When the judgment result is that interleaving is not required, generating a second command to stop interleaving and sending the second command to the transmitting end through the second sending module; The transmitting end comprises: A first receiving module, used to receive the first command or the second command; The first sending module is connected to the first receiving module, and is used to send the original data sequence to be sent to the receiving end when the received command is the second command; The interleaving processing module is also connected to the first receiving module, and is used for dynamically adjusting the interleaving parameters according to the first command when the received command is the first command, and then interleaving the original data sequence to be sent according to the adjusted interleaving parameters to form the first data, and sending the first data to the receiving end; The error checking module is also connected to the second receiving module, and is also used to perform an error check on the received original data sequence to obtain an error checking result.

8. A system for enhancing data transmission reliability based on interleaving as claimed in claim 6, characterized in that: The transmission protocol adopted by the first sending module of the sending end when sending image data to the receiving end is one of MIPI, HSMT, and ASA image transmission protocols.

9. A system for enhancing data transmission reliability based on interleaving as claimed in claim 8, characterized in that: The original data sequence includes image data to be sent; The interleaving processing module interleaves the image data in the original data sequence by adopting intra-frame interleaving of data frames and / or inter-frame interleaving between data frames.

10. The system for enhancing data transmission reliability based on interleaving as claimed in claim 7, characterized in that: The judgment module of the receiving end analyzes the number of consecutive error bits and the error duration according to the error check results continuously received to determine whether it is necessary to continue to interleave the original data sequence to be sent and adjust the interleaving parameters; The interleaving parameters include interleaving depth and interleaving level.

Citation Information

Patent Citations

  • Interleaving method and de-interleaving method based on LDPC code and apparatus therefor

    CN101399554A

  • Coherent detection using coherent decoding and interleaving

    CN103067120A

  • Error code detection method and related equipment

    CN111385022A

  • Decoding method, receiving device and storage medium

    CN114338307A

  • Image processing apparatus including row interleaving controller and method of operating same

    CN118037526A