Method and device for adjusting data transmission parameters, storage medium and electronic equipment

By detecting the properties and connection methods of servers and storage devices, generating target data transmission parameters and automatically adjusting adapter parameters, the problem of low efficiency in adjusting data transmission parameters in the existing technology is solved, achieving efficient data interaction and reducing repair costs.

CN118656322APending Publication Date: 2024-09-17INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410703872.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

The adjustment efficiency of data transmission parameters in the existing technology is low, resulting in poor maintenance and high repair costs. Especially in the cascade expansion scenario of storage devices, parameter adjustment of the Redriver chip requires programming EEPROM or relying on external pin configuration, resulting in complex Poor usability.

Method used

Provide a data transmission parameter adjustment method and device that generates target data transmission parameters by detecting the attributes and connection methods of servers and storage devices, and automatically adjusts the data transmission parameters on the adapter to control the total data transmission loss within a threshold range. Implement adaptive configuration.

Benefits of technology

It improves the efficiency of adjusting data transmission parameters, reduces repair costs, improves the quality of data interaction, avoids repeated programming and rework, and improves product reliability and maintenance efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118656322A
    Figure CN118656322A
Patent Text Reader

Abstract

The embodiment of the invention provides a data transmission parameter adjusting method and device, a storage medium and electronic device.The method comprises the steps that under the condition that it is detected that an adapter is connected to a target server and target storage equipment is connected to the adapter, the target server attribute of the target server is detected, detecting a target connection mode between the adapter and the target storage device; reading target data transmission loss corresponding to the target server attribute from the server attributes and the data transmission loss which have the corresponding relation, and generating a target data transmission parameter according to the target data transmission loss and the target connection mode; and adjusting the data transmission parameter configured on the adapter to the target data transmission parameter. Through the data transmission parameter adjusting method and device, the problem that the data transmission parameter adjusting efficiency is low is solved, and then the effect of improving the data transmission parameter adjusting efficiency is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the computer field, and specifically, to a method and device for adjusting data transmission parameters, a storage medium, and an electronic device. Background Art

[0002] In the actual application scenarios of storage devices, it is a common configuration to connect storage devices (for example, servers) to back-end JBOD for cascading expansion. Storage device cascade JBOD is generally connected by cables. In order to ensure that the signal quality can still be guaranteed when the signal reaches the terminal over a long distance, a redriver chip is usually added between the transmission end and the terminal so that the signal integrity is still good after a long distance transmission.

[0003] In the prior art, the Redriver chip is often mounted on the motherboard like the SAS chip. The parameters of the Redriver chip are often fixed, and the parameters of the Redriver chip (equivalent to data transmission parameters) such as equalization, de-emphasis, swing, etc. need to be debugged according to the overall link loss. If the parameters of the Redriver chip need to be adjusted, the prior art includes two methods: reading the contents of the EEPROM chip and external pin configuration.

[0004] In the case of adjusting the parameters of the Redriver chip by reading the EEPROM, when the parameters of the Redriver chip need to be modified, a burner needs to be used to re-write the data inside the EEPROM, which has poor maintainability. In the case of external pin configuration, the parameters are configured through the pull-up and pull-down resistors connected to the pins with specific functions of the Redriver chip. When the motherboard is produced, these pull-up and pull-down pins will be fixed and the parameters will be configured. If the parameters need to be adjusted for some reason after leaving the factory, the motherboard needs to be returned to the factory for modification, and the cost of rework is high.

[0005] It is understandable that the EEPROM reading method requires repeated burning during the debugging stage, and the product needs to be returned to the factory for maintenance after it is launched, which has poor maintainability. The external pin configuration mode requires adjustment of parameters that are completely dependent on the peripheral circuit configuration, with high repair costs and poor reusability. Summary of the invention

[0006] The embodiments of the present application provide a method and device for adjusting data transmission parameters, a storage medium, and an electronic device, so as to at least solve the problem of low adjustment efficiency of data transmission parameters in the related art.

[0007] According to an embodiment of the present application, a method for adjusting data transmission parameters is provided, wherein an adapter of a server is used to connect a storage device, and the adapter is also used to transmit data between the server and the storage device connected to the adapter according to configured data transmission parameters. The method is applied to the adapter, and the method includes: upon detecting that the adapter is connected to a target server and a target storage device is connected to the adapter, detecting a target server attribute of the target server, and detecting a target connection mode between the adapter and the target storage device; reading a target data transmission loss corresponding to the target server attribute from server attributes and data transmission losses having a corresponding relationship, and generating a target data transmission parameter according to the target data transmission loss and the target connection mode, wherein the target data transmission loss is the data loss for data interaction between the target server and the adapter, and the target data transmission parameter is used to control the total data transmission loss for data interaction between the target server and the target storage device within a range less than or equal to a loss threshold; and adjusting the data transmission parameters configured on the adapter to the target data transmission parameters.

[0008] In an exemplary embodiment, a mainboard is deployed in the server, a controller is deployed in the adapter, the mainboard and the controller are connected, and the detecting the target server attributes of the target server includes: generating a first detection request, wherein the first detection request is used to request the detection of the target server attributes of the target server; in response to the first detection request, controlling the controller to read the target mainboard attributes of the mainboard, wherein the target server attributes include the target mainboard attributes.

[0009] In an exemplary embodiment, a mainboard is deployed in the server, a controller is deployed in the adapter, the mainboard is connected to the controller, the controller is connected to the target storage device, and the detecting of the target connection mode between the adapter and the target storage device includes: generating a second detection request, wherein the second detection request is used to request the detection of the target connection mode between the adapter and the target storage device; in response to the second detection request, controlling the controller to read connection mode description information from the target storage device, wherein the connection mode description information carries a target connection length of a target cable used to connect the adapter and the target storage device and a target cable attribute of the target cable; and controlling the controller to extract the target connection length and the target cable attribute from the read connection mode description information, wherein the target connection mode includes the target connection length and the target cable attribute.

[0010] In an exemplary embodiment, a controller is deployed in the adapter, and data transmission loss, connection length, cable properties and data transmission parameters with corresponding relationships are stored in the adapter. The target data transmission parameters are generated according to the target data transmission loss and the target connection mode, including: obtaining a target generation request, wherein the target generation request is used to request generation of the target data transmission parameters according to the target data transmission loss and the target connection mode; in response to the target generation request, the target data transmission parameters corresponding to the target data transmission loss, target connection length and target cable properties are screened from the data transmission loss, connection length, cable properties and data transmission parameters with corresponding relationships, wherein the target connection mode includes the target connection length and the target cable properties.

[0011] In an exemplary embodiment, a controller, an adapter chip and a target chip are deployed in the adapter, the controller is connected to the adapter chip, the adapter chip is connected to the target chip, and the data transmission parameters configured on the adapter are adjusted to the target data transmission parameters, including: generating a target adjustment request, wherein the target adjustment request is used to request that the data transmission parameters configured on the adapter be adjusted to the target data transmission parameters; in response to the target adjustment request, controlling the controller to call the adapter chip to configure the data transmission parameters configured on the target chip to the target data transmission parameters.

[0012] In an exemplary embodiment, the adapter is further configured with a plurality of resistors, the adapter chip allows connection with one of the plurality of resistors, the target chip is configured with a plurality of pins, each of the plurality of pins allows connection with a corresponding one of the plurality of resistors, and the controller is controlled to call the adapter chip to configure the data transmission parameters configured on the target chip as the target data transmission parameters, including: controlling the controller to select a target resistor from the plurality of resistors according to the target data transmission parameters, and controlling the controller to select a target pin from the plurality of pins according to the target data transmission parameters and the target resistor; controlling the controller to establish a first connection channel between the adapter chip and the target resistor, and controlling the controller to establish a second connection channel between the target resistor and the target pin, wherein, when the first connection channel and the second connection channel are established, the data transmission parameters configured on the target chip are configured as the target data transmission parameters.

[0013] In an exemplary embodiment, the controlling the controller to select a target resistor from the multiple resistors according to the target data transmission parameter includes: controlling the controller to select the target resistor from M resistors by executing the following steps, wherein the multiple resistors include the M resistors, and M is a positive integer greater than or equal to 2: controlling the controller to detect the target parameter range into which the target data transmission parameter falls, and controlling the controller to select R candidate resistors corresponding to the target parameter range from parameter ranges and resistors having a corresponding relationship, wherein the resistors and data transmission parameters having a corresponding relationship are stored in the adapter, the M resistors include the R candidate resistors, and R is a positive integer less than or equal to M, and controlling the controller to select the target resistor corresponding to the target data transmission parameter from the R candidate resistors; the controlling The controller screens a target pin from the multiple pins according to the target data transmission parameters and the target resistance, including: controlling the controller to screen the target pin from N pins according to the target data transmission parameters and the target resistance by executing the following steps, wherein the multiple pins include the N pins, and N is a positive integer greater than or equal to 2; controlling the controller to screen P candidate pins corresponding to the target resistance from M resistors and the N pins having a corresponding relationship, wherein the multiple resistors include the M resistors, M is a positive integer greater than or equal to 2, the N pins include the P candidate pins, and P is a positive integer less than or equal to N, the M resistors and N pins having a corresponding relationship are stored in the adapter, and controlling the controller to screen the target pin corresponding to the target data transmission parameters from the P candidate pins.

[0014] According to another embodiment of the present application, a device for adjusting data transmission parameters is provided, wherein an adapter of a server is used to connect a storage device, and the adapter is also used to transmit data between the server and the storage device connected to the adapter according to the configured data transmission parameters, and the device is applied to the adapter, and the device includes: a detection module, which is used to detect the target server attributes of the target server and detect the target connection mode between the adapter and the target storage device when it is detected that the adapter is connected to the target server and the target storage device is connected to the adapter; a processing module, which is used to read the target data transmission loss corresponding to the target server attributes from the server attributes and data transmission losses having a corresponding relationship, and generate a target data transmission parameter according to the target data transmission loss and the target connection mode, wherein the target data transmission loss is the data loss for data interaction between the target server and the adapter, and the target data transmission parameter is used to control the total data transmission loss for data interaction between the target server and the target storage device within a range less than or equal to a loss threshold; an adjustment module, which is used to adjust the data transmission parameters configured on the adapter to the target data transmission parameters.

[0015] 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.

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

[0017] 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.

[0018] Through the present application, the adapter may be connected to different servers, and the same adapter may be connected to different storage devices through different connection methods. In this case, the adapter can automatically determine the data transmission parameters that make the total data transmission loss for data interaction between the server and the storage device less than or equal to the loss threshold based on the server properties of the server to which it is connected and the connection method between the adapter and the storage device, thereby improving the data interaction quality for data interaction between the server and the storage device and realizing adaptive configuration of the data transmission parameters of the adapter. Therefore, the problem of low adjustment efficiency of the data transmission parameters can be solved, thereby achieving the effect of improving the adjustment efficiency of the data transmission parameters. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 It is a hardware structure block diagram of a server device of a method for adjusting data transmission parameters according to an embodiment of the present application;

[0020] Figure 2 is a flow chart of a method for adjusting data transmission parameters according to an embodiment of the present application;

[0021] Figure 3 is a schematic diagram of an optional connection between an adapter and a server according to an embodiment of the present application;

