Data sampling method and related equipment

By performing phase-shifting processing on the clock signal at the receiving end, the optimal phase compensation value is determined to achieve alignment between the clock signal and the data signal, thus solving the problem of long clock synchronization time and achieving high efficiency in fast access and equalization processing.

CN121770519APending Publication Date: 2026-03-31HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-30
Publication Date
2026-03-31

AI Technical Summary

Technical Problem

Current technologies require a long time for clock synchronization, which cannot meet the needs of rapid access scenarios.

Method used

By performing phase-shifting processing on the clock signal at the receiving end according to different phase compensation values, the optimal phase compensation value for sampling quality is determined. This phase compensation value is then used to perform phase-shifting processing on the clock signal to align it with the data signal, thereby enabling direct sampling and avoiding the long-term locking process of CDR.

Benefits of technology

It significantly reduces the time required for clock synchronization, enabling rapid scenario access, and reduces the convergence time of equalization coefficients by periodically saving equalization coefficients and signal-to-noise ratio.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121770519A_ABST
    Figure CN121770519A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a data sampling method and related equipment, and the method comprises the steps: receiving a first data signal from second communication equipment in a first data channel, and receiving a first clock signal from the second communication equipment in a second data channel. And performing phase shift processing on the first clock signal according to different phase compensation values, and sampling the first data signal according to the first clock signal subjected to the phase shift processing so as to determine the first phase compensation value corresponding to the optimal sampling quality. And performing phase shift processing on the first clock signal according to the first phase compensation value to obtain a second clock signal. And sampling the first data signal according to the second clock signal to obtain a first sampling signal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communications, and more particularly to a data sampling method and related equipment. Background Technology

[0002] High-speed serial digital signal systems are an important component of modern communication technology, widely used in data centers, satellite communications, high-speed Ethernet, and other fields. In these systems, data is transmitted between the transmitting and receiving ends in a high-speed, serialized format. Due to the high transmission rate and large data volume, the receiving end needs to sample the data from the transmitting end to achieve digital conversion and signal reconstruction.

[0003] Clock synchronization is a crucial foundation for data sampling. It refers to the synchronization between the sampled clock signal and the data signal, ensuring that they are consistent in timing. Specifically, the sampling time of the data signal must precisely correspond to a specific phase or edge of the clock signal. This alignment is essential for ensuring accurate data acquisition, transmission, and processing. Existing technologies use clock data recovery (CDR) to reconstruct a clock signal synchronized with the transmitter at the receiving end, and then sample the data signal based on this clock signal to achieve clock synchronization.

[0004] However, CDR locking takes a long time, which cannot meet the needs of rapid access scenarios. Summary of the Invention

[0005] This application provides a data sampling method and related equipment to reduce the time required for clock synchronization.

[0006] The first aspect of this application provides a data sampling method applied to a first communication device. The first communication device includes a first data channel and a second data channel. The first data channel is used to receive data signals, and the second data channel is used to receive clock signals.

[0007] A first data signal from a second communication device is received in a first data channel, and a first clock signal from the second communication device is received in a second data channel. The first clock signal is phase-shifted according to different phase compensation values. The first data signal is sampled based on the phase-shifted first clock signal to determine a first phase compensation value corresponding to the optimal sampling quality. The first clock signal is then phase-shifted again according to the first phase compensation value to obtain a second clock signal. The first data signal is then sampled based on the second clock signal to obtain a first sampled signal.

[0008] In this application, the transmitting end can send both the data signal and the clock signal to the receiving end. The receiving end can determine the phase compensation value corresponding to the best sampling quality by switching different phase compensation values ​​to phase shift the clock signal. Since the best sampling quality can only be obtained when the clock signal and the data signal are aligned, phase shifting the clock signal based on this phase compensation value can make the phase-shifted clock signal aligned with the data signal. Thus, the data signal can be sampled directly based on the phase-shifted clock signal without CDR, which greatly reduces the time required for clock synchronization and can meet the needs of fast access scenarios.

[0009] In one possible implementation, the method also includes:

[0010] A second data signal from a third communication device is received in the first data channel, and a third clock signal from the third communication device is received in the second data channel. The third clock signal is phase-shifted according to different phase compensation values. The second data signal is then sampled based on the phase-shifted third clock signal to determine the second phase compensation value corresponding to the optimal sampling quality. The clock phase of the third communication device is adjusted so that the difference between the second phase compensation value and the first phase compensation value is less than a preset value.

[0011] In this application, when there are other transmitters in the system, the receiver adjusts the clock phase of these transmitters to make the optimal phase compensation values ​​of each transmitter relatively close, so that the receiver does not need to frequently adjust the phase compensation values ​​as the transmitters switch.

[0012] In one possible implementation, the method also includes:

[0013] The first sampled signal is equalized to obtain a first equalized signal. The equalization coefficients of the first sampled signal are updated, and the updated equalization coefficients are periodically saved. A first indication message is received from a second communication device on the first data channel, indicating that the second communication device should disconnect from the first communication device. Based on the first indication message, the updating of the equalization coefficients of the first sampled signal is stopped. A third clock signal is phase-shifted based on a first phase compensation value to obtain a fourth clock signal. The second data signal is sampled based on the fourth clock signal to obtain a second sampled signal. The second sampled signal is then equalized based on the saved equalization coefficients to obtain the second equalized signal.

[0014] In this application, for the transmitter that joins the network first, the receiver can continuously update the corresponding equalization coefficients and periodically save the equalization coefficients when performing equalization processing after sampling. When the transmitter switches, the previously saved equalization coefficients can be used, thereby saving the convergence time of the equalization coefficients.

[0015] In one possible implementation, the method also includes:

[0016] Determine the first signal-to-noise ratio (SNR) corresponding to the saved equalization coefficients, and determine the second SNR of the second equalized signal. Determine whether the difference between the second SNR and the first SNR is less than a preset value; if not, redetermine the equalization coefficients for equalizing the second sampled signal.

[0017] In this application, when saving the equalization coefficient, the receiving end also saves the signal-to-noise ratio corresponding to the equalization coefficient. After the transmitting end switches, it uses the saved equalization coefficient and records the corresponding signal-to-noise ratio. If the two signal-to-noise ratios are far apart, it means that the saved equalization coefficient is not applicable to the current situation. Therefore, the equalization coefficient is reselected for signal equalization processing, so that the equalization coefficient converges and the optimal signal-to-noise ratio is obtained.

[0018] In one possible implementation, the method also includes:

[0019] Determine the second signal-to-noise ratio (SNR) of the second equalization signal. Determine whether the difference between the second SNR and the preset SNR is less than the preset value. If not, redetermine the equalization coefficients for equalization processing of the second sampled signal.

[0020] In this application, after switching at the transmitting end, the saved equalization coefficients are retained and the corresponding signal-to-noise ratio is recorded. The signal-to-noise ratio is then compared with the preset signal-to-noise ratio. If the two signal-to-noise ratios differ significantly, it indicates that the saved equalization coefficients are not applicable to the current situation. Therefore, a new equalization coefficient is selected for signal equalization processing, which causes the equalization coefficients to converge and obtain the optimal signal-to-noise ratio.

[0021] In one possible implementation, the method also includes:

[0022] A second data signal from a third communication device is received in the first data channel, and a third clock signal from the third communication device is received in the second data channel. The third clock signal is phase-shifted according to different phase compensation values. The second data signal is then sampled based on the phase-shifted third clock signal to determine the second phase compensation value corresponding to the optimal sampling quality. The third clock signal is then phase-shifted according to the second phase compensation value to obtain a fifth clock signal. The second data signal is then sampled based on the fifth clock signal to obtain a third sampled signal.

[0023] In this application, when the transmitting end switches, the receiving end determines the phase compensation value corresponding to the best sampling quality by switching different phase compensation values ​​to phase shift the clock signal. Thus, the data signal can be sampled directly based on the phase-shifted clock signal without CDR, which greatly reduces the time required for clock synchronization between the receiving end and the transmitting end and can meet the needs of fast access scenarios.

[0024] In one possible implementation, the method also includes:

[0025] The first sampled signal is subjected to equalization processing to obtain a first equalized signal, and the equalization coefficients of the first sampled signal are updated. The updated equalization coefficients are periodically saved. A first indication message is received from a second communication device on the first data channel, indicating that the second communication device should disconnect from the first communication device. Based on the first indication message, the updating of the equalization coefficients of the first sampled signal is stopped, and the third sampled signal is subjected to equalization processing based on the saved equalization coefficients to obtain a second equalized signal.

[0026] In this application, for the transmitter that joins the network first, the receiver can continuously update the corresponding equalization coefficients and periodically save the equalization coefficients when performing equalization processing after sampling. When the transmitter switches, the previously saved equalization coefficients can be used, thereby saving the convergence time of the equalization coefficients.

[0027] In one possible implementation, the method also includes:

[0028] Determine the first signal-to-noise ratio (SNR) corresponding to the saved equalization coefficients, and determine the second SNR of the second equalization signal. Determine whether the difference between the second SNR and the first SNR is less than a preset value; if not, redetermine the equalization coefficients for equalization processing of the fourth sampled signal.

[0029] In this application, when saving the equalization coefficient, the receiving end also saves the signal-to-noise ratio corresponding to the equalization coefficient. After the transmitting end switches, it uses the saved equalization coefficient and records the corresponding signal-to-noise ratio. If the two signal-to-noise ratios are far apart, it means that the saved equalization coefficient is not applicable to the current situation. Therefore, the equalization coefficient is reselected for signal equalization processing, so that the equalization coefficient converges and the optimal signal-to-noise ratio is obtained.

[0030] In one possible implementation, the method also includes:

[0031] Determine the second signal-to-noise ratio (SNR) of the second equalization signal. Determine whether the difference between the second SNR and the preset SNR is less than the preset value. If not, redetermine the equalization coefficients for equalization processing of the fourth sampled signal.

[0032] In this application, after switching at the transmitting end, the saved equalization coefficients are retained and the corresponding signal-to-noise ratio is recorded. The signal-to-noise ratio is then compared with the preset signal-to-noise ratio. If the two signal-to-noise ratios differ significantly, it indicates that the saved equalization coefficients are not applicable to the current situation. Therefore, a new equalization coefficient is selected for signal equalization processing, which causes the equalization coefficients to converge and obtain the optimal signal-to-noise ratio.

[0033] A second aspect of this application provides a communication device, including a transceiver unit and a processing unit:

[0034] The transceiver unit is configured to receive a first data signal from a second communication device in a first data channel and a first clock signal from a second communication device in a second data channel.

[0035] The processing unit is used to perform phase shifting processing on the first clock signal according to different phase compensation values, and to sample the first data signal according to the phase-shifted first clock signal to determine the first phase compensation value corresponding to the best sampling quality.

[0036] The processing unit is also configured to perform phase shifting processing on the first clock signal according to the first phase compensation value to obtain the second clock signal.

[0037] The processing unit is also configured to sample the first data signal according to the second clock signal to obtain the first sampled signal.

[0038] In one possible implementation,

[0039] The transceiver unit is also configured to receive a second data signal from a third communication device in the first data channel and a third clock signal from a third communication device in the second data channel.

[0040] The processing unit is also used to perform phase shifting processing on the third clock signal according to different phase compensation values, and to sample the second data signal according to the phase-shifted third clock signal to determine the second phase compensation value corresponding to the best sampling quality.

[0041] The processing unit is also used to adjust the clock phase of the third communication device so that the difference between the second phase compensation value and the first phase compensation value is less than a preset value.

[0042] In one possible implementation,

[0043] The processing unit is also used to perform equalization processing on the first sampled signal to obtain a first equalized signal.

[0044] The processing unit is also used to update the equalization coefficients of the first sampled signal.

[0045] The processing unit is also used to periodically save the updated equilibrium coefficients.

[0046] The transceiver unit is also configured to receive first indication information from the second communication device in the first data channel, the first indication information being used to instruct the second communication device to disconnect from the first communication device.

[0047] The processing unit is also configured to stop updating the equalization coefficients of the first sampled signal according to the first instruction information.

[0048] The processing unit is also used to perform phase shifting processing on the third clock signal according to the first phase compensation value to obtain the fourth clock signal.

[0049] The processing unit is also used to sample the second data signal according to the fourth clock signal to obtain the second sampled signal.

[0050] The processing unit is also used to perform equalization processing on the second sampled signal according to the stored equalization coefficients to obtain the second equalized signal.

[0051] In one possible implementation,

[0052] The processing unit is also used to determine the first signal-to-noise ratio corresponding to the stored equalization coefficients.

