Data link establishment method and device, storage medium and electronic device

By adjusting candidate configuration information in the server to meet the transmission performance threshold, the problem of poor PCIE link transmission performance is solved, and the stable operation and link compatibility of the hard disk are achieved, which is suitable for different models of hard disks.

CN118803103BActive Publication Date: 2024-12-03INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411287232.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-13
Publication Date
2024-12-03
Estimated Expiration
2044-09-13

AI Technical Summary

Technical Problem

In the prior art, the transmission performance of PCIE links in the server is poor, resulting in the problem of slowing down and card-dropping of the hard disk. This is mainly because the fixed preset parameters cannot meet the signal requirements of different models of hard disks, resulting in poor link compatibility.

Method used

By providing candidate configuration information in the target transmission protocol, adjusting the reference configuration information according to the transmission performance threshold, obtaining the target configuration information, and configuring the initial data link to ensure that the transmission performance reaches or exceeds the threshold.

Benefits of technology

It improves the transmission performance of the data link, solves the problems of hard disk speed reduction and card drop, ensures link compatibility and signal quality, and is suitable for different models of hard disks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118803103B_ABST
    Figure CN118803103B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a method and device for establishing a data link, a storage medium and an electronic device, wherein the method includes: establishing an initial data link between a server device and a connected target protocol device according to a target transmission protocol; obtaining benchmark configuration information from the candidate configuration information when the candidate transmission performance corresponding to the candidate configuration information is lower than the transmission performance threshold; adjusting the benchmark configuration information from the benchmark transmission performance corresponding to the benchmark configuration information to the transmission performance threshold to obtain target configuration information, wherein the target configuration information complies with the target transmission protocol and the target transmission performance corresponding to the target configuration information is higher than the transmission performance threshold; configuring the initial data link using the target configuration information to obtain the target data link. Through the present application, the problem of poor transmission performance of the data link is solved, thereby achieving the effect of improving the transmission performance of the data link.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computers, and more specifically, to a method and device for establishing a data link, a storage medium, and an electronic device. Background Art

[0002] Protocol devices (for example, hard disks, which are used to store business data) are usually installed in servers. For example, the CPU (Central Processing Unit) on the mainboard of the server is connected to the hard disk on the front window of the chassis through a cable. The hard disk uses the PCIE (peripheral component interconnectexpress, a high-speed serial computer expansion bus standard) bus for data transmission, so the link between the server mainboard CPU and the hard disk can be simplified to a PCB (Printed Circuit Board, circuit board) trace-connector-cable-connector-PCB trace-connector model. The PCIE transmission rate of existing protocol devices (for example, NVME hard disks) can usually reach GEN4, that is, 16GT / S. It is a high-speed signal. At the beginning of the design, the signal integrity simulation will be performed by software to determine the SI margin of the current link, and then confirm whether the overall design of the link can support the accurate transmission of high-speed signals. Due to the internal resource limitations of the server, it is inevitable that some links will have a long overall transmission path. Although the result of SI simulation is PASS, which is within the margin allowed by the PCIE specification, the signal transmission amplitude, swing, and minimum differential voltage at the receiving end are different due to the differences in the design of different models of hard disks. Signal problems may occur in actual use, and serious problems may include speed reduction and card drop.

[0003] In the related art, during PCIE link training, the link rate will first be negotiated to GEN1 (Generation 1), that is, 2.5GT / S (Giga Transmission per second). Then it jumps to the recovery phase to perform PCIE rate upgrade training. In the recovery phase, the PCIE mechanism will automatically adapt the de-emphasis preset parameters of the HOST. In the CPU BIOS options, you can manually adjust the BIOS options to send a fixed TX (Transmitter) preset value required by the host. The hard disk side adjusts according to the preset parameters specified by the CPU. After the hard disk completes the adjustment of the preset parameters, it will send the TS1 message specified in the PCIE specification back to the CPU according to the signal amplitude specified by the set TX preset parameters, complete the handshake mechanism, and finally increase the PCIE rate of the link to the set rate.

[0004] It is understandable that in the related art, the process of PCIE link training is designed completely in accordance with the PCIE specification, which is relatively rigid and lacks flexibility. For example, when the CPU negotiates preset parameters with different hard disks, a suitable preset parameter is selected from the preset parameters specified in the PCIE protocol. In this way, the SI requirements of the PCIE link will be different when there are large individual differences between hard disks of the same type or different hard disks. The use of fixed TX preset parameters will result in inappropriate parameters. The compatibility of the entire link deteriorates, which may cause problems such as hard disk speed reduction and card drop. The selected preset parameters may not meet the performance requirements of data transmission. For example, the signal transmission quality of the PCIE link cannot meet the requirements. Summary of the invention

[0005] The embodiments of the present application provide a method and device for establishing a data link, a storage medium, and an electronic device, so as to at least solve the problem of poor transmission performance of the data link in the related art.

[0006] According to one embodiment of the present application, a method for establishing a data link is provided, which is applied to a server device, wherein the server device is configured to allow connection to a protocol device that supports a target transmission protocol, wherein candidate configuration information is provided in the target transmission protocol, and the candidate configuration information is used to configure signal transmission quality, the method comprising: establishing an initial data link between the server device and the connected target protocol device in accordance with the target transmission protocol; obtaining benchmark configuration information from the candidate configuration information when the candidate transmission performance corresponding to the candidate configuration information is lower than a transmission performance threshold; adjusting the benchmark configuration information from the benchmark transmission performance corresponding to the benchmark configuration information toward the transmission performance threshold to obtain target configuration information, wherein the target configuration information complies with the target transmission protocol and the target transmission performance corresponding to the target configuration information is higher than the transmission performance threshold; and configuring the initial data link using the target configuration information to obtain the target data link.

[0007] In an exemplary embodiment, before obtaining the benchmark configuration information from the candidate configuration information, the method also includes: upon detecting that configuration of the initial data link using the second configuration rate fails, reverting the configuration information of the initial data link from the second configuration rate to the first configuration rate, wherein configuration of the initial data link using the first configuration rate is successful; and again adjusting the configuration rate of the initial data link from the first configuration rate to the second configuration rate to obtain a fourth data link.

[0008] In an exemplary embodiment, after adjusting the configuration rate of the initial data link from the first configuration rate to the second configuration rate again to obtain the fourth data link, the method also includes: detecting whether the transmission performance of the fourth data link corresponding to the second configuration rate is lower than the transmission performance threshold; when it is detected that the transmission performance of the fourth data link corresponding to the second configuration rate is lower than the transmission performance threshold, traversing the candidate configuration information to obtain the benchmark configuration information.

[0009] In an exemplary embodiment, obtaining benchmark configuration information from candidate configuration information includes: when the candidate configuration information includes N configuration information, obtaining benchmark configuration information from the N configuration information by performing the following steps, where N is a positive integer: filtering benchmark configuration information with the best transmission performance from the N configuration information; or randomly filtering benchmark configuration information from the N configuration information.

[0010] In an exemplary embodiment, the benchmark configuration information is adjusted from the benchmark transmission performance corresponding to the benchmark configuration information to the transmission performance threshold to obtain the target configuration information, including: detecting the difference in transmission performance between the benchmark transmission performance and the transmission performance threshold; and adjusting the benchmark configuration information to the target configuration information according to the difference in transmission performance.

[0011] In an exemplary embodiment, adjusting the reference configuration information to the target configuration information according to the differential transmission performance includes: detecting a reference adjustment direction of the reference configuration information; and adjusting the reference configuration information to the target configuration information according to the reference adjustment direction and the differential transmission performance.

[0012] In an exemplary embodiment, detecting a benchmark adjustment direction of benchmark configuration information includes: when the benchmark configuration information includes a benchmark configuration parameter, and the benchmark configuration parameter includes M benchmark configuration sub-parameters, detecting the benchmark adjustment direction of the benchmark configuration information by performing the following steps, wherein M is a positive integer: adjusting at least one configuration sub-parameter of the M benchmark configuration sub-parameters according to a candidate adjustment direction to obtain M adjustment configuration sub-parameters; detecting whether an adjustment transmission performance corresponding to the M adjustment configuration sub-parameters is higher than a candidate transmission performance; and determining the candidate adjustment direction as the benchmark adjustment direction when it is detected that the adjustment transmission performance is higher than the candidate transmission performance.

