Equalization parameter determination method and device, first equipment, storage medium and program product

By parsing the data using the initial sampling clock and default receive equalization parameters, and if unsuccessful, restoring the target sampling clock and adaptively adjusting the parameters, the problem of unknown equalization transmission parameters at the receiver is solved, thus improving the success rate and robustness of data transmission.

CN121792010APending Publication Date: 2026-04-03WUXI STARS MICRO SYSTEM TECHNOLOGIES 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
2025-12-22
Publication Date
2026-04-03

AI Technical Summary

Technical Problem

When high-speed data transmission occurs between the sending and receiving ends, the receiving end has difficulty accurately parsing the data sent by the sending end because it does not know the accurate equalization transmission parameters.

Method used

The data is parsed using the initial sampling clock and the default receive equalization parameters. If this fails, the target sampling clock is restored. If this still fails, the default receive equalization parameters are adjusted using adaptive parameter tuning until the target receive equalization parameters are determined.

Benefits of technology

It significantly improves reception success rate, link robustness and system throughput efficiency, shortens lock-in time, and automatically converges to optimal parameters in harsh signal environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121792010A_ABST
    Figure CN121792010A_ABST
Patent Text Reader

Abstract

The invention relates to an equalization parameter determination method and device, first equipment, a storage medium and a program product. The method comprises the following steps: in response to receiving target data sent by a second device, analyzing the target data based on an initial sampling clock and a default receiving equalization parameter; if the target data is not successfully analyzed in the preset clock period, recovering the target sampling clock from the target data again, and analyzing the target data based on the target sampling clock; and if the target data is not successfully analyzed based on the target sampling clock, adjusting the default receiving equalization parameter by adopting an adaptive parameter adjustment operation to obtain a target receiving equalization parameter of the first equipment, so as to analyze the target data based on the target receiving equalization parameter. By adopting the method, the target receiving equalization parameter can be found for the first equipment and data analysis is carried out based on the target receiving equalization parameter in a mode of analyzing the data step by step in three modes of parameter default, clock recovery and adaptive parameter adjustment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data transmission technology, and in particular to a method, apparatus, first device, storage medium, and program product for determining equalization parameters. Background Technology

[0002] When transmitting data at high speed between the sending and receiving ends, the data may be distorted during transmission. To avoid this problem, the desired balanced transmission parameters can be set at the sending end, and a suitable set of receiving parameters can be found at the receiving end to match the corresponding balanced receiving parameters of the sending end, so that the data can be correctly parsed.

[0003] Currently, the method to achieve the matching of equalization parameters between the receiver and the transmitter is through the equalization operation performed by the Link Training State Machine (LTSSM) described in the PCIE protocol during the equalization recovery phase and when the link is unreliable, in order to select the optimal equalization parameters to improve the quality of data transmission.

[0004] However, in some scenarios, the receiving end may not know the accurate equalization transmission parameters, making it difficult for the receiving end to accurately parse the data sent by the sending end. Summary of the Invention

[0005] Therefore, it is necessary to provide a method, apparatus, first device, storage medium, and program product for determining the equalization parameters of data transmitted by the sending end, which can accurately analyze the above-mentioned technical problems.

[0006] In a first aspect, this application provides a method for determining equalization parameters, applied to a first device, comprising:

[0007] In response to receiving target data sent by the second device, the target data is parsed based on the initial sampling clock and the default receive equalization parameters;

[0008] If the target data is not successfully parsed within the preset clock cycle, the target sampling clock is recovered from the target data and the target data is parsed based on the target sampling clock.

[0009] If the target data is not successfully parsed based on the target sampling clock, an adaptive parameter tuning operation is used to adjust the default receive equalization parameters to obtain the target receive equalization parameters of the first device, and then the target data is parsed based on the target receive equalization parameters.

[0010] In one embodiment, the above-mentioned adaptive parameter tuning operation adjusts the default receive equalization parameters to obtain the target receive equalization parameters of the first device, including:

[0011] An adaptive parameter tuning operation is adopted to adjust the default receive equalization parameters, determine the first candidate receive equalization parameters of the first device, and obtain the channel quality parameters corresponding to the first candidate receive equalization parameters.

[0012] Based on the channel quality parameters and preset thresholds, the target reception equalization parameters of the first device are determined.

[0013] In one embodiment, determining the target reception equalization parameters of the first device based on channel quality parameters and a preset threshold includes:

[0014] If the channel quality parameter is greater than the preset threshold, the target data is parsed based on the first candidate receive equalization parameter, and if the parsing is successful, the first candidate receive equalization parameter is determined as the target receive equalization parameter.

[0015] If the channel quality parameter is not greater than the preset threshold, then return to the steps of using adaptive parameter tuning to adjust the default receive equalization parameter, determine the first candidate receive equalization parameter of the first device, and obtain the channel quality parameter corresponding to the first candidate receive equalization parameter, until the channel quality parameter corresponding to the determined first candidate receive equalization parameter is greater than the preset threshold.

[0016] In one embodiment, the method further includes:

[0017] If the channel quality parameter is greater than the preset threshold, the target data is parsed based on the first candidate receive equalization parameter. If the parsing fails, the process returns to the step of recovering the target sampling clock from the target data and parsing the target data based on the target sampling clock.

[0018] In one embodiment, the method further includes:

[0019] If the number of adaptive parameter tuning operations exceeds the preset number when the channel quality parameters are not greater than the preset threshold, an interruption message will be sent to the control terminal.

[0020] In one embodiment, the method further includes:

[0021] When the state controller corresponding to the first device matches the target state, the initial sampling clock is recovered from the target data;

[0022] The target state refers to the state of interest among the various states pre-configured in the state controller; under the state of interest, the second device and the first device establish a connection for the first time, or the transmission parameters of the second device change abruptly.

[0023] Secondly, this application also provides a device for determining equalization parameters, applied to a first device, comprising:

[0024] The parsing module is used to parse the target data based on the initial sampling clock and default receive equalization parameters in response to receiving the target data sent by the second device.

[0025] The recovery module is used to recover the target transmission clock from the target data if the target data is not successfully parsed within a preset clock cycle, and then parse the target data based on the target transmission clock.

[0026] The determination module is used to determine the target reception equalization parameters of the first device by means of adaptive parameter tuning if the target data is not successfully parsed based on the target sampling period, so as to parse the target data based on the target reception equalization parameters.

[0027] Thirdly, this application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:

[0028] In response to receiving target data sent by the second device, the target data is parsed based on the initial sampling clock and the default receive equalization parameters;

[0029] If the target data is not successfully parsed within the preset clock cycle, the target sampling clock is recovered from the target data and the target data is parsed based on the target sampling clock.

[0030] If the target data is not successfully parsed based on the target sampling clock, an adaptive parameter tuning operation is used to adjust the default receive equalization parameters to obtain the target receive equalization parameters of the first device, and then the target data is parsed based on the target receive equalization parameters.

[0031] Fourthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, performs the following steps:

[0032] In response to receiving the target data sent by the second device, the target data is parsed based on the default receive equalization parameters according to the initial sampling clock.

[0033] If the target data is not successfully parsed within the preset clock cycle, the target sampling clock is recovered from the target data and the target data is parsed based on the target sampling clock.

[0034] If the target data is not successfully parsed based on the target sampling clock, an adaptive parameter tuning operation is used to adjust the default receive equalization parameters to obtain the target receive equalization parameters of the first device, and then the target data is parsed based on the target receive equalization parameters.

[0035] Fifthly, this application also provides a computer program product, including a computer program that, when executed by a processor, performs the following steps:

[0036] In response to receiving target data sent by the second device, the target data is parsed based on the initial sampling clock and the default receive equalization parameters;

[0037] If the target data is not successfully parsed within the preset clock cycle, the target sampling clock is recovered from the target data and the target data is parsed based on the target sampling clock.

[0038] If the target data is not successfully parsed based on the target sampling clock, an adaptive parameter tuning operation is used to adjust the default receive equalization parameters to obtain the target receive equalization parameters of the first device, and then the target data is parsed based on the target receive equalization parameters.

[0039] The aforementioned method, apparatus, first device, storage medium, and program product for determining equalization parameters first parse data based on the initial sampling clock and default receive equalization parameters. If parsing fails within a preset clock cycle, the target sampling clock is restored from the target data to parse the target data. If parsing still fails, an adaptive parameter tuning operation is used to adjust the default receive equalization parameters to obtain the target receive equalization parameters, which are then used to parse the target data. This method, through the step-by-step parsing of data using default parameters, restored clock, and adaptive parameter tuning, not only finds the target receive equalization parameters for the first device to parse data based on them, but also avoids the need for complex algorithms all at once. This shortens the locking time under conventional links and ensures that the system can automatically converge to the optimal parameter settings even under harsh signal conditions, significantly improving the reception success rate, link robustness, and system throughput efficiency. Attached Figure Description

[0040] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0041] Figure 1 This is an application environment diagram of the method for determining the equilibrium parameters in one embodiment;

[0042] Figure 2 This is a flowchart illustrating a method for determining the equilibrium parameters in one embodiment;

[0043] Figure 3 This is a flowchart illustrating the method for determining the equilibrium parameters in another embodiment;

[0044] Figure 4 This is a flowchart illustrating the method for determining the equilibrium parameters in another embodiment;

[0045] Figure 5 This is a flowchart illustrating the method for determining the equilibrium parameters in another embodiment;

[0046] Figure 6 This is a flowchart illustrating the method for determining the equilibrium parameters in another embodiment;

[0047] Figure 7 This is a flowchart illustrating the method for determining the equilibrium parameters in another embodiment;

[0048] Figure 8 This is a flowchart illustrating the method for determining the equilibrium parameters in another embodiment;

[0049] Figure 9 This is a structural block diagram of a device for determining the equalization parameters in one embodiment;

[0050] Figure 10 This is an internal structural diagram of the first device in one embodiment. Detailed Implementation

[0051] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0052] When transmitting data at high speed between the sending and receiving ends, the data may be distorted during transmission. To avoid this problem, the desired balanced transmission parameters can be set at the sending end, and a suitable set of receiving parameters can be found at the receiving end to match the corresponding balanced receiving parameters of the sending end, so that the data can be correctly parsed.

[0053] Currently, the method to achieve the matching of equalization parameters between the receiver and the transmitter is through the equalization operation performed by the Link Training State Machine (LTSSM) described in the PCIE protocol during the equalization recovery phase and when the link is unreliable, in order to select the optimal equalization parameters to improve the quality of data transmission.