[0053] The processing unit is also used to determine the second signal-to-noise ratio of the second equalization signal.

[0054] The processing unit is also used to determine whether the difference between the second signal-to-noise ratio and the first signal-to-noise ratio is less than a preset value. If not, it redetermines the equalization coefficients for equalization processing of the second sampled signal.

[0055] In one possible implementation,

[0056] The processing unit is also used to determine the second signal-to-noise ratio of the second equalization signal.

[0057] The processing unit is also used to determine whether the difference between the second signal-to-noise ratio and the preset signal-to-noise ratio is less than the preset value. If not, it redetermines the equalization coefficients for equalization processing of the second sampled signal.

[0058] In one possible implementation,

[0059] The transceiver unit is also configured to receive a second data signal from a third communication device in the first data channel and a third clock signal from a third communication device in the second data channel.

[0060] The processing unit is also used to perform phase shifting processing on the third clock signal according to different phase compensation values, and to sample the second data signal according to the phase-shifted third clock signal to determine the second phase compensation value corresponding to the best sampling quality.

[0061] The processing unit is also used to perform phase shifting processing on the third clock signal according to the second phase compensation value to obtain the fifth clock signal.

[0062] The processing unit is also used to sample the second data signal according to the fifth clock signal to obtain the third sampled signal.

[0063] In one possible implementation,

[0064] The processing unit is also used to perform equalization processing on the first sampled signal to obtain a first equalized signal.

[0065] The processing unit is also used to update the equalization coefficients of the first sampled signal.

[0066] The processing unit is also used to periodically save the updated equilibrium coefficients.

[0067] The transceiver unit is also configured to receive first indication information from the second communication device in the first data channel, the first indication information being used to instruct the second communication device to disconnect from the first communication device.

[0068] The processing unit is also configured to stop updating the equalization coefficients of the first sampled signal according to the first instruction information.

[0069] The processing unit is also used to perform equalization processing on the third sampled signal according to the stored equalization coefficients to obtain the second equalized signal.

[0070] In one possible implementation,

[0071] The processing unit is also used to determine the first signal-to-noise ratio corresponding to the stored equalization coefficients.

[0072] The processing unit is also used to determine the second signal-to-noise ratio of the second equalization signal.

[0073] The processing unit is also used to determine whether the difference between the second signal-to-noise ratio and the first signal-to-noise ratio is less than a preset value. If not, it redetermines the equalization coefficients for equalization processing of the fourth sampled signal.

[0074] In one possible implementation,

[0075] The processing unit is also used to determine the second signal-to-noise ratio of the second equalization signal.

[0076] The processing unit is also used to determine whether the difference between the second signal-to-noise ratio and the preset signal-to-noise ratio is less than the preset value. If not, it redetermines the equalization coefficient for equalization processing of the fourth sampled signal.

[0077] A third aspect of this application provides a communication device, including a chip, which performs the method described in the first aspect based on the chip.

[0078] A fourth aspect of this application also provides a chip for performing the method described in the first aspect. Attached Figure Description

[0079] Figure 1 This is a schematic diagram illustrating the application scenario in this application;

[0080] Figure 2 This is a schematic diagram of the data sampling method of this application;

[0081] Figure 3 A schematic diagram of the curve of a bathtub;

[0082] Figure 4 This is another schematic diagram of the bathtub curve;

[0083] Figure 5a This is a flowchart illustrating signal processing.

[0084] Figure 5b A schematic diagram for updating the equilibrium coefficient;

[0085] Figure 6 This is a schematic diagram of the communication device of this application;

[0086] Figure 7 This is another schematic diagram of the communication device of this application. Detailed Implementation

[0087] The embodiments of this application are described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. As those skilled in the art will understand, with the development of technology and the emergence of new scenarios, the technical solutions provided by the embodiments of this application are also applicable to similar technical problems.

[0088] The terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments described herein can be implemented in a sequence other than that illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0089] To facilitate understanding of this application, the relevant terms are explained below:

[0090] CDR (Clock Rendering) refers to the process of reconstructing or recovering the original clock component from a received signal in order to correctly synchronize and interpret the data. In digital communication and signal processing, signals may be subject to various interferences and attenuations during transmission, leading to a decrease in signal quality at the receiving end, and clock information may become blurred or distorted. Therefore, the receiving end needs to use CDR technology to reconstruct a clock signal synchronized with the transmitting end.

[0091] Data sampling refers to extracting discrete data points from a continuous signal at regular time intervals. In digital systems, data sampling is a fundamental step in data conversion and processing. During sampling, it is crucial to ensure that the sampling clock is synchronized with the data signal; otherwise, sampling errors or data loss may occur. The Clock Receiving Disk Analyzer (CDR) provides a reference for data sampling; the clock signal generated by the CDR circuit provides the necessary synchronization reference. Only when the clock signal is synchronized with the data signal can the sampling circuit capture data points at the correct time, thus ensuring data integrity and accuracy. Data sampling verifies the effectiveness of the CDR. The results of data sampling can indirectly verify the effectiveness of the CDR. If the sampled data is consistent with the original data and there are no obvious errors or data loss, then the CDR can be considered successful. Conversely, if the sampling results are abnormal, there may be a problem with the CDR, requiring further inspection and adjustment.

[0092] Phase shifter: A phase shifter is a circuit that can change the phase of a signal. Its working principle can be achieved through various mechanisms, including but not limited to changing the time the signal takes to pass through the circuit and adjusting the magnitude of the internal current of the device. For clock signals, phase shifters can adjust their phase by introducing specific phase delays or advances, thereby achieving signal synchronization, phase calibration, or other related processing requirements.

[0093] Equalization: Equalization is a crucial step in signal processing at the receiver in optical communication systems. During transmission, optical signals are affected by various channel impairments (such as dispersion, attenuation, and nonlinear effects), leading to waveform distortion in the received signal and reducing the signal-to-noise ratio (SNR) and reception quality. To restore the original waveform and improve reception quality, equalization is necessary at the receiver. The main purpose of equalization is to compensate and correct the received signal to eliminate the impact of channel impairments. The equalizer can adaptively adjust the signal based on channel characteristics, making the output waveform closer to the original transmitted signal. Equalization effectively improves the SNR and reception quality, reduces the bit error rate, and thus enhances the reliability of the communication system. In optical communication systems, sampling typically occurs before equalization. The receiver first converts the continuous analog signal into a discrete digital signal through sampling before performing subsequent equalization. Therefore, sampling is the prerequisite and foundation for equalization.