[0013] In an exemplary embodiment, at least one configuration subparameter among M benchmark configuration subparameters is adjusted according to a candidate adjustment direction to obtain M adjustment configuration subparameters, including: when the i-th benchmark configuration subparameter among the M benchmark configuration subparameters is adjusted according to the candidate adjustment direction, the i-th benchmark configuration subparameter is increased to obtain the i-th adjustment configuration subparameter, or the i-th benchmark configuration subparameter is decreased to obtain the i-th adjustment configuration subparameter, where i is a positive integer less than or equal to M; when the j-th group of benchmark configuration subparameters among the M benchmark configuration subparameters is adjusted according to the candidate adjustment direction, each benchmark configuration subparameter among P benchmark configuration subparameters is increased, or each benchmark configuration subparameter among P benchmark configuration subparameters is decreased, or at least one benchmark configuration subparameter among P benchmark configuration subparameters is decreased, and other benchmark configuration subparameters among the P benchmark configuration subparameters except for at least one benchmark configuration subparameter are increased, where the j-th group of benchmark configuration subparameters includes P benchmark configuration subparameters among the M benchmark configuration subparameters, and P is a positive integer greater than or equal to 2 and less than or equal to M.

[0014] In an exemplary embodiment, the benchmark configuration information is adjusted to the target configuration information according to the benchmark adjustment direction and the differential transmission performance, including: detecting the target configuration information adjustment range corresponding to the differential transmission performance from the transmission performance and configuration information adjustment ranges having a corresponding relationship, wherein the target configuration information adjustment range includes multiple groups of adjustment amounts, each group of adjustment amounts in the multiple groups of adjustment amounts is used to adjust the benchmark configuration information; and adjusting the benchmark configuration information to the target configuration information within the target configuration information adjustment range according to the benchmark adjustment direction.

[0015] In an exemplary embodiment, according to a benchmark adjustment direction, the benchmark configuration information is adjusted to the target configuration information within the target configuration information adjustment range, including: when the target configuration information adjustment range includes M groups of adjustment amounts, the benchmark configuration information is adjusted to the target configuration information by performing the following steps, wherein M is a positive integer greater than or equal to 2: obtaining an i-th group of adjustment amounts used for the i-th round of adjustment from the M groups of adjustment amounts on which no selection operation has been performed, wherein i is a positive integer less than or equal to M; according to the benchmark adjustment direction, adjusting the i-1th round of configuration information obtained by the i-1th round of adjustment to the i-th round of configuration information using the i-th group of adjustment amounts, wherein when i is equal to 1, the i-1th round of configuration information includes the benchmark configuration information, and when i is a positive integer greater than or equal to 2, the i-1th round of configuration information includes configuration information obtained by adjusting the i-2nd round of configuration information obtained by the i-2nd round of adjustment using the i-1th group of adjustment amounts.

[0016] In an exemplary embodiment, according to a benchmark adjustment direction, the i-1th round configuration information obtained by the i-1th round adjustment is adjusted to the i-th round configuration information using the i-th group of adjustment amounts, including: when the benchmark adjustment direction is used to indicate an increase in configuration information, the sum of the i-1th round configuration information and the i-th group of adjustment amounts is determined as the i-th round configuration information; when the benchmark adjustment direction is used to indicate a decrease in configuration information, the configuration information obtained by subtracting the i-th group of adjustment amounts from the i-1th round configuration information is determined as the i-th round configuration information.

[0017] In an exemplary embodiment, after adjusting the i-1th round configuration information obtained by the i-1th round adjustment to the i-th round configuration information using the i-th group of adjustment amounts according to the benchmark adjustment direction, the method also includes: detecting whether the reference transmission performance corresponding to the i-th round configuration information is higher than the transmission performance threshold; when it is detected that the reference transmission performance is lower than the transmission performance threshold, screening the i+1th group of adjustment amounts used for the i+1th round adjustment from the adjustment amounts that have not been selected in the configuration information adjustment range; and adjusting the i-1th round configuration information to the i+1th round configuration information using the i+1th group of adjustment amounts according to the benchmark adjustment direction.

[0018] In an exemplary embodiment, target configuration information is stored in the protocol device. After the target configuration information is used to configure the initial data link to obtain the target data link, the method also includes: establishing a first data link between the reference server device and the connected target protocol device according to the target transmission protocol; when the candidate transmission performance corresponding to the candidate configuration information is lower than the transmission performance threshold, obtaining the target configuration information from the protocol device; and using the target configuration information to configure the first data link to obtain a second data link.

[0019] In an exemplary embodiment, obtaining target configuration information from a protocol device includes: detecting whether to retrain a first data link; and obtaining the target configuration information from the protocol device when it is detected that the first data link is retrained.

[0020] In an exemplary embodiment, detecting whether to retrain the first data link includes: configuring the first data link using candidate configuration information to obtain a third data link; detecting whether the transmission performance corresponding to the third data link is lower than a transmission performance threshold; and determining that retraining of the first data link is detected when detecting that the transmission performance corresponding to the third data link is lower than the transmission performance threshold.

[0021] In an exemplary embodiment, when retraining of the first data link is detected, target configuration information is obtained from a protocol device, including: receiving a target setting instruction initiated by a reference server device, wherein the target setting instruction is used to instruct the target protocol device to configure the first data link using candidate configuration information; when retraining of the first data link is detected, ignoring the target setting instruction and obtaining the target configuration information from the protocol device.

[0022] According to another embodiment of the present application, a device for establishing a data link is provided, including: applied to a server device, the server device is configured to allow connection to a protocol device that supports a target transmission protocol, and candidate configuration information is provided in the target transmission protocol, the device including: a first establishment module, used to establish an initial data link between the server device and the connected target protocol device according to the target transmission protocol; a first acquisition module, used to obtain benchmark configuration information from the candidate configuration information when the candidate transmission performance corresponding to the candidate configuration information is lower than the transmission performance threshold; a first adjustment module, used to adjust the benchmark configuration information from the benchmark transmission performance corresponding to the benchmark configuration information to the transmission performance threshold to obtain target configuration information, wherein the target configuration information complies with the target transmission protocol and the target transmission performance corresponding to the target configuration information is higher than the transmission performance threshold; a first configuration module, used to configure the initial data link using the target configuration information to obtain the target data link.

[0023] According to another embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.

[0024] According to another embodiment of the present application, an electronic device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0025] According to another embodiment of the present application, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.

[0026] Through the present application, when the transmission performance corresponding to the configuration information provided in the transmission protocol cannot meet the transmission performance requirements of the data link, the benchmark configuration information in the configuration information provided in the transmission protocol can be adjusted, and the transmission performance corresponding to the adjusted configuration information can meet the transmission performance requirements of the data link. In this case, the data link is configured using the adjusted configuration information, thereby solving the problem of poor transmission performance of the data link and achieving the effect of improving the transmission performance of the data link. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 It is a hardware structure block diagram of a server device of a method for establishing a data link according to an embodiment of the present application;

[0028] Figure 2 is a flow chart of a method for establishing a data link according to an embodiment of the present application;

[0029] Figure 3 is a schematic diagram of a method for establishing a data link according to an embodiment of the present application;

[0030] Figure 4 It is a schematic diagram of the flow between an optional verification mechanism, a compatibility detection mechanism and a parameter optimization mechanism according to an embodiment of the present application;

[0031] Figure 5 is a schematic diagram of an optional optimization of configuration sub-parameters according to an embodiment of the present application;

[0032] Figure 6 is a schematic diagram of an optional compatibility detection mechanism according to an embodiment of the present application;

[0033] Figure 7 It is a structural block diagram of a device for establishing a data link according to an embodiment of the present application. DETAILED DESCRIPTION

[0034] The embodiments of the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0035] It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0036] The method embodiments provided in the embodiments of the present application can be executed in a server device or a similar computing device. Taking running on a server device as an example, Figure 1 1 is a hardware structure block diagram of a server device of a method for establishing a data link in an embodiment of the present application. Figure 1 As shown, the server device may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the above-mentioned server device may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above server device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.

[0037] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the method for establishing a data link in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the server device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0038] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the server device. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0039] In this embodiment, a method for establishing a data link is provided, which is applied to a server device. The server device is configured to allow connection to a protocol device that supports a target transmission protocol. The target transmission protocol provides candidate configuration information, which is used to configure signal transmission quality. Figure 2 is a flow chart of a method for establishing a data link according to an embodiment of the present application, such as Figure 2 As shown, the process includes the following steps:

[0040] Step S202, establishing an initial data link between the server device and the connected target protocol device according to the target transmission protocol;

[0041] Step S204, when the candidate transmission performance corresponding to the candidate configuration information is lower than the transmission performance threshold, obtaining the reference configuration information from the candidate configuration information;

[0042] Step S206, adjusting the benchmark configuration information from the benchmark transmission performance corresponding to the benchmark configuration information to the transmission performance threshold to obtain target configuration information, wherein the target configuration information complies with the target transmission protocol and the target transmission performance corresponding to the target configuration information is higher than the transmission performance threshold;

[0043] Step S208: Use the target configuration information to configure the initial data link to obtain the target data link.

[0044] Through the above steps, when the transmission performance corresponding to the configuration information provided in the transmission protocol cannot meet the transmission performance requirements of the data link, the benchmark configuration information in the configuration information provided in the transmission protocol can be adjusted, and the transmission performance corresponding to the adjusted configuration information can meet the transmission performance requirements of the data link. In this case, the data link is configured using the adjusted configuration information, thereby solving the problem of poor transmission performance of the data link and achieving the effect of improving the transmission performance of the data link.

[0045] In the technical solution provided in the above step S202, candidate configuration information that allows configuration of a data link that complies with the target transmission protocol is provided in the target transmission protocol. The candidate configuration information can be, but is not limited to, used to configure the signal transmission quality of the signal sent by the protocol device through the data link. For example, the signal transmission quality can be, but is not limited to, measured by the bit error rate of the signal sent by the protocol device.

[0046] Optionally, in this embodiment, the target data link is used to transmit protocol data of the target transmission protocol between the server device and the target protocol device.

[0047] Optionally, in this embodiment, the transmission performance threshold is used to indicate the performance requirements that must be met at least for the transmission performance of the data link between the server device and the target protocol device, wherein the performance requirements may include, but are not limited to, requirements for transmission performance such as accuracy of transmitted data and efficiency of transmitted data. For example, the requirement for accuracy of transmitted data may include, but is not limited to, requirements for bit error rate of transmitted data, and the requirement for efficiency of transmitted data may include, but is not limited to, requirements for speed of transmitted data.

[0048] Optionally, in this embodiment, the initial data link may be, but is not limited to, conforming to part of the protocol content in the target transmission protocol, and the target transmission protocol may be, but is not limited to, including the PCIE protocol, etc., which is not limited in this application. The initial data link may be, but is not limited to, including a PCIE data link between the server device and the target protocol device.

[0049] In the technical solution provided in the above step S204, when the candidate transmission performance corresponding to the candidate configuration information is higher than the transmission performance threshold, it can be indicated that the candidate transmission performance is greater than or equal to the transmission performance threshold. In this case, the candidate transmission performance corresponding to the candidate configuration information satisfies the performance requirements that the transmission performance of the data link between the server device and the target protocol device must at least meet. In this case, the candidate configuration information is directly used to configure the initial data link to obtain the target data link.

[0050] In an exemplary embodiment, before obtaining the benchmark configuration information from the candidate configuration information, the above method also includes: when it is detected that the configuration of the initial data link using the second configuration rate fails, the configuration information of the initial data link is rolled back from the second configuration rate to the first configuration rate, wherein the configuration of the initial data link using the first configuration rate is successful; and the configuration rate of the initial data link is again adjusted from the first configuration rate to the second configuration rate to obtain a fourth data link.

[0051] Optionally, in this embodiment, the training of the initial data link may be terminated after a delay of, but not limited to, a target duration, and the configuration information of the initial data link may be returned from the second configuration rate to the first configuration rate. As an optional example, the configuration rate may be, but not limited to, the PCIE rate, and the target duration may be, but not limited to, 10ms, 12ms, or 30s, etc. This application does not impose any restrictions on this.

[0052] In an exemplary embodiment, after adjusting the configuration rate of the initial data link from the first configuration rate to the second configuration rate again to obtain the fourth data link, the above method also includes: detecting whether the transmission performance of the fourth data link corresponding to the second configuration rate is lower than the transmission performance threshold; when it is detected that the transmission performance of the fourth data link corresponding to the second configuration rate is lower than the transmission performance threshold, traversing the candidate configuration information to obtain the benchmark configuration information.

[0053] Optionally, in this embodiment, after Retraining, if the transmission performance (eg, bit error rate) of the data link still cannot meet the requirements, in such a case, it is possible but not limited to traversing candidate configuration information to obtain reference configuration information.

[0054] Figure 3 is a schematic diagram of a method for establishing a data link according to an embodiment of the present application, such as Figure 3 As shown, the data link can be trained using the candidate configuration information provided in the PCIE protocol first, but is not limited to it. Taking the data link including the PCIE data link as an example, but is not limited to it, the embodiment of the present application can include, but is not limited to, three mechanisms (for example, a verification mechanism, a parameter optimization mechanism, and a compatibility detection mechanism, etc.), and each mechanism flows through the judgment condition. Depending on the actual situation, it is also possible to skip a mechanism.

[0055] Under the verification mechanism, the normal PCIE link training process is first followed. After the initial link (connection), the link can be connected at a rate of but not limited to PCIE1.0 2.5GT / S. At this time, the recovery phase will be executed to perform link speed training. In this process, the BIOS (Basic Input / Output System) is first trained according to a fixed TX preset parameter (equivalent to the parameters included in the configuration information). In the PH1 phase of recovery, the HOST sends the preset parameter request to the endpoint (such as the hard disk). After receiving the request from the host, the terminal modifies the preset sending parameters of the hard disk itself (equivalent to the parameters included in the configuration information) according to the established preset parameters (equivalent to the parameters included in the configuration information). The TS1 field is sent to the host according to the preset value. If the bit error rate of the TS1 field received by the host is qualified, for example, the bit error rate is less than 10^-4, the preset parameter is considered qualified and meets the link SI (Signal Integrity) requirements after the speed increase, proving that the link SI performance meets the requirements in a normal environment, and then the handshake is successful, and the next stage of parameter fine-tuning is carried out. After that, the PCIE data is transmitted normally. If this is achieved, the BIOS does not need to make additional interventions.

[0056] If the training using the preset parameters (equivalent to the parameters included in the configuration information) fails during this process, and the bit error rate received by the host exceeds the standard, the PH1 (Phase 1) handshake fails, and the host terminates the training process after a delay of 12ms (millisecond) (or 20ms, or 25ms, etc., which is not limited in this application), and the PCIE rate can be but is not limited to returning to the original rate. After that, a link retrain action is performed, which is executed in the BIOS script. The purpose is to retrain the PCIE link to perform a speed-up negotiation process to see if it can recover automatically. If the PCIE link passes the speed-up handshake stage normally after retraining, no other intervention will be performed, and PCIE data transmission will proceed normally.

[0057] If the link still cannot be upgraded to the specified rate after retraining, parameter traversal adaptation is required. PCIE has a total of 12 preset parameters (equivalent to the configuration parameters included in the candidate configuration information) from PH0 to PH10 in the recovery phase. The pre-cursor (weight coefficient of the previous bit), cursor (weight coefficient of the current bit), and post-cursor (weight coefficient of the next bit) values ​​of each parameter are different, which is reflected in the signal waveform as the current bit. The difference in signal amplitude between the previous bit and the next bit. Different signal amplitudes may have their own performance on different physical transmission links. Therefore, this stage is to traverse all preset parameters and analyze the phenomenon of this parameter. First, use the preset parameter P0 for a negotiation process. If the link is successfully upgraded to the established rate after using the preset0 parameter, it proves that preset parameter 0 can meet the needs of the current link. At this time, record the current preset parameters and solidify them in the BIOS. In the future, use the preset0 value for link training.

[0058] If the link still cannot be increased to the set rate after training with preset parameter 0, continue to manually perform the retrain action and use the next parameter preset1 for training, analyze the situation of using preset1 parameters, and determine the next action based on the results. Similarly, if the current parameters are not suitable, select the next parameters for training until the appropriate parameters are selected.

[0059] Figure 4 is a schematic diagram of the flow between an optional verification mechanism, a compatibility detection mechanism, and a parameter optimization mechanism according to an embodiment of the present application, such as Figure 4 As shown in the figure, if after traversing, a suitable preset parameter is selected from the 12 preset parameters, the current parameter can be recorded and the preset parameter will be used for subsequent training. The parameter optimization mechanism is skipped and the compatibility detection mechanism is directly performed. If after traversing, no suitable preset parameter is selected from the 12 preset parameters, the parameter optimization mechanism is performed.

[0060] In an exemplary embodiment, the benchmark configuration information can be obtained from the candidate configuration information in the following manner, but is not limited to: when the candidate configuration information includes N configuration information, the benchmark configuration information is obtained from the N configuration information by performing the following steps, where N is a positive integer: filtering the benchmark configuration information with the best transmission performance from the N configuration information; or randomly filtering the benchmark configuration information from the N configuration information.

[0061] Optionally, in this embodiment, the candidate transmission performance threshold may include but is not limited to a threshold of a bit error rate of the transmitted data, or a threshold of a rate of the transmitted data, etc., and may be but is not limited to screening benchmark configuration information whose transmission performance is greater than or equal to the candidate transmission performance threshold from N configuration information in the following manner: screening benchmark configuration information whose bit error rate is less than or equal to the bit error rate threshold from N configuration information, or screening benchmark configuration information whose transmission rate is greater than or equal to the transmission rate threshold from N configuration information.

[0062] Optionally, in this embodiment, when multiple configuration information having transmission performance greater than or equal to the candidate transmission performance threshold is screened out from N configuration information, benchmark configuration information is randomly screened out from the screened multiple configuration information, or, configuration information with the highest transmission performance is screened out from the screened multiple configuration information as the benchmark configuration information.

