1. Field of the Invention
The present invention relates to a data transmission method used in data transmission systems.
2. Description of Related Art
In data transmission systems there is always a certain probability of error due to external interference. Conventionally, eight bits (one byte) of data is transmitted via a transmission line at a time, and an error correcting code (ECC) is used to detect errors in the transmitted byte, if there is an error, the byte should be transmitted as many times as necessary until the byte is confirmed to be correct, this method of transmission is unduly slow.
What is needed, therefore, is a data transmission method which can solve the above mentioned problems.
An exemplary data transmission method is used in a data transmission system which has a data source, a data receiver, first, second, and third transmission lines connected between the data source and the data receiver. The data transmission method includes: the data source generating a checking code of a first byte and a second byte; transmitting the first byte, the second byte and the checking code from the data source to the data receiver via the first, second, and third transmission lines respectively; and the data receiver judging if the first byte, the second byte and the checking code are right, if right, transmission of the first byte and the second byte is complete, if one of the first byte and the second byte is wrong, and the checking code is right, the data receiver corrects the wrong byte via the checking code.
Other advantages and novel features of the present invention will become more apparent from the following detailed description of preferred and exemplary embodiment when taken in conjunction with the accompanying drawings, in which:
Referring to
Referring to
To transmit the rest of the set of data, such as data “DFGZ”, the datum “D”, the datum “F” and the checking code of the datum “D” and the datum “F” are transmitted from the data source 10 to the data receiver 20 via the transmission lines 2, 3 and 1 respectively, then the datum “G”, the datum “Z” and the checking code of the datum “G” and the datum “Z” are transmitted from the data source 10 to the data receiver 20 via the transmission lines 3, 1 and 2, and so the cycle continues, thus improving data transmission speed of a data transmission system by using three transmission lines in rotating order. If all of the checking codes were transmitted via only the transmission line 3 for example, if the transmission line 3 becomes inoperable, then the checking codes must be transmitted via another transmission line that is also used for the datum. However, in the condition that all of the checking codes are transmitted via different transmission lines 1, 2 and 3 circularly, when two bytes and the checking code of the two bytes are transmitted via the transmission line 3, 1 and 2 respectively, if the transmission line 3 becomes inoperable, the data receiver 20 can calculate the byte it failed to receive via the transmission line 3 automatically, by performing an XOR on the binary forms of the checking code and the byte which is transmitted successfully via the transmission line 2, without retransmitting the two bytes again.
The data transmission method realizes high speed transmission by transmitting two bytes from the data source 10 to the data receiver 20 at a time and correcting incorrect bytes automatically instead of transmitting again when one of the two bytes is wrong.
The foregoing description of the exemplary embodiments of the invention has been presented only for the purposes of illustration and description and is not intended to be exhaustive or to limit the invention to the precise forms disclosed. Many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to explain the principles of the invention and their practical application so as to enable others skilled in the art to utilize the invention and various embodiments and with various modifications as are suited to the particular use contemplated. Alternative embodiments will become apparent to those skilled in the art to which the present invention pertains without departing from its spirit and scope. Accordingly, the scope of the present invention is defined by the appended claims rather than the foregoing description and the exemplary embodiments described therein.
Number | Date | Country | Kind |
---|---|---|---|
200710202922.0 | Dec 2007 | CN | national |