[0094] Bit error rate (BER): The ratio of the number of bit errors generated during system data transmission to the total number of bits transmitted by the system. It is an indicator used to measure the accuracy of data transmission within a specified time.

[0095] Signal-to-noise ratio (SNR) is a crucial parameter in signal processing, describing the ratio between the intensity of a useful signal and the intensity of background noise. Specifically, SNR is the ratio of the intensity of the received useful signal to the intensity of the received interfering signal (including noise and interference). A higher SNR indicates a greater proportion of useful information, better signal quality, and less impact from noise.

[0096] A phase detector is a phase comparison device, also known as a phase comparator. Its output voltage is a function of the instantaneous phase difference between two signals.

[0097] CDR Lock-in: CDR lock-in refers to the state where the CDR circuit successfully extracts clock information from the received signal and synchronizes its output clock with the input data signal. In this state, the CDR circuit can accurately identify the edges of the data signal and sample and recover the data accordingly. CDR lock-in is crucial for ensuring the accuracy and reliability of digital communication. It enables the receiving end to accurately identify and recover the data signal sent by the transmitting end, thereby guaranteeing the integrity and correctness of data transmission.

[0098] A photodiode (PD) is an optoelectronic device that converts light signals into electrical signals. It converts received light radiation into an electric current, which is proportional to the intensity of the incident light.

[0099] A transimpedance amplifier (TIA) is an amplifier that converts a current signal into a voltage signal, and is particularly suitable for amplifying weak current signals in devices such as photodetectors.

[0100] A continuous-time linear equalizer (CTLE) is a front-end equalizer that compensates for signal loss due to high-frequency attenuation during transmission by amplifying high-frequency components. In high-speed digital communication links, high-frequency signals often attenuate faster than low-frequency signals, leading to eye diagram closure and increased bit error rate. CTLE improves signal quality by adjusting its transfer function to provide greater gain at higher frequencies.

[0101] A variable gain amplifier (VGA) is an amplifier that can adjust its internal circuit parameters to change the signal gain. It can flexibly adjust the gain according to the actual signal strength requirements, thereby achieving controllable signal strength adjustment.

[0102] Automatic gain control (AGC) is a technology that ensures a constant signal strength during transmission. When the signal strength changes, AGC automatically adjusts the amplifier's gain to compensate for this change, thus guaranteeing signal quality at the receiving end.

[0103] Feed-forward equalization (FFE): FFE is a linear equalization technique used in signal processing, similar to a finite impulse response filter. It compensates for signal attenuation during transmission by amplifying or attenuating specific frequency components of the signal. The FFE circuit adjusts the filter coefficients through equalizer taps to enhance or reduce the high-frequency components of the signal.

[0104] Forward error correction (FEC): FEC technology allows the receiver to detect and automatically correct a certain amount of errors that occur during data transmission when it receives a signal, without needing to resend the data. This automatic error correction capability can significantly reduce the need for retransmissions due to data transmission errors, thereby improving the efficiency and reliability of data transmission.

[0105] This application can be applied to high-speed serial digital signal systems, such as... Figure 1As shown, the system includes a communication device (communication device 1) serving as a receiver and several communication devices (e.g., communication device 2 and communication device 3) serving as transmitters. All communication devices are connected to a switch, which has a switching switch to control the transmitters connected to the receiver. Each transmitter has a first data channel and a second data channel, where the first data channel transmits a clock signal and the second data channel transmits a data signal. Correspondingly, the receiver also has a first data channel and a second data channel, where the first data channel receives the clock signal and the second data channel receives the data signal. Furthermore, the receiver is equipped with a phase shifter to phase-shift the clock signal received in the first data channel and to sample the data signal received in the second data channel based on the phase-shifted clock signal. Figure 1 The system shown can be a system in an optical communication scenario, such as an optical switching network and a passive optical network. The communication equipment shown in the figure is, for example, an optical communication device, and the switch is, for example, an OPS optical switch.

[0106] Please see Figure 2 The following describes a process for the data sampling method in this application. The first communication device in this application can be... Figure 1 The communication device 1 shown, the second communication device can be Figure 1 The communication device 2 shown, the third communication device can be Figure 1 The communication device 3 shown in the figure.

[0107] 201. Receive a first data signal from the second communication device in the first data channel, and receive a first clock signal from the second communication device in the second data channel;

[0108] In the initial stage, communication device 1 communicates with communication device 2. Communication device 2 sends a clock signal to communication device 1 through a first data channel and sends a data signal to communication device 1 through a second data channel. Correspondingly, communication device 1 receives the clock signal through the first data channel and the data signal through the second data channel.

[0109] 202. The first clock signal is phase-shifted according to different phase compensation values, and the first data signal is sampled according to the phase-shifted first clock signal to determine the first phase compensation value corresponding to the best sampling quality.

[0110] Communication device 1 performs phase shifting processing on the received clock signal using a phase shifter, that is, it offsets the phase of the clock signal. The magnitude of the offset is called the phase compensation value. Communication device 1 samples the received data signal based on the phase-shifted clock signal to obtain a sampled signal, and detects the bit error rate (BER) or signal-to-noise ratio (SNR) of the sampled signal. By repeatedly adjusting the phase compensation value, a bathtub curve is constructed. The horizontal axis of the bathtub curve represents the phase compensation value, and the vertical axis represents the BER or SNR of the sampled signal. It should be noted that the data signal at this time is not the actual service data, but a random code, such as PRBS7 or PRBS15, or it could be a preamble code. Communication device 1 can determine the first phase compensation value corresponding to the optimal sampling quality based on the bathtub curve. The sampling quality can be indicated by the BER or SNR; a lower BER indicates higher sampling quality, and a higher SNR indicates higher sampling quality. Please refer to [link to relevant documentation]. Figure 3 Taking the vertical axis of the bathtub curve as the signal-to-noise ratio (SNR) as an example, the phase compensation values ​​include -0.1, 0, 0.1, and 0.2. For instance, a positive phase compensation value indicates that the clock signal phase is advanced, while a negative phase compensation value indicates that the clock signal phase is delayed. As can be seen from the figure, the highest SNR is achieved when the phase compensation value is 0.1. Therefore, 0.1 is the first phase compensation value, meaning the phase compensation value corresponding to the highest SNR is the first phase compensation value. Please refer to [link / reference]. Figure 4 Taking the vertical axis of the bathtub curve as the bit error rate (BER) as an example, the phase compensation values ​​include -0.1, 0, 0.1, and 0.2. The lowest BER is obtained when the phase compensation value is 0.1; therefore, 0.1 is the first phase compensation value, which is the phase compensation value corresponding to the lowest BER. Since sampling the data signal based on the clock signal is most effective when the clock signal and data signal are in phase, the aforementioned first phase compensation value can also be understood as the phase difference between the clock signal and the data signal from communication device 2.

