CN110995392B - Data transmission method and device - Google Patents

Data transmission method and device Download PDF

Info

Publication number
CN110995392B
CN110995392B CN201911193303.9A CN201911193303A CN110995392B CN 110995392 B CN110995392 B CN 110995392B CN 201911193303 A CN201911193303 A CN 201911193303A CN 110995392 B CN110995392 B CN 110995392B
Authority
CN
China
Prior art keywords
data line
sent
data
line
receiving end
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911193303.9A
Other languages
Chinese (zh)
Other versions
CN110995392A (en
Inventor
李林
申曦
李停
陈西昌
张远
温建新
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai IC R&D Center Co Ltd
Original Assignee
Shanghai IC R&D Center Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai IC R&D Center Co Ltd filed Critical Shanghai IC R&D Center Co Ltd
Priority to CN201911193303.9A priority Critical patent/CN110995392B/en
Publication of CN110995392A publication Critical patent/CN110995392A/en
Application granted granted Critical
Publication of CN110995392B publication Critical patent/CN110995392B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0006Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the transmission format
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0056Systems characterized by the type of code used
    • H04L1/0061Error detection codes

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Quality & Reliability (AREA)
  • Detection And Prevention Of Errors In Transmission (AREA)
  • Error Detection And Correction (AREA)

Abstract

The invention provides a data transmission method and a device, wherein the method comprises the following steps: a sending end determines data to be sent; the method comprises the steps that a sending end sends a line of data lines of data to be sent, the sending end further calculates a first check code based on the data lines to be sent by using a preset check method, and sends the first check code to a receiving end within the line blanking time of the data lines to be sent; the receiving end receives the data line and the first check code, the receiving end checks the received data line based on the first check code within the line blanking time of the received data line so as to verify whether the received data line is consistent with the data line sent by the sending end, and when the received data line is consistent with the data line sent by the sending end, the receiving end receives the next data line sent by the sending end; and when the data rows are inconsistent, the receiving end corrects the error of the received data rows based on the first check code, receives the next data row sent by the sending end, or prompts the sending end to resend the data rows. The data transmission method provided by the invention has higher robustness.

Description

Data transmission method and device
Technical Field
The present invention relates to the field of data technologies, and in particular, to a data transmission method and apparatus.
Background
In the field of data technology, it is often necessary to transmit large amounts of multimedia data (e.g., image data or audio data). However, during the transmission process, the data bit flipping condition is inevitably generated, so that the data transmission is wrong, and the robustness of the data transmission is low. Therefore, a data transmission method with high robustness is needed to ensure correct data transmission.
Disclosure of Invention
The invention aims to provide a data transmission method and a data transmission device, and aims to solve the technical problem that the existing data frame transmission method is low in robustness.
In order to solve the above technical problem, the present invention provides a data transmission method, including:
a sending end determines data to be sent, wherein the data to be sent comprises at least one row of data lines;
the method comprises the steps that a sending end sends a line of data lines of data to be sent, the sending end further calculates a first check code based on the data lines to be sent by using a preset check method, and sends the first check code to a receiving end within line blanking time of the data lines to be sent;
the receiving end receives a data line and the first check code, checks the received data line based on the first check code within the line blanking time of the received data line to verify whether the received data line is consistent with the data line sent by the sending end, and receives the next data line sent by the sending end when the received data line is consistent with the data line sent by the sending end; and when the data rows are inconsistent, the receiving end corrects the error of the received data rows based on the first check code, receives the next data row sent by the sending end, or prompts the sending end to resend the data rows.
Optionally, when the sending end sends the data line to be sent, a first check code is calculated based on the data line to be sent by using the preset check method, and the first check code is sent to a receiving end in the line blanking time of the data line to be sent.
Optionally, the method further includes:
the receiving end calculates a second check code based on the received data line by using a preset check method while receiving the data line; or after the receiving end receives the data line, calculating a second check code based on the received data line by using a preset check method in the line blanking time of the data line.
And the method for the receiving end to check the received data line based on the first check code comprises the following steps:
in the line blanking time of the data line, the receiving end compares whether a first check code sent by a sending end is consistent with a second check code calculated by the receiving end based on the received data line; and if so, determining that the received data line is consistent with the data line sent by the sending end, otherwise, determining that the received data line is inconsistent with the data line sent by the sending end.
Optionally, the operation of the receiving end performing error correction on the received data line based on the first check code is performed within a line blanking time of the received data line.
Optionally, the method for the receiving end to correct the error of the received data line based on the first check code includes:
and the receiving end determines the bit number of transmission errors in the received data line based on the first check code, and performs the turnover operation on the data on the bit number to correct errors.
Optionally, when the receiving end verifies that the received data line is inconsistent with the data line sent by the sending end, a retransmission instruction is generated and sent to the sending end, so that the sending end sends the data line to the receiving end again based on the retransmission instruction.
Optionally, the data line sent by the generating terminal is any data line in the data to be sent.
Optionally, the preset check method includes any one of an ECC check method, a cyclic redundancy check method, a parity check method, and a hamming check method.
Optionally, the format of the data to be sent includes multimedia data, and the multimedia data includes image data or audio data.
In addition, the present invention also provides a data transmission apparatus, comprising: the system comprises a sending end and a receiving end, wherein the sending end comprises a first check module, and the receiving end comprises a second check module;
the sending end is used for determining data to be sent, wherein the data to be sent comprises at least one row of data lines and one row of data lines for sending the data to be sent; the first checking module is used for calculating a first checking code based on a data line to be sent by using a preset checking method and sending the first checking code to a receiving end within the line blanking time of the data line to be sent;
the receiving end is configured to receive the data line and the first check code, and in a line blanking time of the received data line, the second check module checks the received data line based on the first check code to verify whether the received data line is consistent with the data line sent by the sending end, and when the received data line is consistent with the data line sent by the sending end, the receiving end receives a next data line sent by the sending end, and when the received data line is inconsistent with the data line sent by the sending end, the receiving end corrects the error of the received data line based on the first check code and receives the next data line sent by the sending end, or prompts the sending end to resend the data line.
Optionally, when the sending end sends the data line to be sent, the first check module calculates a first check code based on the data line to be sent by using the preset check method, and sends the first check code to a receiving end in the line blanking time of the data line to be sent.
Optionally, the receiving end performs an error correction operation on the received data line based on the first check code within a line blanking time of the received data line.
In summary, in the data transmission method and apparatus provided by the present invention, the sending end calculates the first check code based on the data line to be sent by using a preset check method, and sends the first check code to the receiving end within the line blanking time of the data line to be sent. After receiving the data line and the first check code, the receiving end checks the received data line based on the first check code within the line blanking time of the received data line to verify whether the data line received by the receiving end is consistent with the data line sent by the sending end, and when the data line received by the receiving end is consistent with the data line sent by the sending end, the receiving end receives the next data line sent by the sending end; otherwise, the receiving end corrects the error of the received data line based on the first check code, and receives the next data line sent by the sending end, or prompts the sending end to resend the data line.
That is, in the present invention, when the sending end sends any data line, the sending end sends the check code corresponding to the data line to the receiving end within the line blanking time of the data line, so that the receiving end checks the data line at the line blanking time of the data line to verify whether the received data line is the data line sent by the sending end, to determine whether the data line is correctly transmitted, and when it is determined that the data line is incorrectly transmitted, the receiving end executes an error correction operation on the data line or prompts the sending end to resend the data line, thereby ensuring that each data line of the data to be sent can be correctly transmitted, further ensuring that the data to be sent is correctly transmitted, and improving the robustness of data transmission.
Meanwhile, because the invention checks the data line in the line blanking time, no extra check time is needed, the robustness of data transmission is ensured, and the data transmission efficiency is also ensured
Drawings
Fig. 1 is a schematic flow chart of a data transmission method provided in this embodiment;
fig. 2 is a schematic diagram of interaction between a sending end and a receiving end when data line transmission is correct according to an embodiment of the present invention;
fig. 3 is a schematic diagram of interaction between a sending end and a receiving end when a data line transmission error is provided and the receiving end corrects the error of the data line with the transmission error according to an embodiment of the present invention;
fig. 4 is a schematic diagram of interaction between a sending end and a receiving end when a data line is transmitted incorrectly and the receiving end prompts the sending end to retransmit the data line according to an embodiment of the present invention.
Detailed Description
The data transmission method and apparatus proposed by the present invention will be further described in detail with reference to the accompanying drawings and specific embodiments. The advantages and features of the present invention will become more apparent from the following description. It is to be noted that the drawings are in a very simplified form and are not to precise scale, which is merely for the purpose of facilitating and distinctly claiming the embodiments of the present invention.
Fig. 1 is a schematic flow chart of a data transmission method provided in this embodiment, and as shown in fig. 1, the method includes:
step 100, a sending end determines data to be sent, where the data to be sent includes at least one data frame, and each data frame includes at least one row of data lines. The data to be sent may specifically be multimedia data, for example, the data to be sent may be graphics data or audio data.
Step 200, a sending end sends a line of data lines of the data to be sent, and the sending end also calculates a first check code based on the data lines to be sent by using a preset check method and sends the first check code to a receiving end within the line blanking time of the data lines to be sent.
The data line to be sent may specifically be any data line of any data frame in the data to be sent. In this embodiment, the step of calculating the first check code by the sending end based on the data line by using the preset check method is executed synchronously with the step of sending the data line by the sending end, so that additional time for calculating the first check code is not required, and the efficiency of data transmission is ensured. Or, in this embodiment, the first check code may also be calculated based on the data line by using a preset check method within the line blanking time of the data line on the previous line of the data line, so that the time for calculating the first check code does not need to be additionally added, and the efficiency of data transmission is also ensured.
Further, in this embodiment, the preset Check method may specifically be any one of an Error Check and Correction method (ECC), a cyclic redundancy Check method, a parity Check method, and a hamming Check method. In this embodiment, the preset check method is taken as an ECC check method for example. Specifically, in this embodiment, the method for calculating the first check code based on the data line by using the ECC check method is as follows:
the ECC check method includes row check and column check, and in this embodiment, since the row of data to be transmitted is checked, the row of data to be transmitted is mainly used for checking the row of data to be transmitted in the ECC check method. It should be noted that each row of the multimedia data includes 8 bits, that is, each data row includes eight columns, namely, 0 th column to 7 th column, and the column check code generated in the column check includes six sub check codes, namely CR0 to CR 5. Wherein CR0 is the polarity of the 0 th, 2 th, 4 th and 6 th columns in the data row, that is, the exclusive or value of all data in the 0 th, 2 th, 4 th and 6 th columns, and CP1 is the polarity of the 1 st, 3 th, 5 th and 7 th columns in the data row; CP2 is the polarity of the data row columns 0, 1, 4, 5; CP3 is the polarity of data row column 2, 3, 6, 7; CP4 is the polarity of columns 0, 1, 2, 3 in the data row; CP5 is the polarity of columns 4, 5, 6, and 7 in the data row.
Based on this, it is assumed that the data line to be sent is specifically: 01000101, Table 1 is a schematic diagram of the data rows.
TABLE 1
Figure BDA0002294109590000051
As shown in table 1, the first column (i.e., Bit0) of the data row to be transmitted is 1, and the second column (i.e., Bit1) is 0. Then based on this, the first check code for the data row is as follows: CR 1 0 is the exclusive-or sum of the data of columns 0, 2, 4 and 6, i.e., the exclusive-or sum of Bit0, Bit2, Bit4 and Bit6, i.e.: CR 1 1 ═ 1 ≦ 0 ≦ 1; in a similar manner, CR 1 1=0⊕0⊕0⊕0=0,CR 1 2=1⊕0⊕0⊕0=1,CR 1 3=1⊕0⊕1⊕0=0;CR 1 4=1⊕0⊕1⊕0=0,CR 1 5 ═ 0 ∈ 1 ∈ 0 ∈ 1 ═ 1. The receiving end calculates that the first check code of the data line to be sent is: CR 1 0=1、CR 1 1=0,CR 1 2=1,CR 1 3=0;CR 1 4=0,CR 1 5==1。
And further, after the sending end determines the first check code, the sending end sends the first check code to the receiving end within the line blanking time of the data line to be sent.
Specifically, for multimedia data, each data line has a line blanking time. The image data is taken as an example for explanation, the image data line comprises at least one data frame, the data frame comprises at least one data line, the image data is transmitted frame by frame during transmission, and each frame is transmitted line by line during transmission. During transmission, the line head of a first line data line at the upper left corner of a frame data frame of image data is horizontally transmitted to the right, and when the data is transmitted to the right edge of the first line data line, namely the line tail of the data line, the left side is quickly returned to transmit the line head of a second line data line, then the data is horizontally transmitted to the right, the data is transmitted to the line tail of the second line data line, and then the left side is quickly returned to transmit the line head of a third line data line, and the process is circulated to transmit each line data line of each frame. The return process between the line end of the ith row of data and the line head of the (i + 1) th row of data in each frame of data is called the line blanking time, which is actually a redundant time.
Based on this, in this embodiment, the first check code is mainly sent from the sending end to the receiving end in the line blanking time after the transmission of the data line to be sent is completed and before the transmission of the next data line. For example, the first check code may be sent from the sending end to the receiving end after the end-of-line identifier of the data line to be sent is sent to the receiving end and during the period of time before the head-of-line identifier of the next data line is sent to the receiving end.
Step 300, the receiving end receives the data line and the first check code, and checks the received data line based on the first check code within the line blanking time of the received data line to verify whether the received data line is consistent with the data line sent by the sending end, and if so, performs step 400; when not consistent, step 500 is performed.
The method for the receiving end to check the received data line based on the first check code by using the ECC check method in the line blanking time of the received data line may include:
and the receiving end calculates the second check code based on the received data line by using a preset check method while receiving the data line, or calculates the second check code based on the received data line by using the preset check method within the line blanking time of the received data line after the receiving end receives the data line. Then, within the line blanking time of the received data line, the receiving end compares whether the first check code sent by the sending end is consistent with the second check code calculated by the receiving end based on the received data line, that is, the receiving end compares whether the first check code is consistent with the second check code to verify whether the received data line is consistent with the data line sent by the sending end, if so, it is indicated that the data line is transmitted correctly, step 400 is executed, otherwise, it is indicated that the data line is transmitted incorrectly, and step 500 is executed.
The method for generating the second check code based on the ECC check method is similar to the method for generating the first check code in step 200. That is, the second parity check code also includes six sub-parity check codes, each CR 2 0~CR 2 5. Specifically, it is assumed that the data received by the receiving end is 01000111, and table 2 is a schematic diagram of the data line received by the receiving end.
TABLE 2
Figure BDA0002294109590000071
Then, as shown in table 2, the 0 th column (i.e., Bit0) of the data row received by the receiving end is 1, and the 1 st column (i.e., Bit1) is 1. Based on this, the CR may be determined by referring to the description of the ECC checking method in step 200 above 2 0=1⊕1⊕0⊕1=1、CR 2 1=1⊕0⊕0⊕0=1、CR 2 2=1⊕1⊕0⊕0=0、CR 2 3=1⊕0⊕1⊕0=0、CR 2 4=1⊕1⊕1⊕0=1、CR 2 5=0⊕0⊕1⊕0=1。That is, the second parity is: CR 2 0=1;CR 2 1=1;CR 2 2=0;CR 2 3=0;CR 2 4=1;CR 2 5=1。
And after the receiving end calculates the second check code based on the received data line, comparing whether the first check code and the second check code are consistent or not within the line blanking time of the received data line so as to judge whether the data is transmitted correctly or not. In particular, the CR may be aligned 1 0 and CR 2 Whether 0 is consistent, CR 1 1 and CR 2 1 is consistent or not; CR 1 2 and CR 2 2, whether the two are consistent; CR 1 3 and CR 2 3 whether the two are consistent; CR 1 4 and CR 2 4, whether the two are consistent; CR 1 5 and CR 25. If the data lines received by the receiving end are consistent with the data lines sent by the sending end, the data lines are transmitted correctly, and step 400 is executed. If the data line received by the receiving end is inconsistent with the data line sent by the sending end, the data line is transmitted incorrectly, and step 500 is executed.
And step 400, the sending end sends the next data line.
Specifically, fig. 2 is a schematic diagram of interaction between a sending end and a receiving end when data line transmission is correct according to an embodiment of the present invention. As shown in fig. 2, the sending end sends a data line to be sent and a first check code to the receiving end, and the receiving end verifies, based on the first check code, that the data line is correctly transmitted within a line blanking time of the received data line, and then receives a next data line sent by the sending end.
Step 500, the receiving end corrects the error of the received data line based on the first check code, or the receiving end prompts the sending end to resend the data line.
Wherein the operation of the receiving end to perform error correction on the received data line based on the first check code is performed within a line blanking time of the received data line. And, the error correction operation specifically includes: and the receiving end determines the bit number of transmission errors in the received data line based on the first check code, and performs the turnover operation on the data on the bit number to correct errors.
The method for the receiving end to determine the bit number of the transmission error based on the first check code may include: and comparing the first check code with the second check code to determine a sub check code different from the first check code in the second check code, obtaining the bit number of the transmission error based on the determined sub check code, and performing a flipping operation on the data on the bit number to correct the error.
The method for obtaining the bit number of the transmission error based on the determined sub-parity code specifically comprises the following steps: refer to the comparison of the first check code CR in the above step 300 1 0~CR 1 5 and a second check code CR 2 0~CR 2 5 example, determine: CR 1 1 and CR 2 1 inconsistency, CR 1 2 and CR 2 2 disagreement, CR 1 4 and CR 2 4 are not identical. It should be noted that, for the ECC check code, if CR 1 0 and CR 2 If 0 is not consistent, it indicates that one error exists in Bit0, Bit2, Bit4 and Bit 6; if CR is 1 1 and CR 2 1 is inconsistent, which indicates that one error exists in Bit1, Bit3, Bit5 and Bit 7; if CR is 1 2 and CR 2 2, if the two are inconsistent, the result shows that one error exists in Bit0, Bit1, Bit4 and Bit 5; if CR is 1 3 and CR 2 3, if the two are inconsistent, the result shows that one error exists in Bit2, Bit3, Bit6 and Bit 7; if CR is 1 4 and CR 2 4, if the two are inconsistent, the result shows that one error exists in Bit0, Bit1, Bit2 and Bit 3; if CR is 1 5 and CR 2 If the two are not consistent with each other, the result is that there is one error in Bit4, Bit5, Bit6, and Bit 7. Therefore, the data bit transmission error can be accurately determined by referring to the comparison result of the first check code and the second check code.
In particular, according to a first check code CR 1 0~CR 1 5 and a second check code CR 2 0~CR 2 The alignment of 5 was deduced as follows: by CR 1 4 and CR 2 4 inconsistency can conclude that there is an error in Bit0, Bit1, Bit2, Bit3 of the data line, based on which CR is used 1 2 and CR 2 2 inconsistencies may infer Bit0, Bit1 for the row of data; further, by CR 1 1 and CR 2 A 1 inconsistency may conclude that there is an error Bit that should be Bit 1. At this time, the receiving end flips the data "1" on Bit1 of the data line "01000111" (refer to table 2) received by the receiving end to "0", that is, modifies the data "01000111" received by the receiving end to "01000101", and the data is consistent with the data (refer to table 1) sent by the sending end, thereby ensuring that the data line can be transmitted correctly.
Fig. 3 is a schematic diagram of interaction between a sending end and a receiving end when a data line is in error transmission and the receiving end corrects the error of the data line in error transmission according to an embodiment of the present invention. As shown in fig. 3, the sending end sends a data line to be sent and a first check code to the receiving end, the receiving end verifies a transmission error of the data line based on the first check code within a line blanking time of the received data line, and performs an error correction operation on the data line with the transmission error within the line blanking time, and then the receiving end receives a next data line sent by the sending end.
In this step, the receiving side may not perform an error correction operation, but may prompt the transmitting side to retransmit the data line. Specifically, fig. 4 is a schematic diagram of interaction between a sending end and a receiving end when a data line transmission is incorrect and the receiving end prompts the sending end to retransmit the data line, as shown in fig. 4, the sending end sends a data line to be sent and a first check code to the receiving end, and the receiving end verifies that the data line transmission is incorrect based on the first check code within a line blanking time of the received data line, and then generates a retransmission instruction and sends the retransmission instruction to the sending end, so that the sending end resends the data line to the receiving end based on the retransmission instruction. The operation of generating the retransmission instruction and sending the retransmission instruction by the receiving end is executed in the line blanking time of the received data line, so that the steps of generating the retransmission instruction and sending the retransmission instruction are executed without adding extra time, the time can be saved, and the transmission efficiency can be ensured.
In addition, in this embodiment, the sending end and the receiving end may be connected through a serial interface (for example, an SPI interface), and at this time, the sending end and the receiving end interact in a serial manner, so that the area of the circuit may be reduced. Or, the sending end and the receiving end may also be connected through a parallel interface (e.g., DVP interface), and at this time, the sending end and the receiving end interact in a parallel manner, so that the transmission rate may be increased.
In summary, in the data transmission method provided by the present invention, the sending end calculates the first check code based on the data line to be sent by using a preset check method, and sends the first check code to the receiving end within the line blanking time of the data line to be sent. After receiving the data line and the first check code, the receiving end checks the received data line based on the first check code within the line blanking time of the received data line to verify whether the data line received by the receiving end is consistent with the data line sent by the sending end, and when the data line received by the receiving end is consistent with the data line sent by the sending end, the receiving end receives the next data line sent by the sending end; otherwise, the receiving end corrects the error of the received data line based on the first check code, and receives the next data line sent by the sending end, or prompts the sending end to resend the data line.
That is, in the present invention, when the sending end sends any data line, the sending end sends the check code corresponding to the data line to the receiving end within the line blanking time of the data line, so that the receiving end checks the data line within the line blanking time of the data line to verify whether the received data line is the data line sent by the sending end, to determine whether the data line is correctly transmitted, and when it is determined that the data line is transmitted incorrectly, the receiving end executes error correction operation on the data line or prompts the sending end to resend the data line, thereby ensuring that each data line of the data to be sent can be correctly transmitted, further ensuring that the data to be sent is correctly transmitted, and improving the robustness of data transmission, meanwhile, because the data line is checked and corrected within the line blanking time, no extra check error correction time is needed, the data transmission efficiency is ensured while the robustness of data transmission is ensured.
In addition, because the generation step of the first check code is executed while the transmitting end transmits the data line or is executed in the line blanking time of the previous line of data line, and the generation step of the second check code is executed while the receiving end receives the data line or is executed in the line blanking time of the data line, the first check code and the second check code do not need to be generated by adding extra time, thereby saving time and ensuring transmission efficiency.
Further, the present invention also provides a data transmission apparatus, comprising: the system comprises a sending end and a receiving end, wherein the sending end comprises a first check module, and the receiving end comprises a second check module;
the sending end is used for determining data to be sent, wherein the data to be sent comprises at least one row of data lines, and one row of data lines of the data to be sent is sent; the first check module is used for calculating a first check code based on a data line to be sent by using a preset check method and sending the first check code to a receiving end within the line blanking time of the data line to be sent;
the receiving end is configured to receive the data line and the first check code, and in a line blanking time of the received data line, the second check module checks the received data line based on the first check code to verify whether the received data line is consistent with the data line sent by the sending end, when the received data line is consistent with the data line sent by the sending end, the receiving end receives a next data line sent by the sending end, and when the received data line is inconsistent with the data line sent by the sending end, the receiving end corrects the error of the received data line based on the first check code and receives the next data line sent by the sending end, or the receiving end prompts the sending end to resend the data line.
Optionally, when the sending end sends the data line to be sent, the first check module calculates a first check code based on the data line to be sent by using the preset check method, and sends the first check code to a receiving end in the line blanking time of the data line to be sent.
Optionally, the receiving end is configured to calculate a second check code based on the received data line by using a preset check method while receiving the data line; or after the receiving end receives the data line, the second check module calculates a second check code based on the received data line by using a preset check method within the line blanking time of the data line.
And the second check module is further configured to: in the line blanking time of the data line, comparing whether a first check code sent by a sending end is consistent with a second check code calculated by the second check module based on the received data line; and if so, determining that the received data line is consistent with the data line sent by the sending end, otherwise, determining that the received data line is inconsistent with the data line sent by the sending end.
Optionally, the receiving end performs an error correction operation on the received data line based on the first check code within a line blanking time of the received data line.
Optionally, the receiving end is further configured to determine, based on the first check code, a bit number of a transmission error in the received data line, and perform a flipping operation on data on the bit number to correct the error.
Optionally, the receiving end is further configured to generate a retransmission instruction when it is verified that the received data line is inconsistent with the data line sent by the sending end, and send the retransmission instruction to the sending end, so that the sending end sends the data line to the receiving end again based on the retransmission instruction.
Optionally, the data line sent by the generating terminal is any data line in the data to be sent.
Optionally, the preset check method includes any one of an ECC check method, a cyclic redundancy check method, a parity check method, and a hamming check method.
Optionally, the format of the data to be sent includes multimedia data, and the multimedia data includes image data or audio data.
Optionally, the sending end and the receiving end are connected through a serial interface, or the sending end and the receiving end are connected through a parallel interface.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. For the system disclosed by the embodiment, the description is relatively simple because the system corresponds to the method disclosed by the embodiment, and the relevant points can be referred to the method part for description.
The above description is only for the purpose of describing the preferred embodiments of the present invention, and is not intended to limit the scope of the present invention, and any variations and modifications made by those skilled in the art based on the above disclosure are within the scope of the appended claims.

Claims (8)

1. A method of data transmission, the method comprising:
a sending end determines data to be sent, wherein the data to be sent comprises at least one row of data lines;
the method comprises the steps that a sending end sends a line of data lines of data to be sent, the sending end further calculates a first check code based on the data lines to be sent by using a preset check method, and sends the first check code to a receiving end within the line blanking time of the data lines to be sent;
the receiving end receives a data line and the first check code, checks the received data line based on the first check code within the line blanking time of the received data line to verify whether the received data line is consistent with the data line sent by the sending end, and receives the next data line sent by the sending end when the received data line is consistent with the data line sent by the sending end; when the data lines are inconsistent, the receiving end corrects errors of the received data lines based on the first check code, receives the next data line sent by the sending end, or prompts the sending end to resend the data line;
the method comprises the steps that when the sending end sends the data line to be sent, a first check code is calculated based on the data line to be sent by using the preset check method, and the first check code is sent to a receiving end in the line blanking time of the data line to be sent;
the receiving end carries out error correction operation on the received data line based on the first check code within the line blanking time of the received data line; and the operations of generating the retransmission instruction and sending the retransmission instruction by the receiving end are both executed in the line blanking time of the received data line.
2. The data transmission method of claim 1, wherein the method further comprises:
the receiving end calculates a second check code based on the received data line by using a preset check method while receiving the data line; or after the receiving end receives the data line, calculating a second check code based on the received data line by using a preset check method in the line blanking time of the data line;
and the method for the receiving end to check the received data line based on the first check code comprises the following steps:
in the line blanking time of the data line, the receiving end compares whether a first check code sent by a sending end is consistent with a second check code calculated by the receiving end based on the received data line; and if so, determining that the received data line is consistent with the data line sent by the sending end, otherwise, determining that the received data line is inconsistent with the data line sent by the sending end.
3. The data transmission method of claim 1, wherein the method for the receiving end to correct the error of the received data line based on the first check code comprises:
and the receiving end determines the bit number of transmission errors in the received data line based on the first check code, and performs the turnover operation on the data on the bit number to correct errors.
4. The data transmission method of claim 1,
and when the receiving end verifies that the received data line is inconsistent with the data line sent by the sending end, generating a retransmission instruction, and sending the retransmission instruction to the sending end, so that the sending end sends the data line to the receiving end again based on the retransmission instruction.
5. The data transmission method according to claim 1, wherein the data line sent by the sending end is any data line in the data to be sent.
6. The data transmission method according to claim 1, wherein the preset check method includes any one of an ECC check method, a cyclic redundancy check method, a parity check method, and a hamming check method.
7. The data transmission method according to claim 1, wherein the format of the data to be transmitted includes multimedia data, the multimedia data including image data or audio data.
8. A data transmission apparatus, characterized in that the apparatus comprises: the system comprises a sending end and a receiving end, wherein the sending end comprises a first check module, and the receiving end comprises a second check module;
the sending end is used for determining data to be sent, wherein the data to be sent comprises at least one row of data lines and one row of data lines for sending the data to be sent; the first checking module is used for calculating a first checking code based on a data line to be sent by using a preset checking method and sending the first checking code to a receiving end within the line blanking time of the data line to be sent;
the receiving end is configured to receive the data line and the first check code, and within a line blanking time of the received data line, the second check module checks the received data line based on the first check code to verify whether the received data line is consistent with the data line sent by the sending end, and when the received data line is consistent with the data line sent by the sending end, the receiving end receives a next data line sent by the sending end, and when the received data line is inconsistent with the data line sent by the sending end, the receiving end corrects the error of the received data line based on the first check code and receives the next data line sent by the sending end, or prompts the sending end to resend the data line;
the first check module calculates a first check code based on the data line to be transmitted by using the preset check method while the transmitting end transmits the data line to be transmitted, and transmits the first check code to a receiving end in the line blanking time of the data line to be transmitted;
the receiving end carries out error correction operation on the received data line based on the first check code within the line blanking time of the received data line; and the operations of generating the retransmission instruction and sending the retransmission instruction by the receiving end are both executed in the line blanking time of the received data line.
CN201911193303.9A 2019-11-28 2019-11-28 Data transmission method and device Active CN110995392B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911193303.9A CN110995392B (en) 2019-11-28 2019-11-28 Data transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911193303.9A CN110995392B (en) 2019-11-28 2019-11-28 Data transmission method and device

Publications (2)

Publication Number Publication Date
CN110995392A CN110995392A (en) 2020-04-10
CN110995392B true CN110995392B (en) 2022-08-02

Family

ID=70087934

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911193303.9A Active CN110995392B (en) 2019-11-28 2019-11-28 Data transmission method and device

Country Status (1)

Country Link
CN (1) CN110995392B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111488575B (en) * 2020-04-15 2023-09-22 清华大学 System and method for actively defending hardware Trojan on storage path
CN112031590A (en) * 2020-08-13 2020-12-04 宁波欧尼克科技有限公司 Automatic door control system and method based on Internet of things
CN114826669A (en) * 2022-03-23 2022-07-29 惠州华阳通用电子有限公司 Communication data sending and receiving method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108512809A (en) * 2017-02-24 2018-09-07 北京优朋普乐科技有限公司 A kind of transmission method and equipment of media file
CN108574814A (en) * 2017-03-08 2018-09-25 杭州海康威视数字技术股份有限公司 Data processing method and device
CN110062294A (en) * 2019-04-24 2019-07-26 晶晨半导体(上海)股份有限公司 Method for transmitting signals and system based on HDCP key

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8793723B2 (en) * 2009-06-18 2014-07-29 Silicon Image, Inc. Detection of encryption utilizing error detection for received data
CN102110028A (en) * 2009-12-25 2011-06-29 康佳集团股份有限公司 NAND flash memory as well as data checking method and device thereof
CN102339647B (en) * 2010-07-23 2014-05-14 北京兆易创新科技股份有限公司 Detection method and apparatus for error checking and correcting (ECC) check module
JP2012231350A (en) * 2011-04-27 2012-11-22 Hitachi Consumer Electronics Co Ltd Image reception device and image reception method
CN103533045B (en) * 2013-10-12 2017-12-29 丁贤根 A kind of method fault-tolerant for PCIE data link layer high-performance
WO2016145558A1 (en) * 2015-03-13 2016-09-22 Lattice Semiconductor Corporation Maintaining synchronization of encryption process across devices by sending frame numbers
CN106600555B (en) * 2016-12-16 2019-04-16 中国航空工业集团公司洛阳电光设备研究所 A kind of primary particle inversion resistant DVI image distortion correction device
CN107947902A (en) * 2017-12-04 2018-04-20 郑州云海信息技术有限公司 The data error processing system and method for a kind of high-speed interface chip
CN108108264A (en) * 2017-12-25 2018-06-01 郑州朗睿科技有限公司 A kind of verification error correction method of serial communication

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108512809A (en) * 2017-02-24 2018-09-07 北京优朋普乐科技有限公司 A kind of transmission method and equipment of media file
CN108574814A (en) * 2017-03-08 2018-09-25 杭州海康威视数字技术股份有限公司 Data processing method and device
CN110062294A (en) * 2019-04-24 2019-07-26 晶晨半导体(上海)股份有限公司 Method for transmitting signals and system based on HDCP key

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
高云峰 ; 王宝珠."基于FPGA的智能服务机器人图像预处理模块设计".《机械设计与制造》.2011, *

Also Published As

Publication number Publication date
CN110995392A (en) 2020-04-10

Similar Documents

Publication Publication Date Title
CN110995392B (en) Data transmission method and device
KR100842583B1 (en) Method and apparatus for receiving data in a communication system
US6581178B1 (en) Error correction coding/decoding method and apparatus
EP1160987A2 (en) Method and apparatus for verifying error correcting codes
US11646094B2 (en) Memory system with error detection
CN103533045A (en) Method for high-performance fault tolerance of PCIE (Peripheral Component Interface Express) data link layer
US20040107398A1 (en) Error detection in received data transmissions
CN110806948B (en) Data verification method and device
CN101621367A (en) HARQ decoding method based on packet check information
CN103763067A (en) Method and device for error correction and calibration of communication data packets
US8595598B2 (en) High-efficiency dynamic transmission that has a high speed and reliability
CN102427398B (en) Error detection and correction method, system and device based on two-way parity check
CN101938280B (en) Coding and decoding method and codec of error correction code
CN108988990A (en) A method of processing link layer data mistake
CN107852275B (en) Data transmission device, data transmission method, reception device, and reception method
CN114513285B (en) Method, device, equipment and readable storage medium for detecting and correcting transmission data
CN111294161B (en) HARQ feedback method and device, storage medium and terminal
CN112769436A (en) Encoder, decoder, encoding method, and decoding method
TWI477104B (en) Apparatus and method for correcting error
WO2012092902A2 (en) Decoding method and decoding device
CN111459707B (en) Error detection and correction method and device for serial port communication
CN114337915A (en) Serial communication-based private protocol fault-tolerant processing method and device and storage medium
US8762817B1 (en) Method and apparatus for determining the start of a data field in a data frame
WO2023165034A1 (en) Data error correction circuit and data transmission method
CN108322293B (en) Log-likelihood ratio determining method for HARQ, HARQ feedback method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant