Method, apparatus and device for configuring link and storage medium

By performing EQ phase training multiple times during the link training process using different parameters, the target parameters are determined, which solves the problems of stability and applicability of link training results and achieves link stability and data transmission accuracy.

CN118819448BActive Publication Date: 2025-11-11HAINING ESWIN IC DESIGN CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410805719.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-20
Publication Date
2025-11-11
Estimated Expiration
2044-06-20

AI Technical Summary

Technical Problem

In existing technologies, the results of link training are subject to chance, making it difficult to guarantee the stability and applicability of the determined parameters, and thus the stability of the link and the accuracy of data transmission.

Method used

By training the link through multiple EQ phases based on multiple parameters within a limited number of training iterations, the target parameters are determined, and the link is configured according to the target parameters to ensure the stability of the link and the accuracy of data transmission.

Benefits of technology

This improves the stability of the link configuration and the accuracy of data transmission, ensuring the reliability of data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118819448B_ABST
    Figure CN118819448B_ABST
Patent Text Reader

Abstract

This application discloses a link configuration method, apparatus, device, and storage medium. The method is applied to a first device, and the link is a link between a first data transmission port of the first device and a second data transmission port of a second device. The method includes: determining first clock data based on first training data sent by the second device during a clock and data recovery phase; training the link through multiple equalization phases based on multiple parameters when the first clock data is the same as the second clock data carried in the first training data; determining target parameters based on multiple training results obtained from the multiple equalization phases; configuring the link according to the target parameters; and configuring the link so that the configured link is used by the second device to transmit data to be displayed to the first device. Configuring the link using this method can determine target parameters with high accuracy, improving the stability of the link configured according to the target parameters.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of electronic information technology, and in particular to a method, apparatus, device and storage medium for configuring a link. Background Technology

[0002] In the field of electronic information technology, two devices can transmit data through a link connecting them. If the link between the two devices is a DP (Display Port) on both devices, the link will be trained before the two devices transmit data through it.

[0003] The link training process includes a CDR (Clock and Data Recovery) phase and an EQ (Equilibrium) phase. After successful CDR training, the EQ phase is then trained. Through these CDR and EQ training phases, suitable parameters for the link can be determined. Based on these determined parameters, the link is configured so that data transmitted through the link can be received with high accuracy by downstream devices in both devices. Summary of the Invention

[0004] This application provides a link configuration method, apparatus, device, and storage medium, which can be used to solve problems existing in related technologies. The technical solution is as follows:

[0005] On one hand, embodiments of this application provide a link configuration method. The method is applied to a first device, and the link is a link between a first data transmission port of the first device and a second data transmission port of a second device. The method includes: determining first clock data based on first training data sent by the second device in the CDR stage; training the link multiple times in EQ stages based on multiple parameters when the first clock data is the same as the second clock data carried in the first training data; determining target parameters based on multiple training results obtained from the multiple EQ stages; configuring the link according to the target parameters, and the configured link is used by the second device to transmit data to be displayed to the first device.

[0006] In one possible implementation, when the first clock data is the same as the second clock data carried by the first training data, the link is trained in multiple EQ phases based on multiple parameters. Based on the multiple training results obtained from the multiple EQ phases, a target parameter is determined, including: when the first clock data is the same as the second clock data carried by the first training data, obtaining the first remaining number of times the first device trains the link in the EQ phase; when the first remaining number of times is greater than a first threshold, obtaining a first parameter, where the first threshold is used to indicate stopping training based on unused parameters; training the link once based on the first parameter to obtain a training result, and updating the first remaining number of times; when the updated first remaining number of times is greater than the first threshold, updating the first parameter; repeating the above steps based on the updated first parameter to obtain multiple training results; until the updated first remaining number of times is less than or equal to the first threshold, determining the target parameter from the multiple first parameters based on the accuracy corresponding to the multiple training results, where the training result corresponding to the target parameter indicates successful training.

[0007] In one possible implementation, the first parameter includes a first transmission voltage amplitude, a first pre-emphasis amplitude, and a first equalization parameter; the link is trained once based on the first parameter to obtain a training result, including: recovering second training data according to the first equalization parameter to obtain first recovered data, the second training data being transmitted by the second device through the link, the second training data being generated based on the first transmission voltage amplitude, the first pre-emphasis amplitude, and the first template data; and determining the training result based on the similarity between the first recovered data and the first template data.

[0008] In one possible implementation, if the first remaining number of times is greater than the first number threshold, the first parameter is obtained, including: if the first remaining number of times is greater than the first number threshold but less than the second number threshold, the second parameter is updated to obtain the first parameter, where the second parameter is the first parameter used in the previous training, and the second number threshold indicates the maximum number of training times in the EQ phase.

[0009] In one possible implementation, the first parameter includes a first transmission voltage amplitude and a first pre-emphasis amplitude; updating the first parameter includes: sending a parameter adjustment request to a second device, the parameter adjustment request being used to instruct the second device to update at least one of the first transmission voltage amplitude or the first pre-emphasis amplitude, the updated first parameter including at least one of the updated first transmission voltage amplitude or the updated first pre-emphasis amplitude.

[0010] In one possible implementation, the first parameter includes a first equilibrium parameter; updating the first parameter includes: updating the first equilibrium parameter.

[0011] In one possible implementation, before determining the target parameters based on the multiple training results obtained from the multiple EQ phases of training the link, when the first clock data is the same as the second clock data carried by the first training data, the method further includes: transmitting information indicating the end of the CDR phase to the second device when the first clock data is the same as the second clock data carried by the first training data, wherein the information indicating the end of the CDR phase indicates the start of EQ phase training of the link.

[0012] In one possible implementation, the first device includes an equalization controller for recovering received data based on equalization parameters, the target parameters including a target transmission voltage amplitude, a target pre-emphasis amplitude, and target equalization parameters; configuring the link according to the target parameters includes: transmitting the target transmission voltage amplitude and the target pre-emphasis amplitude to a second device, such that when the second device sends data to be displayed to the first device via the link, it sends the data according to the target transmission voltage amplitude and the target pre-emphasis amplitude; and adjusting the equalization controller according to the target equalization parameters, such that the equalization controller recovers the data transmitted by the link according to the target equalization parameters.

[0013] On the other hand, a link configuration device is provided. The link configuration device is a first device, and the link is a link between a first data transmission port of the first device and a second data transmission port of a second device. The device includes: a determining module, used to determine first clock data based on first training data sent by the second device in the CDR stage; the determining module is further used to train the link multiple times in EQ stages based on multiple parameters when the first clock data is the same as the second clock data carried in the first training data, and to determine target parameters based on the multiple training results obtained from the multiple EQ stages; and a configuration module, used to configure the link according to the target parameters, and the configured link is used for the second device to transmit data to be displayed to the first device.

[0014] In one possible implementation, a determining module is configured to: obtain a first remaining number of training iterations of the link by the first device during the EQ phase, provided that the first clock data and the second clock data carried by the first training data are the same; obtain a first parameter if the first remaining number of iterations is greater than a first threshold, the first threshold being used to indicate stopping training based on unused parameters; perform one training iteration on the link based on the first parameter to obtain a training result, and update the first remaining number of iterations; update the first parameter if the updated first remaining number of iterations is greater than the first threshold, and repeat the above steps based on the updated first parameter to obtain multiple training results; until the updated first remaining number of iterations is less than or equal to the first threshold, determine a target parameter from the multiple first parameters based on the accuracy corresponding to the multiple training results, and the training result corresponding to the target parameter indicates successful training.