[0111] 203. The first clock signal is phase-shifted according to the first phase compensation value to obtain the second clock signal;

[0112] Considering that the transmitting end in this system may switch, for example from communication device 2 to communication device 3, in order to restore normal communication more quickly after the switch, communication device 1 temporarily switches to communication device 3 after determining the aforementioned first phase compensation value. Communication device 3 sends data signals and clock signals to communication device 1. It should be noted that the data signal at this time is not the actual service data, but a random code, such as PRBS7 or PRBS15, or it could be a preamble code. Similarly, communication device 1 performs phase shifting processing on the clock signal from communication device 3 using a phase shifter, samples the data signal from communication device 3 based on the phase-shifted clock signal to obtain a sampled signal, and detects the bit error rate or signal-to-noise ratio of the sampled signal. By adjusting the phase compensation value multiple times, a bathtub curve is constructed. Communication device 1 determines the second phase compensation value corresponding to the optimal sampling quality based on the bathtub curve. Because of the differences between the links, the first phase compensation value and the second phase compensation value may not be consistent. In this case, communication device 1 instructs communication device 3 to adjust the clock phase, so that the phase of the clock signal of communication device 3 changes, thereby adjusting the second phase compensation value and reconstructing the bathtub curve to determine a new second phase compensation value, until the difference between the second phase compensation value and the first phase compensation value is less than a preset value. This preset value can be set to a small value, such as 0.1UI, with the aim of making the second phase compensation value basically consistent with the first phase compensation value.

[0113] After completing the above operations, the transmitting end switches from communication device 3 to communication device 2. Communication device 1 sets the phase compensation value of the phase shifter to the first phase compensation value. The phase shifter performs phase shifting processing on the clock signal from communication device 2 according to the first phase compensation value, so that the phase-shifted clock signal is synchronized with the phase of the data signal from communication device 2.

[0114] 204. Sample the first data signal according to the second clock signal to obtain the first sampled signal.

[0115] Next, communication device 1 samples the data signal from communication device 2 based on the phase-shifted clock signal, thereby obtaining the sampled signal. (See also...) Figure 5a After obtaining the sampled signal, it is necessary to perform equalization processing on the sampled signal to obtain the equalized signal. Then, the equalized signal needs to be sent to the decision unit for decision. The decision unit is mainly responsible for making a decision on the received signal or the digital signal after preliminary processing in order to recover the starting signal.

[0116] Equalization is a crucial step in signal processing at the receiver end of an optical communication system. During transmission, optical signals are affected by various channel impairments (such as dispersion, attenuation, and nonlinear effects), leading to waveform distortion in the received signal and reducing the signal-to-noise ratio (SNR) and reception quality. To restore the original waveform and improve reception quality, equalization is necessary at the receiver. The main purpose of equalization is to compensate and correct the received signal to eliminate the impact of channel impairments. The equalizer can adaptively adjust the signal based on channel characteristics, making the output waveform closer to the original transmitted signal. Through equalization, the SNR and reception quality can be effectively improved, the bit error rate reduced, and the reliability of the communication system enhanced. (See also...) Figure 5b When sampling the data signal, communication device 1 initializes the equalization coefficients used for equalization processing. Furthermore, to adapt to the time-varying characteristics of the communication channel and the complexity of signal transmission, ensuring accurate recovery of the transmitted signal and reducing the bit error rate, communication device 1 continuously updates the equalization coefficients corresponding to the equalization processing and periodically saves the updated equalization coefficients. The storage depth of the equalization coefficients is one. Optionally, the condition for saving the equalization coefficient is that the signal-to-noise ratio (SNR) of the equalized signal obtained based on the equalization coefficient is greater than a certain value, such as 15 dB. If this condition is not met, the equalization coefficient is not saved. Optionally, when saving the equalization coefficient, communication device 1 also saves the SNR of the equalized signal obtained based on the equalization coefficient, and this SNR is denoted as the first SNR.

[0117] Communication device 1 continuously checks whether it receives the end-of-message indication field carried in the end of the message frame from communication device 2. The length of this end-of-message indication field can be n×64 bits, where n is greater than or equal to 1. The end-of-message indication field is used to indicate that the communication between communication device 2 and communication device 1 has ended and the connection with communication device 1 will be disconnected. If yes, communication device 1 stops updating the equalization coefficient after receiving the above end-of-message indication field; otherwise, it continues to update the equalization coefficient.

[0118] When the transmitting end switches from communication device 2 to communication device 3, communication device 3 sends a start message indication field to communication device 1. The length of the start message indication field can also be n×64 bits, used to indicate that communication device 3 will communicate with communication device 1. After receiving the start message indication field, communication device 1 keeps the phase compensation value of the phase shifter unchanged. The phase shifter performs phase shifting processing on the clock signal from communication device 3. Since the difference between the second phase compensation value and the first phase compensation value is less than a preset value, the phase of the phase-shifted clock signal is basically synchronized with the phase of the data signal from communication device 3. Communication device 1 samples the data signal from communication device 3 according to the phase-shifted clock signal to obtain a sampled signal. Then, communication device 1 performs equalization processing on the sampled signal according to the aforementioned stored equalization coefficients to obtain an equalized signal, and determines the signal-to-noise ratio (SNR) of the equalized signal, which is recorded as the second SNR. Communication device 1 determines whether the difference between the first SNR and the second SNR is less than a preset value. If so, it continues to use the above equalization coefficients and updates them accordingly; if not, it redetermines the equalization coefficients to perform equalization processing on the sampled signal. Alternatively, if communication device 1 can also compare the second signal-to-noise ratio with the preset signal-to-noise ratio, and if the difference between the second signal-to-noise ratio and the preset signal-to-noise ratio is less than the preset value, then the above equalization coefficient will continue to be used and updated accordingly; otherwise, the equalization coefficient will be re-determined to perform equalization processing on the sampled signal.

