1. Field of the Invention
The present invention relates to a data transmission method and a data transmission system and more particularly, to a serial data transmission method and a serial data transmission system for the serial data transmission method.
2. Description of Related Art
In regular serial data transmission systems, either digital type or analog type, the receiving connector needs to repeatedly scan the transmission line to see any data being delivered through the transmission line. Therefore, the receiving connector spends a lot of time and system resources to detect what is received to be data or noises. More particularly under a high noise environment, for example, inside a car where magnetic waves are mixing, the receiving connector wastes much time and system resources in detection. When noises are strong, the change of transmission error will be high, thereby affecting data transmission quality and stability.
Therefore, it is desirable to provide a serial data transmission method and system that eliminates the aforesaid problem.
The present invention has been accomplished under the circumstances in view. The invention provides a serial data transmission system, which comprises a transmitting apparatus, a receiving apparatus, a first transmission line, and a second transmission line. The transmitting apparatus comprises a transmitting connector adapted to transmit serial data to the receiving apparatus through the first transmission line and to simultaneously transmit a control signal to the receiving apparatus through the second transmission line. The receiving apparatus comprises a receiving connector adapted to receive the at least one serial data and the control signal from the transmitting connector of the transmitting apparatus. The first transmission line electrically connected between the transmitting connector of the transmitting apparatus and the receiving connector of the receiving apparatus for transmitting the at least one serial data from the transmitting connector of the transmitting apparatus to the receiving connector of the receiving apparatus. The second transmission line electrically connected between the transmitting connector of the transmitting apparatus and the receiving connector of the receiving apparatus for transmitting the control signal from the transmitting connector of the transmitting apparatus to the receiving connector of the receiving apparatus.
Wherein the receiving connector of the receiving apparatus detects a voltage change of the control signal on the second transmission line in conformity with a predefined first specific condition and starts to receive the at least one serial data from the transmitting connector of the transmitting apparatus through the first transmission line. The receiving connector of the receiving apparatus stops the action of receiving the at least one serial data from the first transmission line when another voltage change of the control signal on the second transmission line has been detected in conformity with a predefined second specific condition. Therefore, the receiving connector accurately controls the time point to start receiving serial data and the time point to end the receiving action, thereby preventing receiving of noises during the period between the start time point and the end time point, improving signal-to-noise ration and saving system resources.
The aforesaid first specific condition can be that the voltage of the control signal has been changed from a first voltage to a second voltage and continuously maintained at the second voltage for a first predefined period, or the voltage of the control signal has been surpassed above a predefined voltage value for more than a second predefined period, or the voltage change of the control signal satisfies a series code such as 01101, 10010, or ASCII code, or satisfies a specific waveform such as the sine wave of a specific frequency.
The invention further provides a serial data transmission method for enabling a receiving connector of a receiving apparatus to receive at least one serial data from a transmitting connector of the transmitting apparatus through the first transmission line, and also enabling the transmitting connector of the transmitting apparatus to transmit a control signal to the receiving connector of the receiving apparatus through the second transmission line. The serial data transmission method comprises the steps of: a step of enabling the receiving connector to scan the second transmission line to detect whether a voltage change of the control signal on the second transmission line is in conformity with a predefined first specific condition, and a step of enabling the receiving connector to receive the at least one serial data from the first transmission line when the voltage change of the control signal on the second transmission line has been detected in conformity with the predefined first specific condition.
The serial data transmission method further comprises a step of driving the receiving connector to stop the action of receiving the at least one serial data from the first transmission line when another voltage change of the control signal on the second transmission line has been detected in conformity with a predefined second specific condition.
a is a schematic drawing showing a serial data transmission system according to a first embodiment of the present invention.
b is a schematic drawing showing a serial data transmission system according to a second embodiment of the present invention.
a is a schematic drawing showing a serial data transmission system according to a first embodiment of the present invention. The system takes one way serial data transmission for example, particularly for a serious data transmission method in high signal-to-noise ration circumstances, such as in car or RS-232 of serious data transmission method in the laboratory. According to
b is a schematic drawing showing a serial data transmission system according to a second embodiment of the present invention. This embodiment is a bi-directional transmission RS-232 of serious data transmission system. The first transmission line 10′ and the second transmission line 13′ are respectively transmitted the serial data and the control signal from the series port of the first electronic device 102 to the series port of the second electronic device 103. The third transmission line 11′ and the fourth transmission line 14′ are respectively transmitted the serial data and the control signal from the series port of the second electronic device 103 to the series port of the first electronic device 104.
All of above transmission lines can modify in the form of ports to connect two different electronic devices, such as a main sever for car, a guard device, a display device, a GPS system, etc., for providing the correct transmission between two electronic devices.
To simplify explanation of the spirit and scope of the present invention, the following embodiments are described based on the one-way data transmission in
Please refer to
According to this embodiment, the receiving connector B keeps detecting the control signal sent from the transmitting connector A through the second transmission line 13. When the change of the control signal is in conformity with one specific condition, namely, the first specific condition (Step S301), the receiving connector B starts to receive the serial data 20 being delivered through the first transmission line 10 in a proper order to finish an accurate data transmission (Step S302). Further, when the change of the control signal is in conformity with the other specific condition, namely, the second specific condition, the receiving connector B immediately stops receiving the serial data sent through the first transmission line 10 (Step S303).
Please refer to voltage change of the control signal on the second transmission line 13 as shown on the lower part in
As shown on the lower part in
Therefore, the receiving connector B neglects all noises 21 on the first transmission line 10 before start time point t1, and starts to receive serial data 20 transmitted after start time point t1. Therefore, this method effectively improves signal-to-noise ratio during transmission. Further, the receiving connector B need not receive all data from the first transmission line 10 uninterruptedly, or to waste system resources in verifying the effectiveness of all data transmitted through the first transmission line 10. Therefore, the invention can effectively save system resources at the receiving connector B.
When reached time point t2-Δt as shown on the lower part in
There are noises 23 on the second transmission line 13. However, because these noises 23 are not maintained at high voltage for more than 30 ms, the receiving connector B doesn't regard the presence of these noises to be in conformity with the second specific condition. Therefore, the receiving connector B doesn't stop the action of receiving data from the first transmission line 10.
The aforesaid first specific condition and second specific condition are pre-set in the system. The setting of these conditions is not limited to voltage switching or maintaining of the time period of 30 ms. These first and second specific conditions can be properly designed and arranged to fit different surrounding noises so as to improve the accuracy. Some other embodiments of the specific conditions are explained hereinafter.
According to this embodiment, there are many noises 43 and 431 on the second transmission line 13. However, these noises 43 and 431 will not affect the judgment of the specific condition “01101” or “10010” under the effect of good receiver means such as Matched Filter, Correlator, etc. Therefore, the time point t3 to start receiving data and the time point t4 to end the receiving action will be accurate, and the receiving connector B can accurately determine the data transmission start and end time points.
Similar to the aforesaid first embodiment, the receiving connector B will not receive the noises 41 on the first transmission line 10 before start time point t3 and after end time point t4. Therefore, this embodiment can also improve signal-to-noise ratio and save system resources.
According to this embodiment, the specific condition starts receiving data to set that the voltage has been switched from the fourth voltage (6V) to the second voltage (2V) and held at the second voltage (2V) for more than Δt=30 ms, and the second specific condition (i.e., the condition to end the receiving action) is set to be that the voltage has been switched from the second voltage (2V) to the fourth voltage (6V) and held at the fourth voltage (6V) for more than Δt=30 ms. Because there are four different voltages in this embodiment, the chance of switching the voltage from the fourth voltage to the second voltage due to interference of noises is relatively lower. In consequence, the chance of error in judgment is relatively reduced. As shown in
Similarly, there are many noises 51 on the first transmission line 10, however because these noises 51 are not within the time period between the start time point t5 and the end time point t6, they will not be received by the receiving connector B. Therefore, this embodiment also improves the signal-to-noise ratio and saves system resources.
Although the present invention has been explained in relation to its preferred embodiments, it is to be understood that many other possible modifications and variations can be made without departing from the spirit and scope of the invention as hereinafter claimed.
| Number | Date | Country | Kind |
|---|---|---|---|
| 094124668 | Jul 2005 | TW | national |