[0015] In one possible implementation, the first parameter includes a first transmission voltage amplitude, a first pre-emphasis amplitude, and a first equalization parameter; the determining module is used to recover the second training data according to the first equalization parameter to obtain the first recovered data, the second training data is transmitted by the second device through a link, and the second training data is generated based on the first transmission voltage amplitude, the first pre-emphasis amplitude, and the first template data; the training result is determined according to the similarity between the first recovered data and the first template data.

[0016] In one possible implementation, a determining module is used to update the second parameter to obtain the first parameter if the first remaining number of training iterations is greater than the first number threshold and less than the second number threshold. The second parameter is the first parameter used in the previous training, and the second number threshold indicates the maximum number of training iterations in the EQ phase.

[0017] In one possible implementation, the first parameter includes a first transmission voltage amplitude and a first pre-emphasis amplitude; the determining module is configured to send a parameter adjustment request to the second device, the parameter adjustment request being used to instruct the second device to update at least one of the first transmission voltage amplitude or the first pre-emphasis amplitude, the updated first parameter including at least one of the updated first transmission voltage amplitude or the updated first pre-emphasis amplitude.

[0018] In one possible implementation, the first parameter includes a first equalization parameter; and a determination module for updating the first equalization parameter.

[0019] In one possible implementation, the device further includes a transmission module, which is used to transmit information indicating the end of the CDR phase to the second device when the first clock data is the same as the second clock data carried by the first training data. The information indicating the end of the CDR phase indicates the start of EQ phase training for the link.

[0020] In one possible implementation, the first device includes an equalization controller for recovering received data based on equalization parameters, the target parameters including a target transmission voltage amplitude, a target pre-emphasis amplitude, and target equalization parameters; a configuration module for transmitting the target transmission voltage amplitude and the target pre-emphasis amplitude to a second device, such that when the second device sends data to be displayed to the first device via the link, it sends the data according to the target transmission voltage amplitude and the target pre-emphasis amplitude; and adjusting the equalization controller according to the target equalization parameters, such that the equalization controller recovers the data transmitted by the link according to the target equalization parameters.

[0021] On the other hand, a computer device is provided, the computer device including a processor and a memory, the memory storing at least one computer program, the at least one computer program being loaded and executed by the processor to enable the computer device to implement any of the link configuration methods described above.

[0022] On the other hand, a computer-readable storage medium is also provided, wherein at least one computer program is stored therein, the at least one computer program being loaded and executed by a processor to enable a computer to implement any of the link configuration methods described above.

[0023] On the other hand, a computer program product or computer program is also provided, the computer program product or computer program including computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, causing the computer device to perform any of the link configuration methods described above.

[0024] The technical solution provided in this application has at least the following beneficial effects:

[0025] In the training process of the EQ stage, this application makes full use of the limited number of training sessions. Within the limited number of training sessions, training is performed multiple times based on different first parameters, and the first parameter with high accuracy is determined from multiple first parameters as the target parameter, so that the accuracy of the link transmission data configured according to the target parameter is higher. Attached Figure Description

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

[0027] Figure 1 This is a schematic diagram of an implementation scenario provided in an embodiment of this application;

[0028] Figure 2 This is a flowchart illustrating a link configuration method provided in an embodiment of this application;

[0029] Figure 3 This is a schematic diagram illustrating the configuration process of a link according to an embodiment of this application;

[0030] Figure 4 This is a schematic diagram of the structure of a link configuration device provided in an embodiment of this application;

[0031] Figure 5 This is a schematic diagram of the structure of a link configuration device provided in an embodiment of this application. Detailed Implementation

[0032] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.

[0033] Before two devices transmit data through a link connected by a data transmission port, the two devices can train the link. For example, DisplayPort (DP) is a high-speed serial interface used to transmit display data such as video. In a display system using DP as a data transmission port, the sending and receiving devices transmit data through a link connected by DP. Once the link connection between the sending and receiving devices is established, the link is usually trained before the sending device sends the data to be displayed to the receiving device. This training determines and configures the link parameters based on the characteristics of the link, the sending device, and the receiving device. This ensures that when the sending and receiving devices transmit data through the configured link, the data sent by the sending device can be received by the receiving device with a low error rate, allowing the receiving device to display the correct data.

[0034] In the DP protocol, the link training process consists of two phases: the CDR phase and the EQ phase. In the CDR phase, the sender transmits a TPS (training patterns) 1 data stream to the receiver via the link. The TPS 1 data stream can be a D10.2 data stream (a data stream alternating between 1s and 0s) that facilitates clock recovery for the receiver. The receiver synchronizes with the received D10.2 data stream by adjusting the frequency and phase of its local PLL (Phase Locked Loop), thus recovering the clock information and data carried by the D10.2 data stream and completing one CDR phase of training.

[0035] If, during the training of a CDR phase, the receiver cannot recover the correct clock information and data from the received D10.2 data stream within the specified time, the training of this CDR phase fails, and the receiver transmits the information of the training failure of this CDR phase to the sender.

[0036] After a training failure, the receiver can request a change in the transmission level of D10.2 data from the sender via the Aux (Auxiliary) channel. The transmission level of the D10.2 data stream is determined based on either the transmission voltage amplitude or the pre-emphasis intensity. Upon receiving the request, the sender adjusts at least one of the transmission voltage amplitude or pre-emphasis amplitude to adjust the transmission level. During the next CDR training phase, the sender retransmits the D10.2 data stream to the receiver according to the adjusted transmission voltage amplitude and pre-emphasis amplitude. After receiving the D10.2 data stream, the receiver restores the clock information and data carried by the D10.2 data stream, completing one CDR training phase.

[0037] Alternatively, after confirming a training failure, the receiver may not request the sender to change the transmission rate when sending D10.2 data. Once the receiver receives the training failure information transmitted by the sender, the sender will continue to send the D10.2 data stream at the same transmission rate as before during the next CDR training phase.

[0038] If the conditions for overall training failure of the CDR phase are triggered during the training process of the CDR phase, then the overall training failure of the CDR phase can be determined. The conditions for overall training failure of the CDR phase include, but are not limited to: (a) the sender repeatedly sends the D10.2 data stream to the receiver multiple times (e.g., 5 times) at the same level, and the receiver fails to recover the correct clock information and data from the D10.2 data stream multiple times; (b) the sender sends the D10.2 data stream at the maximum level, that is, the transmission voltage amplitude and pre-emphasis amplitude reach the maximum value; (c) the sender and receiver transmit information through the Aux channel a specified number of times (e.g., 10 times).

[0039] When the condition of overall training failure in the CDR phase is triggered, the receiver and sender stop training the link, or the sender resends the D10.2 data stream to the receiver at a lower level, so that the sender and receiver retrain the link in the CDR phase.

[0040] If, during a CDR phase training process, the receiver is able to recover the correct clock information and data from the received D10.2 data stream within a specified time, the training is successful, and the receiver transmits a CDR phase training success message to the sender. After receiving the CDR phase training success message, the sender stops sending the D10.2 data stream to the receiver and begins sending data for the EQ phase training, enabling both the sender and receiver to begin EQ phase training on the link.