[0063] In this way, it is possible to filter out the benchmark configuration information from N configuration information in multiple ways, expand the filtering method for filtering out the adjusted benchmark configuration information, and improve the flexibility of filtering out the benchmark configuration information from N configuration information.

[0064] In the technical solution provided in the above step S206, the target configuration information complies with the target transmission protocol. It can be understood that the server device and the target protocol device allow data interaction according to the target configuration information.

[0065] In an exemplary embodiment, the benchmark configuration information can be adjusted from the benchmark transmission performance corresponding to the benchmark configuration information to the transmission performance threshold to obtain the target configuration information in the following manner, but is not limited to: detecting the difference in transmission performance between the benchmark transmission performance and the transmission performance threshold; and adjusting the benchmark configuration information to the target configuration information based on the difference in transmission performance.

[0066] Optionally, in this embodiment, the differential transmission performance may include but is not limited to the difference between the transmission performance threshold and the benchmark transmission performance, for example, the differential transmission performance is equal to the transmission performance obtained by subtracting the benchmark transmission performance from the transmission performance threshold, or the differential transmission performance is equal to the transmission performance obtained by subtracting the benchmark transmission performance from the transmission performance threshold, etc.

[0067] In an exemplary embodiment, the baseline configuration information may be adjusted to the target configuration information according to the differential transmission performance in the following manner but is not limited to: detecting a baseline adjustment direction of the baseline configuration information; and adjusting the baseline configuration information to the target configuration information according to the baseline adjustment direction and the differential transmission performance.

[0068] Optionally, in this embodiment, the candidate adjustment direction is randomly generated. For example, in the case of adjusting one baseline configuration sub-parameter, the candidate adjustment direction may include, but is not limited to, increasing or decreasing; in the case of adjusting two baseline configuration sub-parameters, the candidate adjustment direction may include, but is not limited to, increasing or decreasing at the same time, or increasing one of the baseline configuration sub-parameters and decreasing the other baseline configuration sub-parameter. In the case of adjusting the baseline configuration sub-parameters, three baseline configuration sub-parameters may be increased or decreased at the same time, or two of the baseline configuration sub-parameters may be increased and another baseline configuration sub-parameter may be decreased, or two of the baseline configuration sub-parameters may be decreased and another baseline configuration sub-parameter may be increased, etc.

[0069] It should be noted that when determining the accurate candidate adjustment direction, the adjustment amount is not limited. For example, the adjustment amount is randomly determined, and you can first adjust a little to confirm whether the adjustment direction is accurate.

[0070] In an exemplary embodiment, the baseline adjustment direction of the baseline configuration information can be detected in the following manner but is not limited to: when the baseline configuration information includes a baseline configuration parameter, and the baseline configuration parameter includes M baseline configuration sub-parameters, the baseline adjustment direction of the baseline configuration information is detected by performing the following steps, where M is a positive integer: adjusting at least one configuration sub-parameter of the M baseline configuration sub-parameters according to a candidate adjustment direction to obtain M adjustment configuration sub-parameters; detecting whether the adjusted transmission performance corresponding to the M adjustment configuration sub-parameters is higher than the candidate transmission performance; and when it is detected that the adjusted transmission performance is higher than the candidate transmission performance, determining the candidate adjustment direction as the baseline adjustment direction.

[0071] Optionally, in this embodiment, it is possible but not limited to detecting whether the adjusted transmission performance corresponding to the M adjustment configuration sub-parameters is higher than the candidate transmission performance in the following manner: summing the products of the M adjustment configuration sub-parameters and the corresponding weights to obtain the adjustment configuration parameters, and it is possible but not limited to detecting whether the adjusted transmission performance corresponding to the adjustment configuration parameters is greater than the candidate transmission performance.

[0072] It should be noted that the weights corresponding to the M adjustment configuration sub-parameters may be, but are not limited to, those provided by the target transmission protocol.

[0073] Figure 5 is a schematic diagram of an optional optimization of configuration sub-parameters according to an embodiment of the present application, such as Figure 5As shown, under the parameter optimization mechanism, according to the results obtained by the previous mechanism verification mechanism, from the training results of the eleven groups of parameters from preset0 to preset10, the bit error rates of the eleven groups of parameters in the PCIE negotiation process can be captured, but not limited to, through a PCIE logic analyzer, and one group of preset parameters with the best bit error rate (equivalent to the configuration parameters included in the benchmark configuration information) is selected as the benchmark parameters of the parameter optimization mechanism.

[0074] In the PCIE protocol, each preset parameter group consists of three sub-parameters, namely CN-1 C0 CN+1. Each sub-parameter represents the previous bit, the current bit, and the next bit. These three bit signals are weighted and output. By adjusting the values ​​of these three sub-parameters, the optimal link performance can be obtained. The combination of these three parameters must meet the following requirements: less than the maximum swing FS (full swing) of the transmitter and greater than the minimum differential voltage requirement LF (low frequency) of the receiver. It should be noted that the sub-parameters CN-1 C0 CN+1 can include but are not limited to the parameter values ​​given in the PCIE protocol. For applications, you only need to directly select these parameter values. The weighted output can include but is not limited to those specified in the PCIE specification, and no design is required.

[0075] Based on the baseline preset parameters obtained by the verification mechanism, fine-tune the preshoot and de-emphasis parameters composed of CN-1 C0 CN+1. Repeat the actions of the verification mechanism, conduct a link experiment on the preset parameters after fine-tuning, and judge whether the preset parameters can achieve the established speed increase rate based on the results. If successful, the specialized preset parameter record is solidified in the hard disk FW (Firmware).

[0076] If the preset parameters after fine-tuning fail to meet the requirements, continue to adjust the upper and lower ranges of each value of the previous set of CN-1 C0 CN+1 values, and make judgments based on the PCIE training results until the optimal C0 CN-1 CN+1 value is found. For example, the bit error rate meets the bit error rate requirement of 10^-4 in the PCIE link PH1 training phase, and there is no degradation problem.

[0077] The customized preset parameters after debugging can be, but are not limited to, fixed and written into the hard disk FW. In this way, the next time the HOST sends one of the twelve preset parameters inherent in the PCIE protocol according to the original settings, the hard disk does not adjust to the preset value sent by the host according to the host's requirements, but adapts according to the preset value fixed in the hard disk FW after optimization to achieve link performance.

[0078] It should be noted that even if the hard disk has been set according to the specialized preset parameters, the preset field in the TS1 (Training Sequence 1) message returned to the host still needs to be displayed as one of the twelve preset names specified by the PCIE protocol, that is, a false return operation, to avoid negotiation errors.

[0079] In an exemplary embodiment, at least one configuration subparameter among the M baseline configuration subparameters may be adjusted according to a candidate adjustment direction to obtain M adjustment configuration subparameters in the following manner, but not limited to: when the i-th baseline configuration subparameter among the M baseline configuration subparameters is adjusted according to the candidate adjustment direction, the i-th baseline configuration subparameter is increased to obtain the i-th adjustment configuration subparameter, or the i-th baseline configuration subparameter is decreased to obtain the i-th adjustment configuration subparameter, where i is a positive integer less than or equal to M; when the j-th group of baseline configuration subparameters among the M baseline configuration subparameters is adjusted according to the candidate adjustment direction, each baseline configuration subparameter among the P baseline configuration subparameters is increased, or each baseline configuration subparameter among the P baseline configuration subparameters is decreased, or at least one baseline configuration subparameter among the P baseline configuration subparameters is decreased, and other baseline configuration subparameters among the P baseline configuration subparameters except for at least one baseline configuration subparameter are increased, where the j-th group of baseline configuration subparameters includes P baseline configuration subparameters among the M baseline configuration subparameters, and P is a positive integer greater than or equal to 2 and less than or equal to M.

[0080] Optionally, in this embodiment, the execution order between the operation of adjusting one baseline configuration sub-parameter and the operation of adjusting at least two baseline configuration sub-parameters is not limited. For example, you can first try to adjust one baseline configuration sub-parameter, then try to adjust two baseline configuration sub-parameters, and then try to adjust three baseline configuration sub-parameters; or, you can first try to adjust three baseline configuration sub-parameters, then try to adjust two baseline configuration sub-parameters, and then try to adjust one baseline configuration sub-parameter.

[0081] In an exemplary embodiment, the baseline configuration information can be adjusted to the target configuration information according to the baseline adjustment direction and the difference transmission performance in the following manner, but not limited to: detecting the target configuration information adjustment range corresponding to the difference transmission performance from the transmission performance and configuration information adjustment range having a corresponding relationship, wherein the target configuration information adjustment range includes multiple groups of adjustment amounts, each group of adjustment amounts in the multiple groups of adjustment amounts is used to adjust the baseline configuration information; and adjusting the baseline configuration information to the target configuration information within the target configuration information adjustment range according to the baseline adjustment direction.

[0082] Optionally, in this embodiment, each transmission performance corresponds to a configuration information adjustment range, and the configuration information adjustment ranges corresponding to different transmission performances may be, but are not limited to, different, or partially the same.

[0083] In an exemplary embodiment, the baseline configuration information can be adjusted to the target configuration information within the target configuration information adjustment range according to the baseline adjustment direction but is not limited to the following manner: when the target configuration information adjustment range includes M groups of adjustment amounts, the baseline configuration information is adjusted to the target configuration information by performing the following steps, wherein M is a positive integer greater than or equal to 2: obtaining the i-th group of adjustment amounts used for the i-th round of adjustment from the adjustment amounts of the M groups of adjustment amounts that have not been subjected to the selection operation, wherein i is a positive integer less than or equal to M; according to the baseline adjustment direction, adjusting the i-1th round configuration information obtained by the i-1th round of adjustment to the i-th round configuration information using the i-th group of adjustment amounts, wherein when i is equal to 1, the i-1th round configuration information includes the baseline configuration information, and when i is a positive integer greater than or equal to 2, the i-1th round configuration information includes configuration information obtained by adjusting the i-2nd round configuration information obtained by the i-2nd round of adjustment using the i-1th group of adjustment amounts.

[0084] Optionally, in this embodiment, when obtaining the adjustment amount required for each adjustment from M groups of adjustment amounts, it is possible but not limited to obtaining the adjustment amount required from the M groups of adjustment amounts without duplication, for example, obtaining the adjustment amount required from the M groups of adjustment amounts except the adjustment amount used in the previous round of adjustment.

[0085] In an exemplary embodiment, the i-1th round configuration information obtained by the i-1th round adjustment can be adjusted to the i-th round configuration information using the i-th group of adjustment amounts according to the benchmark adjustment direction in the following manner but is not limited to: when the benchmark adjustment direction is used to indicate an increase in configuration information, the sum of the i-1th round configuration information and the i-th group of adjustment amounts is determined as the i-th round configuration information; when the benchmark adjustment direction is used to indicate a decrease in configuration information, the configuration information obtained by subtracting the i-th group of adjustment amounts from the i-1th round configuration information is determined as the i-th round configuration information.

[0086] Optionally, in this embodiment, after determining the benchmark adjustment direction that can make the transmission performance of the data link closer and closer to the transmission performance threshold, during each round of training, the configuration information obtained from the previous round of training can be adjusted accordingly but not limited to the benchmark adjustment direction. It can be understood that the benchmark adjustment direction will not change.

[0087] In an exemplary embodiment, the sum of the i-1th round configuration information and the i-th group adjustment amount can be determined as the i-th round configuration information in the following manner, but is not limited to, when the reference adjustment direction is used to indicate adding configuration information: when the i-1th round configuration information includes initial configuration parameters, the initial configuration parameters include T initial configuration sub-parameters, and the i-th group adjustment amount includes T adjustment amounts corresponding to the T initial configuration sub-parameters, respectively perform sum operations on the T initial configuration sub-parameters and the corresponding adjustment amounts in the T adjustment amounts to obtain T1 target configuration sub-parameters, respectively obtain the products of the T1 target configuration sub-parameters and the corresponding weights in the T1 initial weights to obtain T1 products, perform sum operations on the T1 products to obtain the first target configuration parameter, wherein the i-1th round configuration information includes initial configuration parameters, the initial configuration parameters include T initial configuration sub-parameters, and the i-th group adjustment amount includes T adjustment amounts corresponding to the T initial configuration sub-parameters. The i-th round configuration information includes a first target configuration parameter; when the benchmark adjustment direction is used to indicate a decrease in the configuration information, the configuration information obtained by subtracting the i-th group of adjustment amounts from the i-1-th round configuration information is determined as the i-th round configuration information, including: when the i-1-th round configuration information includes T initial configuration sub-parameters and the i-th group of adjustment amounts includes T adjustment amounts corresponding to the T initial configuration sub-parameters, respectively subtracting corresponding adjustment amounts from the T adjustment amounts from the T initial configuration sub-parameters to obtain T2 target configuration parameters, respectively obtaining the products of the T2 target configuration sub-parameters and corresponding weights from the T2 initial weights to obtain T2 products, performing a sum operation on the T2 products to obtain a second target configuration parameter, wherein the i-th round configuration information includes the second target configuration parameter.

[0088] Optionally, in this embodiment, all T adjustment amounts included in the i-th group of adjustment amounts may not be 0, or some of the T adjustment amounts may be 0. It is understandable that the configuration sub-parameters with adjustment amounts of 0 are not adjusted.

[0089] Optionally, in this embodiment, T1 initial weights may be but are not limited to being selected from weights allowed by the target transmission protocol. For example, T1 initial weights may be but are not limited to being selected from weights allowed by the PCIE protocol. The combination of sub-parameters must meet the following requirements: less than the maximum swing FS (full swing) of the transmitting end and greater than the minimum differential voltage requirement LF (low frequency) of the receiving end.

[0090] In an exemplary embodiment, after adjusting the i-1th round configuration information obtained by the i-1th round adjustment to the i-th round configuration information using the i-th group of adjustment amounts according to the benchmark adjustment direction, the above method also includes: detecting whether the reference transmission performance corresponding to the i-th round configuration information is higher than the transmission performance threshold; when it is detected that the reference transmission performance is lower than the transmission performance threshold, screening the i+1th group of adjustment amounts used for the i+1th round adjustment from the adjustment amounts that have not been selected in the configuration information adjustment range; and adjusting the i-1th round configuration information to the i+1th round configuration information using the i+1th group of adjustment amounts according to the benchmark adjustment direction.

[0091] Optionally, in this embodiment, the i-th round configuration information can be adjusted to the i+1-th round configuration information using the i+1-th group adjustment amount according to the benchmark adjustment direction in the following manner but not limited to: when the benchmark adjustment direction is used to indicate an increase in configuration information, the sum of the i-th round configuration information and the i+1-th group adjustment amount is determined as the i+1-th round configuration information; when the benchmark adjustment direction is used to indicate a decrease in configuration information, the configuration information obtained by subtracting the +1-th group adjustment amount from the i-th round configuration information is determined as the i+1-th round configuration information.

[0092] In the technical solution provided in the above step S208, the target protocol device can, but is not limited to, perform data transmission with the server device according to the target configuration information, and can, but is not limited to, use the target configuration information to configure the initial data link to obtain the target data link in the following manner: setting the configuration information of the target protocol device to the target configuration information to obtain the target data link.

[0093] In an exemplary embodiment, target configuration information is stored in the protocol device. After the target configuration information is used to configure the initial data link to obtain the target data link, the above method also includes: establishing a first data link between the server device and the connected reference protocol device according to the target transmission protocol; when the candidate transmission performance corresponding to the candidate configuration information is lower than the transmission performance threshold, obtaining the target configuration information from the protocol device; and using the target configuration information to configure the first data link to obtain a second data link.

[0094] Optionally, in this embodiment, the target configuration information may be stored in the target protocol device but is not limited to. When the target protocol device is reconfigured to another server device, the configuration information having a transmission performance greater than or equal to a transmission performance threshold may be first screened from the candidate configuration information provided in the target transmission protocol but is not limited to. When the candidate transmission performance corresponding to the candidate configuration information is less than the transmission performance threshold, it may indicate that the candidate configuration information provided in the target transmission protocol cannot meet the transmission performance requirement. In this case, the target configuration information is obtained from the protocol device.

[0095] Optionally, in this embodiment, the target configuration information can be used to configure the first data link to obtain the second data link in the following manner, but is not limited to: the configuration information of the target protocol device is set to the target configuration information read from the target protocol device, and the target protocol device is set to perform data interaction with the reference server device according to the target configuration information.

[0096] In an exemplary embodiment, the target configuration information may be obtained from the protocol device in the following manner, but is not limited to: detecting whether to retrain the first data link; and obtaining the target configuration information from the protocol device when it is detected that the first data link is retrained.

[0097] Optionally, in this embodiment, when it is detected that the first data link does not need to be retrained, it can be indicated that configuration information that meets the transmission performance requirement already exists in the candidate configuration information. In this case, there is no need to optimize the configuration information.

[0098] In an exemplary embodiment, whether to retrain the first data link can be detected in the following manner but is not limited to: configuring the first data link using candidate configuration information to obtain a third data link; detecting whether the transmission performance corresponding to the third data link is lower than a transmission performance threshold; and determining that retraining of the first data link is detected when detecting that the transmission performance corresponding to the third data link is lower than the transmission performance threshold.

[0099] Optionally, in this embodiment, it may be but is not limited to detecting that when it is detected that the transmission performance corresponding to the third data link is higher than the transmission performance threshold, it is determined that the first data link is not retrained.

