One-way transmission mode switching method and system of gigabit Ethernet, medium and equipment
By monitoring the signal-to-noise ratio of signal eye diagram quality in Gigabit Ethernet and switching to one-way transmission mode, the problem of degradation of data transmission quality under long-distance or inferior cable conditions is solved, and higher reliability and adaptability are achieved.
Patent Information
- Application Number
- CN202411752013.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-02
- Publication Date
- 2025-03-04
- Estimated Expiration
- 2044-12-02
AI Technical Summary
Gigabit Ethernet has degraded data transmission quality due to the limitations of signal attenuation, crosstalk and full duplex communication under long distance or inferior cable conditions.
By monitoring the signal-to-noise ratio of the signal eye diagram quality between the master device and the slave device, the one-way transmission mode is triggered, the master device is controlled to terminate the transmission of the training signal, enter the one-way transmission mode establishment stage, and the one-way transmission mode is established when the slave device successfully receives the modulated signal.
It significantly improves the reliability of data transmission, reduces the error rate caused by echo and near-end crosstalk, enhances network adaptability, reduces maintenance costs, and improves user experience.
Smart Images

Figure CN119561914A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of communication control, and in particular relates to a method, system, medium and equipment for switching a unidirectional transmission mode of a Gigabit Ethernet. Background Art
[0002] Gigabit Ethernet, as a high-speed LAN technology, has greatly promoted the development of data transmission rate since its introduction, making it possible to achieve efficient and stable data exchange in a LAN environment. Gigabit Ethernet technology meets the growing demand for data-intensive applications such as high-definition video transmission, large database access, and cloud computing services by increasing network bandwidth to several Gbps.
[0003] However, although Gigabit Ethernet technology provides extremely high transmission rates in theory, in practical applications, especially when the network wiring environment is complex or the conditions are poor, the data transmission quality is often seriously affected. The problems existing in the existing technology include the following aspects:
[0004] (1) Long-distance transmission limitations: When Gigabit Ethernet signals are transmitted on copper cables, as the distance increases, signal attenuation and crosstalk (such as echo and next, i.e., echo and near-end crosstalk) problems become increasingly prominent. Long-distance transmission may cause signal distortion and affect the correct reception and interpretation of data, especially in network topologies that are not fully optimized.
[0005] (2) Impact of cable quality: Differences in the quality of network cables can also significantly affect the reliability of Gigabit Ethernet transmission. Low-quality network cables or aging or damaged cables will increase signal loss and interference during transmission due to reduced insulation performance and impedance mismatch, thereby exacerbating problems such as echo and next (near-end crosstalk).
[0006] (3) Limitations of full-duplex communication: In traditional Gigabit Ethernet communications, full-duplex mode is used, that is, both communicating parties can send and receive data at the same time. Although this mode improves communication efficiency, over long distances or under poor-quality cable conditions, the data sent from the device end may generate strong echoes and near-end crosstalk, interfering with the original signal sent by the master device end, resulting in a decrease in communication quality or even communication failure. Summary of the invention
[0007] In view of the above-mentioned shortcomings of the prior art, an object of the present invention is to provide a method, system, medium and device for switching the unidirectional transmission mode of Gigabit Ethernet to solve the above-mentioned problems.
[0008] In a first aspect, the present invention provides a method for switching a unidirectional transmission mode of a Gigabit Ethernet, the method comprising the following steps:
[0009] Monitoring the signal-to-noise ratio of the eye diagram quality of the transmission signal between the master device and the slave device, and triggering the unidirectional transmission mode based on the signal-to-noise ratio;
[0010] Control the master device to stop transmitting the training signal, and make the master device and the slave device enter the unidirectional transmission mode establishment phase by changing the settings of the preset register;
[0011] When entering the unidirectional transmission mode establishment phase, the master device is controlled to send a training signal of a preset duration, and the establishment of the unidirectional transmission mode is completed when the slave device successfully receives the modulated signal;
[0012] Respond to a preset exit mechanism to exit the currently established unidirectional transmission mode, wherein the exit mechanism includes a first mechanism, a second mechanism and a third mechanism.
[0013] In a possible implementation of the present application, monitoring the signal-to-noise ratio of the eye diagram quality of the signal transmitted between the master device and the slave device to trigger the unidirectional transmission mode specifically includes:
[0014] In normal transmission mode, the master device and the slave device communicate based on the auto-negotiation protocol, wherein the master device sends a PAM3 training signal to the slave device, and the slave device sends an IDLE signal to the master device after receiving the training signal;
[0015] During the signal transmission process between the master device and the slave device, the eye diagram quality of both parties is detected, where:
[0016] If the signal-to-noise ratio of the eye diagram quality is greater than the preset value, a PAM5 training signal is sent for communication;
[0017] If the signal-to-noise ratio of the eye diagram quality is less than or equal to a preset value, the unidirectional transmission mode is triggered.
[0018] In a possible implementation of the present application, the controlling the master device to stop transmitting the training signal and changing the setting of the preset register so that the master device and the slave device enter the unidirectional transmission mode establishment phase specifically includes:
[0019] When the signal-to-noise ratio of the eye diagram quality is less than or equal to the preset value, the master device is controlled to stop sending the PAM3 or PAM5 training signal and trigger the unidirectional transmission mode;
[0020] The setting of the preset register is changed to a preset value so that the master device and the slave device perform the establishment phase of the unidirectional transmission mode through the auto-negotiation protocol, which includes setting the remote fault bit of the register to 1.
[0021] In a possible implementation of the present application, when entering the unidirectional transmission mode establishment phase, controlling the master device to send a training signal of a preset duration, and completing the establishment of the unidirectional transmission mode when the slave device successfully receives the modulated signal, specifically includes:
[0022] The master device sends a training signal of a preset duration to the slave device, and after receiving the training signal, the slave device adjusts the sampling phase to perform digital image processing to receive the training signal, wherein the preset duration specifically includes 500 milliseconds;
[0023] After the preset time period ends, the master device sends a PAM5 modulation signal, and the slave device completes the establishment of the unidirectional transmission mode when it receives the corresponding modulation signal.
[0024] In a possible implementation of the present application, responding to a preset first mechanism to exit the currently established unidirectional transmission mode specifically includes: when it is monitored that the slave device does not receive any transmission signal, exiting the currently established unidirectional transmission mode.
[0025] In a possible implementation of the present application, responding to a preset second mechanism to exit the currently established unidirectional transmission mode specifically includes: when monitoring that the master device receives an exit instruction, exiting the currently established unidirectional transmission mode.
[0026] In a possible implementation of the present application, responding to a preset third mechanism to exit the currently established unidirectional transmission mode specifically includes:
[0027] Monitoring the noise specification of the slave device, wherein when the ratio of the noise mean value at the current monitoring moment to the noise mean value at the previous monitoring moment is greater than a preset ratio, exiting the currently established unidirectional transmission mode;
[0028] The echo specification of the master device is monitored, wherein when the change value of the echo energy at the current monitoring moment exceeds a preset change value, the currently established unidirectional transmission mode is exited.
[0029] In a second aspect, the present invention provides a unidirectional transmission mode switching system for Gigabit Ethernet, the system comprising:
[0030] A monitoring module, used to monitor the signal-to-noise ratio of the eye diagram quality of the transmission signal between the master device and the slave device, and trigger the unidirectional transmission mode based on the signal-to-noise ratio;
[0031] A setting module, used to control the master device to stop transmitting the training signal, and to make the master device and the slave device enter the unidirectional transmission mode establishment phase by changing the setting of the preset register;
[0032] An establishment module, used to control the master device to send a training signal of a preset duration when entering the unidirectional transmission mode establishment phase, and complete the establishment of the unidirectional transmission mode when the slave device successfully receives the modulated signal;
[0033] The exit module is used to respond to a preset exit mechanism to exit the currently established unidirectional transmission mode, wherein the exit mechanism includes a first mechanism, a second mechanism and a third mechanism.
[0034] In a third aspect, the present invention provides an electronic device, the electronic device comprising: a processor and a memory;
[0035] The memory is used to store computer programs;
[0036] The processor is used to execute the computer program stored in the memory, so that the electronic device executes the above-mentioned method for switching the unidirectional transmission mode of Gigabit Ethernet.
[0037] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by an electronic device, implements the above-mentioned method for switching the unidirectional transmission mode of Gigabit Ethernet.
[0038] As described above, the method, system, medium and device for switching the unidirectional transmission mode of Gigabit Ethernet according to the present invention have the following beneficial effects:
[0039] (1) Significantly improves data transmission reliability: By allowing only the Master device to send data and the Slave device to only serve as the receiving end, the present invention fundamentally eliminates the interference of echo and next (echo and near-end crosstalk) that may be generated by the Slave end sending data, thereby significantly improving the reliability of data transmission. In a test environment, compared with the traditional two-way communication mode, the present invention reduces the data transmission error rate by at least 50% under long distances (such as more than 100 meters) or poor-quality cable conditions.
[0040] (2) Enhanced network adaptability: The technical solution of the present invention can automatically or manually switch the communication mode according to the network conditions, so that the Gigabit Ethernet network can better adapt to different transmission environments and cable qualities. This flexibility ensures the stable operation of the network in various complex scenarios and reduces the risk of business interruption due to network failures.
[0041] (3) Reduced maintenance costs: Since the present invention reduces network failures caused by echo and next (echo and near-end crosstalk) interference, the workload and cost of network maintenance are reduced. At the same time, since no additional signal amplification or compensation equipment is required, the cost of network construction and upgrading is also reduced.
[0042] (4) Improved user experience: For applications that rely on Gigabit Ethernet for data transmission (such as high-definition video streaming, real-time data monitoring, etc.), the high reliability and stability provided by the present invention can significantly improve the user experience and reduce freezes, delays or interruptions caused by network problems.
[0043] (5) Promoted technological development: The invention not only provides a new solution for the application of Gigabit Ethernet in complex network environments, but also provides a useful reference and lesson for the development of higher-speed and longer-distance network communication technologies in the future. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 It is a schematic diagram showing an application of a one-way transmission mode switching method of Gigabit Ethernet according to an embodiment of the present invention;
[0045] Figure 2 It is a schematic diagram showing the steps of a method for switching a unidirectional transmission mode of Gigabit Ethernet according to an embodiment of the present invention;
[0046] Figure 3 It is a flow chart showing a method for switching a unidirectional transmission mode of Gigabit Ethernet according to an embodiment of the present invention;
[0047] Figure 4 It is a flow chart showing a method for switching a unidirectional transmission mode of Gigabit Ethernet according to an embodiment of the present invention;
[0048] Figure 5 It is a schematic diagram showing the steps of a method for switching a unidirectional transmission mode of Gigabit Ethernet according to an embodiment of the present invention;
[0049] Figure 6 It is a schematic structural diagram of a one-way transmission mode switching system of Gigabit Ethernet according to an embodiment of the present invention;
[0050] Figure 7 It is a schematic structural diagram of an electronic device of the present invention in one embodiment. DETAILED DESCRIPTION
[0051] The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.
[0052] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention, and thus the drawings only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.
[0053] The following embodiments of the present invention provide a method for switching the unidirectional transmission mode of Gigabit Ethernet, wherein the present invention proposes a technical solution for unidirectional data transmission to solve the signal interference problem caused by echo and next (near-end crosstalk) in Gigabit Ethernet over long distances or under poor-quality cable conditions, such as Figure 1 As shown, the structure consists of Master (host / master device) and Slave (slave / slave device), where the master device is the data transmitter and is responsible for sending data packets to the slave device, and the slave device is the data receiver and is only responsible for receiving data from the master device without sending any form of data.
[0054] In addition, the embodiments of the present invention do not impose any restrictions on the specific types of electronic devices. For example, the electronic device may be a station (STATION, ST) in a WLAN with a wireless charging function, a cellular phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a Personal Digital Assistant (PDA) device, a handheld device with a wireless charging function, a computing device or other processing device, a computer, a laptop computer, a handheld communication device, a handheld computing device, and / or other devices for communicating on a wireless system and a next generation communication system, such as a mobile terminal in a 5G network, a mobile terminal in a future evolved Public Land Mobile Network (PLMN) or a mobile terminal in a future evolved Non-terrestrial Network (NTN).
[0055] The technical solutions in the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings in the embodiments of the present invention.
[0056] Specifically, see Figure 2 In one embodiment of the invention, the method for switching the unidirectional transmission mode of Gigabit Ethernet of the present invention comprises the following steps:
[0057] Step S202, monitoring the signal-to-noise ratio of the eye diagram quality of the transmission signal between the master device and the slave device, and triggering a unidirectional transmission mode based on the signal-to-noise ratio;
[0058] Step S204, controlling the master device to stop transmitting the training signal, and changing the setting of the preset register so that the master device and the slave device enter the unidirectional transmission mode establishment phase;
[0059] Step S206, when entering the unidirectional transmission mode establishment phase, controlling the master device to send a training signal of a preset duration, and completing the establishment of the unidirectional transmission mode when the slave device successfully receives the modulated signal;
[0060] Step S208, responding to a preset exit mechanism to exit the currently established unidirectional transmission mode, wherein the exit mechanism includes a first mechanism, a second mechanism and a third mechanism.
[0061] It should be noted that, in this embodiment, based on the existing Gigabit Ethernet communication protocol, a unidirectional communication mode setting is added. When a master device or a slave device supporting the unidirectional mode detects that the eye diagram quality is abnormal, it switches to the unidirectional communication mode through the AN protocol, wherein AN (Auto-Negotiation): automatic negotiation, specifically a protocol defined in IEEE 802.3, is used to enable both devices to automatically configure to maximize their capabilities for communication. This method reduces the interference of echo and crosstalk, thereby ensuring data transmission in the downlink direction.
[0062] Specifically, Figure 3 As shown, during the communication process in the normal transmission mode, two gigabit chips are connected through the AN protocol; the Master sends a PAM3 Training signal to the Slave, where PAM (Pulse Amplitude Modulation): pulse amplitude modulation, specifically a modulation technology, in which the amplitude of the signal is used to represent information, PAM3 corresponds to three-level modulation, and the Slave adjusts the sampling phase and performs DSP according to the received Training signal to open the eye diagram and correctly receive the signal sent by the Master; the Slave sends an IDLE signal, and detects the eye diagram quality of both parties in this process. Normal quality indicates that the channel quality is good at this time, then both parties normally send PAM5 data signals, corresponding to five-level modulation. Therefore, in this embodiment, when switching the unidirectional transmission mode, it is necessary to monitor the signal-to-noise ratio of the eye diagram quality of the transmission signal between the master device and the slave device, so as to trigger the unidirectional transmission mode based on the signal-to-noise ratio.
[0063] Furthermore, the triggered unidirectional transmission mode includes the establishment of the unidirectional transmission mode and the exit from the unidirectional transmission mode, wherein the establishment of the unidirectional transmission mode includes controlling the master device to terminate the transmission of the training signal (Training signal), and by changing the setting of the preset register, the master device and the slave device enter the unidirectional transmission mode establishment phase, so that when entering the unidirectional transmission mode establishment phase, the master device is controlled to send a training signal (Training signal) of a preset duration, wherein the preset duration in this embodiment is "500" milliseconds, and the establishment of the unidirectional transmission mode is completed when the slave device successfully receives the modulated signal, and the normal PAM5 signal transmission starts at this time; correspondingly, the exit from the unidirectional transmission mode specifically responds to the preset exit mechanism to exit the currently established unidirectional transmission mode, and the exit mechanism includes a first mechanism, a second mechanism and a third mechanism, wherein the control process of exiting different mechanisms is different, which will be described in detail in the subsequent specification.
[0064] Further, in one embodiment of the invention, monitoring the signal-to-noise ratio of the eye diagram quality of the signal transmitted between the master device and the slave device to trigger the unidirectional transmission mode specifically includes:
[0065] In normal transmission mode, the master device and the slave device communicate based on the auto-negotiation protocol, wherein the master device sends a PAM3 training signal to the slave device, and the slave device sends an IDLE signal to the master device after receiving the training signal;
[0066] During the signal transmission process between the master device and the slave device, the eye diagram quality of both parties is detected, where:
[0067] If the signal-to-noise ratio of the eye diagram quality is greater than the preset value, a PAM5 training signal is sent for communication;
[0068] If the signal-to-noise ratio of the eye diagram quality is less than or equal to a preset value, the unidirectional transmission mode is triggered.
[0069] It should be noted that, in this embodiment, Figure 4As shown, how to trigger the unidirectional transmission mode is specifically explained, wherein the triggering condition is the judgment of the eye diagram quality signal-to-noise ratio and the preset value, and the preset value is specifically selected as "17", wherein the above embodiment also explains that in normal transmission mode, the master device and the slave device are connected for communication based on the automatic negotiation protocol (AN protocol), wherein the master device sends a PAM3 training signal to the slave device, and the slave device sends an IDLE signal to the master device after receiving the training signal, and detects the eye diagram quality of both parties during the signal transmission process between the master device and the slave device, wherein if the eye diagram quality signal-to-noise ratio is greater than the preset value, the PAM5 training signal is sent for communication, that is, when the eye diagram quality signal-to-noise ratio "SNR>17", normal communication is performed, and if the eye diagram quality signal-to-noise ratio is less than or equal to the preset value, that is, when the eye diagram quality signal-to-noise ratio "SNR≤17", the unidirectional transmission mode is triggered to perform unidirectional transmission communication.
[0070] Further, in one embodiment of the invention, the controlling the master device to stop transmitting the training signal and changing the setting of the preset register so that the master device and the slave device enter the unidirectional transmission mode establishment phase specifically includes:
[0071] When the signal-to-noise ratio of the eye diagram quality is less than or equal to the preset value, the master device is controlled to stop sending the PAM3 or PAM5 training signal and trigger the unidirectional transmission mode;
[0072] The setting of the preset register is changed to a preset value so that the master device and the slave device perform the establishment phase of the unidirectional transmission mode through the auto-negotiation protocol, which includes setting the remote fault bit of the register to 1.
[0073] It should be noted that, in this embodiment, how to enter the establishment phase of the unidirectional transmission mode is specifically described, which specifically corresponds to how to set the register, wherein, when the signal-to-noise ratio of the eye diagram quality is less than or equal to the preset value, the master device is controlled to stop sending the PAM3 or PAM5 training signal, triggering the unidirectional transmission mode, and at this time, the setting of the preset register is changed to the preset value so that the master device and the slave device perform the establishment phase of the unidirectional transmission mode through the automatic negotiation protocol, which includes setting the remote fault bit of the register to "1". Specifically, both the master and the slave return to the AN protocol state, set the "Remote Fault" bit in the "Base Page" to "1" (indicating that the signal transmission quality is poor at this time), and set "100Base-T4" to "1" (indicating that the chip supports the unidirectional mode), and then both parties enter the establishment process of the unidirectional mode through the AN protocol, wherein "BasePage": the register description of the basic information in the AN protocol, and "100Base-T4": a 100M transmission protocol.
[0074] Further, in one embodiment of the invention, when entering the unidirectional transmission mode establishment phase, controlling the master device to send a training signal of a preset duration, and completing the establishment of the unidirectional transmission mode when the slave device successfully receives the modulated signal, specifically includes:
[0075] The master device sends a training signal of a preset duration to the slave device, and after receiving the training signal, the slave device adjusts the sampling phase to perform digital image processing to receive the training signal, wherein the preset duration specifically includes 500 milliseconds;
[0076] After the preset time period ends, the master device sends a PAM5 modulation signal, and the slave device completes the establishment of the unidirectional transmission mode when it receives the corresponding modulation signal.
[0077] It should be noted that, in this embodiment, reference Figure 3 After entering the unidirectional transmission mode, the preset duration corresponds to "500" milliseconds, wherein the master device sends a "500" millisecond training signal to the slave device, and after receiving the training signal, the slave device adjusts the sampling phase for digital image processing to receive the training signal, and after "500" milliseconds, the master device sends a PAM5 modulation signal, and the establishment of the unidirectional transmission mode is completed when the slave device receives the corresponding modulation signal.
[0078] Furthermore, in an embodiment of the invention, responding to a preset first mechanism to exit the currently established unidirectional transmission mode specifically includes: when it is detected that the slave device does not receive any transmission signal, exiting the currently established unidirectional transmission mode.
[0079] It should be noted that, in this embodiment, the first mechanism for exiting the unidirectional transmission mode response is specifically described, wherein, when it is monitored that the slave device does not receive any transmission signal, it indicates that the current upstream master device has no signal sent, and the currently established unidirectional transmission mode is exited at this time.
[0080] Furthermore, in one embodiment of the invention, responding to a preset second mechanism to exit the currently established unidirectional transmission mode specifically includes: when monitoring that the master device receives an exit instruction, exiting the currently established unidirectional transmission mode.
[0081] It should be noted that, in this embodiment, the second mechanism for exiting the unidirectional transmission mode response is specifically described, wherein the unidirectional transmission mode is a unidirectional transmission from the master device to the slave device. Therefore, when it is monitored that the master device receives an exit instruction, it means that the current upstream master device will stop sending data signals after receiving the exit instruction, and accordingly the currently established unidirectional transmission mode will also be exited.
[0082] Further, in one embodiment of the invention, if Figure 5As shown, responding to the preset third mechanism to exit the currently established unidirectional transmission mode specifically includes the following steps:
[0083] Step S502, monitoring the noise specification of the slave device, wherein when the ratio of the noise mean value at the current monitoring moment to the noise mean value at the previous monitoring moment is greater than a preset ratio, exiting the currently established unidirectional transmission mode;
[0084] Step S504, monitoring the echo specification of the master device, wherein when the change value of the echo energy at the current monitoring moment exceeds a preset change value, exiting the currently established unidirectional transmission mode.
[0085] It should be noted that, in this embodiment, a third mechanism for exiting the unidirectional transmission mode response is specifically described, wherein, in actual operation, the user may exit the unidirectional transmission mode by unplugging the network cable, and therefore the noise specification of the slave device is monitored, wherein, when the ratio of the noise mean at the current monitoring moment to the noise mean at the previous monitoring moment is greater than a preset ratio, the currently established unidirectional transmission mode is exited. Specifically, if the user unplugs the network cable at one end of the slave device, during the unidirectional transmission process, when the network cable at one end of the slave device is unplugged, the impedance matching in the link is broken, and thus the noise becomes larger. Therefore, when it is detected that the noise mean suddenly increases to "1.5" times within a period of time, the master device end will exit the unidirectional mode, that is, the preset ratio is "1.5". It should also be noted that during the unidirectional transmission process, the signal received by the master device is forced to be "0" so as to calculate the received noise size in real time.
[0086] Further, the echo specifications of the master device are monitored, wherein, when the change value of the echo energy at the current monitoring moment exceeds the preset change value, the currently established unidirectional transmission mode is exited. Specifically, since there are many reflection points in the transmitted network cable link, the master device end can calculate the energy returned by each reflection point through the echo module during the unidirectional transmission process, which is recorded as tap_echo. If the user unplugs the network cable at the master end, when the network cable at one end of the master device is unplugged, the reflected energy will become "0". Therefore, when the jitter of tap_echo is detected to exceed "1 / 5", the master device will exit the unidirectional transmission mode. Accordingly, the preset change value described in this embodiment is "1 / 5", which corresponds to the proportional change of its own jitter relative to itself.
[0087] The embodiment of the present application also provides a unidirectional transmission mode switching system for Gigabit Ethernet, which can implement the unidirectional transmission mode switching method for Gigabit Ethernet described in the present application. However, the implementation device of the unidirectional transmission mode switching method for Gigabit Ethernet described in the present application includes but is not limited to the structure of the unidirectional transmission mode switching system for Gigabit Ethernet listed in the present embodiment. All structural deformations and replacements of the prior art made according to the principles of the present application are included in the protection scope of the present application.
[0088] See also Figure 6 In one embodiment, this embodiment provides a Gigabit Ethernet unidirectional transmission mode switching system 60, the system comprising:
[0089] A monitoring module 61, used to monitor the signal-to-noise ratio of the eye diagram quality of the transmission signal between the master device and the slave device, and trigger the unidirectional transmission mode based on the signal-to-noise ratio;
[0090] A setting module 62, used to control the master device to stop transmitting the training signal, and to make the master device and the slave device enter the unidirectional transmission mode establishment phase by changing the setting of the preset register;
[0091] Establishment module 63, used for controlling the master device to send a training signal of a preset duration when entering the unidirectional transmission mode establishment phase, and completing the establishment of the unidirectional transmission mode when the slave device successfully receives the modulated signal;
[0092] The exit module 64 is used to respond to a preset exit mechanism to exit the currently established unidirectional transmission mode, wherein the exit mechanism includes a first mechanism, a second mechanism and a third mechanism.
[0093] Since the specific implementation of this embodiment corresponds to the aforementioned method embodiment, the same details will not be repeated here, and those skilled in the art should also understand that Figure 6 The division of the modules in the embodiment is merely a division of logical functions, and in actual implementation, all or part of them can be integrated into one or more physical entities, and these modules can be implemented entirely in the form of software called by processing elements, or entirely in the form of hardware, or some modules can be implemented in the form of software called by processing elements, and some modules can be implemented in the form of hardware.
[0094] In the several embodiments provided by the present invention, it should be understood that the disclosed system, device or method can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules / units is only a logical function division, and there may be other division methods in actual implementation, such as multiple modules or units can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules or units, which can be electrical, mechanical or other forms.
[0095] The modules / units described as separate components may or may not be physically separated, and the components displayed as modules / units may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules / units may be selected according to actual needs to achieve the purpose of the embodiments of the present invention. For example, the functional modules / units in the various embodiments of the present invention may be integrated into one processing module, or each module / unit may exist physically separately, or two or more modules / units may be integrated into one module / unit.
[0096] Those of ordinary skill in the art should further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0097] The embodiment of the present invention also provides a computer-readable storage medium. A person of ordinary skill in the art can understand that all or part of the steps in the method for implementing the above embodiment can be completed by instructing the processor through a program, and the program can be stored in a computer-readable storage medium, and the storage medium is a non-transitory medium, such as a random access memory, a read-only memory, a flash memory, a hard disk, a solid-state hard disk, a magnetic tape, a floppy disk, an optical disc, and any combination thereof. The above storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or a data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a digital video disc (DVD)), or a semiconductor medium (e.g., a solid-state disk (SSD)), etc.
[0098] An embodiment of the present invention further provides an electronic device, which includes a processor and a memory.
[0099] The memory is used to store computer programs.
[0100] The memory includes: ROM, RAM, disk, USB flash drive, memory card or CD and other media that can store program codes.
[0101] The processor is connected to the memory and is used to execute the computer program stored in the memory so that the electronic device executes the above-mentioned method for switching the unidirectional transmission mode of Gigabit Ethernet.
[0102] Preferably, the processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
[0103] like Figure 7As shown, the electronic device of the present invention is in the form of a general computing device. The components of the electronic device may include but are not limited to: one or more processors or processing units 71, a memory 72, and a bus 73 connecting different system components (including the memory 72 and the processing unit 71).
[0104] Bus 73 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. By way of example, these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.
[0105] Electronic devices typically include a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device, including volatile and non-volatile media, removable and non-removable media.
[0106] The memory 72 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 721 and / or cache memory 722. The electronic device may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 723 may be used to read and write non-removable, non-volatile magnetic media ( Figure 7 not shown, usually called a "hard drive"). Although Figure 7 Not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 73 via one or more data medium interfaces. The memory 72 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present invention.
[0107] A program / utility 724 having a set (at least one) of program modules 7241 may be stored, for example, in the memory 72, such program modules 7241 including but not limited to an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules 7241 generally perform the functions and / or methods of the embodiments described herein.
[0108] The electronic device may also communicate with one or more external devices (e.g., keyboards, pointing devices, displays, etc.), one or more devices that enable a user to interact with the electronic device, and / or any device that enables the electronic device to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed via input / output (I / O) interface 74. Furthermore, the electronic device may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via network adapter 75. Figure 7 As shown, the network adapter 75 communicates with other modules of the electronic device via the bus 73. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with the electronic device, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0109] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the art may modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by a person of ordinary skill in the art without departing from the spirit and technical concept disclosed by the present invention shall still be covered by the claims of the present invention.
Claims
1. A method for switching a unidirectional transmission mode of a Gigabit Ethernet, characterized in that: include: Monitoring the signal-to-noise ratio of the eye diagram quality of the transmission signal between the master device and the slave device, and triggering the unidirectional transmission mode based on the signal-to-noise ratio; Control the master device to stop transmitting the training signal, and make the master device and the slave device enter the unidirectional transmission mode establishment phase by changing the settings of the preset register; When entering the unidirectional transmission mode establishment phase, the master device is controlled to send a training signal of a preset duration, and the establishment of the unidirectional transmission mode is completed when the slave device successfully receives the modulated signal; Respond to a preset exit mechanism to exit the currently established unidirectional transmission mode, wherein the exit mechanism includes a first mechanism, a second mechanism and a third mechanism.
2. The method for switching the unidirectional transmission mode of Gigabit Ethernet according to claim 1, characterized in that: The monitoring of the signal-to-noise ratio of the eye diagram quality of the transmission signal between the master device and the slave device to trigger the unidirectional transmission mode specifically includes: In normal transmission mode, the master device and the slave device communicate based on the auto-negotiation protocol, wherein the master device sends a PAM3 training signal to the slave device, and the slave device sends an IDLE signal to the master device after receiving the training signal; During the signal transmission process between the master device and the slave device, the eye diagram quality of both parties is detected, where: If the signal-to-noise ratio of the eye diagram quality is greater than the preset value, a PAM5 training signal is sent for communication; If the signal-to-noise ratio of the eye diagram quality is less than or equal to a preset value, the unidirectional transmission mode is triggered.
3. The method for switching the unidirectional transmission mode of Gigabit Ethernet according to claim 2, characterized in that: The controlling the master device to stop transmitting the training signal and changing the setting of the preset register so that the master device and the slave device enter the unidirectional transmission mode establishment phase specifically includes: When the signal-to-noise ratio of the eye diagram quality is less than or equal to the preset value, the master device is controlled to stop sending the PAM3 or PAM5 training signal and trigger the unidirectional transmission mode; The setting of the preset register is changed to a preset value so that the master device and the slave device perform the establishment phase of the unidirectional transmission mode through the auto-negotiation protocol, which includes setting the remote fault bit of the register to 1.
4. The method for switching the unidirectional transmission mode of Gigabit Ethernet according to claim 3, characterized in that: When entering the unidirectional transmission mode establishment phase, controlling the master device to send a training signal of a preset duration, and completing the establishment of the unidirectional transmission mode when the slave device successfully receives the modulated signal, specifically includes: The master device sends a training signal of a preset duration to the slave device, and after receiving the training signal, the slave device adjusts the sampling phase to perform digital image processing to receive the training signal, wherein the preset duration specifically includes 500 milliseconds; After the preset time period ends, the master device sends a PAM5 modulation signal, and the slave device completes the establishment of the unidirectional transmission mode when it receives the corresponding modulation signal.
5. The method for switching the unidirectional transmission mode of Gigabit Ethernet according to claim 4, characterized in that: Responding to a preset first mechanism to exit the currently established unidirectional transmission mode specifically includes: when it is detected that the slave device does not receive any transmission signal, exiting the currently established unidirectional transmission mode.
6. The method for switching the unidirectional transmission mode of Gigabit Ethernet according to claim 4, characterized in that: Responding to the preset second mechanism to exit the currently established unidirectional transmission mode specifically includes: when monitoring that the master device receives an exit instruction, exiting the currently established unidirectional transmission mode.
7. The method for switching the unidirectional transmission mode of Gigabit Ethernet according to claim 4, characterized in that: Responding to a preset third mechanism to exit the currently established unidirectional transmission mode, specifically including: Monitoring the noise specification of the slave device, wherein when the ratio of the noise mean value at the current monitoring moment to the noise mean value at the previous monitoring moment is greater than a preset ratio, exiting the currently established unidirectional transmission mode; The echo specification of the master device is monitored, wherein when the change value of the echo energy at the current monitoring moment exceeds a preset change value, the currently established unidirectional transmission mode is exited.
8. A one-way transmission mode switching system for Gigabit Ethernet, characterized in that: include: A monitoring module, used to monitor the signal-to-noise ratio of the eye diagram quality of the transmission signal between the master device and the slave device, and trigger the unidirectional transmission mode based on the signal-to-noise ratio; A setting module, used to control the master device to stop transmitting the training signal, and to make the master device and the slave device enter the unidirectional transmission mode establishment phase by changing the setting of the preset register; An establishment module, used to control the master device to send a training signal of a preset duration when entering the unidirectional transmission mode establishment phase, and complete the establishment of the unidirectional transmission mode when the slave device successfully receives the modulated signal; The exit module is used to respond to a preset exit mechanism to exit the currently established unidirectional transmission mode, wherein the exit mechanism includes a first mechanism, a second mechanism and a third mechanism.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method for switching the unidirectional transmission mode of Gigabit Ethernet described in any one of claims 1 to 7 is implemented.
10. An electronic device, characterized in that: The electronic device comprises: a processor and a memory; wherein the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the electronic device executes the unidirectional transmission mode switching method of Gigabit Ethernet as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Data catching technology for high-speed signals
CN1529958A
Unidirectional fast retraining of a bidirectional ethernet link
US12143205B1
Strobe Offset in Bidirectional Memory Strobe Configurations
US20110199843A1
Systems and methods for implementing bi-directional synchronization propagation
US20140044133A1
Link establishment for single pair ethernet
US20160365967A1
Cited By
Multipoint automotive ethernet communication system using stub link connection
KR102972968B1