[0041] During an EQ training phase, the sender transmits TPS2, TPS3, or TPS4 data streams to the receiver according to the transmitted voltage amplitude and pre-emphasis amplitude. The sender also informs the receiver via the Aux channel which training mode the transmitted data stream belongs to. The content of the data stream for each training mode is known to the receiver. After receiving the data stream from the sender, the receiver uses an equalizer to lock the symbol boundaries from the bit stream recovered from the CDR circuit according to the EQ parameters. The symbol boundaries are typically 10-bit encoded symbols.

[0042] After the receiver determines the symbol boundaries, it determines the content symbols in the bitstream based on the symbol boundaries in the bitstream, and aligns the content symbols in the data streams received by each main road (or lane) with the content symbols, which is called inter-lane de-skew. If the receiver can successfully lock the symbol boundaries within a specified time, align the content symbols in the data streams received by each main road, and ensure that the recovered content symbols correspond to the content of the data stream of the known training pattern, then the training of this EQ phase is successful. The transmission voltage amplitude, pre-emphasis amplitude, and EQ parameters in this EQ phase training are a set of available parameters.

[0043] After determining a set of available parameters, the receiver can transmit information indicating successful training for this EQ phase to the sender. Upon receiving this information, the receiver uses the parameters used in the last transmission of the data stream for the EQ phase training as the available parameters and configures the link based on this set of available parameters. After configuration, the sender transmits the data stream to be displayed to the receiver according to this set of available parameters.

[0044] If the receiver cannot lock the symbol boundary within the specified time, or cannot align the content symbols in the data streams received from each main path, or the recovered content symbols do not correspond to the content of the data streams in the known training mode, then the training of this EQ phase will fail, and the transmit voltage amplitude, pre-emphasis amplitude, and EQ parameters in this EQ phase training will be a set of unavailable parameters.

[0045] After determining that the training in this EQ phase has failed, the receiver can adjust the parameters used for training and start the next EQ phase. Methods for the receiver to adjust the parameters used for training include: (a) adjusting the local equalizer parameters; and (b) requesting the sender to adjust the transmission voltage amplitude and pre-emphasis amplitude.

[0046] After adjusting the parameters, the next EQ phase training can begin. If, during the EQ phase training, the receiver and sender transmit information via Aux a specified number of times (e.g., 5 times), the entire EQ phase training can be considered a failure.

[0047] Therefore, it can be seen that under the DP protocol, the training of the EQ phase has a limited number of attempts. In related technologies, as long as the EQ phase training is successful even once within a limited number of training attempts, and a set of usable parameters is determined, the EQ phase training is immediately stopped, and the link is configured according to the set of usable parameters to transmit the data to be displayed.

[0048] However, due to the randomness of training results, the stability of the available parameters determined by related technologies is difficult to guarantee, and the stability of the links configured based on these parameters is also difficult to guarantee. Furthermore, since the data streams used in the EQ training phase are relatively simple and uniform, while the data to be transmitted is more complex and diverse, it is difficult to guarantee that the links configured based on the parameters determined by related technologies are suitable for transmitting the data to be displayed. Therefore, it is difficult to guarantee that the links configured in the related technologies can accurately transmit the data to be displayed, and also difficult to guarantee the accuracy of the data displayed by the receiver.

[0049] This application provides a link configuration method that can improve the stability of the configured link, thereby improving the accuracy of the configured link when transmitting data to be displayed.

[0050] See Figure 1 The diagram illustrates an implementation scenario provided by an embodiment of this application. This implementation scenario includes a first device 11 and a second device 12. Both the first device 11 and the second device 12 are equipped with data transmission ports. The first data transmission port on the first device 11 and the second data transmission port on the second device 12 can both be of type DP (Data Transmission Port). The first data transmission port and the second data transmission port are connected by a link, which can be a wired link or a wireless link.

[0051] The first device 11 and the second device 12 can be devices, components on devices, or chips, etc. The first device 11 can be a device with display function, such as a mobile phone, television, laptop, or monitor. The second device 12 is a device capable of transmitting data to be displayed to the first device 11, such as a graphics card or set-top box. The first device 11 is the receiver of the data to be displayed, and the second device 12 is the sender of the data to be displayed.

[0052] See Figure 2 The diagram illustrates a flowchart of a link configuration method provided in an embodiment of this application. The method includes, but is not limited to, steps S201 to S203 below. The link configured in this method is a link used to connect a first data transmission port and a second data transmission port. In this embodiment, the link is temporarily described as a wired link.

[0053] S201, determine the first clock data based on the first training data sent by the second device during the CDR phase.

[0054] After the link between the first data transmission port and the second data transmission port is established, the second device, as the sender of the data to be transmitted, will send the first training data for the CDR phase training to the first device through the link. The first training data may be a D10.2 data stream.

[0055] After receiving the first training data, the first device adjusts the frequency and phase of its local PPL to synchronize with the received first data stream, thereby recovering the first clock data. The process by which the first device determines the first clock data based on the first training data can be referred to the relevant description in the DP protocol, and will not be repeated here.

[0056] In one possible implementation, after determining the first clock data, the first device can determine whether the first clock data is correct based on whether the first clock data is the same as the second clock data carried in the first training data, and notify the second device whether the training result of this CDR phase is successful.

[0057] For example, when the first clock data is the same as the second clock data carried by the first training data, the first device can transmit information indicating the end of the CDR phase to the second device. The information indicating the end of the CDR phase indicates the start of the EQ phase training for the link.

[0058] This application does not limit the method by which the first device transmits the CDR phase end information to the second device. For example, the first device can send the CDR phase end information to the second device through the Aux channel.

[0059] In one possible implementation, the first device further includes a DPCD (Display Port Configuration Data) register. The storage space corresponding to addresses 202H and 203H in the DPCD register is used to store data that can indicate the status and configuration of the first device. The first device can transmit the information indicating the end of the CDR phase by changing the values ​​in the storage space corresponding to addresses 202H and 203H.

[0060] For example, after determining that the first clock data and the second clock data are the same, the first device can write a 1 to the bit corresponding to lane x in the memory spaces corresponding to 202H and 203H of the DPCD register, indicating that the clock recovery for lane x has been locked (LANEx_CR_DONE). Here, x can be 0, 1, 2, or 3, etc., with different x representing different lanes. If the value of the bit corresponding to each lane is 1, it indicates that the first device's status is that CDR has been successfully achieved.

[0061] The second device reads the values ​​of the corresponding bits for each lane in the storage space corresponding to addresses 202H and 203H in the DPCD register on the first device via the AUX channel, confirming that the CDR phase training has been successful. The storage space corresponding to address 102H in the DPCD register can also be used to store data indicating the status and configuration of the first device. Therefore, after confirming the success of the CDR phase training, the second device can write the value corresponding to the second training data to the training mode selection (TRAINING_PATTERN_SELECT) bit in the storage space corresponding to address 102H in the DPCD register via the AUX channel, instructing both the first and second devices to begin the EQ phase training. The second training data is used by the first and second devices to train the link in the EQ phase. The value of the second training data is determined based on the type of the second training data. For example, if the second training data is TPS2, the value is 2; if it is TPS3, the value is 3; and if it is TPS4, the value is 7.