[0100] In an exemplary embodiment, the target configuration information can be obtained from the protocol device in the following manner, but is not limited to, when retraining of the first data link is detected: receiving a target setting instruction initiated by a reference server device, wherein the target setting instruction is used to instruct the target protocol device to configure the first data link using the candidate configuration information; when retraining of the first data link is detected, ignoring the target setting instruction and obtaining the target configuration information from the protocol device.

[0101] Optionally, in this embodiment, the target setting instruction may, but is not limited to, carry configuration information that the protocol device is desired to set. When it is detected that the data link needs to be retrained, the target setting instruction may, but is not limited to, be ignored, that is, the configuration information of the data link is not adjusted to the configuration information carried in the target setting instruction, but the optimized configuration information stored in the protocol device is obtained to train the data link.

[0102] Figure 6is a schematic diagram of an optional compatibility detection mechanism according to an embodiment of the present application, such as Figure 6 As shown in the figure, after the parameter optimization mechanism, the specialized preset parameters can meet the signal quality requirements of the current hard disk on the current link. However, if the hard disk is reconfigured, such as a hard disk with fixed preset parameters adapted to this model of server, temporarily reconfigured to a server of another model, the SI of the server of this model may have a large margin, or it may not require manual intervention in PCIE training to reach the established rate. Conversely, the signal quality of the link after the reconfiguration may even be affected by the specialized preset parameters. In this case, the fixed preset parameters may not be applicable and may have other impacts on the link.

[0103] Therefore, in order to prevent device compatibility issues, a compatibility detection mechanism is introduced. First, the preset parameters (equivalent to the parameters included in the target configuration information) set by the parameter optimization mechanism are added to the hard disk FW. The BIOS can, but is not limited to, add a PCIE retrain mechanism, and the hard disk FW adds a PCIE link retraining retrain detection and judgment mechanism. At the beginning of the hard disk initialization link training, the BIOS detects the link upgrade rate status. If the link can be trained to the established rate in the first training, retraining is not required. After the hard disk FW does not detect the retrain action, it is considered that the current link has no problem and no additional intervention is required. The preset parameters specified by the host during the PCIE training process can be used for setting, which is a standard action established for the PCIE protocol. Avoid triggering fixed and specialized preset parameters on other model servers.

[0104] If the first training of the PCIE link fails during hard disk initialization and does not reach the specified rate, the BIOS retrain action is triggered to retrain the link. After the hard disk FW detects that the link has been retrained, it believes that the SI margin of the current link is low and needs to execute the solidified preset parameters obtained through the parameter optimization mechanism for SI debugging. The hard disk FW ignores the preset setting instructions passed by the HOST during this training, and uses the solidified preset parameters for training. This allows for specialized adaptation to the current poor link. When the training is completed using the specialized preset parameters (equivalent to the parameters included in the target configuration information) and the entire link reaches the specified rate, the PCIE training is completed. Data transmission can then proceed normally.

[0105] In the related art, due to the limitation of internal server resources, it is inevitable that some links will have a longer overall transmission path. Although the result of SI simulation is PASS, which is within the margin allowed by the PCIE specification, due to the differences in the design of different models of hard disks, their signal transmission amplitude, swing, and minimum differential voltage at the receiving end are all different. In addition, the existing PCIE training process is relatively rigid and lacks flexibility. When there are large individual differences between hard disks of the same type, or when there are different hard disks, the SI requirements of the PCIE link will be different. Signal problems may occur in actual use, and serious problems such as speed reduction and card dropping may occur.

[0106] Through the embodiment of the present application, a complete set of PCIE training parameter methods for server-matched protocol devices (e.g., NVME hard disks) is provided, which can be applied to all server products, so that the PCIE link between the hard disk and the host can be optimized to the best parameters in any scenario. And when the NVME (Non Volatile Memory Host Controller Interface Specification) hard disk is reconfigured, the compatibility and adaptability of the signal quality parameters can still be guaranteed, solving the hard disk speed reduction and card drop problems caused by link signal integrity, and greatly reducing the cost losses caused by downtime caused by hard disk speed reduction in the mass production stage.

[0107] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, disk, CD), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of each embodiment of the present application.

[0108] In the present embodiment, a data link establishment device is also provided, and the device is used to implement the above-mentioned embodiment and preferred implementation mode, and the descriptions that have been made are not repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware is also possible and conceived.

[0109] In this embodiment, a data link establishment device is also provided, which is applied to a server device. The server device is configured to allow connection to a protocol device that supports a target transmission protocol. The target transmission protocol provides candidate configuration information, which is used to configure signal transmission quality. Figure 7 is a structural block diagram of a device for establishing a data link according to an embodiment of the present application, such as Figure 7 As shown, the device comprises:

[0110] A first establishing module 702, used to establish an initial data link between the server device and the connected target protocol device according to the target transmission protocol;

[0111] A first acquisition module 704 is configured to acquire reference configuration information from the candidate configuration information when the candidate transmission performance corresponding to the candidate configuration information is lower than the transmission performance threshold;

[0112] A first adjustment module 706, configured to adjust the benchmark configuration information from a benchmark transmission performance corresponding to the benchmark configuration information to a transmission performance threshold to obtain target configuration information, wherein the target configuration information complies with a target transmission protocol and the target transmission performance corresponding to the target configuration information is higher than the transmission performance threshold;

[0113] The first configuration module 708 is used to configure the initial data link using the target configuration information to obtain the target data link.

[0114] Through the above-mentioned device, when the transmission performance corresponding to the configuration information provided in the transmission protocol cannot meet the transmission performance requirements of the data link, the benchmark configuration information in the configuration information provided in the transmission protocol can be adjusted, and the transmission performance corresponding to the adjusted configuration information can meet the transmission performance requirements of the data link. In this case, the data link is configured using the adjusted configuration information, thereby solving the problem of poor transmission performance of the data link and achieving the effect of improving the transmission performance of the data link.

[0115] In an exemplary embodiment, the apparatus further comprises:

[0116] A rollback module, configured to roll back the configuration information of the initial data link from the second configuration rate to the first configuration rate if it is detected that the configuration of the initial data link using the second configuration rate fails before the reference configuration information is acquired from the candidate configuration information, wherein the configuration of the initial data link using the first configuration rate succeeds;

[0117] The third adjustment module is used to adjust the configuration rate of the initial data link from the first configuration rate to the second configuration rate again to obtain a fourth data link.

[0118] In an exemplary embodiment, the apparatus further comprises:

[0119] A second detection module is used to detect whether the transmission performance of the fourth data link corresponding to the second configuration rate is lower than the transmission performance threshold after adjusting the configuration rate of the initial data link from the first configuration rate to the second configuration rate to obtain the fourth data link;

[0120] The traversal module is used to traverse the candidate configuration information to obtain the reference configuration information when it is detected that the transmission performance of the fourth data link corresponding to the second configuration rate is lower than the transmission performance threshold.

[0121] In an exemplary embodiment, the first acquisition module is used to:

[0122] In the case where the candidate configuration information includes N configuration information, the reference configuration information is obtained from the N configuration information by performing the following steps, where N is a positive integer:

[0123] Select the reference configuration information with the best transmission performance from N configuration information; or,

[0124] The benchmark configuration information is randomly selected from the N configuration information.

[0125] In an exemplary embodiment, the first adjustment module includes:

[0126] A first detection unit, configured to detect a difference transmission performance between a reference transmission performance and a transmission performance threshold;

[0127] The adjusting unit is used to adjust the reference configuration information to the target configuration information according to the differential transmission performance.

[0128] In an exemplary embodiment, the adjustment unit is configured to:

[0129] Detecting the benchmark adjustment direction of benchmark configuration information;

[0130] The benchmark configuration information is adjusted to the target configuration information according to the benchmark adjustment direction and the difference transmission performance.

[0131] In an exemplary embodiment, the adjustment unit is further configured to: when the benchmark configuration information includes a benchmark configuration parameter, and the benchmark configuration parameter includes M benchmark configuration sub-parameters, detect the benchmark adjustment direction of the benchmark configuration information by performing the following steps, where M is a positive integer:

[0132] Adjust at least one configuration sub-parameter among the M reference configuration sub-parameters according to the candidate adjustment direction to obtain M adjusted configuration sub-parameters;

[0133] Detect whether the adjusted transmission performance corresponding to the M adjustment configuration sub-parameters is higher than the candidate transmission performance;

[0134] When it is detected that the adjusted transmission performance is greater than the candidate transmission performance, the candidate adjustment direction is determined as the reference adjustment direction.

[0135] In an exemplary embodiment, the adjusting unit is further configured to:

[0136] When the i-th reference configuration sub-parameter among the M reference configuration sub-parameters is adjusted according to the candidate adjustment direction, the i-th reference configuration sub-parameter is increased to obtain the i-th adjustment configuration sub-parameter, or the i-th reference configuration sub-parameter is decreased to obtain the i-th adjustment configuration sub-parameter, where i is a positive integer less than or equal to M;