[0119] In this application, the transmitting end can send both data and clock signals to the receiving end. The receiving end can determine the optimal phase compensation value by scanning the bathtub curve and perform phase shifting processing on the clock signal based on this phase compensation value. This ensures that the phase-shifted clock signal is synchronized with the data signal, allowing direct sampling of the data signal based on the phase-shifted clock signal without the need for CDR (Continuous Data Reduction), significantly reducing the time required for clock synchronization and meeting the needs of rapid access scenarios. Furthermore, the receiving end can pre-adjust the phase difference (phase compensation value) between the data and clock signals from different transmitting ends to approximately equal values. This eliminates the need to adjust the phase compensation value of the phase shifter when a switching occurs at the transmitting end, accelerating communication recovery.

[0120] The following describes another process of the data sampling method in this application:

[0121] 301. Receive a first data signal from the second communication device in the first data channel, and receive a first clock signal from the second communication device in the second data channel;

[0122] Similarly, in the initial stage, communication device 1 communicates with communication device 2. Communication device 2 sends a clock signal to communication device 1 through a first data channel and a data signal to communication device 1 through a second data channel. Correspondingly, communication device 1 receives the clock signal through the first data channel and the data signal through the second data channel.

[0123] 302. The first clock signal is phase-shifted according to different phase compensation values, and the first data signal is sampled according to the phase-shifted first clock signal to determine the first phase compensation value corresponding to the best sampling quality.

[0124] Similarly, communication device 1 performs phase shifting processing on the received clock signal using a phase shifter. Communication device 1 then samples the received data signal based on the phase-shifted clock signal to obtain a sampled signal. It also detects the bit error rate or signal-to-noise ratio of the sampled signal and constructs a bathtub curve by repeatedly adjusting the phase compensation value, as described above. Figure 3 and Figure 4 Similar to the example shown, it will not be repeated here. It should be noted that the data signal at this time is not the actual service data, but a random code, such as PRBS7 or PRBS15, or it could be a preamble code. Communication device 1 can determine the first phase compensation value corresponding to the optimal sampling quality based on the bathtub curve.

[0125] 303. The first clock signal is phase-shifted according to the first phase compensation value to obtain the second clock signal;

[0126] After completing the above operations, the transmitting end switches from communication device 3 to communication device 2. Communication device 1 sets the phase compensation value of the phase shifter to the first phase compensation value. The phase shifter performs phase shifting processing on the clock signal from communication device 2 according to the first phase compensation value, so that the phase-shifted clock signal is synchronized with the phase of the data signal from communication device 2.

[0127] 304. Sample the first data signal according to the second clock signal to obtain the first sampled signal.

[0128] Next, communication device 1 samples the data signal from communication device 2 according to the phase-shifted clock signal to obtain a sampled signal. Similarly, after obtaining the sampled signal, it needs to be equalized to obtain an equalized signal. When sampling the data signal, communication device 1 initializes the equalization coefficients used for equalization. In addition, to adapt to the time-varying characteristics of the communication channel and the complexity of the signal transmission process, to ensure that the transmitted signal can be correctly recovered and the bit error rate is reduced, communication device 1 continuously updates the equalization coefficients corresponding to the equalization process and periodically saves the updated equalization coefficients. The storage depth of the equalization coefficients is 1. Optionally, the condition for saving the equalization coefficient is that the signal-to-noise ratio of the equalized signal obtained based on the equalization coefficient is greater than a certain value, such as 13dB. If the condition is not met, the equalization coefficient is not saved. Optionally, when saving the equalization coefficient, communication device 1 also saves the signal-to-noise ratio of the equalized signal obtained based on the equalization coefficient. This signal-to-noise ratio is recorded as the first signal-to-noise ratio.

[0129] Communication device 1 continuously checks whether it receives the end-of-message indication field carried in the end of the message frame from communication device 2. The length of this end-of-message indication field can be n×64 bits, where n is greater than or equal to 1. The end-of-message indication field is used to indicate that the communication between communication device 2 and communication device 1 has ended and the connection with communication device 1 will be disconnected. If yes, communication device 1 stops updating the equalization coefficient after receiving the above end-of-message indication field; otherwise, it continues to update the equalization coefficient.

[0130] When the transmitting end switches from communication device 2 to communication device 3, communication device 3 sends a start message indication field to communication device 1. The length of the start message indication field can also be n×64 bits, used to indicate that communication device 3 will communicate with communication device 1. After receiving the start message indication field, communication device 1 performs phase shifting processing on the clock signal of communication device 3 through a phase shifter. Communication device 1 samples the data signal of communication device 3 based on the phase-shifted clock signal to obtain a sampled signal, and detects the bit error rate or signal-to-noise ratio of the sampled signal. By adjusting the phase compensation value multiple times, a bathtub curve is constructed. It should be noted that the data signal at this time is not the actual service data, but a random code, such as PRBS7 or PRBS15, or it can also be a preamble code. Communication device 1 can determine the second phase compensation value corresponding to the optimal sampling quality based on the bathtub curve. Afterwards, communication device 1 updates the phase compensation value of the phase shifter to the second phase compensation value. The phase shifter performs phase shifting processing on the clock signal from communication device 3, so that the phase-shifted clock signal is synchronized with the phase of the data signal from communication device 3.

[0131] Communication device 1 samples the data signal from communication device 3 based on the phase-shifted clock signal to obtain a sampled signal. Then, communication device 1 performs equalization processing on the sampled signal according to the previously stored equalization coefficients to obtain an equalized signal, and determines the signal-to-noise ratio (SNR) of this equalized signal, which is denoted as the second SNR. Communication device 1 determines whether the difference between the first SNR and the second SNR is less than a preset value. If so, the aforementioned equalization coefficients are continued and updated accordingly; otherwise, the equalization coefficients are re-determined to perform equalization processing on the sampled signal. Alternatively, communication device 1 can also compare the second SNR with a preset SNR. If the difference between the second SNR and the preset SNR is less than the preset value, the aforementioned equalization coefficients are continued and updated accordingly; otherwise, the equalization coefficients are re-determined to perform equalization processing on the sampled signal.

