A method and system for enhancing data transmission reliability based on interleaving
By dynamically adjusting the interleaving parameters through interleaving and deinterleaving processes between the transmitting and receiving ends, the problem of continuous bit errors caused by electromagnetic interference in high-speed vehicular media transmission is solved, thereby improving the reliability of data transmission and user experience.
Patent Information
- Application Number
- CN202411603096.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-11
- Publication Date
- 2025-12-16
- Estimated Expiration
- 2044-11-11
AI Technical Summary
Existing protocols such as MIPI, HSMT, and ASA suffer from multiple consecutive bit errors due to electromagnetic radiation and radio frequency interference during high-speed media transmission in vehicles, resulting in limited error correction and detection capabilities and impacting image quality.
An interleaving-enhanced data transmission method is adopted, in which the data sequence is interleaved at the sending end and deinterleaved and error checked at the receiving end. The interleaving parameters are dynamically adjusted to disperse consecutive error bits and enhance error detection capability.
It effectively disperses multiple consecutive bit errors, reduces the impact on image quality, improves user experience, and enhances data transmission reliability.
Smart Images

Figure CN119728014B_ABST
Abstract
Description
Technical Field
[0001] This 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 Technology
[0002] Currently, there are proprietary protocols and open standard protocols for high-speed media transmission in vehicles. American companies TI and Maxim use proprietary protocols for high-speed media transmission in vehicles. Open standard protocols include MIPI APHY, HSMT, and ASA.
[0003] MIPI (Mobile Industry Processor Interface) is an abbreviation for Mobile Industry Processor Interface. MIPI APHY is an open standard initiated by the MIPI Alliance for long-distance transmission of mobile application processors. Existing MIPI APHY protocols use ECC and CRC methods to correct and detect errors in transmitted data.
[0004] ECC (Error Correction Code) is a common error correction technique used in data transmission. It detects and corrects errors during data transmission, ensuring data integrity. The MIPI APHY protocol defines a one-byte ECC field in the data frame header. After calculation on the raw data, one byte of ECC data is obtained. This ECC data can correct 1-bit errors and detect 2-bit errors.
[0005] CRC (Cyclic Redundancy Check) is a commonly used method for detecting errors in data transmission, but it does not have error correction capabilities. The MIPI protocol defines a CRC field for error detection.
[0006] MIPI frames are divided into two types: short frames (fixed length: 4 bytes) and long frames (variable length: 6~65541 bytes).
[0007] A short MIPI frame contains only a 32-bit header. The header consists of an 8-bit data identifier, 16 bits of data, and an 8-bit error detection (ECC) field. A long MIPI frame contains a 32-bit header, an N-byte data field, and a 16-bit CRC. The long frame header format is the same as the short frame header format, containing an 8-bit data identifier, 16 bits of data, and an 8-bit error detection (ECC) field.
[0008] HSMT is a draft standard developed in my country, titled "Technical Requirements and Test Methods of Automotive Wired High-Speed Media Transmission System". This protocol incorporates forward error correction coding to correct errors during data transmission.
[0009] ASA is a standard developed by the Automotive SerDes Alliance. This protocol also has relatively weak error correction capabilities.
[0010] Electric vehicles generate significant electromagnetic radiation and radio frequency interference, and the high MIPI transmission rate can lead to multiple consecutive bit errors during MIPI data transmission. This exceeds the capabilities of ECC error correction and detection. The MIPI protocol is used to transmit image data; after CRC detects an error packet, the application layer decides whether to discard it or continue using the erroneous packet for image output. If multiple bits are consecutively erroneous, it significantly impacts image quality and user experience. HSMT adds forward error correction coding, which can correct more than one bit error, but its error correction capability is still limited. Summary of the Invention
[0011] Based on the above, the present invention provides a method and system for enhancing data transmission reliability based on interleaving, which addresses the technical problems in the prior art such as data error correction due to interference affecting data transmission.
[0012] A method for enhancing data transmission reliability based on interleaving includes:
[0013] Step A1: The sending end interleaves the original data sequence to be sent to form the 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 and obtains the error check result;
[0017] Step A3 is followed by:
[0018] Step A4: The receiving end determines whether to continue interleaving the original data sequence to be sent and adjusts the interleaving parameters based on the error checking results.
[0019] If interleaving is required but the interleaving parameters do not need to be adjusted, the judgment ends.
[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 to adjust the interleaving parameters and sends it to the sending end, 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 transmitted according to the adjusted interleaving parameters to form the first data, and sends the first data to the receiving end, and then proceeds to step A2.
[0024] Step A7: The receiving end generates a second command to stop interleaving and sends it to the sending end, 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 the error check result, and continues to step A4.
[0027] Furthermore, when the sending end sends image data to the receiving end, it uses one of the following image transmission protocols: MIPI, HSMT, ASA, etc.
[0028] Furthermore, the original data sequence includes image data to be sent;
[0029] In step A1, the image data in the original data sequence is interleaved using intra-frame interleaving or / and inter-frame interleaving between data frames.
[0030] Furthermore, in step A4, the receiving end analyzes the number of consecutive error bits and the duration of the error based on the continuously received error check results to determine whether it is necessary to continue interleaving the original data sequence to be transmitted and to adjust the interleaving parameters.
[0031] The interweaving parameters include interweaving depth and interweaving level.
[0032] The present invention also provides a system for enhancing data transmission reliability based on interleaving, for performing the aforementioned method for enhancing data transmission reliability based on interleaving, including a transmitter and a receiver;
[0033] The sending end includes:
[0034] The interleaving module is used to interleave the original data sequence to be sent to form the first data.
[0035] The first transmitting module, connected to the interleaving processing module, is used to send the first data to the receiving end;
[0036] The receiving end includes:
[0037] The second receiving module is used to receive the first data;
[0038] A deinterleaving processing module, connected to a second receiving module, is used to deinterleave the first data to obtain the second data;
[0039] The error checking module, connected to the deinterleaving processing module, is used to perform error checking on the second data.
[0040] Furthermore, the error checking module performs error checks on the second data and obtains the error checking results;
[0041] The receiver also includes:
[0042] The judgment module, connected to the error checking module, is used to determine whether to continue interleaving the original data sequence to be sent and to adjust the interleaving parameters based on the error checking results, and to obtain the judgment result.
[0043] The command generation module, connection judgment module, and second sending module are used for:
[0044] When the judgment result indicates that interleaving is required and the interleaving parameters need to be adjusted, a first command to adjust the interleaving parameters is generated and the first command is sent to the sending end through the second sending module.
[0045] When the determination result is that interleaving is not required, a second command to stop interleaving is generated and sent to the sending end through the second sending module;
[0046] The sending end includes:
[0047] The first receiving module is used to receive the first command or the second command;
[0048] The first transmitting module, connected to the first receiving module, is used to send the original data sequence to be transmitted 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, which 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 the 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 used to perform error checking on the received original data sequence to obtain the error checking results.
[0051] Furthermore, when the first sending module of the sending end sends image data to the receiving end, the transmission protocol used is one of the image transmission protocols such as MIPI, HSMT, and ASA.
[0052] Furthermore, the original data sequence includes image data to be sent;
[0053] The interleaving processing module uses intra-frame interleaving or / and inter-frame interleaving between data frames to interleave the image data in the original data sequence.
[0054] Furthermore, the receiving end's judgment module analyzes the number of consecutive error bits and the duration of the error based on the continuously received error check results to determine whether it is necessary to continue interleaving the original data sequence to be sent and to adjust the interleaving parameters.
[0055] The interweaving parameters include interweaving depth and interweaving level.
[0056] The beneficial technical effects of this invention are as follows: by using the interleaving method, multiple consecutive bit errors appearing in a data frame are distributed to different data frames, thereby enhancing error detection capability, reducing the impact on data quality, improving user experience, and correcting multiple consecutive bit errors. Attached Figure Description
[0057] Figure 1 , Figure 2 and Figure 4 This is a flowchart illustrating the steps of a method for enhancing data transmission reliability based on interleaving according to the present invention.
[0058] Figure 3 and Figure 5 These are schematic diagrams of inter-frame interleaving and intra-frame interleaving, respectively.
[0059] Figure 6 and Figure 7 This is a schematic diagram of a system based on interleaving to enhance data transmission reliability according to the present invention. Detailed Implementation
[0060] 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.
[0061] It should be noted that, unless otherwise specified, the embodiments and features described in the present invention can be combined with each other.
[0062] The present invention will be further described below with reference to the accompanying drawings and specific embodiments, but this is not intended to limit the scope of the invention.
[0063] See Figure 1 This invention provides a method for enhancing data transmission reliability based on interleaving, comprising:
[0064] Step A1: The sending end interleaves the original data sequence to be sent to form the 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 Figure 2 Furthermore, in step A3, the receiving end performs error checking on the second data and obtains the error checking result;
[0068] Step A3 is followed by:
[0069] Step A4: The receiving end determines whether to continue interleaving the original data sequence to be sent and adjusts the interleaving parameters based on the error checking results.
[0070] If interleaving is required but the interleaving parameters do not need to be adjusted, the judgment ends.
[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 to adjust the interleaving parameters and sends it to the sending end, 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 transmitted according to the adjusted interleaving parameters to form the first data, and sends the first data to the receiving end, and then proceeds to step A2.
[0075] Step A7: The receiving end generates a second command to stop interleaving and sends it to the sending end, 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 the error check result, and continues to step A4.
[0078] Furthermore, when the first sending module of the sending end sends image data to the receiving end, the transmission protocol used is one of the image transmission protocols such as MIPI, HSMT, and ASA.
[0079] Furthermore, the original data sequence includes image data to be sent;
[0080] The interleaving processing module uses intra-frame interleaving or / and inter-frame interleaving between data frames to interleave the image data in the original data sequence.
[0081] Furthermore, the receiving end's judgment module analyzes the number of consecutive error bits and the duration of the error based on the continuously received error check results to determine whether it is necessary to continue interleaving the original data sequence to be sent and to adjust the interleaving parameters.
[0082] The interweaving parameters include interweaving depth and interweaving level.
[0083] To reduce latency and memory impact, interleaving can be omitted when there is no interference. Interleaving is only initiated at the receiver after detecting erroneous bits via ECC or CRC. The interleaving depth can be dynamically adjusted based on the intensity and duration of interference. For example, initially selecting an interleaving depth of 4 can correct errors in four consecutive bits. If the interference is low, with only four or fewer consecutive bit errors, ECC can correct them without increasing the interleaving depth. If the interference is high, with more than four consecutive bit errors, the receiver can instruct the transmitter to increase the interleaving depth to correct more bits. If, after a period of time, the receiver observes a decrease in the number of consecutive erroneous bits or the disappearance of consecutive erroneous bits, it can instruct the transmitter to reduce the interleaving depth or discontinue interleaving.
[0084] If there are a large number of consecutive bit errors, even after deinterleaving, ECC or other forward error correction codes may still be unable to correct all the erroneous bits. In such cases, the number of interleavings can be increased to distribute the erroneous bits across different rows and frames of the image, thereby reducing the impact on image quality and improving the user experience.
[0085] Specifically, interleaving parameters include interleaving depth and interleaving level. Interleaving depth refers to the number of data frames involved in the interleaving process, and interleaving level refers to the number of interleaving layers.
[0086] Specifically, after the receiving end detects an erroneous bit using ECC / CRC or forward error correction coding, the interleaving decision unit notifies the sending end whether to perform interleaving, the interleaving depth, and the interleaving level based on the number of consecutive erroneous bits and the duration of the error. Upon receiving the interleaving command, the sending end instructs the interleaving processing module to perform interleaving before transmitting the data. The receiving end deinterleaves the received data, then performs ECC / CRC or forward error correction coding detection, and notifies the interleaving decision unit of the detection results. If there are two or three interleavings, further deinterleaving is required.
[0087] See Figure 3 Furthermore, 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 sending end performs ECC calculation on each data frame, and then interleaves the data in different data frames. Figure 3 As shown, then send it. Figure 3 The example illustrates the interleaving between four data frames. The first four bits of data frames 1-4 are sequentially arranged to form the first four bits of data frame 1, and the second four bits are sequentially arranged to form the last four bits of data frame 1. The third four bits of data frames 1-4 are sequentially arranged to form the first four bits of data frame 2, and the fourth four bits are sequentially arranged to form the last four bits of data frame 2. The fifth four bits of data frames 1-4 are sequentially arranged to form the first four bits of data frame 3, and the sixth four bits are sequentially arranged to form the last four bits of data frame 3. The seventh four bits of data frames 1-4 are sequentially arranged to form the first four bits of data frame 4, and the eighth four bits are sequentially arranged to form the last four bits of data frame 4.
[0089] After receiving a data frame, the receiving end first buffers the data frame. After all the interleaved data frames are received, it performs deinterleaving and then performs error correction and detection through ECC.
[0090] If electromagnetic interference occurs during data frame transmission, resulting in four consecutive bit errors, such as... Figure 3 The four dark bits are red. Without interleaving, ECC cannot perform error correction and detection because it can only correct one-bit errors and detect two-bit errors. With interleaving, these four dark bits come from different data frames. The receiving end receives four data frames and deinterleaves them, distributing the four red bits across different data frames. This means each data frame is actually only one bit off, which ECC can correct, ensuring data integrity.
[0091] superior Figure 3In this case, four data frames are interleaved at a depth of 4. Similarly, more data frames can be used for interleaving, which can correct more consecutive bit errors. For example, using eight data frames for interleaving at a depth of 8 can correct eight consecutive bit errors.
[0092] The deeper the interleaving depth, the more data frames need to be buffered for interleaving and deinterleaving processing, increasing latency and memory usage. For example, interleaving 8 data frames can correct errors of 8 consecutive bits. The sending end needs to buffer 8 data frames for interleaving, and the receiving end needs to receive 8 data frames before deinterleaving.
[0093] Since MIPI short frames are only 32 bits long, the latency and memory added by interleaving and deinterleaving are negligible.
[0094] See 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 the data field, and cyclic redundancy check.
[0095] Step A1, the processing of the original data sequence for MIPI long frames, includes:
[0096] Step A11: Split the data frame in the original data sequence into a header and a data field;
[0097] Step A12: Interleave the packet header to form the first data about the packet header and send it to the receiving end;
[0098] Step A13: Interleave the image data in the data domain and combine it with cyclic redundancy check to form the first data about the data domain, which is then sent to the receiving end.
[0099] Due to their length, MIPI long frames can be transmitted by first interleaving the header as a separate short frame (similar to MIPI short frames), and then interleaving the data field as part of the long frame. The N-byte data field in a MIPI long frame contains image data. Multiple consecutive bit errors can cause noise, significantly impacting the user's visual experience. The transmitting end can interleave the data field within the MIPI long frame, and the receiving end can deinterleave it after receiving the MIPI long frame, as follows: Figure 5 As shown. For example, the data field length of a MIPI long frame is 1920*8 bits. Bit interleaving is performed every 480*8 bits before transmission. During transmission, the 4 dark-colored bits are interfered with. After receiving the data, the receiving end performs deinterleaving. In this way, errors in multiple consecutive bits in the image data frame are distributed to different locations in the image, reducing the impact on image quality and improving the user experience. Since the interleaving is performed within the data field of the frame, the impact on latency and memory is minimal.
[0100] If latency requirements are low and memory is sufficient, inter-frame interleaving can be performed between the data field portions of long MIPI frames to increase data transmission reliability and improve user experience.
[0101] Interleaving is performed based on data domains at different locations. For example, image data in a long MIPI frame can be divided into intra-frame interleaving and inter-frame interleaving.
[0102] Intra-frame data interleaving refers to interleaving data at different locations within a single frame's data domain. This could involve interleaving data from different rows, or different data within the same row.
[0103] Inter-frame data interleaving refers to the interleaving of data fields between different frames, such as image data between different frames.
[0104] Specifically, the interleaving parameters include interleaving depth and interleaving level. Interleaving depth refers to the number of data frames involved in the interleaving process.
[0105] Interweaving levels include the number of interweavings, which can be divided into one interweaving, two interweavings, three interweavings, or more interweavings.
[0106] In step A1, the original data sequence can be interleaved before ECC encoding or forward error correction encoding, or it can be interleaved after ECC encoding or forward error correction encoding to obtain the first data. The specific encoding method depends on the specific type.
[0107] In step A3, if ECC encoding is used, ECC error checking and correction are performed. If forward error correction encoding is used, forward error correction is performed. Additionally, if the original data sequence also includes CRC calculation, CRC checking is performed in step A3.
[0108] One-time interleaving refers to interleaving data after ECC encoding or forward error correction encoding. This interleaving can be intra-frame data interleaving or inter-frame data interleaving. For example, interleaving can be performed after forward error correction encoding of MIPI long frame image data, or after ECC encoding of the header of a MIPI long frame or MIPI short frame.
[0109] Double interleaving refers to performing an interleaving operation before ECC encoding or forward error correction encoding of the data. This can be intra-frame interleaving or inter-frame interleaving, followed by ECC encoding or forward error correction encoding, and then another interleaving operation. In short, it involves double interleaving. For example, for the data field of a long MIPI frame, different rows of data can be interleaved first, followed by ECC encoding or forward error correction encoding, and then the already interleaved data within the same row can be interleaved again.
[0110] Triple interleaving involves inter-frame and intra-frame data interleaving before ECC or forward error correction coding, followed by ECC or forward error correction coding, and then interleaving again. In short, it includes three interleaving operations.
[0111] Depending on whether the interleaving is performed before or after ECC coding or forward error correction coding, it can be divided into pre-coding interleaving and post-coding interleaving.
[0112] The purpose of pre-encoding interleaving is to distribute erroneous bits to different locations in the image, reducing their impact on data quality.
[0113] The purpose of post-coded interleaving is to correct multiple consecutive bit errors, or to distribute uncorrectable erroneous bits to different locations within the data. Post-coded interleaving can be either intra-frame or inter-frame data interleaving.
[0114] It is important to note that interleaved data frames should not be transmitted simultaneously in multiple channels. This is because transmitting consecutive data frames in parallel across different channels at the same time would lead to electromagnetic interference affecting multiple consecutive data frames simultaneously, resulting in numerous consecutive bit errors and compromising reliable data transmission. Therefore, continuously interleaved data frames—that is, related data frames interleaved after ECC or other forward error correction coding—must be transmitted in a single channel.
[0115] Specifically, data from HSMT and ASA image transmission protocols can also be interleaved to enhance transmission reliability.
[0116] See Figure 6 The present invention also provides a system for enhancing data transmission reliability based on interleaving, for performing the aforementioned method for enhancing data transmission reliability based on interleaving, including a transmitter (1) and a receiver (2).
[0117] The transmitter (1) includes:
[0118] The interleaving processing module (11) is used to interleave the original data sequence to be sent to form the first data;
[0119] The first transmitting module (12) is connected to the interleaving processing module (11) and is used to send the first data to the receiving end (2).
[0120] The receiver (2) includes:
[0121] The second receiving module (21) is used to receive the first data;
[0122] The deinterleaving processing module (22) is connected to the second receiving module (21) and is used to deinterleave the first data to obtain the second data.
[0123] The error checking module (23) is connected to the deinterleaving processing module (22) for error checking of the second data.
[0124] Furthermore, the error checking module (23) performs error checking on the second data and obtains the error checking results;
[0125] The receiver (2) also includes:
[0126] The judgment module (24) is connected to the error checking module (23) to determine whether to continue interleaving the original data sequence to be sent and to adjust the interleaving parameters based on the error checking results, and to obtain the judgment result;
[0127] The command generation module (25), the connection judgment module (24), and the second sending module (26) are used for:
[0128] When the judgment result indicates that interleaving is required and the interleaving parameters need to be adjusted, a first command to adjust the interleaving parameters is generated and the first command is sent to the sending end through the second sending module (1).
[0129] When the judgment result is that interleaving is not required, a second command to stop interleaving is generated and the second command is sent to the sending end through the second sending module (1);
[0130] The transmitter (1) includes:
[0131] The first receiving module (13) is used to receive a first command or a second command;
[0132] The first transmitting module (12) is connected to the first receiving module (13) and 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), which 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 the 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 error checking on the received original data sequence to obtain the error checking result.
[0135] Specifically, the judgment module is an interleaving decision unit.
[0136] To reduce latency and memory impact, interleaving can be omitted when there is no interference. Interleaving is only initiated when the receiver detects erroneous bits via ECC or CRC. The interleaving depth can be dynamically adjusted based on the intensity and duration of interference. Interleaving parameters include interleaving depth and interleaving levels. Interleaving depth refers to the number of data frames involved in the interleaving and the interleaving levels. After detecting erroneous bits via ECC / CRC or forward error correction coding, the receiver's interleaving decision unit notifies the sender whether to perform interleaving, the interleaving depth, and the interleaving levels based on the number of consecutive erroneous bits and the duration of the error. Upon receiving the interleaving command, the sender notifies the interleaving processing module to perform interleaving before transmitting data. The receiver deinterleaves the received data, performs ECC / CRC or forward error correction coding checks, and notifies the interleaving decision unit of the results. If there are two or three interleavings, further deinterleaving is required.
[0137] Specifically, the transmitting end also includes an error correction coding module (14), connected to the interleaving processing module (11), the first receiving module (13), and the first transmitting module (12). After performing error correction coding on the original data sequence to be transmitted, when interleaving is not required, the error-corrected data is directly sent to the receiving end for error checking and correction. When interleaving is required, the receiving end works with the interleaving module to complete interleaving and error correction coding to form the first data. For example, based on the interleaving level in the interleaving parameters, error correction coding is performed before interleaving, or after interleaving, or interleaving is performed before and after error correction coding to obtain the first data. The error correction coding is ECC coding or forward error correction coding.
[0138] Furthermore, when the first sending module of the sending end sends image data to the receiving end, the transmission protocol used is one of the image transmission protocols such as MIPI, HSMT, and ASA.
[0139] Furthermore, the original data sequence includes image data to be sent;
[0140] The interleaving processing module uses intra-frame interleaving or / and inter-frame interleaving between data frames to interleave the image data in the original data sequence.
[0141] Furthermore, the receiving end's judgment module analyzes the number of consecutive error bits and the duration of the error based on the continuously received error check results to determine whether it is necessary to continue interleaving the original data sequence to be sent and to adjust the interleaving parameters.
[0142] The interweaving parameters include interweaving depth and interweaving level.
[0143] Furthermore, as an application example, when the original data sequence to be sent is a MIPI short frame, the interleaving processing module performs interleaving of the original data sequence as inter-frame interleaving between data frames.
[0144] See Figure 7 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, a data field, and a cyclic redundancy check; the interleaving processing module (11) includes:
[0145] The data splitting unit (111) is used to split the data frame in the original data sequence into a packet header and a data field;
[0146] The first interleaving unit (112) is connected to the data splitting unit (111) and is used to interleave the packet header to form the first data about the packet header for transmission to the receiving end;
[0147] The second interleaving unit (113) is connected to the data splitting unit and the first interleaving unit (112) respectively. After the first data about the packet header is sent to the receiving end (2), the data field is interleaved and combined with cyclic redundancy check to form the first data about the data field, and then sent to the receiving end (2).
[0148] Because of their long length, MIPI long frames can first have their headers sent as separate short frames (similar to MIPI short frames), and then their data fields sent as long frames.
[0149] Furthermore, the second interleaving unit (113) adopts intra-frame interleaving or / and inter-frame interleaving between data frames for the interleaving method of the data field.
[0150] By using interleaving, ECC and forward error correction coding can be used to correct and detect errors in multiple consecutive bits. The greater the interleaving depth, the more bits are needed for error correction and detection.
[0151] By using multiple interleaving methods, errors in multiple consecutive bits in a data frame can be distributed to different locations in the image, reducing the impact on image quality and improving the user experience.
[0152] The technical solution of this invention can be applied to data such as MIPI, HSMT, and ASA, but it is not limited to these three transmission protocols. It can also be applied to other transmission protocols to enhance reliable transmission.
[0153] The above are merely 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 recognize that any equivalent substitutions and obvious changes made based on the description and illustrations of the present invention should be included within the protection scope of the present invention.
Claims
1. A method for enhancing data transmission reliability based on interleaving, characterized in that, The method comprises the following steps: Step A1, the sending 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 de-interleaves to obtain second data; Step A3, the receiving end performs error checking on the second data; Step A3, the receiving end performs error checking on the second data to obtain an error checking result; The method further comprises the following steps after step A3: Step A4, the receiving end determines whether the original data sequence to be sent needs to be interleaved and the interleaving parameters need to be adjusted according to the error checking result; If the original data sequence to be sent needs to be interleaved but the interleaving parameters do not need to be adjusted, the determination is ended; If the original data sequence to be sent needs to be interleaved and the interleaving parameters need to be adjusted, step A5 is performed; If the original data sequence to be sent does not need to be interleaved, step A7 is performed; Step A5, the receiving end generates a first command for adjusting the interleaving parameters and sends the first command to the sending end, and then step A6 is performed; Step A6, the sending end dynamically adjusts the interleaving parameters according to the first command, and then interleaves the original data sequence to be sent according to the adjusted interleaving parameters to form the first data, and sends the first data to the receiving end, and then step A2 is performed; Step A7, the receiving end generates a second command for stopping interleaving and sends the second command to the sending end, and then step A8 is performed; Step A8, the sending end sends the original data sequence to be sent to the receiving end, and then step A9 is performed; Step A9, the receiving end performs error checking on the received original data sequence to obtain an error checking result, and continues step A4; In step A4, the receiving end analyzes the number of continuous error bits and the error duration according to the continuously received error checking results to determine whether the original data sequence to be sent needs to be interleaved and the interleaving parameters need to be adjusted, wherein the interleaving parameters include interleaving depth and interleaving level; The original data sequence to be sent is a MIPI long frame, and the processing of the original data sequence to be sent in step A1 comprises the following steps: Step A11, the data frame in the original data sequence is split into a packet header and a data field; Step A12, the packet header is interleaved to form first data about the packet header and sent to the receiving end; Step A13, the image data in the data field is interleaved, and the interleaving is performed before ECC encoding or forward error correction coding, and then the data is ECC encoded or forward error correction coded, and then interleaved, and the data frame subjected to continuous interleaving is transmitted in one channel.
2. The method of claim 1, wherein the interleaving is performed in a manner that is dependent on the data transmission. The transmission protocol adopted by the sending end when sending the image data to the receiving end is one of MIPI, HSMT, and ASA image transmission protocols. 3. The method of claim 2, wherein the interleaving is performed in a manner that is dependent on the data transmission. The original data sequence comprises image data to be sent; In step A1, the interleaving mode of the image data in the original data sequence adopts intra-frame interleaving of a data frame and / or inter-frame interleaving between data frames.
4. A system for enhancing reliability of data transmission based on interleaving, characterized by The method is used for executing the method for enhancing data transmission reliability based on interleaving according to any one of claims 1-3, and comprises a sending end and a receiving end. The sending end comprises: an interleaving processing module, configured to interleave a to-be-sent original data sequence to form first data; a first sending module, connected to the interleaving processing module, configured to send the first data to the receiving end; The receiving end comprises: a second receiving module, configured to receive the first data; an deinterleaving processing module, connected to the second receiving module, configured to deinterleave the first data to obtain second data; an error checking module, connected to the deinterleaving processing module, configured to perform error checking on the second data; The error checking module performs error checking on the second data and obtains an error checking result; The receiving end further comprises: a judging module, connected to the error checking module, configured to determine, according to the error checking result, whether it is necessary to continue to interleave the to-be-sent original data sequence and to adjust interleaving parameters, and to obtain a judging result; a command generating module, connected to the judging module and the second sending module, configured to: when the judging result is that interleaving is necessary and the interleaving parameters need to be adjusted, generate a first command for adjusting the interleaving parameters and send the first command to the sending end through the second sending module; when the judging result is that interleaving is unnecessary, generate a second command for stopping interleaving and send the second command to the sending end through the second sending module; The sending end comprises: a first receiving module, configured to receive the first command or the second command; The first sending module, connected to the first receiving module, is configured to, when the received command is the second command, send the to-be-sent original data sequence to the receiving end; The interleaving processing module is further connected to the first receiving module and is configured to, when the received command is the first command, dynamically adjust the interleaving parameters according to the first command, and then interleave the to-be-sent original data sequence according to the adjusted interleaving parameters to form the first data, and send the first data to the receiving end; The error checking module is further connected to the second receiving module and is further configured to perform error checking on the received original data sequence to obtain an error checking result; The judging module of the receiving end analyzes the number of continuous error bits and the error duration according to the continuously received error checking result to determine whether it is necessary to continue to interleave the to-be-sent original data sequence and to adjust the interleaving parameters, wherein the interleaving parameters include interleaving depth and interleaving level; The to-be-sent original data sequence is a MIPI long frame, and the interleaving processing module comprises: a data splitting unit, configured to split a data frame in the original data sequence into a packet header and a data field; a first interleaving unit, connected to the data splitting unit, configured to interleave the packet header to form first data about the packet header and send the first data to the receiving end; a second interleaving unit, connected to the data splitting unit and the first interleaving unit respectively, configured to interleave the data field after the first data about the packet header is sent to the receiving end, combine the first data about the data field with a cyclic redundancy check to form second data about the data field, and send the second data to the receiving end.
5. A system for enhancing data transmission reliability based on interleaving as claimed in claim 4 wherein, The transmission protocol used 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.
6. A system for enhancing data transmission reliability based on interleaving as claimed in claim 5 wherein, The original data sequence contains image data to be sent. The interleaving manner of the image data in the original data sequence is intra-frame interleaving of data frames and / or inter-frame interleaving between data frames.
Citation Information
Patent Citations
Error code detection method and related equipment
CN111385022A
A data interlaced device and method
CN1501652A