[0062] After receiving the information that the CDR phase has ended, the second device stops sending the first training data for the CDR phase to the first device, and instead sends the second training data for the EQ phase to the first device, so as to start the training of the link's EQ phase by the first and second devices.

[0063] In one possible implementation, if the first clock data differs from the second clock data, and the overall training of the CDR phase of the first device fails, the first device can write 0 to the corresponding bit positions of each lane in the memory spaces corresponding to addresses 202H and 203H of the DPCD register. If the second device reads that the values ​​of the corresponding bit positions of each lane in the memory spaces corresponding to addresses 202H and 203H of the DPCD register are 0, then the second device will write 0 to the bit position corresponding to TRAINING_PATTERN_SELECT at address 102H of the DPCD register, indicating that the overall training of the CDR phase of both the first and second devices has failed.

[0064] S202, when the first clock data and the second clock data carried by the first training data are the same, the link is trained in multiple equalization (EQ) phases based on multiple parameters, and the target parameters are determined based on the multiple training results obtained from the multiple EQ phases.

[0065] If the first clock data recovered by the first device is the same as the second clock data carried in the first training data, it means that the first clock data recovered by the first device is correct, and the training in the CDR phase is successful. Therefore, when the first clock data is the same as the second clock data carried in the first training data, the second device can send a data stream for the EQ phase training to the first device, so that the first device can perform multiple EQ phase trainings on the link based on multiple parameters, and determine the target parameters based on the multiple training results obtained from the multiple EQ phase trainings.

[0066] For example, when the first clock data is the same as the second clock data carried by the first training data, the first device can obtain the first remaining number of times the first device can train the link during the EQ phase; if the first remaining number of times is greater than the first number threshold, obtain the first parameter, the first number threshold is used to indicate stopping training based on unused parameters; train the link once based on the first parameter to obtain a training result, and update the first remaining number of times; if the updated first remaining number of times is greater than the first number threshold, update the first parameter, and repeat the above steps based on the updated first parameter to obtain multiple training results; until the updated first remaining number of times is less than or equal to the first number threshold, determine the target parameter from the multiple first parameters based on the accuracy corresponding to the multiple training results, and the training result corresponding to the target parameter indicates successful training.

[0067] As explained above regarding the training in the EQ phase, the number of training iterations in the EQ phase is limited. In this embodiment, regardless of whether available parameters have been determined, the first device will perform EQ phase training based on different parameters within the limit of the number of training iterations, resulting in different training results.

[0068] Since the first device transmits the successful training information of the EQ phase to the second device, the second device will use the parameters used in the last training session before receiving the successful training information of the EQ phase as available parameters, and configure the link based on these parameters. Therefore, in this embodiment, at least one EQ phase training opportunity is reserved for the first and second devices to confirm the final parameters used to configure the link and configure the link. Alternatively, in this embodiment, at least one EQ phase training opportunity is reserved for the first and second devices to repeatedly train based on the determined target parameters, and after obtaining a successful training result based on the target parameters, the first device sends the successful training information of the EQ phase to the second device, so that the first and second devices configure the link based on the target parameters.

[0069] For example, if the total number of training iterations in the EQ phase is 5, after completing 4 training iterations based on different parameters, the first device will not train based on unused parameters. Instead, it will determine the target parameters for configuring the link from the parameters that have already been used, so that the determined parameters can be used for training in the 5th training iteration. After the 5th training iteration is completed, it will transmit training success information to the sender, so that the sender can use the parameters used in the 5th training iteration as available parameters to configure the link according to the parameters used in the 5th training iteration.

[0070] If at least one training opportunity in the EQ phase is not reserved, the first device and the second device will still train based on unused parameters in the last training opportunity in the EQ phase. If the training result obtained based on these parameters is a training failure, the first device will not be able to transmit the training success information to the second device, and the first device and the second device will not be able to configure the link based on the available parameters.

[0071] Alternatively, even if the training result obtained based on this parameter is successful, the accuracy corresponding to this parameter may be worse than the accuracy corresponding to other parameters. In this case, the first device and the second device can only configure the link based on this parameter, resulting in the link configuration not being a highly accurate configuration, making it difficult to guarantee the stability of the configured link and the accuracy of the transmitted data stream.

[0072] Therefore, in this embodiment, at least one training opportunity for the EQ phase is reserved to ensure the stability of the configured link and the accuracy of the transmitted data stream. Thus, in this embodiment, before each EQ phase training, the first device needs to obtain the remaining number of EQ phase training attempts, i.e., obtain the first remaining attempts, so that the first device can determine whether to continue training using unused parameters based on the first remaining attempts.

[0073] This application does not limit the method by which the first device obtains the first remaining number of times. For example, the first device may be configured with a counter to record the number of times the first device has performed EQ training. The first device determines the first remaining number of times by the difference between the total number of times the EQ training is performed and the number of times recorded by the counter.

[0074] If the first remaining number of attempts is greater than the threshold of the first number of attempts, it means that the first device can still train the link in the EQ stage based on the unused parameters. Therefore, the first device can obtain the first parameters and train the link once based on the first parameters to obtain a training result.

[0075] For example, obtaining the first parameter includes: if the first remaining number of times is greater than the first number threshold and less than the second number threshold, updating the second parameter to obtain the first parameter, wherein the second parameter is the first parameter used in the previous training, and the second number threshold indicates the maximum number of training times in the EQ phase.

[0076] If the first remaining number of iterations is greater than the first threshold and less than the second threshold, it means that the first device has already performed at least one EQ training on the link before this EQ training phase. Therefore, the first parameter can be obtained by updating the second parameter used in the previous training, and the first device can then perform this EQ training on the link based on the first parameter. The method for updating the second parameter to obtain the first parameter can refer to the method for updating the first parameter described below, and will not be elaborated here.

[0077] If the first remaining number of times equals the threshold of the second number of times, it means that the first device has not yet trained the link in the EQ phase before the training of this EQ phase. This training is the first EQ phase training of the link. Therefore, the default parameter can be used as the first parameter. The default parameter can be set based on experience. For example, the default parameter can be the parameter corresponding to the lowest level.

[0078] After obtaining the first parameter, the link can be trained for an EQ phase based on the first parameter. This application embodiment does not limit the method for training the link for an EQ phase based on the first parameter. Optionally, the first parameter includes a first transmitted voltage amplitude, a first pre-emphasis amplitude, and a first equalization parameter. In this case, training the link based on the first parameter to obtain a training result includes: recovering second training data according to the first equalization parameter to obtain first recovered data; the second training data is transmitted by a second device through the link, and the second training data is generated based on the first transmitted voltage amplitude, the first pre-emphasis amplitude, and the first template data; and determining the training result based on the similarity between the first recovered data and the first template data.

[0079] The first template data is a mode of data supported by both the first and second devices, such as TPS2, TPS3, or TPS4. The second training data is any mode of data sent by the second device to the first device according to the first transmission voltage amplitude and the first pre-emphasis amplitude. Since the second device sends the same mode of data according to different transmission voltage amplitudes and pre-emphasis amplitudes, the data received by the first device may also be different. Therefore, it can be considered that the second device sending any mode of data according to different transmission voltage amplitudes and pre-emphasis amplitudes is based on encoding any mode of data according to the transmission voltage amplitude and pre-emphasis amplitude. Thus, the second training data can be considered to be generated based on the first transmission voltage amplitude, the first pre-emphasis amplitude, and the first template data.

[0080] The first recovered data is the content symbol recovered by the first device based on the second training data. The process by which the first device recovers the first recovered data based on the second training data can be referred to the process of recovering content symbols based on data streams of various modes mentioned above, and will not be repeated here.

[0081] The process of training the link for the EQ phase based on the first parameter can be referred to the previous description, and will not be repeated here. In this embodiment, the training result can be the similarity between the first recovered data and the first template data. If the similarity between the first recovered data and the first template data is greater than or equal to the similarity threshold, the training result indicates that the training was successful. If the similarity between the first recovered data and the first template data is less than the similarity threshold, the training result indicates that the training failed.

[0082] After completing the EQ phase training and obtaining the training results, the remaining number of training iterations for the EQ phase can be reduced by one from the first remaining number of iterations to update the first remaining number of iterations.

[0083] If the updated first remaining number of times is greater than the threshold of the first number, it means that there is still an opportunity to train the link in the EQ phase based on the unused first parameters. The first device can update the first parameters so that the first device can perform the next EQ phase training based on the updated first parameters.

[0084] Optionally, the first parameter includes a first transmitted voltage amplitude and a first pre-emphasis amplitude. Updating the first parameter then includes: sending a parameter adjustment request to a second device, the parameter adjustment request instructing the second device to update at least one of the first transmitted voltage amplitude or the first pre-emphasis amplitude, the updated first parameter including at least one of the updated first transmitted voltage amplitude or the updated first pre-emphasis amplitude.

[0085] The first device can send a parameter adjustment request to the second device through the Aux channel, so that the second device can update at least one of the first transmitted voltage amplitude or the first pre-emphasis amplitude.

[0086] Optionally, the first parameter may further include a first equalization parameter, and updating the first parameter may further include updating the first equalization parameter. Here, the first equalization parameter is the equalization parameter of the equalizer on the first device, and the equalizer on the first device is used to recover the training data based on the equalization parameter of the equalizer to obtain the recovered data.

[0087] In this embodiment, the first device can update one or more of the first transmitted voltage amplitude, the first pre-emphasis amplitude, and the first equalization parameter. After updating the first parameter, the first device and the second device can train the link for the next EQ phase based on the updated first parameter.

[0088] In this embodiment, if the remaining number of iterations exceeds the threshold for the first iteration, the first device can continuously repeat the above steps to train the link for multiple EQ phases based on different first parameters, resulting in multiple training results. In one possible implementation, if the remaining number of iterations exceeds the threshold for the first iteration, the first parameters used for each EQ phase training of the link are different.

[0089] As explained above, a single EQ phase training process can not only train the link but also be used by the first device to set target parameters. Therefore, at least one EQ phase training opportunity is required for setting the target parameters. Thus, until the first remaining training iterations after an update are less than or equal to the first threshold, the first device stops training the link using the unused first parameters in the EQ phase. Based on the accuracy corresponding to multiple training results, the target parameters are determined from the multiple used first parameters. The remaining at least one EQ phase training opportunity is then used to configure the link according to the target parameters.

[0090] In one possible implementation, the values ​​of the first parameter corresponding to the training results with higher accuracy are relatively concentrated. In this implementation, if the first parameter used in each EQ phase training is monotonically changing, such as monotonically increasing or monotonically decreasing, then when the previous training result was training success and the current training result is training failure, it means that the first parameter corresponding to the current training result differs greatly from the parameter corresponding to the training result with higher accuracy. In this case, the first device can no longer perform EQ phase training based on the monotonically changing and unused first parameter, but instead determine the target parameter from the multiple first parameters used based on the accuracy corresponding to multiple training results.

[0091] The accuracy of any training result can be determined based on the parameter measurement results corresponding to that training result, such as the eye diagram generated based on the parameters. The clearer or more standard the eye diagram corresponding to any training result, the higher the accuracy of that training result; conversely, the blurrier or less standard the eye diagram corresponding to any training result, the lower the accuracy of that training result.

[0092] Alternatively, the accuracy of any training result can also be determined based on the similarity among training results. The higher the similarity among training results, the higher the accuracy of that training result; conversely, the lower the similarity among training results, the lower the accuracy of that training result.

[0093] In this embodiment of the application, the training result with the highest accuracy can be determined from multiple training results, and when the training result with the highest accuracy indicates that the training is successful, the first parameter corresponding to the training result with the highest accuracy is used as the target parameter.

[0094] For example, if only one set of training results for the first parameter indicates successful training, then that set of first parameters is determined as the target parameter. If two or more sets of training results for the first parameter both indicate successful training, then the set of first parameters with higher accuracy among the two sets can be used as the target parameter.

[0095] In one possible implementation, if multiple sets of training results corresponding to the first parameter indicate successful training, multiple sets of first parameters have the same accuracy, multiple sets of first parameters are monotonically changing, and the values ​​of the first parameters corresponding to training results with higher accuracy are relatively concentrated, then in this implementation, the intermediate parameter among the multiple sets of first parameters can be used as the target parameter.

[0096] S203, Configure the link according to the target parameters. The configured link is used by the second device to transmit the data to be displayed to the first device.

[0097] In one possible implementation, the first device includes an equalization controller for recovering received data based on equalization parameters, the target parameters including a target transmit voltage amplitude, a target pre-emphasis amplitude, and target equalization parameters. In this implementation, configuring the link according to the target parameters includes: transmitting the target transmit voltage amplitude and the target pre-emphasis amplitude to a second device, such that when the second device sends data to be displayed to the first device via the link, it sends the data to be displayed according to the target transmit voltage amplitude and the target pre-emphasis amplitude; and adjusting the equalization controller according to the target equalization parameters, such that the equalization controller recovers the data transmitted by the link according to the target equalization parameters.

[0098] This application does not limit the method for transmitting the target transmission voltage amplitude and the target pre-emphasis amplitude from the first device to the second device. Exemplarily, the first device further includes a DPCD register, and the second device can read the information in the DPCD register through the Aux channel, enabling the first device to transmit information to the second device through the DPCD register. Optionally, the first device can write the target transmission voltage amplitude and the target pre-emphasis amplitude into the storage spaces corresponding to addresses 206H and 207H of the DPCD register, respectively. The second device can read the information in the storage spaces corresponding to addresses 206H and 207H of the DPCD register through the Aux channel to obtain the target transmission voltage amplitude and the target pre-emphasis amplitude, thus realizing the transmission of the target transmission voltage amplitude and the target pre-emphasis amplitude from the first device to the second device.

[0099] After the second device obtains the target transmission voltage amplitude and the target pre-emphasis amplitude, it can write information indicating that the second device has applied the target transmission voltage amplitude and the target pre-emphasis amplitude to the storage space corresponding to address 103H of the DPCD register of the first device through the Aux channel. For example, it can write symbol 1 to the storage space corresponding to address 103H of the DPCD register of the first device, indicating that the second device will send data according to the target transmission voltage amplitude and the target pre-emphasis amplitude transmitted by the first device when it sends data to the first device through the link next time.

[0100] In addition, the first device will also write the target equalization parameters into the equalization controller of the first device, so as to control the parameters of the equalization controller.

[0101] After transmitting the target transmission voltage amplitude and the target pre-emphasis amplitude and writing the target equalization parameters into the equalization controller, the second device uses at least one reserved training opportunity in the EQ phase to send new training data to the first device according to the target transmission voltage amplitude and the target pre-emphasis amplitude. After receiving the new training data, the first device recovers the new training data according to the target equalization parameters through the equalization controller to obtain new recovered data, and determines the new training result based on the similarity between the new recovered data and the template data corresponding to the new training data.

[0102] If the new training result indicates training failure, and there are still training attempts remaining in the EQ phase, the first and second devices can train again according to the target parameters until the training attempts in the EQ phase are exhausted or the training result obtained based on the target parameters indicates training success.

[0103] If the new training result indicates that the training was successful, the first device writes 1 to 202H, 203H and 204H of the DPCD register to indicate that the training of the CDR phase of the link has been completed, the training of the EQ phase of the link has been completed and the symbols between the main paths have been aligned, thereby realizing the configuration of the target parameters.

[0104] Then, the second device transmits the data to be displayed to the first device based on the target transmitted voltage amplitude and the target pre-emphasis amplitude. After receiving the data to be displayed, the first device restores or decodes the data to be displayed according to the target equalization parameters to obtain the data to be displayed, and displays the data according to the data to be displayed.

[0105] See Figure 3 The diagram illustrates a link configuration process provided in an embodiment of this application.

[0106] In step 31, after finding a set of usable parameters for the first time during the EQ phase training process, step 32 is executed.

[0107] In step 32, it is determined whether there is room for optimization in the link (i.e., whether the remaining number of attempts is greater than the threshold of the first attempt). If there is (i.e., the remaining number of attempts is greater than the threshold of the first attempt), the first device will not immediately notify the second device to terminate the training of the EQ phase, but will record the set of parameters and related measurement results (such as eye diagram measurement results) and continue to execute step 33; if there is no (i.e., the remaining number of attempts is less than or equal to the threshold of the first attempt), since the set of available parameters is the only available parameter determined in the training process of the EQ phase, the set of parameters will be used as the target parameters and step 36 will be executed.

[0108] In step 33, try another set of parameters (parameters different from the previous ones), record the other set of parameters and their corresponding measurement results, and continue to step 34;

[0109] In step 34, it is determined again whether there is room for optimization in the link. If there is, proceed to step 33; otherwise, proceed to step 35.

[0110] In step 35, the target parameters to be applied to the link are determined based on the measurement results of each set of parameters tried.

[0111] In step 36, the corresponding positions of the DPCD register are filled in according to the target parameters to configure the link and end the training.

[0112] In summary, in the link training method provided in this application embodiment, during the entire EQ phase training process, after the first device completes the target of the phase, it will not immediately notify the second device that the training is successful. Instead, it will continue to adjust the parameters until a target parameter with high accuracy is determined from the parameters used. Then, it will delay notifying the second device that the training is over and configure the link according to the target parameter.

[0113] In this embodiment, although the training time for a single EQ phase is relatively short (each Aux communication cycle is at least 400 microseconds (µs) and at most 16 milliseconds (ms)), this embodiment fully utilizes the limited number of training iterations and trains the EQ phase based on different parameters, thus relatively extending the training time of the EQ phase. It also increases the randomness of the EQ phase training, avoiding the randomness of the available parameters determined in a single instance.

[0114] In other words, the link configured according to the method provided in this application has high stability. Data transmission through the configured link can reduce transmission errors of the data to be displayed, ensuring that the content displayed by the first device based on the received data to be displayed is accurate, thereby improving the user's visual experience.

[0115] See Figure 4 This application provides a link configuration device, which is a first device, and the link is a link between a first data transmission port of the first device and a second data transmission port of a second device. The device includes:

[0116] The determining module 401 is used to determine the first clock data based on the first training data sent by the second device during the clock and data recovery (CDR) phase; the determining module 401 is also used to perform multiple equalization (EQ) phase training on the link based on multiple parameters when the first clock data is the same as the second clock data carried by the first training data, and to determine the target parameters based on the multiple training results obtained from the multiple EQ phase training; the configuring module 402 is used to configure the link according to the target parameters, and the configured link is used by the second device to transmit data to be displayed to the first device.

[0117] In one possible implementation, the determining module 401 is configured to: obtain the first remaining number of times the first device trains the link during the EQ phase when the first clock data is the same as the second clock data carried by the first training data; obtain a first parameter when the first remaining number of times is greater than a first number threshold, the first number threshold being used to indicate stopping training based on unused parameters; perform one training operation on the link based on the first parameter to obtain a training result, and update the first remaining number of times; update the first parameter when the updated first remaining number of times is greater than the first number threshold, and repeat the above steps based on the updated first parameter to obtain multiple training results; until the updated first remaining number of times is less than or equal to the first number threshold, determine a target parameter from the multiple first parameters based on the accuracy corresponding to the multiple training results, and the training result corresponding to the target parameter indicates successful training.

[0118] In one possible implementation, the first parameter includes a first transmission voltage amplitude, a first pre-emphasis amplitude, and a first equalization parameter; the determining module 401 is used to recover the second training data according to the first equalization parameter to obtain the first recovered data, the second training data is transmitted by the second device through a link, and the second training data is generated based on the first transmission voltage amplitude, the first pre-emphasis amplitude, and the first template data; the training result is determined according to the similarity between the first recovered data and the first template data.

[0119] In one possible implementation, the determining module 401 is used to update the second parameter to obtain the first parameter when the first remaining number of times is greater than the first number threshold and less than the second number threshold. The second parameter is the first parameter used in the previous training, and the second number threshold indicates the maximum number of training times in the EQ phase.

[0120] In one possible implementation, the first parameter includes a first transmission voltage amplitude and a first pre-emphasis amplitude; the determining module 401 is used to send a parameter adjustment request to the second device, the parameter adjustment request being used to instruct the second device to update at least one of the first transmission voltage amplitude or the first pre-emphasis amplitude, and the updated first parameter includes at least one of the updated first transmission voltage amplitude or the updated first pre-emphasis amplitude.

[0121] In one possible implementation, the first parameter includes a first equalization parameter; the determining module 401 is used to update the first equalization parameter.

[0122] In one possible implementation, the device further includes a transmission module, which is used to transmit information indicating the end of the CDR phase to the second device when the first clock data is the same as the second clock data carried by the first training data. The information indicating the end of the CDR phase indicates the start of EQ phase training for the link.

[0123] In one possible implementation, the first device includes an equalization controller for recovering received data based on equalization parameters, the target parameters including a target transmission voltage amplitude, a target pre-emphasis amplitude, and target equalization parameters; a configuration module 402 for transmitting the target transmission voltage amplitude and the target pre-emphasis amplitude to a second device, such that when the second device sends data to be displayed to the first device via the link, it sends the data according to the target transmission voltage amplitude and the target pre-emphasis amplitude; and adjusting the equalization controller according to the target equalization parameters, such that the equalization controller recovers the data transmitted by the link according to the target equalization parameters.

[0124] It should be noted that the beneficial effects of the apparatus provided in the above embodiments can be compared with the beneficial effects of the method provided in the above embodiments, and will not be repeated here. When the apparatus provided in the above embodiments implements its functions, the division of the above functional modules is only used as an example. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. Furthermore, the apparatus and method embodiments provided in the above embodiments belong to the same concept, and their specific implementation process is detailed in the method embodiments, and will not be repeated here.

[0125] Figure 5 This is a schematic diagram of a link configuration device structure provided in an embodiment of this application. The device can be a terminal, such as a smartphone, tablet, media player, laptop, or desktop computer. The terminal may also be referred to as user equipment, portable terminal, laptop terminal, desktop terminal, or other names.

[0126] Typically, a terminal includes a processor 1501 and a memory 1502.

[0127] Processor 1501 may include one or more processing cores, such as a quad-core processor, an octa-core processor, etc. Processor 1501 may be implemented using at least one hardware form selected from DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). Processor 1501 may also include a main processor and a coprocessor. The main processor, also known as a CPU (Central Processing Unit), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, processor 1501 may integrate a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the screen. In some embodiments, processor 1501 may also include an AI (Artificial Intelligence) processor, which is used to handle computational operations related to machine learning.

[0128] The memory 1502 may include one or more computer-readable storage media, which may be non-transitory. The memory 1502 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In some embodiments, the non-transitory computer-readable storage media in the memory 1502 is used to store at least one instruction, which is executed by the processor 1501 to enable the terminal to implement the link configuration method provided in the method embodiments of this application.

[0129] In some embodiments, the terminal may also optionally include: a peripheral device interface 1503 and at least one peripheral device. The processor 1501, memory 1502, and peripheral device interface 1503 can be connected via a bus or signal line. Each peripheral device can be connected to the peripheral device interface 1503 via a bus, signal line, or circuit board. Specifically, the peripheral device includes at least one of: a radio frequency circuit 1504, a display screen 1505, a camera assembly 1506, an audio circuit 1507, and a power supply 1508.

[0130] Peripheral interface 1503 can be used to connect at least one I / O (Input / Output) related peripheral device to processor 1501 and memory 1502. In some embodiments, processor 1501, memory 1502 and peripheral interface 1503 are integrated on the same chip or circuit board; in some other embodiments, any one or two of processor 1501, memory 1502 and peripheral interface 1503 can be implemented on separate chips or circuit boards, which is not limited in this embodiment.

[0131] The radio frequency (RF) circuit 1504 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The RF circuit 1504 communicates with communication networks and other communication devices via electromagnetic signals. The RF circuit 1504 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals back into electrical signals. Optionally, the RF circuit 1504 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, etc. The RF circuit 1504 can communicate with other terminals through at least one wireless communication protocol. This wireless communication protocol includes, but is not limited to: metropolitan area networks (MANs), various generations of mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks (WLANs), and / or WiFi (Wireless Fidelity) networks. In some embodiments, the RF circuit 1504 may also include circuitry related to NFC (Near Field Communication), which is not limited in this application.

[0132] Display screen 1505 is used to display a UI (User Interface). This UI may include graphics, text, icons, videos, and any combination thereof. When display screen 1505 is a touch display screen, it also has the ability to collect touch signals on or above its surface. These touch signals can be input as control signals to processor 1501 for processing. In this case, display screen 1505 can also be used to provide virtual buttons and / or a virtual keyboard, also known as soft buttons and / or a soft keyboard. In some embodiments, display screen 1505 can be a single screen, located on the front panel of the terminal; in other embodiments, display screen 1505 can be at least two screens, respectively located on different surfaces of the terminal or in a folded design; in other embodiments, display screen 1505 can be a flexible display screen, located on a curved or folded surface of the terminal. Furthermore, display screen 1505 can be configured as a non-rectangular, irregular shape, i.e., a non-rectangular screen. Display screen 1505 can be made of materials such as LCD (Liquid Crystal Display) or OLED (Organic Light-Emitting Diode).

[0133] The camera assembly 1506 is used to acquire images or videos. Optionally, the camera assembly 1506 includes a front-facing camera and a rear-facing camera. Typically, the front-facing camera is located on the front panel of the terminal, and the rear-facing camera is located on the back of the terminal. In some embodiments, there are at least two rear-facing cameras, which are any one of a main camera, a depth-sensing camera, a wide-angle camera, and a telephoto camera, to achieve background blurring by fusion of the main camera and the depth-sensing camera, panoramic shooting by fusion of the main camera and the wide-angle camera, VR (Virtual Reality) shooting, or other fusion shooting functions. In some embodiments, the camera assembly 1506 may also include a flash. The flash can be a single-color temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm-light flash and a cool-light flash, which can be used for light compensation at different color temperatures.

[0134] The audio circuit 1507 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, converting the sound waves into electrical signals that are input to the processor 1501 for processing, or input to the radio frequency circuit 1504 for voice communication. For stereo sound acquisition or noise reduction purposes, multiple microphones may be used, each positioned at a different location on the terminal. The microphone may also be an array microphone or an omnidirectional microphone. The speaker is used to convert electrical signals from the processor 1501 or the radio frequency circuit 1504 into sound waves. The speaker may be a conventional diaphragm speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can convert electrical signals not only into audible sound waves but also into inaudible sound waves for purposes such as distance measurement. In some embodiments, the audio circuit 1507 may also include a headphone jack.

[0135] Power supply 1508 is used to power the various components in the terminal. Power supply 1508 can be AC ​​power, DC power, a disposable battery, or a rechargeable battery. When power supply 1508 includes a rechargeable battery, the rechargeable battery can support wired or wireless charging. The rechargeable battery can also be used to support fast charging technology.

[0136] In some embodiments, the terminal further includes one or more sensors 1509. The one or more sensors 1509 include, but are not limited to: an acceleration sensor 1510, a gyroscope sensor 1511, a pressure sensor 1512, an optical sensor 1513, and a proximity sensor 1514.

[0137] Accelerometer 1510 can detect the magnitude of acceleration along the three coordinate axes of a coordinate system established by the terminal. For example, accelerometer 1510 can be used to detect the components of gravitational acceleration along the three coordinate axes. Processor 1501 can control display screen 1505 to display the user interface in either a landscape or portrait view based on the gravitational acceleration signal acquired by accelerometer 1510. Accelerometer 1510 can also be used for games or for acquiring user motion data.