[0054] However, in some scenarios, the receiving end may not have accurate equalization transmission parameters, making it difficult for the receiving end to accurately parse the data sent by the sending end. Therefore, this application provides a method for determining equalization parameters to solve the above problem.

[0055] The method for determining the equilibrium parameters provided in this application embodiment can be applied to, for example, Figure 1In the application environment shown, the environment includes a first device 102, a second device 104, a first state controller 106, and a second state controller 108. The first state controller 106 and the second state controller 108 can be Link Training and Status State Machines (LTSSMs). The first state controller 106 and the second state controller 108 are used to ensure that the physical layer parameters, clock recovery, channel skew, and signal integrity of the first device 102 and the second device 104 are always within the operable window required by the protocol, thereby providing a reliable, error-correcting, and dynamically power-managed serial channel for the data link layer. The first state controller 106 can be located inside or outside the first device 102 and is communicatively connected to the first device 102. The second state controller 108 can be located inside or outside the second device 104 and is communicatively connected to the second device 104.

[0056] The first state controller 106 monitors the state of the first device 102, and the second state controller 108 monitors the state of the second device 104. The first device 102 and the second device 104 also communicate with each other. The first device 102 can send data to the second device 104, and the second device 104 can also send data to the first device 102. In other words, the first device 102 and the second device 104 can both be both senders and receivers. The first device 102 and the second device 104 can be, but are not limited to, various personal computers, laptops, smartphones, tablets, IoT devices, and portable wearable devices. IoT devices can include smart speakers, smart TVs, smart air conditioners, smart in-vehicle devices, etc. Portable wearable devices can include smartwatches, smart bracelets, head-mounted devices, etc.

[0057] In one exemplary embodiment, such as Figure 2 As shown, a method for determining the equilibrium parameters is provided, and this method is applied to... Figure 1 The following explanation will be based on the first device 102 in the example, including:

[0058] S201. In response to receiving the target data sent by the second device, the target data is parsed based on the initial sampling clock and the default receive equalization parameters.

[0059] The initial sampling clock refers to the sampling clock initially recovered from the target data. It should be noted that as long as the first device receives the target data sent by the second device, regardless of whether the second device and the first device are establishing a connection for the first time, or the second device's transmission parameters change abruptly, or the first device and the second device are in any other state, the first device can recover the initial sampling clock from the target data.

[0060] The default receive equalization parameter refers to the receive equalization parameter preset in the first device. The default equalization parameter can first cancel out the severe inter-symbol interference (ISI) / attenuation in the received data, so that the eye diagram can meet the sampling tolerance again. Only then can the clock be scrambled, the bits be judged, and the symbols be aligned normally, thereby realizing the parsing of the data.

[0061] In this embodiment, when the first device is the receiver, the second device is the sender. When the first device receives the target data sent by the second device, it can first recover the initial sampling clock and attempt to parse the target data based on the initial sampling clock and the default receive equalization parameters.

[0062] S202. If the target data is not successfully parsed within the preset clock cycle, the target sampling clock is recovered from the target data and the target data is parsed based on the target sampling clock.

[0063] The preset clock period is a pre-set time period used to determine whether the target data can be successfully parsed within the preset clock period based on the initial sampling clock and the default receive equalization parameters.

[0064] In this embodiment, if the target data is not successfully parsed within a preset clock cycle based on the initial sampling clock and the default receive equalization parameters, an attempt will be made to reset the clock and data recovery (CDR) module to see if the target sampling clock can be recovered from the target data again in a short time by resetting the CDR module, and the target data will be parsed based on the target sampling clock.

[0065] Optionally, the phase interpolator, loop filter, and sampling clock of the clock recovery module can be reinitialized, allowing the clock recovery module to re-scan and lock the edge data sampling points within the link recovery window specified in the protocol. If the bit error rate of the recovered data falls below the set threshold after the reset, it is considered that the parsing capability can be restored by resetting the clock recovery module within a short period of time.

[0066] Optionally, the clock recovery module can first extract the frequency and phase from the data transition edge and output a sampling clock synchronized with the target data. Then, the data parsing circuit (e.g., sampler, deserializer, 8b / 10b or 128b / 130b decoder, etc.) can only make an accurate determination of the eye diagram center on the rising / falling edge of this recovered clock to obtain error-free bits, symbols and blocks. If the clock recovery module loses its lock, it will cause the sampling clock to drift, and the parser will immediately produce bit errors. Therefore, the clock recovery module is the timing reference for data parsing. Without a stable recovery clock, all subsequent parsing actions are meaningless.

[0067] S203. If the target data is not successfully parsed based on the target sampling clock, an adaptive parameter tuning operation is adopted to adjust the default receiving equalization parameters to obtain the target receiving equalization parameters of the first device, so as to parse the target data based on the target receiving equalization parameters.

[0068] The adaptive parameter tuning operation refers to the process where the serializer SerDes continuously modifies the CTLE / DFE / VGA taps, gain, and clock phase of the first device within the time window specified by the protocol using an adaptive algorithm. Simultaneously, based on the bit error rate or eye diagram, it continues until it finds the set of equalization parameters that maximizes the eye diagram and minimizes the bit error rate (BER). After finding the optimal receive equalization parameters through adaptive parameter tuning, the optimal receive equalization parameters can be reported to the first device. Subsequently, the first device will formally parse the received data according to this set of optimal receive equalization parameters.