[0132] In this application, the transmitting end can send the data signal and the clock signal together to the receiving end. The receiving end can determine the optimal phase compensation value between the data signal and the clock signal by scanning the bathtub curve, and perform phase shifting processing on the clock signal based on the phase compensation value, so that the phase-shifted clock signal is synchronized with the data signal. Thus, the data signal can be sampled directly based on the phase-shifted clock signal without CDR, which greatly reduces the time required for clock synchronization and can meet the needs of fast access scenarios.

[0133] The data sampling method in this application has been described above. The communication device in this application is described below:

[0134] Please see Figure 6The communication device in this application includes a PD, TIA, CTLE, VGA, phase shifter, sampling module, AGC, FEE, FEC, and phase scanning module. This communication device is used to implement the operation of the first communication device in the aforementioned embodiments. The PD is responsible for converting the received optical signal (data signal) into a corresponding electrical signal. The TIA mainly converts the weak current signal output by the PD into a voltage signal and performs preliminary amplification. The CTLE is used to compensate for the distortion caused by high-frequency attenuation during signal transmission. The VGA is responsible for dynamically adjusting the signal gain during signal reception to adapt to signals of different intensities. When the received signal is weak, the VGA increases the gain to amplify the signal; when the signal is too strong, the gain decreases to avoid signal saturation or distortion. The phase shifter is used to phase-shift the clock signal from the transmitter, similar to the method described in the previous embodiments, and will not be repeated here. The sampling module is responsible for sampling the data signal from the transmitter based on the phase-shifted clock signal. The sampling module can be an S&H or an ADC. The AGC is responsible for automatically adjusting the receiver gain during signal reception to maintain a basically stable output signal level. The FFE can adjust the waveform of the signal so that it can better match the expected signal waveform at the receiver, thereby improving the eye diagram quality of the signal and reducing the bit error rate. The FFE is usually used in high-speed serial data communication, such as the receiver part of a serial deserializer, to compensate for frequency attenuation and phase distortion in the transmission channel. The FEC encodes the transmitted data at the transmitter and adds redundant bits (check bits) to detect and correct bit errors generated during transmission at the receiver. The phase scanning module can be a chip used to enable the communication device to perform various operations as described in the foregoing embodiments. For example, it can receive a sampled signal from the sampling module, determine the aforementioned first phase compensation value based on the quality of the sampled signal, and configure the first phase compensation value into a phase shifter so that the phase shifter shifts the received clock signal according to the first phase compensation value. The phase scanning module can also receive the equalization signal obtained by FFE processing, thereby determining the signal-to-noise ratio corresponding to the equalization signal. It should be noted that the PD, TIA, and AGC mentioned above are optional, and these modules may not be present in the communication device.

[0135] Please see Figure 7 The communication device 700 in this application includes a transceiver unit 701 and a processing unit 702. The communication device 700 is used to perform the operation of the first communication device in the foregoing embodiments.

[0136] The transceiver unit 701 is used to receive a first data signal from the second communication device in the first data channel and to receive a first clock signal from the second communication device in the second data channel.

[0137] The processing unit 702 is used to perform phase shifting processing on the first clock signal according to different phase compensation values, and to sample the first data signal according to the phase-shifted first clock signal to determine the first phase compensation value corresponding to the best sampling quality.

[0138] The processing unit 702 is further configured to perform phase shifting processing on the first clock signal according to the first phase compensation value to obtain the second clock signal.

[0139] The processing unit 702 is further configured to sample the first data signal according to the second clock signal to obtain the first sampled signal.

[0140] In one possible implementation,

[0141] The transceiver unit 701 is also configured to receive a second data signal from a third communication device in the first data channel and a third clock signal from a third communication device in the second data channel.

[0142] The processing unit 702 is also used to perform phase shifting processing on the third clock signal according to different phase compensation values, and to sample the second data signal according to the phase-shifted third clock signal to determine the second phase compensation value corresponding to the best sampling quality.

[0143] The processing unit 702 is also used to adjust the clock phase of the third communication device so that the difference between the second phase compensation value and the first phase compensation value is less than a preset value.

[0144] In one possible implementation,

[0145] The processing unit 702 is also used to perform equalization processing on the first sampled signal to obtain a first equalized signal.

[0146] The processing unit 702 is also used to update the equalization coefficients for equalization processing of the first sampled signal.

[0147] The processing unit 702 is also used to periodically save the updated balance coefficients.

[0148] The transceiver unit 701 is also configured to receive first indication information from the second communication device in the first data channel, the first indication information being used to instruct the second communication device to disconnect from the first communication device.

[0149] The processing unit 702 is also configured to stop updating the equalization coefficients of the first sampled signal according to the first instruction information.

[0150] The processing unit 702 is also used to perform phase shifting processing on the third clock signal according to the first phase compensation value to obtain the fourth clock signal.

[0151] The processing unit 702 is also configured to sample the second data signal according to the fourth clock signal to obtain the second sampled signal.

[0152] The processing unit 702 is also used to perform equalization processing on the second sampled signal according to the stored equalization coefficients to obtain the second equalized signal.

[0153] In one possible implementation,

[0154] The processing unit 702 is also used to determine the first signal-to-noise ratio corresponding to the stored equalization coefficients.

[0155] The processing unit 702 is also used to determine the second signal-to-noise ratio of the second equalization signal.

[0156] The processing unit 702 is also used to determine whether the difference between the second signal-to-noise ratio and the first signal-to-noise ratio is less than a preset value. If not, it redetermines the equalization coefficient for equalization processing of the second sampled signal.

[0157] In one possible implementation,

[0158] The processing unit 702 is also used to determine the second signal-to-noise ratio of the second equalization signal.

[0159] The processing unit 702 is also used to determine whether the difference between the second signal-to-noise ratio and the preset signal-to-noise ratio is less than the preset value. If not, it redetermines the equalization coefficient for equalization processing of the second sampled signal.

[0160] In one possible implementation,

[0161] The transceiver unit 701 is also configured to receive a second data signal from a third communication device in the first data channel and a third clock signal from a third communication device in the second data channel.

[0162] The processing unit 702 is also used to perform phase shifting processing on the third clock signal according to different phase compensation values, and to sample the second data signal according to the phase-shifted third clock signal to determine the second phase compensation value corresponding to the best sampling quality.

[0163] The processing unit 702 is also used to perform phase shifting processing on the third clock signal according to the second phase compensation value to obtain the fifth clock signal.

[0164] The processing unit 702 is also configured to sample the second data signal according to the fifth clock signal to obtain the third sampled signal.