[0022] Figure 4 is a schematic diagram of an optional connection channel according to an embodiment of the present application;

[0023] Figure 5 is a schematic diagram of an optional method for adjusting data transmission parameters according to an embodiment of the present application;

[0024] Figure 6 It is a structural block diagram of a device for adjusting data transmission parameters according to an embodiment of the present application. DETAILED DESCRIPTION

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

[0026] 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.

[0027] 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 FIG. 1 is a hardware structure block diagram of a server device of a method for adjusting data transmission parameters in an embodiment of the present application. Figure 1 As shown, the server device may include one or more ( Figure 1Only 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 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 shown.

[0028] 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 adjusting the data transmission parameters 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.

[0029] 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.

[0030] First, the terms involved in the embodiments of the present application are explained as follows:

[0031] CPLD: Complex Programmable Logic Device, complex programmable logic device.

[0032] SAS: Serial Attached SCSI (Small Computer System Interface).

[0033] BOM: Bill of Materials (BOM for short).

[0034] JBOD: Just a Bunch Of Disks, disk cluster, disk continuous bundle array.

[0035] In this embodiment, a method for adjusting data transmission parameters is provided. An adapter of a server is used to connect a storage device. The adapter is also used to transmit data between the server and the storage device connected to the adapter according to the configured data transmission parameters. The method is applied to the adapter. Figure 2 is a flow chart of a method for adjusting data transmission parameters according to an embodiment of the present application, such as Figure 2 As shown, the process includes the following steps:

[0036] Step S202, in the case where it is detected that the adapter is connected to a target server and a target storage device is connected to the adapter, detecting a target server attribute of the target server and detecting a target connection mode between the adapter and the target storage device;

[0037] Step S204, reading the target data transmission loss corresponding to the target server attribute from the server attributes and data transmission losses having a corresponding relationship, and generating a target data transmission parameter according to the target data transmission loss and the target connection mode, wherein the target data transmission loss is the data loss for data interaction between the target server and the adapter, and the target data transmission parameter is used to control the total data transmission loss for data interaction between the target server and the target storage device within a range less than or equal to a loss threshold;

[0038] Step S206: adjusting the data transmission parameters configured on the adapter to the target data transmission parameters.

[0039] Through the above steps, the adapter may be connected to different servers, and the same adapter and different storage devices may be connected through different connection methods. In this case, the adapter can automatically determine the data transmission parameters that make the total data transmission loss for data interaction between the server and the storage device less than or equal to the loss threshold based on the server properties of the server to which it is connected and the connection method between the adapter and the storage device, thereby improving the data interaction quality for data interaction between the server and the storage device and realizing adaptive configuration of the data transmission parameters of the adapter. Therefore, the problem of low adjustment efficiency of the data transmission parameters can be solved, thereby achieving the effect of improving the adjustment efficiency of the data transmission parameters.

[0040] In the technical solution provided in the above step S202, the adapter can be but is not limited to being used to transmit data from the server to the storage device connected to the adapter according to the configured data transmission parameters, and / or, to transmit data from the storage device connected to the adapter to the server.

[0041] Optionally, in this embodiment, the storage device may be, but is not limited to, a device for storing data, such as a disk, a hard disk, etc., and this application does not limit this. The controller may include, but is not limited to, a CPLD (Complex Programmable Logic Device), an MCU (Microcontroller Unit), a CPU (Central Processing Unit), etc., and this application does not limit this.

[0042] Optionally, in this embodiment, the target server attributes of the target server may be detected in the following manner but is not limited to: extracting the target server attributes of the target server from the target server, or reading the target server attributes corresponding to the target server from the corresponding servers and server attributes stored in the adapter.

[0043] Optionally, in this embodiment, the target server attributes may include but are not limited to the attributes of the target server or components in the target server (e.g., hardware or software), such as the model of the target server or components in the target server (e.g., hardware or software), the manufacturer of the target server or components in the target server (e.g., hardware or software), the data transmission rate of the target server or components in the target server (e.g., hardware or software), etc.

[0044] Optionally, in this embodiment, the adapter may be connected to the server via a connector, but is not limited to. Figure 3 is a schematic diagram of an optional connection between an adapter and a server according to an embodiment of the present application, such as Figure 3 As shown, the server may be but not limited to be equipped with a mainboard, and the SAS Redriver board (equivalent to an adapter) may be but not limited to be equipped with a SAS Redriver chip (equivalent to a target chip) and a CPLD (equivalent to a controller).

[0045] The connector may include, but is not limited to, an OCP card that meets the OCP3.0 specification (or other specifications), and the motherboard may include, but is not limited to, an OCP4C+ connector for connecting high-speed signals and GPIO (General-purpose input / output) signals. For example, the SAS Redriver board may be, but is not limited to, connected to the motherboard via an OCP4C+ connector. The SAS Redriver chip is the card main chip, and is also provided with a programmable logic device, such as a CPLD, which receives GPIO signals from the controller. This GPIO includes, but is not limited to, motherboard attributes (e.g., motherboard type ID (Identity document)), and the controller CPLD reads the parsed cable attributes (e.g., cable type ID) and connection length.

[0046] In an exemplary embodiment, a mainboard is deployed in the server, a controller is deployed in the adapter, and the mainboard and the controller are connected. The target server attributes of the target server can be detected in the following manner but is not limited to: generating a first detection request, wherein the first detection request is used to request detection of the target server attributes of the target server; in response to the first detection request, controlling the controller to read the target mainboard attributes of the mainboard, wherein the target server attributes include the target mainboard attributes.

[0047] Optionally, in this embodiment, the target motherboard attributes may include but are not limited to the attributes of the motherboard or the devices deployed on the motherboard (e.g., a processor, etc.). For example, the target motherboard attributes may include but are not limited to the model of the motherboard, or the model of the processor deployed on the motherboard, or the processing speed of the processor deployed on the motherboard, etc.

[0048] In this way, the adapter can automatically read the server properties of the server to which the adapter is connected, thereby improving the efficiency of reading the server properties of the server to which the adapter is connected.

[0049] In an exemplary embodiment, a mainboard is deployed in the server, a controller is deployed in the adapter, the mainboard is connected to the controller, and the controller is connected to the target storage device. The target connection mode between the adapter and the target storage device can be detected in the following manner, but is not limited to: generating a second detection request, wherein the second detection request is used to request detection of the target connection mode between the adapter and the target storage device; in response to the second detection request, controlling the controller to read connection mode description information from the target storage device, wherein the connection mode description information carries a target connection length of a target cable used to connect the adapter and the target storage device and a target cable attribute of the target cable; controlling the controller to extract the target connection length and the target cable attribute from the read connection mode description information, wherein the target connection mode includes the target connection length and the target cable attribute.

[0050] Optionally, in this embodiment, the connection mode description information may also be read in the following manner but is not limited to: extracting the connection description information corresponding to the target storage device from the storage devices and connection description information having a corresponding relationship stored in the adapter by controlling the controller.

[0051] Optionally, in this embodiment, the adapter may be connected to the target storage device via a target cable, but is not limited to, and the target cable attributes may include, but are not limited to, the material used by the target cable, the width of the target cable, or the identification of the target cable.

[0052] In this way, when different storage devices are connected to the adapter, the adapter automatically identifies the connection mode between the connected storage device and the adapter, thereby improving the efficiency of identifying the connection mode between the storage device and the adapter.

[0053] In the technical solution provided in the above step S204, the total data transmission loss for data interaction between the target server and the target storage device may include but is not limited to the data loss for data interaction between the target server and the adapter, and the data loss for data interaction between the adapter and the target storage device. As an optional example, the data loss may include but is not limited to the amount of data loss, bit error rate, attenuation rate, eye diagram quality, etc.

[0054] Optionally, in this embodiment, a total data transmission loss of the adapter when transmitting data between the server and the storage device connected to the adapter according to the configured target data transmission parameters is less than or equal to a loss threshold.

[0055] Optionally, in this embodiment, the target data transmission loss can be read in the following manner but is not limited to: when the target server attributes include target motherboard attributes, the target data transmission loss corresponding to the target motherboard attributes is read from the target motherboard attributes and data transmission losses having a corresponding relationship.

[0056] In an exemplary embodiment, a controller is deployed in the adapter, and data transmission loss, connection length, cable properties and data transmission parameters with corresponding relationships are stored in the adapter. The target data transmission parameters can be generated according to the target data transmission loss and the target connection mode in the following manner, but not limited to: obtaining a target generation request, wherein the target generation request is used to request generation of the target data transmission parameters according to the target data transmission loss and the target connection mode; in response to the target generation request, the target data transmission parameters corresponding to the target data transmission loss, target connection length and target cable properties are screened from the data transmission loss, connection length, cable properties and data transmission parameters with corresponding relationships, wherein the target connection mode includes the target connection length and the target cable properties.

[0057] Optionally, in this embodiment, data transmission loss, connection length, cable properties and data transmission parameters with corresponding relationships can be obtained in the following manner, but is not limited to: when the adapter is connected to the sample server and the connection method between the sample storage device and the adapter includes the sample connection method, filter out sample data transmission parameters from the candidate data transmission parameters that control the total loss of sample data transmission for data interaction between the sample server and the sample storage device to be less than or equal to the loss threshold, and record the sample data transmission loss, sample connection length, sample cable properties and sample data transmission parameters with corresponding relationships, wherein the sample connection method includes the sample connection length and the sample cable properties.

[0058] In the technical solution provided in the above step S206, the target data transmission parameter may be greater than the initial data transmission parameter configured on the adapter, or the target data transmission parameter may be less than the initial data transmission parameter configured on the adapter.

[0059] Optionally, in this embodiment, after adjusting the data transmission parameters configured on the adapter to the target data transmission parameters, the method further includes: detecting a reference connection mode between the adapter and the reference storage device when it is detected that the adapter is connected to the target server and the reference storage device is connected to the adapter; generating reference data transmission parameters according to the target data transmission loss and the reference connection mode, wherein the target data transmission loss is the data loss for data interaction between the target server and the adapter, and the reference data transmission parameters are used to control the total data transmission loss for data interaction between the target server and the reference storage device within a range less than or equal to a loss threshold; adjusting the data transmission parameters configured on the adapter to the reference data transmission parameters.

[0060] In an exemplary embodiment, a controller, an adapter chip and a target chip are deployed in the adapter, the controller is connected to the adapter chip, and the adapter chip is connected to the target chip. The data transmission parameters configured on the adapter can be adjusted to the target data transmission parameters in the following manner, but is not limited to: generating a target adjustment request, wherein the target adjustment request is used to request that the data transmission parameters configured on the adapter be adjusted to the target data transmission parameters; in response to the target adjustment request, the controller is controlled to call the adapter chip to configure the data transmission parameters configured on the target chip to the target data transmission parameters.

[0061] Optionally, in this embodiment, a target chip may be deployed in the adapter but is not limited to it. As an optional example, the target chip may include but is not limited to a redriver chip, and the data transmission parameters configured on the target chip may be adjusted to the target data transmission parameters but is not limited to it.

[0062] In an exemplary embodiment, the adapter is further configured with a plurality of resistors, the adapter chip allows connection with one of the plurality of resistors, the target chip is configured with a plurality of pins, each of the plurality of pins allows connection with a corresponding one of the plurality of resistors, and the controller may be controlled to call the adapter chip to configure the data transmission parameters configured on the target chip as the target data transmission parameters in the following manner, but is not limited to: controlling the controller to select a target resistor from the plurality of resistors according to the target data transmission parameters, and controlling the controller to select a target pin from the plurality of pins according to the target data transmission parameters and the target resistor; controlling the controller to establish a first connection channel between the adapter chip and the target resistor, and controlling the controller to establish a second connection channel between the target resistor and the target pin, wherein, upon completion of establishing the first connection channel and the second connection channel, the data transmission parameters configured on the target chip are configured as the target data transmission parameters.

[0063] Optionally, in this embodiment, after controlling the controller to establish a first connection channel between the adapter chip and the target resistor, and controlling the controller to establish a second connection channel between the target resistor and the target pin, when it is detected that the adapter is connected to the target server and the reference storage device is connected to the adapter, the controller can be controlled to call the adapter chip to configure the data transmission parameters configured on the target chip as the reference data transmission parameters in the following manners, but not limited to: controlling the controller to select a reference resistor from the multiple resistors according to the reference data transmission parameters, and controlling the controller to select a reference pin from the multiple pins according to the target data transmission parameters and the target resistor; controlling the controller to establish a third connection channel between the adapter chip and the reference resistor, and controlling the controller to establish a fourth connection channel between the reference resistor and the reference pin, wherein, when the establishment of the third connection channel and the fourth connection channel is completed, the data transmission parameters configured on the target chip are configured as the reference data transmission parameters.

[0064] In this way, the adapter is adapted to servers with different server attributes (for example, motherboards), and only has requirements for the connection method and board form. After the chip parameters are debugged by the R&D personnel and the code is written, the parameter adjustment in different systems can be completed by adaptive judgment. There is no need to modify the hardware circuit configuration for different motherboards and different models. The controller can flexibly switch the connection channel according to the actual server connected to and the storage device connected to the adapter, and adaptively configure the data transmission parameters of the target chip.

[0065] Figure 4 is a schematic diagram of an optional connection channel according to an embodiment of the present application, such as Figure 4 As shown, a SAS Redriver chip (equivalent to a target chip), a four-select-one logic chip (equivalent to an adapter chip) and a CPLD (equivalent to a controller) are deployed on the SAS Redriver board (equivalent to an adapter).

[0066] After the CPLD reads the mainboard attributes (e.g., mainboard type ID), cable attributes (e.g., cable information ID) and connection length, it opens the corresponding channel of the four-to-one logic chip after logical judgment. For example, it is possible but not limited to establishing a corresponding channel between the CPLD and the four-to-one logic chip through the CPLD to complete the configuration of the peripheral circuit of the Redriver chip. The parameters of the Redriver chip (equivalent to the data transmission parameters) are configured to the appropriate parameters of the current system link topology (equivalent to the target data transmission parameters).

[0067] In an exemplary embodiment, the controller may be controlled to select the target resistor from M resistors by, but not limited to, executing the following steps, wherein the multiple resistors include the M resistors, and M is a positive integer greater than or equal to 2: the controller is controlled to detect the target parameter range into which the target data transmission parameter falls, and the controller is controlled to select R candidate resistors corresponding to the target parameter range from parameter ranges and resistors having a corresponding relationship, wherein the resistors and data transmission parameters having a corresponding relationship are stored in the adapter, the M resistors include the R candidate resistors, and R is a positive integer less than or equal to M, and the controller is controlled to select the target resistor corresponding to the target data transmission parameter from the R candidate resistors; Not limited to executing the following steps, controlling the controller to screen the target pin from N pins according to the target data transmission parameters and the target resistance, wherein the multiple pins include the N pins, and N is a positive integer greater than or equal to 2: controlling the controller to screen P candidate pins corresponding to the target resistance from M resistors having a corresponding relationship and the N pins, wherein the multiple resistors include the M resistors, M is a positive integer greater than or equal to 2, the N pins include the P candidate pins, P is a positive integer less than or equal to N, the M resistors and N pins having a corresponding relationship are stored in the adapter, and controlling the controller to screen the target pin corresponding to the target data transmission parameters from the P candidate pins.

[0068] Optionally, in this embodiment, the controller can also be controlled to screen the target resistance from M resistors in the following manner but is not limited to: the controller is controlled to screen the target resistance value corresponding to the target data transmission parameter from the resistance values ​​and data transmission parameters having a corresponding relationship; the controller is controlled to screen the target resistance corresponding to the target resistance value from the resistance and resistance values ​​having a corresponding relationship.

[0069] Optionally, in this embodiment, the reference resistor can also be screened from multiple resistors in the following manner but is not limited to: by executing the following steps, the controller is controlled to screen the target resistor from M resistors, wherein the multiple resistors include M resistors, and M is a positive integer greater than or equal to 2: the controller detects the reference parameter range within which the reference data transmission parameter falls, and the controller screens W candidate resistors corresponding to the reference parameter range from the parameter range and resistors with a corresponding relationship, wherein the resistors and data transmission parameters with a corresponding relationship are stored in the adapter, the M resistors include W candidate resistors, W is a positive integer less than or equal to M, and the controller screens the reference resistor corresponding to the reference data transmission parameter from the W candidate resistors.

[0070] Optionally, in this embodiment, the controller can be controlled to screen reference pins from multiple pins according to reference data transmission parameters and reference resistors in the following manner, but is not limited to: by executing the following steps, the controller is controlled to screen reference pins from N pins according to reference data transmission parameters and reference resistors, wherein the multiple pins include N pins, and N is a positive integer greater than or equal to 2: the controller is controlled to screen T candidate pins corresponding to the reference resistor from M resistors and N pins with corresponding relationships, wherein the multiple resistors include M resistors, M is a positive integer greater than or equal to 2, the N pins include T candidate pins, T is a positive integer less than or equal to N, the M resistors and N pins with corresponding relationships are stored in the adapter, and the controller is controlled to screen the reference pins corresponding to the reference data transmission parameters from the T candidate pins.

[0071] In this way, it is avoided that when configuring the data transmission parameters of the adapter, there is a need to use a burner to repeatedly burn the data inside the EERPOM of the adapter. At the same time, it is avoided that the entire motherboard needs to be returned to the factory for modification after a failure, thereby reducing the cost of repair. When the storage device is connected to an external JBOD device (equivalent to a storage device), high reliability and maintenance costs can be guaranteed, avoiding problems such as processing and production control, improving the stability of product quality, and reducing the investment in labor production costs for repairs.

[0072] In order to better understand the method for adjusting data transmission parameters in the embodiment of the present application, the method for adjusting data transmission parameters in the embodiment of the present application is explained and illustrated in combination with optional embodiments below, which can be applicable to but not limited to the embodiment of the present application.

[0073] Figure 5 is a schematic diagram of an optional method for adjusting data transmission parameters according to an embodiment of the present application, such as Figure 5 As shown, the following steps may be included but are not limited to:

[0074] Step S501, the reusable module is usually in the form of an OCP card that meets the OCP3.0 specification, and the mainboard provides a mainboard type ID to the card.

[0075] Step S502, adding a four-to-one logic chip to the external configuration pins of the Redriver chip to configure different pull-up and pull-down parameter configurations.

[0076] The configuration pins of the Redriver chip are usually configured by pulling up and down with resistors of different resistance values. A four-to-one logic chip is added to configure the Redriver pins to adjust the corresponding parameters. The channel selection of this four-to-one logic chip is selected by the programmable logic chip CPLD (equivalent to a controller). The CPLD can freely switch chip channels to complete the parameter adjustment and peripheral circuit configuration of the Redriver chip.

[0077] Step S503, the control pins of the four-to-one logic chip are connected to the programmable logic chip.

[0078] Step S504, the programmable logic chip determines the corresponding product configuration according to the type ID of the mainboard and the information of the external cable, and performs corresponding processing on the four-select-one logic chip.

[0079] Due to the limitations of heat dissipation and PCB (Printed circuit board) layout on different motherboards, the length of the link from the SAS Redriver board (equivalent to an adapter) to the motherboard connector and the overall link loss are also different. Therefore, the motherboard needs to provide motherboard properties (for example, the type ID of the motherboard) to the CPLD of the SAS Redriver board for the CPLD to determine the motherboard properties, thereby calling the corresponding motherboard link loss (equivalent to data transmission loss) to comprehensively determine the overall link loss and parameter configuration.

[0080] In addition, the cable connecting the JBOD (equivalent to the storage device) at the back end of the SAS redriver board also affects the overall link loss. The common 1m, 3m, and 5m length information and different cable material information are read by the controller and provided to the CPLD cable type ID. The CPLD refers to this ID to determine the final parameter configuration of the Redriver chip.

[0081] Step S505 , according to the four-to-one logic chip selection, the Redriver chip parameter configuration is configured as appropriate parameters.

[0082] Through the embodiments of the present application, the Redriver chip module (equivalent to an adapter) is designed as an external card. Compared with the related art, in which the entire controller of the motherboard needs to be replaced and repaired after a failure through the mainboard onboard form, through the embodiments of the present application, when the storage device is externally connected to a JBOD device, high reliability and maintenance costs can be guaranteed, and problems such as processing and production control can be avoided, thereby improving the stability of product quality, reducing the investment in labor production costs for repairs, reducing the difficulty of replacement and maintenance, and improving the efficiency of replacement and maintenance.

[0083] 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 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, magnetic disk, optical disk), 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 described in each embodiment of the present application.