[0137] When the j-th group of benchmark configuration subparameters among the M benchmark configuration subparameters is adjusted according to the candidate adjustment direction, each benchmark configuration subparameter among the P benchmark configuration subparameters is increased, or each benchmark configuration subparameter among the P benchmark configuration subparameters is decreased, or at least one benchmark configuration subparameter among the P benchmark configuration subparameters is decreased, and other benchmark configuration subparameters except at least one benchmark configuration subparameter among the P benchmark configuration subparameters are increased, wherein the j-th group of benchmark configuration subparameters includes P benchmark configuration subparameters among the M benchmark configuration subparameters, and P is a positive integer greater than or equal to 2 and less than or equal to M.

[0138] In an exemplary embodiment, the adjusting unit is further configured to:

[0139] Detecting a target configuration information adjustment range corresponding to the difference transmission performance from the transmission performance and configuration information adjustment range having a corresponding relationship, wherein the target configuration information adjustment range includes multiple groups of adjustment amounts, and each group of adjustment amounts in the multiple groups of adjustment amounts is used to adjust the reference configuration information;

[0140] According to the benchmark adjustment direction, the benchmark configuration information is adjusted to the target configuration information within the target configuration information adjustment range.

[0141] In an exemplary embodiment, the adjustment unit is further configured to: when the target configuration information adjustment range includes M groups of adjustment amounts, adjust the reference configuration information to the target configuration information by performing the following steps, where M is a positive integer greater than or equal to 2:

[0142] Obtaining the i-th group of adjustment amounts used for the i-th round of adjustment from the M groups of adjustment amounts that have not been subjected to the selection operation, where i is a positive integer less than or equal to M;

[0143] According to the benchmark adjustment direction, the i-1th round configuration information obtained by the i-1th round adjustment is adjusted to the i-th round configuration information using the i-th group of adjustment amounts, wherein when i is equal to 1, the i-1th round configuration information includes the benchmark configuration information, and when i is a positive integer greater than or equal to 2, the i-1th round configuration information includes configuration information obtained by adjusting the i-2th round configuration information obtained by the i-2th round adjustment using the i-1th group of adjustment amounts.

[0144] In an exemplary embodiment, the adjusting unit is further configured to:

[0145] In the case where the reference adjustment direction is used to indicate adding configuration information, the sum of the i-1th round configuration information and the i-th group adjustment amount is determined as the i-th round configuration information;

[0146] In the case where the reference adjustment direction is used to indicate a decrease in configuration information, configuration information obtained by subtracting the i-th group of adjustment amounts from the i-1th round configuration information is determined as the i-th round configuration information.

[0147] In an exemplary embodiment, the adjusting unit is further configured to:

[0148] In the case where the i-1th round of configuration information includes initial configuration parameters, the initial configuration parameters include T initial configuration sub-parameters, and the i-th group of adjustment amounts includes T adjustment amounts corresponding to the T initial configuration sub-parameters, respectively performing a sum operation on the T initial configuration sub-parameters and the corresponding adjustment amounts in the T adjustment amounts to obtain T1 target configuration sub-parameters, respectively obtaining products of the T1 target configuration sub-parameters and the corresponding weights in the T1 initial weights to obtain T1 products, performing a sum operation on the T1 products to obtain a first target configuration parameter, wherein the i-th round of configuration information includes the first target configuration parameter;

[0149] In the case where the benchmark adjustment direction is used to indicate a decrease in configuration information, the configuration information obtained by subtracting the i-th group of adjustment amounts from the i-1th round of configuration information is determined as the i-th round of configuration information, including: in the case where the i-1th round of configuration information includes T initial configuration sub-parameters and the i-th group of adjustment amounts includes T adjustment amounts corresponding to the T initial configuration sub-parameters, respectively subtracting corresponding adjustment amounts from the T adjustment amounts from the T initial configuration sub-parameters to obtain T2 target configuration parameters, respectively obtaining the products of the T2 target configuration sub-parameters and corresponding weights from the T2 initial weights to obtain T2 products, performing a sum operation on the T2 products to obtain second target configuration parameters, wherein the i-th round of configuration information includes the second target configuration parameters.

[0150] In an exemplary embodiment, the apparatus further comprises:

[0151] A first detection module is used to detect whether the reference transmission performance corresponding to the i-th round configuration information is higher than the transmission performance threshold after adjusting the i-1th round configuration information obtained by the i-1th round adjustment to the i-th round configuration information using the i-th group of adjustment amounts according to the reference adjustment direction;

[0152] A screening module, configured to screen the i+1th group of adjustment amounts used in the i+1th round of adjustment from the adjustment amounts that have not been selected in the configuration information adjustment range when it is detected that the reference transmission performance is lower than or equal to the transmission performance threshold;

[0153] The second adjustment module is used to adjust the i-th round configuration information to the i+1-th round configuration information using the i+1-th group of adjustment amounts according to the reference adjustment direction.

[0154] In an exemplary embodiment, the apparatus further comprises:

[0155] A second establishing module is used for storing target configuration information in the protocol device, configuring an initial data link using the target configuration information, and establishing a first data link between the reference server device and the connected target protocol device according to the target transmission protocol after obtaining the target data link;

[0156] An acquisition module, used to acquire target configuration information from a protocol device when the candidate transmission performance corresponding to the candidate configuration information is lower than a transmission performance threshold;

[0157] The second configuration module is used to configure the first data link using the target configuration information to obtain the second data link.

[0158] In an exemplary embodiment, the acquisition module includes:

[0159] A second detection unit, used to detect whether to retrain the first data link;

[0160] The acquisition unit is used to acquire target configuration information from the protocol device when it is detected that the first data link is retrained.

[0161] In an exemplary embodiment, the second detection unit is used to:

[0162] Configure the first data link using the candidate configuration information to obtain a third data link;

[0163] Detecting whether the transmission performance corresponding to the third data link is lower than the transmission performance threshold;

[0164] In the case where it is detected that the transmission performance corresponding to the third data link is lower than the transmission performance threshold, it is determined that retraining of the first data link is detected.

[0165] In an exemplary embodiment, the acquisition unit is configured to:

[0166] Obtain target configuration information from the protocol device, including:

[0167] receiving a target setting instruction initiated by a reference server device, wherein the target setting instruction is used to instruct a target protocol device to configure a first data link using candidate configuration information;

[0168] In the case where it is detected that the first data link is retrained, the target setting instruction is ignored, and the target configuration information is obtained from the protocol device.

[0169] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.

[0170] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when run.

[0171] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk, or an optical disk.

[0172] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0173] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0174] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.

[0175] An embodiment of the present application further provides another computer program product, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.

[0176] An embodiment of the present application also provides a computer program, 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 the processor executes the computer instructions, so that the computer device performs the steps in any one of the above method embodiments.

[0177] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.

[0178] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.

[0179] The above are only preferred embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application.

Claims

1. A method for establishing a data link, characterized in that: Applied to a server device, the server device is configured to allow connection to a protocol device supporting a target transmission protocol, the target transmission protocol provides candidate configuration information, the candidate configuration information is used to configure signal transmission quality, the method comprises: Establishing an initial data link between the server device and the connected target protocol device according to the target transmission protocol; When the candidate transmission performance corresponding to the candidate configuration information is lower than the transmission performance threshold, obtaining the reference configuration information from the candidate configuration information; Adjusting the benchmark configuration information from the benchmark transmission performance corresponding to the benchmark configuration information toward the transmission performance threshold to obtain target configuration information, wherein the target configuration information complies with the target transmission protocol and the target transmission performance corresponding to the target configuration information is higher than the transmission performance threshold; Configure the initial data link using the target configuration information to obtain a target data link; The step of adjusting the benchmark configuration information from the benchmark transmission performance corresponding to the benchmark configuration information to the transmission performance threshold to obtain the target configuration information includes: when the target configuration information adjustment range includes M groups of adjustment amounts, adjusting the benchmark configuration information to the target configuration information by performing the following steps, wherein M is a positive integer greater than or equal to 2: Obtaining an i-th group of adjustment amounts used in the i-th round of adjustment from the M groups of adjustment amounts that have not been subjected to the selection operation, where i is a positive integer less than or equal to M; According to the benchmark adjustment direction, the i-1th round configuration information obtained by the i-1th round adjustment is adjusted to the i-th round configuration information using the i-th group of adjustment amounts, wherein when i is equal to 1, the i-1th round configuration information includes the benchmark configuration information, and when i is a positive integer greater than or equal to 2, the i-1th round configuration information includes configuration information obtained by adjusting the i-2th round configuration information obtained by the i-2th round adjustment using the i-1th group of adjustment amounts.