[0165] In one possible implementation,

[0166] The processing unit 702 is also used to perform equalization processing on the first sampled signal to obtain a first equalized signal.

[0167] The processing unit 702 is also used to update the equalization coefficients for equalization processing of the first sampled signal.

[0168] The processing unit 702 is also used to periodically save the updated balance coefficients.

[0169] The transceiver unit 701 is also configured to receive first indication information from the second communication device in the first data channel, the first indication information being used to instruct the second communication device to disconnect from the first communication device.

[0170] The processing unit 702 is also configured to stop updating the equalization coefficients of the first sampled signal according to the first instruction information.

[0171] The processing unit 702 is also used to perform equalization processing on the third sampled signal according to the stored equalization coefficients to obtain the second equalization signal.

[0172] In one possible implementation,

[0173] The processing unit 702 is also used to determine the first signal-to-noise ratio corresponding to the stored equalization coefficients.

[0174] The processing unit 702 is also used to determine the second signal-to-noise ratio of the second equalization signal.

[0175] The processing unit 702 is also used to determine whether the difference between the second signal-to-noise ratio and the first signal-to-noise ratio is less than a preset value. If not, it redetermines the equalization coefficient for equalization processing of the fourth sampled signal.

[0176] In one possible implementation,

[0177] The processing unit 702 is also used to determine the second signal-to-noise ratio of the second equalization signal.

[0178] The processing unit 702 is also used to determine whether the difference between the second signal-to-noise ratio and the preset signal-to-noise ratio is less than the preset value. If not, it redetermines the equalization coefficient for equalization processing of the fourth sampled signal.

[0179] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0180] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection between apparatuses or units through some interfaces, and may be electrical, mechanical, or other forms.

[0181] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0182] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

Claims

1. A method of data sampling, characterized by, The application is applied to a first communication device, the first communication device comprises a first data channel and a second data channel, the first data channel is used for receiving a data signal, and the second data channel is used for receiving a clock signal, and the application comprises the following steps: receiving a first data signal from a second communication device through the first data channel and receiving a first clock signal from the second communication device through the second data channel; performing phase shift processing on the first clock signal according to different phase compensation values and sampling the first data signal according to the first clock signal after the phase shift processing to determine a first phase compensation value corresponding to the best sampling quality; performing phase shift processing on the first clock signal according to the first phase compensation value to obtain a second clock signal; sampling the first data signal according to the second clock signal to obtain a first sampling signal.

2. The method of claim 1, wherein, The method further comprises the following steps: receiving a second data signal from a third communication device through the first data channel and receiving a third clock signal from the third communication device through the second data channel; performing phase shift processing on the third clock signal according to different phase compensation values and sampling the second data signal according to the third clock signal after the phase shift processing to determine a second phase compensation value corresponding to the best sampling quality; adjusting the clock phase of the third communication device so that the difference between the second phase compensation value and the first phase compensation value is less than a preset value.

3. The method of claim 2, wherein, The method further comprises the following steps: performing equalization processing on the first sampling signal to obtain a first equalization signal; updating the equalization coefficient for equalization processing on the first sampling signal; periodically saving the updated equalization coefficient; receiving first indication information from the second communication device through the first data channel, the first indication information being used for indicating that the second communication device is disconnected from the first communication device; stopping the update of the equalization coefficient for equalization processing on the first sampling signal according to the first indication information; performing phase shift processing on the third clock signal according to the first phase compensation value to obtain a fourth clock signal; sampling the second data signal according to the fourth clock signal to obtain a second sampling signal; performing equalization processing on the second sampling signal according to the saved equalization coefficient to obtain a second equalization signal.

4. The method of claim 3, wherein, The method further comprises the following steps: determining a first signal-to-noise ratio corresponding to the saved equalization coefficient; determining a second signal-to-noise ratio of the second equalization signal; determining whether the difference between the second signal-to-noise ratio and the first signal-to-noise ratio is less than a preset value, and if not, re-determining the equalization coefficient for equalization processing on the second sampling signal.

5. The method of claim 3, wherein, The method further comprises the following steps: determining a second signal-to-noise ratio of the second equalization signal; determining whether the difference between the second signal-to-noise ratio and a preset signal-to-noise ratio is less than a preset value, and if not, re-determining the equalization coefficient for equalization processing on the second sampling signal.

6. The method of claim 1, wherein, The method further comprises the following steps: receiving a second data signal from a third communication device through the first data channel and receiving a third clock signal from the third communication device through the second data channel; The third clock signal is phase-shifted according to different phase compensation values, and the second data signal is sampled according to the phase-shifted third clock signal to determine a second phase compensation value corresponding to the best sampling quality; The third clock signal is phase-shifted according to the second phase compensation value to obtain a fifth clock signal; The second data signal is sampled according to the fifth clock signal to obtain a third sampling signal.

7. The method of claim 6, wherein, The method further comprises: The first sampling signal is equalized to obtain a first equalized signal; The equalization coefficient for equalizing the first sampling signal is updated; The updated equalization coefficient is periodically saved; The first data channel receives first indication information from the second communication device, the first indication information being used to indicate that the second communication device is disconnected from the first communication device; According to the first indication information, the update of the equalization coefficient for equalizing the first sampling signal is stopped; The third sampling signal is equalized according to the saved equalization coefficient to obtain a second equalized signal.

8. The method of claim 7, wherein, The method further comprises: A first signal-to-noise ratio corresponding to the saved equalization coefficient is determined; A second signal-to-noise ratio of the second equalized signal is determined; It is determined whether the difference between the second signal-to-noise ratio and the first signal-to-noise ratio is less than a preset value, and if not, the equalization coefficient for equalizing the fourth sampling signal is re-determined.

9. The method of claim 7, wherein, The method further comprises: A second signal-to-noise ratio of the second equalized signal is determined; It is determined whether the difference between the second signal-to-noise ratio and a preset signal-to-noise ratio is less than a preset value, and if not, the equalization coefficient for equalizing the fourth sampling signal is re-determined.

10. A communication device, characterized by The communication device comprises a chip, and the communication device performs the method according to any one of claims 1 to 9 based on the chip.

11. A communication device, characterized by The chip comprises functional modules for performing the method according to any one of claims 1 to 9.

12. A chip, characterized by The chip is used to perform the method according to any one of claims 1 to 9.