[0084] In this embodiment, a device for adjusting data transmission parameters is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0085] Figure 6 is a structural block diagram of a device for adjusting data transmission parameters according to an embodiment of the present application, such as Figure 6 As shown, the adapter of the server is used to connect to the storage device, and the adapter is also used to transmit data between the server and the storage device connected to the adapter according to the configured data transmission parameters. The device is applied to the adapter, and the device includes:

[0086] A detection module 602 is used to detect a target server attribute of the target server and a target connection mode between the adapter and the target storage device when it is detected that the adapter is connected to the target server and the target storage device is connected to the adapter;

[0087] The processing module 604 is used to read the target data transmission loss corresponding to the target server attribute from the server attributes and data transmission losses having a corresponding relationship, and generate a target data transmission parameter according to the target data transmission loss and the target connection mode, wherein the target data transmission loss is the data loss for data interaction between the target server and the adapter, and the target data transmission parameter is used to control the total data transmission loss for data interaction between the target server and the target storage device within a range less than or equal to a loss threshold;

[0088] The adjustment module 606 is used to adjust the data transmission parameters configured on the adapter to the target data transmission parameters.

[0089] Through the above-mentioned device, the adapter may be connected to different servers, and the same adapter may be connected to different storage devices through different connection methods. In this case, the adapter can automatically determine the data transmission parameters that make the total data transmission loss for data interaction between the server and the storage device less than or equal to the loss threshold based on the server properties of the server to which it is connected and the connection method between the adapter and the storage device, thereby improving the data interaction quality for data interaction between the server and the storage device and realizing adaptive configuration of the data transmission parameters of the adapter. Therefore, the problem of low adjustment efficiency of the data transmission parameters can be solved, thereby achieving the effect of improving the adjustment efficiency of the data transmission parameters.