[0069] In this embodiment, if the target data has not been successfully parsed based on the target sampling clock, an adaptive parameter tuning operation will be adopted, so that after the serializer SerDes obtains the bit error rate or eye diagram, it can send the bit error rate or eye diagram to the first device, so that the first device can adjust the default receive equalization parameters based on the bit error rate and eye diagram to obtain the target receive equalization parameters, and then parse the target data based on the target receive equalization parameters.

[0070] It should be noted that the eye diagram is scanned by the sampler in the SerDes serializer, and the bit error rate is counted by the checker in the SerDes serializer. Both the eye diagram and the bit error rate are parameters provided free of charge by the off-the-shelf circuitry in the SerDes serializer.

[0071] In this embodiment, data is first parsed based on the initial sampling clock and default receive equalization parameters. If parsing fails within a preset clock cycle, the target sampling clock is restored from the target data to parse the target data. If parsing still fails, an adaptive parameter tuning operation is used to adjust the default receive equalization parameters to obtain the target receive equalization parameters. The target data is then parsed based on these target receive equalization parameters. This method, through the step-by-step parsing of data using default parameters, restored clock, and adaptive parameter tuning, not only finds the target receive equalization parameters for the first device and performs data parsing based on them, but also avoids the need for complex algorithms all at once. This shortens the locking time under conventional links and ensures that the system can automatically converge to the optimal parameter settings even in harsh signal environments, significantly improving the reception success rate, link robustness, and system throughput efficiency.

[0072] In this embodiment, in the above Figure 2 Based on the illustrated embodiment, the detailed process of updating the head pointer value of the preset circular queue based on the relationship between the head pointer values ​​of the first request and the head pointer values ​​of the second request will be explained. In an exemplary embodiment, such as Figure 3 As shown, the above S203 includes:

[0073] S301. Adaptive parameter tuning operation is used to adjust the default receive equalization parameters, determine the first candidate receive equalization parameters of the first device, and obtain the channel quality parameters corresponding to the first candidate receive equalization parameters.