[0138] The gyroscope sensor 1511 can detect the terminal's orientation and rotation angle. The gyroscope sensor 1511 can work in conjunction with the accelerometer sensor 1510 to collect the user's 3D movements on the terminal. Based on the data collected by the gyroscope sensor 1511, the processor 1501 can perform the following functions: motion sensing (e.g., changing the UI based on the user's tilt), image stabilization during shooting, game control, and inertial navigation.

[0139] The pressure sensor 1512 can be disposed on the side bezel of the terminal and / or the lower layer of the display screen 1505. When the pressure sensor 1512 is disposed on the side bezel of the terminal, it can detect the user's grip signal on the terminal, and the processor 1501 can perform left / right hand recognition or quick operation based on the grip signal collected by the pressure sensor 1512. When the pressure sensor 1512 is disposed on the lower layer of the display screen 1505, the processor 1501 can control the operable controls on the UI interface based on the user's pressure operation on the display screen 1505. The operable controls include at least one of button controls, scroll bar controls, icon controls, and menu controls.

[0140] Optical sensor 1513 is used to collect ambient light intensity. In one embodiment, processor 1501 can control the display brightness of display screen 1505 based on the ambient light intensity collected by optical sensor 1513. Specifically, when the ambient light intensity is high, the display brightness of display screen 1505 is increased; when the ambient light intensity is low, the display brightness of display screen 1505 is decreased. In another embodiment, processor 1501 can also dynamically adjust the shooting parameters of camera assembly 1506 based on the ambient light intensity collected by optical sensor 1513.

[0141] The proximity sensor 1514, also known as a distance sensor, is typically installed on the front panel of the terminal. The proximity sensor 1514 is used to detect the distance between the user and the front of the terminal. In one embodiment, when the proximity sensor 1514 detects that the distance between the user and the front of the terminal is gradually decreasing, the processor 1501 controls the display screen 1505 to switch from a screen-on state to a screen-off state; when the proximity sensor 1514 detects that the distance between the user and the front of the terminal is gradually increasing, the processor 1501 controls the display screen 1505 to switch from a screen-off state to a screen-on state.

[0142] Those skilled in the art will understand that Figure 5 The structure shown does not constitute a limitation on the terminal and may include more or fewer components than shown, or combine certain components, or use different component arrangements.

[0143] In an exemplary embodiment, a computer device is also provided, comprising a processor and a memory storing at least one computer program. The at least one computer program is loaded and executed by one or more processors to enable the computer device to implement any of the above-described link configuration methods.

[0144] In an exemplary embodiment, a computer-readable storage medium is also provided, which stores at least one computer program that is loaded and executed by a processor of a computer device to enable the computer to implement any of the above-described link configuration methods.

[0145] In one possible implementation, the aforementioned computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), magnetic tape, floppy disk, and optical data storage device, etc.

[0146] In an exemplary embodiment, a computer program product or computer program is also provided, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform any of the above-described link configuration methods.

[0147] It should be noted that all information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.), and signals involved in this application have been authorized by the user or fully authorized by all parties, and the collection, use, and processing of related data must comply with the relevant laws, regulations, and standards of the relevant countries and regions. For example, the parameters involved in this application were all obtained with full authorization.

[0148] It should be understood that "multiple" as used in this article refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. The character " / " generally indicates that the preceding and following related objects have an "or" relationship.

[0149] It should be noted that the terms "first," "second," etc. (if applicable) in the specification and claims 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 of this application described herein can be implemented in orders other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.

[0150] The above description is merely an exemplary embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the principles of this application should be included within the protection scope of this application.

Claims

1. A method for configuring a link, characterized in that, The method is applied to a first device, wherein the link is a link between a first data transmission port of the first device and a second data transmission port of a second device, and the method includes: The first clock data is determined based on the first training data sent by the second device during the clock and data recovery phase; When the first clock data is the same as the second clock data carried by the first training data, the link is trained in multiple equalization phases based on multiple parameters, and the target parameters are determined based on the multiple training results obtained from the multiple equalization phases. Configure the link according to the target parameters, and the configured link is used by the second device to transmit data to be displayed to the first device.

2. The method according to claim 1, characterized in that, When the first clock data is the same as the second clock data carried by the first training data, the link is trained in multiple equalization phases based on multiple parameters. The target parameters are determined based on the multiple training results obtained from the multiple equalization phases, including: If the first clock data is the same as the second clock data carried by the first training data, obtain the first remaining number of times the first device trains the link during the equalization phase; If the first remaining number of times is greater than the first number threshold, a first parameter is obtained, and the first number threshold is used to indicate that training based on unused parameters should be stopped. Based on the first parameter, the link is trained once to obtain a training result, and the first remaining number of times is updated. If the updated first remaining number of times is greater than the first number of times threshold, update the first parameter, and repeat the above steps based on the updated first parameter to obtain the multiple training results; Until the updated first remaining number of times is less than or equal to the first number of times threshold, the target parameter is determined from multiple first parameters based on the accuracy corresponding to the multiple training results, and the training result corresponding to the target parameter indicates that the training was successful.

3. The method according to claim 2, characterized in that, The first parameter includes the first transmission voltage amplitude, the first pre-emphasis amplitude, and the first equalization parameter; The step of training the link based on the first parameter to obtain a training result includes: The second training data is recovered based on the first equalization parameter to obtain the first recovered data. The second training data is sent by the second device through the link. The second training data is generated based on the first transmission voltage amplitude, the first pre-emphasis amplitude and the first template data. The training result is determined based on the similarity between the first recovered data and the first template data.

4. The method according to claim 2, characterized in that, When the first remaining number of times is greater than the threshold of the first number of times, obtaining the first parameter includes: If the first remaining number of times is greater than the first number threshold and less than the second number threshold, the second parameter is updated to obtain the first parameter. The second parameter is the first parameter used in the previous training. The second number threshold indicates the maximum number of training times in the equalization phase.

5. The method according to claim 2, characterized in that, The first parameter includes the first transmitted voltage amplitude and the first pre-emphasis amplitude; Updating the first parameter includes: A parameter adjustment request is sent to the second device, the parameter adjustment request being used to instruct the second device to update at least one of the first transmission voltage amplitude or the first pre-emphasis amplitude, the updated first parameter including at least one of the updated first transmission voltage amplitude or the updated first pre-emphasis amplitude.

6. The method according to any one of claims 1-3, characterized in that, Before determining the target parameters based on the multiple training results obtained from the multiple equalization phases of training the link based on multiple parameters, when the first clock data is the same as the second clock data carried by the first training data, the method further includes: If the first clock data is the same as the second clock data carried by the first training data, the information indicating the end of the clock and data recovery phase is transmitted to the second device, and the information indicating the end of the clock and data recovery phase indicates the start of the equalization phase training for the link.

7. The method according to claim 1, characterized in that, The first device includes an equalization controller, which is used to recover received data based on equalization parameters, wherein the target parameters include target transmitted voltage amplitude, target pre-emphasis amplitude, and target equalization parameters; Configuring the link according to the target parameters includes: The target transmission voltage amplitude and the target pre-emphasis amplitude are transmitted to the second device, so that when the second device sends the data to be displayed to the first device through the link, it sends it according to the target transmission voltage amplitude and the target pre-emphasis amplitude; The equalization controller is adjusted according to the target equalization parameters so that the equalization controller recovers the data transmitted by the link according to the target equalization parameters.

8. A link configuration device, characterized in that, The device is a first device, and the link is a link between a first data transmission port of the first device and a second data transmission port of the second device. The device includes: The determining module is used to determine the first clock data based on the first training data sent by the second device during the clock and data recovery phase; The determining module is further configured to, when the first clock data is the same as the second clock data carried by the first training data, train the link in multiple equalization phases based on multiple parameters, and determine the target parameters based on the multiple training results obtained from the multiple equalization phases. The configuration module is used to configure the link according to the target parameters. The configured link is used by the second device to transmit data to be displayed to the first device.

9. A computer device, characterized in that, The computer device includes a processor and a memory, the memory storing at least one computer program, the at least one computer program being loaded and executed by the processor to enable the computer device to implement the link configuration method as described in any one of claims 1 to 8.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores at least one computer program, which is loaded and executed by a processor to enable the computer to implement the link configuration method as described in any one of claims 1 to 8.

Citation Information

Patent Citations

  • Link training method and device, electronic equipment and computer readable storage medium

    CN115643138A

  • Video playing system and method

    CN117749969A