[0090] In an exemplary embodiment, a mainboard is disposed in the server, a controller is disposed in the adapter, the mainboard is connected to the controller, and the detection module includes:

[0091] A first generating unit, configured to generate a first detection request, wherein the first detection request is used to request detection of the target server attribute of the target server;

[0092] The first control unit is used to control the controller to read the target motherboard attributes of the motherboard in response to the first detection request, wherein the target server attributes include the target motherboard attributes.

[0093] In an exemplary embodiment, a mainboard is deployed in the server, a controller is deployed in the adapter, the mainboard is connected to the controller, the controller is connected to the target storage device, and the detection module includes:

[0094] A second generating unit, configured to generate a second detection request, wherein the second detection request is used to request detection of the target connection mode between the adapter and the target storage device;

[0095] a second control unit, configured to control the controller to read connection mode description information from the target storage device in response to the second detection request, wherein the connection mode description information carries a target connection length of a target cable used to connect the adapter and the target storage device and a target cable attribute of the target cable;

[0096] A third control unit is used to control the controller to extract the target connection length and the target cable attribute from the read connection mode description information, wherein the target connection mode includes the target connection length and the target cable attribute.

[0097] In an exemplary embodiment, a controller is disposed in the adapter, and the adapter stores data transmission loss, connection length, cable properties and data transmission parameters with corresponding relationships, and the processing module includes:

[0098] An acquiring unit, configured to acquire a target generation request, wherein the target generation request is used to request generation of the target data transmission parameter according to the target data transmission loss and the target connection mode;

[0099] A screening unit is used to respond to the target generation request and screen the target data transmission parameters corresponding to the target data transmission loss, target connection length and target cable properties from the data transmission losses, connection lengths, cable properties and data transmission parameters with corresponding relationships, wherein the target connection mode includes the target connection length and the target cable properties.

[0100] In an exemplary embodiment, the adapter is provided with a controller, an adapter chip and a target chip, the controller is connected to the adapter chip, the adapter chip is connected to the target chip, and the adjustment module includes:

[0101] A third generating unit, configured to generate a target adjustment request, wherein the target adjustment request is used to request that the data transmission parameters configured on the adapter be adjusted to the target data transmission parameters;

[0102] A fourth control unit is used to respond to the target adjustment request and control the controller to call the adapter chip to configure the data transmission parameters configured on the target chip as the target data transmission parameters.

[0103] In an exemplary embodiment, the adapter is further provided with a plurality of resistors, the adapter chip allows connection with one of the plurality of resistors, the target chip is provided with a plurality of pins, each of the plurality of pins allows connection with a corresponding one of the plurality of resistors, and the fourth control unit is used to:

[0104] Controlling the controller to select a target resistor from the plurality of resistors according to the target data transmission parameter, and controlling the controller to select a target pin from the plurality of pins according to the target data transmission parameter and the target resistor;

[0105] Control the controller to establish a first connection channel between the adapter chip and the target resistor, and control the controller to establish a second connection channel between the target resistor and the target pin, wherein, upon completion of establishing the first connection channel and the second connection channel, the data transmission parameters configured on the target chip are configured as the target data transmission parameters.

[0106] In an exemplary embodiment, the fourth control unit is further used to: control the controller to screen the target resistor from M resistors by executing the following steps, wherein the multiple resistors include the M resistors, and M is a positive integer greater than or equal to 2: control the controller to detect the target parameter range into which the target data transmission parameter falls, and control the controller to screen R candidate resistors corresponding to the target parameter range from parameter ranges and resistors having a corresponding relationship, wherein the resistors and data transmission parameters having a corresponding relationship are stored in the adapter, the M resistors include the R candidate resistors, and R is a positive integer less than or equal to M, and control the controller to screen the target resistor corresponding to the target data transmission parameter from the R candidate resistors;

[0107] The fourth control unit is further used to: control the controller to screen the target pin from N pins according to the target data transmission parameters and the target resistance by executing the following steps, wherein the multiple pins include the N pins, and N is a positive integer greater than or equal to 2; control the controller to screen P candidate pins corresponding to the target resistance from M resistors and the N pins having a corresponding relationship, wherein the multiple resistors include the M resistors, M is a positive integer greater than or equal to 2, the N pins include the P candidate pins, P is a positive integer less than or equal to N, the M resistors and N pins having a corresponding relationship are stored in the adapter; and control the controller to screen the target pin corresponding to the target data transmission parameters from the P candidate pins.

[0108] 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.

[0109] 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 running.

[0110] 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.

[0111] 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.

[0112] 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.

[0113] 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 one of the above method embodiments are implemented.

[0114] 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.

[0115] 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.

[0116] 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.

[0117] 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.

[0118] The above description is only the preferred embodiment of the present application and is 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 adjusting data transmission parameters, characterized in that: The adapter of the server is used to connect to a storage device, and the adapter is also used to transmit data between the server and the storage device connected to the adapter according to configured data transmission parameters. The method is applied to the adapter, and the method includes: In the case where it is detected that the adapter is connected to a target server and a target storage device is connected to the adapter, detecting a target server attribute of the target server and detecting a target connection mode between the adapter and the target storage device; Reading the target data transmission loss corresponding to the target server attribute from the server attributes and data transmission losses having a corresponding relationship, and generating a target data transmission parameter according to the target data transmission loss and the target connection mode, wherein the target data transmission loss is the data loss for data interaction between the target server and the adapter, and the target data transmission parameter is used to control the total data transmission loss for data interaction between the target server and the target storage device within a range less than or equal to a loss threshold; The data transmission parameters configured on the adapter are adjusted to the target data transmission parameters.