[0074] Channel quality parameters are a set of electrical indices used to quantify the degree of signal integrity degradation introduced by the transmission medium of a high-speed serial link at a specific signaling rate. They typically include insertion loss (IL), return loss (RL), insertion loss deviation (ILD), near-end crosstalk (NEXT / Far-end crosstalk (FEXT), time domain reflection (TDR) impedance discontinuity, vertical eye height (VEH), horizontal eye width (HEW), eye area (EA), signal-to-noise ratio (SNR), and peak-to-peak jitter in the channel impulse response. These indices collectively characterize the combined impact of the channel on the amplitude attenuation, phase distortion, reflected noise, and random / deterministic jitter of the transmitted signal, providing quantitative basis for link training, equalization pre-emphasis / deemphasis strategies, clock recovery performance, and final link margin assessment.

[0075] In this embodiment, if the target data has not been successfully parsed based on the sampling clock, an adaptive parameter tuning operation will be adopted. After the serializer SerDes obtains the bit error rate or eye diagram, it can send the bit error rate or eye diagram to the first device. This allows the first device to adjust the default receive equalization parameters based on the bit error rate and eye diagram to obtain the first candidate receive equalization parameters. After the adaptive parameter tuning operation, the channel quality parameter fom value corresponding to the first candidate receive equalization parameters is obtained.

[0076] S302. Determine the target reception equalization parameters of the first device based on the channel quality parameters and the preset threshold.

[0077] In this embodiment, after obtaining the channel quality parameters, the target reception equalization parameters of the first device can be determined based on the relationship between the channel quality parameters and the preset threshold.

[0078] Optionally, if the channel quality parameter is greater than the preset threshold, it indicates that the link quality may meet the requirements at this time. It is necessary to parse the target data based on the first candidate receive equalization parameter, and determine the target receive equalization parameter of the first device based on the parsing result of the target data.

[0079] Optionally, if the channel quality parameters are not greater than the preset threshold, it means that the link quality cannot meet the requirements at this time, and the parameters need to be readjusted to obtain the target reception parameters of the first device.

[0080] Optionally, a method for determining the target receive equalization parameters of a first device based on channel quality parameters and a preset threshold is provided below. See [link to relevant documentation]. Figure 4 The aforementioned S302 includes:

[0081] S3021. If the channel quality parameter is greater than the preset threshold, the target data is parsed based on the first candidate receiving equalization parameter, and if the parsing is successful, the first candidate receiving equalization parameter is determined as the target receiving equalization parameter.

[0082] In this embodiment, if the channel quality parameter is greater than the preset threshold, it means that the link quality may meet the requirements, but there may also be situations where the data boundary cannot be found or the code stream cannot be parsed. Therefore, it is necessary to parse the target data based on the first candidate receiving equalization parameter, and if the parsing is successful, the first candidate receiving equalization parameter is directly determined as the target receiving equalization parameter.

[0083] S3022. If the channel quality parameter is not greater than the preset threshold, then return to perform the adaptive parameter tuning operation, adjust the default receive equalization parameter, determine the first candidate receive equalization parameter of the first device, and obtain the channel quality parameter corresponding to the first candidate receive equalization parameter, until the channel quality parameter corresponding to the determined first candidate receive equalization parameter is greater than the preset threshold.

[0084] In this embodiment, if the channel quality parameter is not greater than the preset threshold, it indicates that the link quality cannot meet the requirements and the parameters need to be readjusted. Therefore, the process can return to step S301 to perform adaptive parameter tuning, adjust the default receive equalization parameter, redetermine the first candidate receive equalization parameter of the first device, and obtain the channel quality parameter corresponding to the first candidate receive equalization parameter. Then, it is determined again whether the channel quality parameter is greater than the preset threshold. If it is greater, step S3021 is executed. If it is not greater, the process continues to return to step S301 until the channel quality parameter corresponding to the determined first candidate receive equalization parameter is greater than the preset threshold.

[0085] In this embodiment, by using a closed-loop iteration of adaptive parameter tuning, measuring channel quality parameters, and comparing channel quality parameters with thresholds, the first candidate equalization configuration is quickly screened out. This ensures that the final target receive equalization parameters are not only successfully parsed, but also have a quantifiable and controllable positive link margin, thereby significantly improving the robustness of the first device to channel attenuation, crosstalk, and random jitter, as well as its long-term transmission reliability.

[0086] In this embodiment, in the above Figure 4 Based on the illustrated embodiment, further explanation can be provided regarding the situation where target data cannot be successfully parsed based on the first candidate receive equalization parameters when the channel quality parameters are greater than a preset threshold. Figure 5As shown, the above method also includes:

[0087] S3023. If the channel quality parameter is greater than the preset threshold, parse the target data based on the first candidate receiving equalization parameter, and if the parsing fails, return to the step of recovering the target sampling clock from the target data and parsing the target data based on the target sampling clock.

[0088] In this embodiment, if the channel quality parameter is greater than the preset threshold, it means that the link quality may meet the requirements, but there may also be situations where the data boundary cannot be found or the code stream cannot be parsed. Therefore, it is necessary to parse the target data based on the first candidate receive equalization parameter. If the parsing fails, return to the above step S202 to recover the target sampling clock from the target data and parse the target data based on the target sampling clock. If the target data still cannot be parsed based on the target sampling clock, continue to step S203, adopt adaptive parameter tuning operation, adjust the default receive equalization parameter to obtain the target receive equalization parameter of the first device, and parse the target data based on the target receive equalization parameter.

[0089] In this embodiment, by dynamically verifying channel quality and using an adaptive resynchronization mechanism, the success rate of data parsing and the reliability of transmission in high-noise environments are significantly improved.

[0090] In this embodiment, in the above Figure 4 Based on the illustrated embodiment, a detailed explanation can be provided regarding the situation where the number of adaptive parameter tuning operations exceeds a preset number when the channel quality parameter is not greater than a preset threshold. See [link to relevant documentation]. Figure 6 The above methods also include:

[0091] S3024. If the number of times the adaptive parameter tuning operation is performed exceeds the preset number when the channel quality parameter is not greater than the preset threshold, an interruption message will be sent to the control terminal.

[0092] In this embodiment, if the number of times the adaptive parameter tuning operation is performed exceeds the preset number when the channel quality parameter is not greater than the preset threshold, an interruption message will be sent to the control terminal.

[0093] In this embodiment, if the number of times the adaptive parameter tuning operation is performed exceeds a preset number, an interruption message is sent to the control terminal. This can avoid invalid repeated parameter tuning, promptly report interruption anomalies to the control terminal, prevent resource waste, and speed up fault response.

[0094] In this embodiment, in the above Figure 2 Based on the illustrated embodiment, further details regarding the process prior to receiving the target data sent by the second device can be provided; see [link to relevant documentation]. Figure 7 The above methods also include:

[0095] S204. If the state controller corresponding to the first device matches the target state, the initial sampling clock is recovered from the target data.

[0096] The target state refers to the state of interest among the various states pre-configured in the state controller; under the state of interest, the second device and the first device establish a connection for the first time, or the transmission parameters of the second device change abruptly.

[0097] In this embodiment, multiple states can be pre-set in the state controller corresponding to the first device. When the state controller of the first device is in the target state among the multiple states, the initial sampling clock is recovered from the target data, so that the first device can parse the target data according to the initial sampling clock and the default receive equalization parameters.

[0098] For example, multiple states can be pre-set in the state controller corresponding to the first device, such as state 1, state 2, ..., state 10. In states 5 and 6, the second device and the first device are more likely to establish an initial connection, or the transmission parameters of the second device may change abruptly. Therefore, when the state controller corresponding to the first device matches state 5 or state 6, it is necessary to recover the initial sampling clock from the target data in order to recover the target data based on the initial sampling clock and the default receive equalization parameters.

[0099] In this embodiment, the mechanism triggers clock recovery only when the state machine hits the critical target state of initial connection between the two devices or when the second device sends a sudden change in parameters. This avoids unnecessary synchronization in other states, thus accurately focusing clock calibration on the moment when the link parameters actually change. This significantly reduces power consumption and processing overhead, while shortening resynchronization time and ensuring the integrity and stability of data transmission.

[0100] In one embodiment, see Figure 8 It also provides a method for determining the equilibrium parameters, including:

[0101] T1. When the state controller corresponding to the first device matches the target state, in response to receiving the target data sent by the second device, the initial sampling clock is recovered from the target data; the target state refers to the state of interest among the various states pre-configured in the state controller; in the state of interest, the second device and the first device establish a connection for the first time, or the sending parameters of the second device change abruptly.

[0102] T2. Based on the initial sampling clock and default receive equalization parameters, parse the target data;

[0103] T3. If the target data is not successfully parsed within the preset clock cycle, the target sampling clock is recovered from the target data and the target data is parsed based on the target sampling clock.

[0104] T4. If the target data is not successfully parsed based on the target sampling clock, an adaptive parameter tuning operation is adopted to adjust the default receive equalization parameters, determine the first candidate receive equalization parameters of the first device, and obtain the channel quality parameters corresponding to the first candidate receive equalization parameters.

[0105] T5. If the channel quality parameter is greater than the preset threshold, the target data is parsed based on the first candidate receiving equalization parameter, and if the parsing is successful, the first candidate receiving equalization parameter is determined as the target receiving equalization parameter.

[0106] T6. If the channel quality parameter is greater than the preset threshold, the target data is parsed based on the first candidate receive equalization parameter, and if the parsing fails, the process returns to execute T3.

[0107] T7. If the channel quality parameter is not greater than the preset threshold, return to execute T4 until the channel quality parameter corresponding to the determined first candidate receive equalization parameter is greater than the preset threshold.

[0108] T8. If the number of times the adaptive parameter tuning operation is performed exceeds the preset number when the channel quality parameter is not greater than the preset threshold, an interruption message will be sent to the control terminal.

[0109] It should be noted that the descriptions of T1-T8 above can be found in the relevant descriptions in the above embodiments, and their effects are similar, so they will not be repeated here.

[0110] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0111] Based on the same inventive concept, this application also provides an apparatus for determining equilibrium parameters to implement the method for determining equilibrium parameters described above. The solution provided by this apparatus is similar to the solution described in the above method; therefore, the specific limitations of one or more embodiments of the apparatus for determining equilibrium parameters provided below can be found in the limitations of the method for determining equilibrium parameters described above, and will not be repeated here.

