Disclosure of Invention
In view of the above problems, the present invention provides a distance-enhanced ethernet transmission method, which is applied to a bidirectional transmission process performed between a first physical layer of a first communication terminal and a second physical layer of a second communication terminal through a single channel;
the single channel connects the first physical layer and the second physical layer by adopting a transmission medium;
the Ethernet transmission method comprises the following steps:
judging whether the transmission distance of the transmission medium is smaller than a preset threshold value or not in real time;
if so, setting the transmission rate between the first physical layer and the second physical layer as a preset transmission rate, wherein the range is 90-110 Mbit/s;
and if not, setting the transmission rate between the first medium special interface and the second medium special interface to 1/10 of the preset transmission rate, wherein the range is 9-11 Mbit/s.
In the ethernet transmission method, the first physical layer includes a first medium-specific interface and a first medium-dependent interface connected to each other;
the second physical layer comprises a second medium-specific interface and a second medium-related interface which are connected;
the single channel connects the first media dependent interface and the second media dependent interface using the transmission medium.
In the ethernet transmission method, the first medium-dedicated interface and the second medium-dedicated interface both transmit under the control of a clock signal;
changing a transmission rate between the first medium-specific interface and the second medium-specific interface by adjusting a frequency of the clock signal.
In the ethernet transmission method, the data transmitted in each clock cycle of the first medium dedicated interface and the second medium dedicated interface is 4 bits;
when the transmission distance is smaller than the preset threshold value, setting the frequency of the clock signal of the first medium special interface and the second medium special interface to be 22.5-27.5 MHz;
and when the transmission distance is greater than the preset threshold value, setting the frequency of the clock signal of the first medium special interface and the second medium special interface to be 2.25-2.75 MHz.
In the above ethernet transmission method, when the transmission distance of the transmission medium is smaller than the preset threshold, the symbol rates of the first medium-related interface and the second medium-related interface are further set to a preset symbol rate, where the range is 61.7 to 71.7 MBaud/s;
and when the transmission distance of the transmission medium is greater than the preset threshold value, setting the symbol rates of the first medium-related interface and the second medium-related interface to be 1/10 of the preset symbol rate, wherein the range is 6.17-7.17 MBaud/s.
In the above ethernet transmission method, when the first medium-dependent interface and/or the second medium-dependent interface is/are used as a receiving party, echo cancellation is performed on the received signal.
In the ethernet transmission method, the preset threshold is 250-350 m.
In the ethernet transmission method, the first medium-dependent interface has a first transmission voltage; the second media dependent interface has a second transmit voltage;
when the transmission distance is smaller than the preset threshold value, setting the first sending voltage of the first medium-related interface as a first rated voltage, and setting the sending voltage of the second medium-related interface as a second rated voltage;
when the transmission distance is greater than the preset threshold value, the transmission voltage of the first medium-related interface is set to a third rated voltage greater than the first rated voltage, and the transmission voltage of the second medium-related interface is set to a fourth rated voltage greater than the second rated voltage.
In the ethernet transmission method, the third rated voltage is 110% to 140% of the first rated voltage; and
the fourth rated voltage is 110% -140% of the second rated voltage.
Has the advantages that: according to the distance-enhanced Ethernet transmission method provided by the invention, the signal transmission between the first communication terminal and the second communication terminal is ensured to have both short-distance efficiency and long-distance stability, so that the problem of Ethernet transmission distance limitation is improved to a certain extent, and the cost is lower.
Detailed Description
The invention is further illustrated with reference to the following figures and examples.
In a preferred embodiment, as shown in fig. 3, a distance-enhanced ethernet transmission method is proposed, wherein the method can be applied to a bidirectional transmission process between a first physical layer of a first communication terminal and a second physical layer of a second communication terminal through a single channel;
the single channel adopts a transmission medium to connect the first physical layer and the second physical layer;
the Ethernet transmission method can comprise the following steps:
judging whether the transmission distance of the transmission medium is smaller than a preset threshold value in real time;
if yes, setting the transmission rate between the first physical layer and the second physical layer to a preset transmission rate, wherein the preset transmission rate ranges from 90 to 110Mbit/s (megabits/second), and for example, the preset transmission rate can be 92.5Mbit/s, 97.5Mbit/s, 100Mbit/s, 102.5Mbit/s and the like;
if not, the transmission rate between the first physical layer and the second physical layer is set to 1/10 of the preset transmission rate, and the range is 9-11 Mbit/s, for example, 9.25Mbit/s, or 9.75Mbit/s, or 10Mbit/s, or 10.25 Mbit/s.
In the above technical solution, because of the bidirectional transmission, both the first communication terminal and the second communication terminal can be used as a transmitting end and a receiving end of a signal, that is, it can be considered that both the first communication terminal and the second communication terminal are integrated with a transmitting unit and a receiving unit, and the transmitting unit and the receiving unit can also be combined to form a receiving-transmitting mixed module; the transmission distance can be acquired before the transmission distance is judged in real time, and the specific acquisition mode can be that parameters which are prestored and represent the transmission distance and the like are read from a storage module; the transmission medium employed for a single channel may be formed by a physical medium such as twisted pair or coaxial cable.
In a preferred embodiment, the first phy includes a first media specific interface and a first media dependent interface coupled;
the second physical layer comprises a second medium special interface and a second medium related interface which are connected;
the single channel connects the first media dependent interface and the second media dependent interface using a transmission medium.
In the above embodiment, preferably, the first medium-dedicated interface and the second medium-dedicated interface can both transmit under the control of a clock signal;
the transmission rate between the first medium-specific interface and the second medium-specific interface is changed by adjusting the frequency of the clock signal.
In the above embodiment, preferably, the data transmitted in each clock cycle of the first medium-specific interface and the second medium-specific interface may be 4 bits;
when the transmission distance is smaller than a preset threshold value, the frequency of the clock signal of each of the first medium dedicated interface and the second medium dedicated interface can be 22.5-27.5 MHz (megahertz), for example, 24MHz, 25MHz, 26MHz, and the like;
when the transmission distance is greater than the preset threshold, the frequencies of the clock signals of the first medium dedicated interface and the second medium dedicated interface as the transmitters may be both 2.25 to 2.75MHz, for example, 2.4MHz, 2.5MHz, or 2.6 MHz.
In the above technical solution, as shown in fig. 4, each clock cycle of the clock signal TX _ CLK of the first medium-specific interface and/or the second medium-specific interface at a short distance corresponds to one data unit in the 4-bit data TX _ D, and the high level of the enable signal TX _ EN defines the data TX _ D to be transmitted; when the enable signal TX _ EN is in a low level, the data TX _ D is invalid; after the period of each pulse is adjusted from 40ns (nanoseconds) to 400ns in fig. 5, the transmitted data volume is reduced to 1/10, which can be suitable for long-distance transmission; fig. 6 reflects the case where the period of the signal at the first medium dependent interface and/or the second medium dependent interface corresponds to the waveform of the signal after adjusting from 15ns to 150ns, where the signal transitions slowly and is attenuated by the channel much less, so that it can be transmitted over a greater distance.
In the above embodiment, preferably, when the transmission distance of the transmission medium is smaller than the preset threshold, the symbol rates of the first medium-dependent interface and the second medium-dependent interface are further set to be a preset symbol rate, which is in a range of 61.7 to 71.7MBaud/s (mega baud/second), for example, 65MBaud/s, or 66.7MBaud/s, or 67MBaud/s, etc.;
when the transmission distance of the transmission medium is greater than the preset threshold, the symbol rates of the first medium-dependent interface and the second medium-dependent interface are further set to 1/10 of the preset symbol rate, where the range is 6.17 to 7.17MBaud/s, and for example, the symbol rates may be 6.5MBaud/s, 6.67MBaud/s, or 6.7 MBaud/s.
In the above technical solution, there may be a preset association between the symbol rates of the first medium-related interface and the second medium-related interface and the transmission voltages thereof.
In the above embodiment, preferably, the first medium dependent interface and/or the second medium dependent interface may perform echo cancellation on the received signal when acting as a receiving side.
In the above embodiment, preferably, the first medium dependent interface has a first transmission voltage; the second media dependent interface has a second transmit voltage;
when the transmission distance is smaller than the preset threshold value, setting a first sending voltage of the first medium-related interface as a first rated voltage, and setting a sending voltage of the second medium-related interface as a second rated voltage;
when the transmission distance is greater than the preset threshold value, the transmission voltage of the first medium-related interface is set to be a third rated voltage greater than the first rated voltage, and the transmission voltage of the second medium-related interface is set to be a fourth rated voltage greater than the second rated voltage.
In the above embodiment, preferably, the third rated voltage is 110% to 140% of the first rated voltage; and
the fourth rated voltage is 110% to 140% of the second rated voltage, for example, the ratio may be 122%, or 124%, or 125%, or 126%, or 128%, etc.
In the above technical solution, for example, the first rated voltage may be 1.0V (volt); the second nominal voltage may be 1.0V; the third nominal voltage may be 1.2V; the fourth nominal voltage may be 1.2V.
In a preferred embodiment, the predetermined threshold is 250-350 m (meters), for example, 260m, 270m, 280m, 290m, 300m, 310m, 320m, etc.
In summary, the distance-enhanced ethernet transmission method provided by the present invention is applied to a bidirectional transmission process performed between a first physical layer of a first communication terminal and a second physical layer of a second communication terminal through a single channel; the single channel adopts a transmission medium to connect the first physical layer and the second physical layer; the Ethernet transmission method comprises the following steps: judging whether the transmission distance of the transmission medium is smaller than a preset threshold value in real time; if so, setting the transmission rate between the first physical layer and the second physical layer as a preset transmission rate, wherein the range is 90-110 Mbit/s; if not, setting the transmission rate between the first physical layer and the second physical layer to be 1/10 of the preset transmission rate, wherein the range is 9-11 Mbit/s; by the technical scheme, the efficiency and the stability under a short distance are both considered in the signal transmission between the first medium special interface and the second medium special interface, so that the problem of limitation of the Ethernet transmission distance is improved to a certain extent, and the cost is lower.
While the specification concludes with claims defining exemplary embodiments of particular structures for practicing the invention, it is believed that other modifications will be made in the spirit of the invention. While the foregoing invention has been described in connection with what is presently considered to be the most practical and preferred embodiment, it is to be understood that the invention is not to be limited to the disclosed embodiment.
Various alterations and modifications will no doubt become apparent to those skilled in the art after having read the above description. Therefore, the appended claims should be construed to cover all such variations and modifications as fall within the true spirit and scope of the invention. Any and all equivalent ranges and contents within the scope of the claims should be considered to be within the intent and scope of the present invention.