2. The method according to claim 1, characterized in that The server is provided with a mainboard, the adapter is provided with a controller, the mainboard is connected to the controller, and the detecting of the target server attribute of the target server includes: Generate a first detection request, wherein the first detection request is used to request detection of the target server attribute of the target server; In response to the first detection request, the controller is controlled to read target motherboard attributes of the motherboard, wherein the target server attributes include the target motherboard attributes.

3. The method according to claim 1, characterized in that The server is provided with a mainboard, the adapter is provided with a controller, the mainboard is connected to the controller, the controller is connected to the target storage device, and the detecting of the target connection mode between the adapter and the target storage device includes: Generate a second detection request, wherein the second detection request is used to request detection of the target connection mode between the adapter and the target storage device; In response to the second detection request, controlling the controller to read connection mode description information from the target storage device, wherein the connection mode description information carries a target connection length of a target cable used to connect the adapter and the target storage device and a target cable attribute of the target cable; The controller is controlled to extract the target connection length and the target cable attribute from the read connection mode description information, wherein the target connection mode includes the target connection length and the target cable attribute.

4. The method according to claim 1, characterized in that: The adapter is provided with a controller, and the adapter stores data transmission loss, connection length, cable properties and data transmission parameters having corresponding relationships. The target data transmission parameters are generated according to the target data transmission loss and the target connection mode, including: Obtaining a target generation request, wherein the target generation request is used to request generation of the target data transmission parameter according to the target data transmission loss and the target connection mode; In response to the target generation request, the target data transmission parameters corresponding to the target data transmission loss, target connection length and target cable properties are filtered from the data transmission losses, connection lengths, cable properties and data transmission parameters with corresponding relationships, wherein the target connection mode includes the target connection length and the target cable properties.

5. The method according to claim 1, characterized in that The adapter is provided with a controller, an adapter chip and a target chip, the controller is connected to the adapter chip, the adapter chip is connected to the target chip, and the data transmission parameters configured on the adapter are adjusted to the target data transmission parameters, including: Generate a target adjustment request, wherein the target adjustment request is used to request that the data transmission parameters configured on the adapter be adjusted to the target data transmission parameters; In response to the target adjustment request, the controller is controlled to call the adapter chip to configure the data transmission parameters configured on the target chip as the target data transmission parameters.

6. The method according to claim 5, characterized in that The adapter is further provided with a plurality of resistors, the adapter chip is allowed to be connected to one of the plurality of resistors, the target chip is provided with a plurality of pins, each of the plurality of pins is allowed to be connected to a corresponding one of the plurality of resistors, and the controller calls the adapter chip to configure the data transmission parameters configured on the target chip as the target data transmission parameters, including: Controlling the controller to select a target resistor from the plurality of resistors according to the target data transmission parameter, and controlling the controller to select a target pin from the plurality of pins according to the target data transmission parameter and the target resistor; Control the controller to establish a first connection channel between the adapter chip and the target resistor, and control the controller to establish a second connection channel between the target resistor and the target pin, wherein, upon completion of establishing the first connection channel and the second connection channel, the data transmission parameters configured on the target chip are configured as the target data transmission parameters.

7. The method according to claim 6, characterized in that The controlling the controller to select a target resistor from the multiple resistors according to the target data transmission parameter comprises: controlling the controller to select the target resistor from M resistors by executing the following steps, wherein the multiple resistors include the M resistors, and M is a positive integer greater than or equal to 2: controlling the controller to detect a target parameter range into which the target data transmission parameter falls, and controlling the controller to select R candidate resistors corresponding to the target parameter range from parameter ranges and resistors having a corresponding relationship, wherein the resistors and data transmission parameters having a corresponding relationship are stored in the adapter, the M resistors include the R candidate resistors, and R is a positive integer less than or equal to M, and controlling the controller to select the target resistor corresponding to the target data transmission parameter from the R candidate resistors; The controlling the controller to select the target pin from the multiple pins according to the target data transmission parameters and the target resistance includes: controlling the controller to select the target pin from N pins according to the target data transmission parameters and the target resistance by executing the following steps, wherein the multiple pins include the N pins, and N is a positive integer greater than or equal to 2; controlling the controller to select P candidate pins corresponding to the target resistance from M resistors and the N pins having a corresponding relationship, wherein the multiple resistors include the M resistors, M is a positive integer greater than or equal to 2, the N pins include the P candidate pins, P is a positive integer less than or equal to N, the M resistors and N pins having a corresponding relationship are stored in the adapter, and controlling the controller to select the target pin corresponding to the target data transmission parameters from the P candidate pins.

8. A device for adjusting data transmission parameters, characterized in that: The adapter of the server is used to connect to the storage device, and the adapter is also used to transmit data between the server and the storage device connected to the adapter according to the configured data transmission parameters. The device is applied to the adapter, and the device includes: a detection module, configured to detect a target server attribute of the target server and a target connection mode between the adapter and the target storage device when it is detected that the adapter is connected to the target server and the target storage device is connected to the adapter; a processing module, configured to read a target data transmission loss corresponding to the target server attribute from the server attributes and data transmission losses having a corresponding relationship, and generate a target data transmission parameter according to the target data transmission loss and the target connection mode, wherein the target data transmission loss is a data loss for data interaction between the target server and the adapter, and the target data transmission parameter is used to control a total data transmission loss for data interaction between the target server and the target storage device within a range less than or equal to a loss threshold; The adjustment module is used to adjust the data transmission parameters configured on the adapter to the target data transmission parameters.

9. 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 7 when executed by a processor.

10. 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 7 are implemented.