[0112] In one exemplary embodiment, such as Figure 9 As shown, a device for determining equalization parameters is provided, comprising: a parsing module 10, a recovery module 11, and a determination module 12, wherein:

[0113] The parsing module 10 is used to parse the target data based on the initial sampling clock and the default receive equalization parameters in response to receiving the target data sent by the second device.

[0114] The recovery module 11 is used to recover the target sampling clock from the target data if the target data is not successfully parsed within a preset clock cycle, and then parse the target data based on the target sampling clock.

[0115] The determination module 12 is used to perform an adaptive parameter tuning operation if the target data is not successfully parsed based on the target sampling clock, adjust the default receiving equalization parameters to obtain the target receiving equalization parameters of the first device, and then parse the target data based on the target receiving equalization parameters.

[0116] In an exemplary embodiment, the determining module 12 includes:

[0117] The first determining unit is specifically used to perform adaptive parameter tuning operation, adjust the default receive equalization parameters, determine the first candidate receive equalization parameters of the first device, and obtain the channel quality parameters corresponding to the first candidate receive equalization parameters.

[0118] The second determining unit is specifically used to determine the target reception equalization parameters of the first device based on the channel quality parameters and the preset threshold.

[0119] In an exemplary embodiment, the second determining unit is further configured to: if the channel quality parameter is greater than a preset threshold, parse the target data based on the first candidate receiving equalization parameter, and if the parsing is successful, determine the first candidate receiving equalization parameter as the target receiving equalization parameter; if the channel quality parameter is not greater than the preset threshold, return to the steps of performing adaptive parameter tuning operation, adjusting the default receiving equalization parameter, determining the first candidate receiving equalization parameter of the first device, and obtaining the channel quality parameter corresponding to the first candidate receiving equalization parameter, until the channel quality parameter corresponding to the determined first candidate receiving equalization parameter is greater than the preset threshold.

[0120] In an exemplary embodiment, the determining module 12 further includes:

[0121] The parsing unit is specifically used to parse the target data based on the first candidate receive equalization parameter if the channel quality parameter is greater than the preset threshold, and if the parsing fails, return to the step of re-recovering the target sampling clock from the target data and parsing the target data based on the target sampling clock.

[0122] In an exemplary embodiment, the determining module 12 further includes:

[0123] The transmitting unit is specifically used to send interrupt information to the control terminal if the number of times the adaptive parameter tuning operation is performed exceeds a preset number when the channel quality parameter is not greater than a preset threshold.

[0124] In one exemplary embodiment, the above-described apparatus further includes:

[0125] When the state controller corresponding to the first device matches the target state, the initial sampling clock is recovered from the target data;

[0126] The target state refers to the state of interest among the various states pre-configured in the state controller; under the state of interest, the second device and the first device establish a connection for the first time, or the transmission parameters of the second device change abruptly.

[0127] Each module in the aforementioned device for determining the equalization parameters can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of the computer device in software form, so that the processor can call and execute the operations corresponding to each module.