2. The method according to claim 1, characterized in that: Before acquiring the reference configuration information from the candidate configuration information, the method further includes: In the case of detecting that configuration of the initial data link using the second configuration rate fails, reverting configuration information of the initial data link from the second configuration rate to the first configuration rate, wherein configuration of the initial data link using the first configuration rate succeeds; The configured rate of the initial data link is again adjusted from the first configured rate to the second configured rate to obtain a fourth data link.

3. The method according to claim 2, characterized in that After adjusting the configuration rate of the initial data link from the first configuration rate to the second configuration rate again to obtain a fourth data link, the method further includes: Detecting whether the transmission performance of the fourth data link corresponding to the second configured rate is lower than the transmission performance threshold; When it is detected that the transmission performance of the fourth data link corresponding to the second configuration rate is lower than the transmission performance threshold, the candidate configuration information is traversed to obtain the reference configuration information.

4. The method according to claim 1, characterized in that: The acquiring the reference configuration information from the candidate configuration information comprises: In the case where the candidate configuration information includes N configuration information, the reference configuration information is obtained from the N configuration information by performing the following steps, where N is a positive integer: Select the reference configuration information with the best transmission performance from the N configuration information; or, The reference configuration information is randomly selected from the N configuration information.

5. The method according to claim 1, characterized in that The step of adjusting the benchmark configuration information from the benchmark transmission performance corresponding to the benchmark configuration information to the transmission performance threshold to obtain target configuration information includes: Detecting a difference transmission performance between the benchmark transmission performance and the transmission performance threshold; According to the difference in transmission performance, the reference configuration information is adjusted to the target configuration information.

6. The method according to claim 5, characterized in that The adjusting the reference configuration information to the target configuration information according to the differential transmission performance includes: detecting the reference adjustment direction of the reference configuration information; The benchmark configuration information is adjusted to the target configuration information according to the benchmark adjustment direction and the difference transmission performance.

7. The method according to claim 6, characterized in that The detecting the benchmark adjustment direction of the benchmark configuration information includes: when the benchmark configuration information includes a benchmark configuration parameter, and the benchmark configuration parameter includes M benchmark configuration sub-parameters, detecting the benchmark adjustment direction of the benchmark configuration information by performing the following steps, where M is a positive integer: Adjust at least one configuration sub-parameter among the M reference configuration sub-parameters according to the candidate adjustment direction to obtain M adjusted configuration sub-parameters; Detecting whether the adjusted transmission performance corresponding to the M adjustment configuration sub-parameters is higher than the candidate transmission performance; In a case where it is detected that the adjusted transmission performance is higher than the candidate transmission performance, the candidate adjustment direction is determined as the reference adjustment direction.

8. The method according to claim 7, characterized in that The step of adjusting at least one of the M reference configuration sub-parameters according to the candidate adjustment direction to obtain M adjustment configuration sub-parameters includes: When the i-th reference configuration subparameter among the M reference configuration subparameters is adjusted according to the candidate adjustment direction, the i-th reference configuration subparameter is increased to obtain the i-th adjustment configuration subparameter, or the i-th reference configuration subparameter is decreased to obtain the i-th adjustment configuration subparameter, where i is a positive integer less than or equal to M; When the j-th group of benchmark configuration subparameters among the M benchmark configuration subparameters are adjusted according to the candidate adjustment direction, each benchmark configuration subparameter among the P benchmark configuration subparameters is increased, or each benchmark configuration subparameter among the P benchmark configuration subparameters is decreased, or at least one benchmark configuration subparameter among the P benchmark configuration subparameters is decreased, and other benchmark configuration subparameters among the P benchmark configuration subparameters except the at least one benchmark configuration subparameter are increased, wherein the j-th group of benchmark configuration subparameters includes the P benchmark configuration subparameters among the M benchmark configuration subparameters, and P is a positive integer greater than or equal to 2 and less than or equal to M.

9. The method according to claim 6, characterized in that The adjusting the benchmark configuration information to the target configuration information according to the benchmark adjustment direction and the difference transmission performance includes: Detecting the target configuration information adjustment range corresponding to the differential transmission performance from transmission performance and configuration information adjustment ranges having a corresponding relationship, wherein the target configuration information adjustment range includes multiple groups of adjustment amounts, and each group of adjustment amounts in the multiple groups of adjustment amounts is used to adjust the reference configuration information; According to the reference adjustment direction, the reference configuration information is adjusted to the target configuration information within the target configuration information adjustment range.

10. The method according to claim 1, characterized in that The adjusting, according to the reference adjustment direction, using the i-th group of adjustment amounts to adjust the i-1th round configuration information obtained by the i-1th round adjustment to the i-th round configuration information includes: In a case where the reference adjustment direction is used to indicate adding configuration information, determining the sum of the (i-1)th round of configuration information and the i-th group of adjustment amounts as the i-th round of configuration information; In a case where the reference adjustment direction is used to indicate a decrease in configuration information, configuration information obtained by subtracting the i-th group of adjustment amounts from the i-1th round of configuration information is determined as the i-th round of configuration information.

11. The method according to claim 10, characterized in that After adjusting the i-1th round configuration information obtained by the i-1th round adjustment to the i-th round configuration information using the i-th group of adjustment amounts according to the reference adjustment direction, the method further includes: Detecting whether the reference transmission performance corresponding to the i-th round configuration information is higher than the transmission performance threshold; When it is detected that the reference transmission performance is lower than the transmission performance threshold, selecting the i+1th group of adjustment amounts used in the i+1th round of adjustment from the adjustment amounts in the configuration information adjustment range that have not been selected; According to the reference adjustment direction, the i+1th group of adjustment amounts is used to adjust the i-th round configuration information to the i+1th round configuration information.

12. The method according to claim 1, characterized in that The target configuration information is stored in the protocol device. After the target configuration information is used to configure the initial data link to obtain the target data link, the method further includes: Establishing a first data link between a reference server device and the connected target protocol device according to the target transmission protocol; When the candidate transmission performance corresponding to the candidate configuration information is lower than the transmission performance threshold, acquiring the target configuration information from the protocol device; The first data link is configured using the target configuration information to obtain a second data link.

13. The method according to claim 12, characterized in that The acquiring the target configuration information from the protocol device includes: detecting whether to retrain the first data link; In a case where it is detected that the first data link is retrained, the target configuration information is acquired from the protocol device.

14. The method according to claim 13, characterized in that The detecting whether to retrain the first data link includes: Configure the first data link using the candidate configuration information to obtain a third data link; Detecting whether the transmission performance corresponding to the third data link is lower than the transmission performance threshold; In a case where it is detected that the transmission performance corresponding to the third data link is lower than the transmission performance threshold, it is determined that retraining of the first data link is detected.

15. The method according to claim 13, characterized in that The acquiring the target configuration information from the protocol device when it is detected that the first data link is retrained includes: receiving a target setting instruction initiated by the reference server device, wherein the target setting instruction is used to instruct the target protocol device to configure the first data link using the candidate configuration information; In the case where it is detected that the first data link is to be retrained, the target setting instruction is ignored, and the target configuration information is acquired from the protocol device.

16. A device for establishing a data link, characterized in that: Applied to a server device, the server device is configured to allow connection to a protocol device supporting a target transmission protocol, the target transmission protocol provides candidate configuration information, the candidate configuration information is used to configure signal transmission quality, the device comprises: A first establishing module, used to establish an initial data link between the server device and the connected target protocol device according to the target transmission protocol; A first acquisition module, configured to acquire reference configuration information from the candidate configuration information when the candidate transmission performance corresponding to the candidate configuration information is lower than a transmission performance threshold; A first adjustment module, configured to adjust the benchmark configuration information from a benchmark transmission performance corresponding to the benchmark configuration information to the transmission performance threshold to obtain target configuration information, wherein the target configuration information complies with the target transmission protocol and the target transmission performance corresponding to the target configuration information is higher than the transmission performance threshold; A first configuration module, configured to configure the initial data link using the target configuration information to obtain a target data link; Among them, the first adjustment module is used to: when the target configuration information adjustment range includes M groups of adjustment amounts, adjust the baseline configuration information to the target configuration information by executing the following steps, wherein M is a positive integer greater than or equal to 2: obtain the i-th group of adjustment amounts used for the i-th round of adjustment from the adjustment amounts of the M groups of adjustment amounts that have not been selected, wherein i is a positive integer less than or equal to M; according to the benchmark adjustment direction, adjust the i-1th round configuration information obtained by the i-1th round of adjustment to the i-th round configuration information using the i-th group of adjustment amounts, wherein when i is equal to 1, the i-1th round configuration information includes the baseline configuration information, and when i is a positive integer greater than or equal to 2, the i-1th round configuration information includes the configuration information obtained by adjusting the i-2nd round configuration information obtained by the i-2nd round of adjustment using the i-1th group of adjustment amounts.

17. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program implements the steps of the method described in any one of claims 1 to 15 when executed by a processor.

18. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method described in any one of claims 1 to 15 are implemented.

19. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 15 are implemented.