[0128] In one exemplary embodiment, a first device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 10As shown, the first device includes a processor, memory, input / output (I / O) interfaces, and a communication interface. The processor, memory, and I / O interfaces are connected via a system bus, and the communication interface is also connected to the system bus via the I / O interfaces. The processor of the first device provides computational and control capabilities. The memory of the first device includes non-volatile storage media and internal memory. The non-volatile storage media stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the first device stores equalization parameter data. The I / O interfaces of the first device are used for exchanging information between the processor and external devices. The communication interface of the first device is used for communication with external terminals via a network connection. When the computer program is executed by the processor, it implements a method for determining equalization parameters.

[0129] Those skilled in the art will understand that Figure 10 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the first device to which the present application is applied. The specific first device may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0130] In one exemplary embodiment, a first device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:

[0131] In response to receiving target data sent by the second device, the target data is parsed based on the initial sampling clock and the default receive equalization parameters;

[0132] If the target data is not successfully parsed within the preset clock cycle, the target sampling clock is recovered from the target data and the target data is parsed based on the target sampling clock.

[0133] If the target data is not successfully parsed based on the target sampling clock, an adaptive parameter tuning operation is used to adjust the default receive equalization parameters to obtain the target receive equalization parameters of the first device, and then the target data is parsed based on the target receive equalization parameters.

[0134] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0135] An adaptive parameter tuning operation is adopted to adjust the default receive equalization parameters, determine the first candidate receive equalization parameters of the first device, and obtain the channel quality parameters corresponding to the first candidate receive equalization parameters.

[0136] Based on the channel quality parameters and preset thresholds, the target reception equalization parameters of the first device are determined.

[0137] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0138] If the channel quality parameter is greater than the preset threshold, the target data is parsed based on the first candidate receive equalization parameter, and if the parsing is successful, the first candidate receive equalization parameter is determined as the target receive equalization parameter.

[0139] If the channel quality parameter is not greater than the preset threshold, then return to the steps of using adaptive parameter tuning to adjust the default receive equalization parameter, determine the first candidate receive equalization parameter of the first device, and obtain the channel quality parameter corresponding to the first candidate receive equalization parameter, until the channel quality parameter corresponding to the determined first candidate receive equalization parameter is greater than the preset threshold.

[0140] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0141] If the channel quality parameter is greater than the preset threshold, the target data is parsed based on the first candidate receive equalization parameter. If the parsing fails, the process returns to the step of recovering the target sampling clock from the target data and parsing the target data based on the target sampling clock.

[0142] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0143] If the number of adaptive parameter tuning operations exceeds the preset number when the channel quality parameters are not greater than the preset threshold, an interruption message will be sent to the control terminal.

[0144] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0145] When the state controller corresponding to the first device matches the target state, the initial sampling clock is recovered from the target data;

[0146] The target state refers to the state of interest among the various states pre-configured in the state controller; under the state of interest, the second device and the first device establish a connection for the first time, or the transmission parameters of the second device change abruptly.

[0147] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, the computer program performing the following steps when executed by a processor:

[0148] In response to receiving target data sent by the second device, the target data is parsed based on the initial sampling clock and the default receive equalization parameters;

[0149] If the target data is not successfully parsed within the preset clock cycle, the target sampling clock is recovered from the target data and the target data is parsed based on the target sampling clock.

[0150] If the target data is not successfully parsed based on the target sampling clock, an adaptive parameter tuning operation is used to adjust the default receive equalization parameters to obtain the target receive equalization parameters of the first device, and then the target data is parsed based on the target receive equalization parameters.

[0151] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0152] An adaptive parameter tuning operation is adopted to adjust the default receive equalization parameters, determine the first candidate receive equalization parameters of the first device, and obtain the channel quality parameters corresponding to the first candidate receive equalization parameters.

[0153] Based on the channel quality parameters and preset thresholds, the target reception equalization parameters of the first device are determined.

[0154] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0155] If the channel quality parameter is greater than the preset threshold, the target data is parsed based on the first candidate receive equalization parameter, and if the parsing is successful, the first candidate receive equalization parameter is determined as the target receive equalization parameter.

[0156] If the channel quality parameter is not greater than the preset threshold, then return to the steps of using adaptive parameter tuning to adjust the default receive equalization parameter, determine the first candidate receive equalization parameter of the first device, and obtain the channel quality parameter corresponding to the first candidate receive equalization parameter, until the channel quality parameter corresponding to the determined first candidate receive equalization parameter is greater than the preset threshold.

[0157] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0158] If the channel quality parameter is greater than the preset threshold, the target data is parsed based on the first candidate receive equalization parameter. If the parsing fails, the process returns to the step of recovering the target sampling clock from the target data and parsing the target data based on the target sampling clock.

[0159] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0160] If the number of adaptive parameter tuning operations exceeds the preset number when the channel quality parameters are not greater than the preset threshold, an interruption message will be sent to the control terminal.

[0161] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0162] When the state controller corresponding to the first device matches the target state, the initial sampling clock is recovered from the target data;

[0163] The target state refers to the state of interest among the various states pre-configured in the state controller; under the state of interest, the second device and the first device establish a connection for the first time, or the transmission parameters of the second device change abruptly.

[0164] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, performs the following steps:

[0165] In response to receiving target data sent by the second device, the target data is parsed based on the initial sampling clock and the default receive equalization parameters;

[0166] If the target data is not successfully parsed within the preset clock cycle, the target sampling clock is recovered from the target data and the target data is parsed based on the target sampling clock.

[0167] If the target data is not successfully parsed based on the target sampling clock, an adaptive parameter tuning operation is used to adjust the default receive equalization parameters to obtain the target receive equalization parameters of the first device, and then the target data is parsed based on the target receive equalization parameters.

[0168] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0169] An adaptive parameter tuning operation is adopted to adjust the default receive equalization parameters, determine the first candidate receive equalization parameters of the first device, and obtain the channel quality parameters corresponding to the first candidate receive equalization parameters.

[0170] Based on the channel quality parameters and preset thresholds, the target reception equalization parameters of the first device are determined.

[0171] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0172] If the channel quality parameter is greater than the preset threshold, the target data is parsed based on the first candidate receive equalization parameter, and if the parsing is successful, the first candidate receive equalization parameter is determined as the target receive equalization parameter.

[0173] If the channel quality parameter is not greater than the preset threshold, then return to the steps of using adaptive parameter tuning to adjust the default receive equalization parameter, determine the first candidate receive equalization parameter of the first device, and obtain the channel quality parameter corresponding to the first candidate receive equalization parameter, until the channel quality parameter corresponding to the determined first candidate receive equalization parameter is greater than the preset threshold.

[0174] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0175] If the channel quality parameter is greater than the preset threshold, the target data is parsed based on the first candidate receive equalization parameter. If the parsing fails, the process returns to the step of recovering the target sampling clock from the target data and parsing the target data based on the target sampling clock.

[0176] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0177] If the number of adaptive parameter tuning operations exceeds the preset number when the channel quality parameters are not greater than the preset threshold, an interruption message will be sent to the control terminal.

[0178] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0179] When the state controller corresponding to the first device matches the target state, the initial sampling clock is recovered from the target data;

[0180] The target state refers to the state of interest among the various states pre-configured in the state controller; under the state of interest, the second device and the first device establish a connection for the first time, or the transmission parameters of the second device change abruptly.

[0181] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.

[0182] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0183] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A method for determining equilibrium parameters, characterized in that, Applied to a first device, the method includes: In response to receiving target data sent by the second device, the target data is parsed based on the initial sampling clock and the default receive equalization parameters; If the target data is not successfully parsed within a preset clock cycle, the target sampling clock is recovered from the target data, and the target data is parsed based on the target sampling clock. If the target data is not successfully parsed based on the target sampling clock, an adaptive parameter tuning operation is used to adjust the default receive equalization parameters to obtain the target receive equalization parameters of the first device, so as to parse the target data based on the target receive equalization parameters.

2. The method according to claim 1, characterized in that, The step of employing adaptive parameter tuning to adjust the default receive equalization parameters to obtain the target receive equalization parameters for the first device includes: An adaptive parameter tuning operation is used to adjust the default receive equalization parameters, determine the first candidate receive equalization parameters of the first device, and obtain the channel quality parameters corresponding to the first candidate receive equalization parameters. Based on the channel quality parameters and the preset threshold, the target reception equalization parameters of the first device are determined.

3. The method according to claim 2, characterized in that, The step of determining the target reception equalization parameters of the first device based on the channel quality parameters and a preset threshold includes: If the channel quality parameter is greater than the preset threshold, the target data is parsed based on the first candidate reception equalization parameter, and if the parsing is successful, the first candidate reception equalization parameter is determined as the target reception equalization parameter. If the channel quality parameter is not greater than the preset threshold, then return to the steps of performing the adaptive parameter tuning operation, adjusting the default receive equalization parameter, determining the first candidate receive equalization parameter of the first device, and obtaining the channel quality parameter corresponding to the first candidate receive equalization parameter, until the channel quality parameter corresponding to the determined first candidate receive equalization parameter is greater than the preset threshold.

4. The method according to claim 3, characterized in that, The method further includes: If the channel quality parameter is greater than the preset threshold, the target data is parsed based on the first candidate receive equalization parameter. If the parsing fails, the process returns to the step of recovering the target sampling clock from the target data and parsing the target data based on the target sampling clock.

5. The method according to claim 3, characterized in that, The method further includes: If the number of times the adaptive parameter tuning operation is performed exceeds the preset number, and the channel quality parameter is not greater than the preset threshold, an interruption message will be sent to the control terminal.

6. The method according to claim 1, characterized in that, The method further includes: If the state controller corresponding to the first device matches the target state, the initial sampling clock is recovered from the target data; The target state refers to the state of interest among the various states pre-configured in the state control machine; in the state of interest, the second device and the first device establish a connection for the first time, or the transmission parameters of the second device change abruptly.

7. A device for determining equilibrium parameters, characterized in that, Applied to a first device, the device includes: The parsing module is used to parse the target data based on the initial sampling clock and the default receive equalization parameters in response to receiving target data sent by the second device. The recovery module is used to recover the target sampling clock from the target data and parse the target data based on the target sampling clock if the target data is not successfully parsed within a preset clock cycle. The determination module is used to determine the target reception equalization parameters of the first device by means of an adaptive parameter tuning operation if the target data is not successfully parsed based on the target sampling clock, so as to parse the target data based on the target reception equalization parameters.

8. A first device comprising a memory and a processor, said memory storing a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.

10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.