Parameter configuration method and device, storage medium and electronic device

文档序号:7471 发布日期:2021-09-17 浏览:30次 中文

1. The parameter configuration method is applied to a computer system comprising a PCIe control device of a high-speed serial computer expansion bus, and comprises the following steps:

the PCIe control device receives a configuration instruction from a visualization tool which is in communication connection with the PCIe control device, wherein the configuration instruction comprises identification information of a target node to be adjusted in the PCIe control device and a first target value to which a target parameter is to be adjusted;

the PCIe control equipment analyzes the configuration instruction to acquire the identification information and the first target value;

the PCIe control device adjusts the value of the target parameter of the target node indicated by the identification information to the first target value.

2. The method of claim 1, wherein adjusting, at the PCIe control device, the value of the target parameter of the target node indicated by the identification information to the first target value comprises:

the method comprises the steps that PCIe control equipment obtains first signal quality information in a computer system where the PCIe control equipment is located, wherein the first signal quality information is used for indicating signal transmission quality in the computer system;

and under the condition that the first signal quality information is determined not to meet the preset condition, the PCIe control equipment adjusts the value of the target parameter of the target node indicated by the identification information to be the first target value.

3. The method of claim 1, wherein after the PCIe control device adjusts the value of the target parameter of the target node indicated by the identification information to the first target value, the method further comprises:

after the PCIe control equipment acquires that the value of the target parameter is adjusted to the first target value, second signal quality information in a computer system where the PCIe control equipment is located is used for indicating the signal transmission quality in the computer system;

and under the condition that the second signal quality information does not accord with the preset condition, the PCIe control equipment sends prompt information to the visualization tool, wherein the prompt information is used for prompting that the second signal quality information does not accord with the preset condition.

4. The method of claim 3, wherein after the PCIe control device obtains second signal quality information within the computer system in which the PCIe control device is located after the value of the target parameter is adjusted to the first target value, the method further comprises:

and under the condition that the second signal quality information meets a preset condition, the PCIe control equipment stores the first target value to a target storage area.

5. The method of claim 4, wherein after the PCIe control device stores the first target value to a target storage area, the method further comprises:

under the condition that the computer system where the PCIe control equipment is located is determined to be restarted, the PCIe control equipment calls the first target value from the storage area;

and the PCIe control equipment controls the target node to operate in a mode that the value of the target parameter is the first target value.

6. The method for generating the instruction is applied to a visualization tool connected with a computer system comprising a high-speed serial computer expansion bus PCIe control device, and comprises the following steps:

receiving an adjusting instruction;

determining identification information of a target node to be adjusted and a first target value to which a target parameter is to be adjusted, which are included in the PCIe control equipment, according to the adjustment instruction;

generating a configuration instruction based on the adjustment instruction, wherein the configuration instruction comprises identification information of the target node and the first target value to which the target parameter is to be adjusted;

sending the configuration instruction to the PCIe control device to instruct the PCIe control device to perform the following operations: analyzing the configuration instruction to acquire the identification information and the first target value; adjusting the value of the target parameter of the target node indicated by the identification information to the first target value.

7. The parameter configuration device is applied to a computer system comprising a PCIe control device of a high-speed serial computer expansion bus, and comprises the following components:

the PCIe control device comprises a first instruction receiving module, a first parameter adjusting module and a second instruction receiving module, wherein the first instruction receiving module is used for controlling the PCIe control device to receive a configuration instruction from a visualization tool which is in communication connection with the PCIe control device, and the configuration instruction comprises identification information of a target node to be adjusted in the PCIe control device and a first target value to which a target parameter is to be adjusted;

the command analysis module is used for controlling the PCIe control equipment to analyze the configuration command so as to acquire the identification information and the first target value;

a parameter adjusting module, configured to control the PCIe control device to adjust the value of the target parameter of the target node indicated by the identification information to the first target value.

8. An instruction generating device, which is applied to a visualization tool connected with a computer system including a high-speed serial computer expansion bus PCIe control device, and comprises:

the second instruction receiving module is used for receiving an adjusting instruction;

the target determining module is used for determining the identification information of the target node to be adjusted and the first target value to which the target parameter is to be adjusted, which are included in the PCIe control equipment, according to the adjusting instruction;

an instruction generating module, configured to generate a configuration instruction based on the adjustment instruction, where the configuration instruction includes identification information of the target node and the first target value to which the target parameter is to be adjusted;

an instruction sending module, configured to send the configuration instruction to the PCIe control device to instruct the PCIe control device to perform the following operations: analyzing the configuration instruction to acquire the identification information and the first target value; adjusting the value of the target parameter of the target node indicated by the identification information to the first target value.

9. A storage medium having stored thereon a computer program, wherein the computer program is arranged to perform the method of any of claims 1 to 5 when executed, or to perform the method of claim 6.

10. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and wherein the processor is arranged to execute the computer program to perform the method of any of claims 1 to 5, or to perform the method of claim 6.

Background

In a complete computer system platform, a processor unit, a storage unit, a PCIe (Peripheral Component Interconnect express) controller configuration unit, and various external application interface devices are included.

PCIe devices connected to the main control unit are sequentially scanned by a root node during a system startup process, but when signal quality in the computer system is poor, an enumeration failure may occur, for example, a node of the PCIe device may not be found, or an address space exception occurs when accessing the pci domain (for example, a write operation performed on the bar space may fail to affect a corresponding service); at this time, in order to ensure the normal use of the computer system, the PCIe register can be dynamically modified by switching a remote mode or a local mode through a developed PCIe register configuration tool, and then a SetPCie function command is called, so that the register configuration table acts on a PCIe controller chip through a BUS, and the aim of dynamically adjusting the PCIe register is fulfilled.

The existing PCIe adjusting mode generally adopts a register configuration tool which is compiled in advance, and reads, configures and other operations on relevant registers through a bootstrap program in the starting process of equipment, on one hand, the configuration mode can not visually observe the specific execution process of the configuration operation, and can only judge the configuration result through the running result of a computer system after the configuration is finished, so that the timely calibration action of visually operating a register configuration interface to store or take effect the test result can not be realized, the operation of the configuration process is complex, and the configuration efficiency is reduced; on the other hand, the method is not suitable for different computer systems, and is lack of flexibility, when the computer system is not suitable for the content of a preset register configuration tool, the register configuration command cannot be automatically executed (the instruction information is not a tool), and the configuration efficiency is also reduced.

Disclosure of Invention

The embodiment of the invention provides a parameter configuration method and device, an instruction generation method and device, a storage medium and an electronic device, and at least solves the problem of low parameter configuration efficiency in the related technology.

According to an embodiment of the present invention, there is provided a parameter configuration method applied in a computer system including a PCIe control device of a high-speed serial computer expansion bus, including:

the PCIe control device receives a configuration instruction from a visualization tool in communication connection with the PCIe control device, wherein the configuration instruction is an instruction generated by the visualization tool after determining identification information of a target node to be adjusted and a first target value to which a target parameter is to be adjusted, which are included in the PCIe control device, based on a received adjustment instruction, and the configuration instruction includes the identification information of the target node and the first target value;

the PCIe control equipment analyzes the configuration instruction to acquire the identification information and the first target value;

the PCIe control device adjusts the value of the target parameter of the target node indicated by the identification information to the first target value.

In one exemplary embodiment, adjusting, at the PCIe control device, the value of the target parameter of the target node indicated by the identification information to the first target value includes:

the method comprises the steps that PCIe control equipment obtains first signal quality information in a computer system where the PCIe control equipment is located, wherein the first signal quality information is used for indicating signal transmission quality in the computer system;

and under the condition that the first signal quality information is determined not to meet the preset condition, the PCIe control equipment adjusts the value of the target parameter of the target node indicated by the identification information to be the first target value.

In one exemplary embodiment, after the PCIe control device adjusts the value of the target parameter of the target node indicated by the identification information to the first target value, the method further includes:

after the PCIe control equipment acquires that the value of the target parameter is adjusted to the first target value, second signal quality information in a computer system where the PCIe control equipment is located is used for indicating the signal transmission quality in the computer system;

and under the condition that the second signal quality information does not accord with the preset condition, the PCIe control equipment sends prompt information to the visualization tool, wherein the prompt information is used for prompting that the second signal quality information does not accord with the preset condition.

In an exemplary embodiment, after the PCIe control device obtains the second signal quality information in the computer system where the PCIe control device is located after the value of the target parameter is adjusted to the first target value, the method further includes:

and under the condition that the second signal quality information meets a preset condition, the PCIe control equipment stores the first target value to a target storage area.

In one exemplary embodiment, after the PCIe control device stores the first target value in the target storage area, the method further includes:

under the condition that the computer system where the PCIe control equipment is located is determined to be restarted, the PCIe control equipment calls the first target value from the storage area;

and the PCIe control equipment controls the target node to operate in a mode that the value of the target parameter is the first target value.

According to another embodiment of the present invention, there is provided an instruction generating method applied in a visualization tool connected to a computer system including a PCIe control device of a high-speed serial computer expansion bus, including:

receiving an adjusting instruction;

determining identification information of a target node to be adjusted and a first target value to which a target parameter is to be adjusted, which are included in the PCIe control equipment, according to the adjustment instruction;

generating a configuration instruction based on the adjustment instruction, wherein the configuration instruction comprises identification information of the target node and the first target value to which the target parameter is to be adjusted;

sending the configuration instruction to the PCIe control device to instruct the PCIe control device to perform the following operations: analyzing the configuration instruction to acquire the identification information and the first target value; adjusting the value of the target parameter of the target node indicated by the identification information to the first target value.

According to another embodiment of the present invention, there is provided a parameter configuration apparatus applied in a computer system including a PCIe control device of a high-speed serial computer expansion bus, including:

a first instruction receiving module, configured to control the PCIe control device to receive a configuration instruction from a visualization tool communicatively connected to the PCIe control device, where the configuration instruction is an instruction generated by the visualization tool after determining, based on a received adjustment instruction, identification information of a target node to be adjusted and a first target value to which a target parameter is to be adjusted, where the configuration instruction includes the identification information of the target node and the first target value;

the command analysis module is used for controlling the PCIe control equipment to analyze the configuration command so as to acquire the identification information and the first target value;

a parameter adjusting module, configured to control the PCIe control device to adjust the value of the target parameter of the target node indicated by the identification information to the first target value.

According to another embodiment of the present invention, there is provided an instruction generating apparatus for use in a visualization tool connected to a computer system including a PCIe control device of a high-speed serial computer expansion bus, including:

the second instruction receiving module is used for receiving an adjusting instruction;

the target determining module is used for determining the identification information of the target node to be adjusted and the first target value to which the target parameter is to be adjusted, which are included in the PCIe control equipment, according to the adjusting instruction;

an instruction generating module, configured to generate a configuration instruction based on the adjustment instruction, where the configuration instruction includes identification information of the target node and the first target value to which the target parameter is to be adjusted;

an instruction sending module, configured to send the configuration instruction to the PCIe control device to instruct the PCIe control device to perform the following operations: analyzing the configuration instruction to acquire the identification information and the first target value; adjusting the value of the target parameter of the target node indicated by the identification information to the first target value.

According to a further embodiment of the present invention, there is also provided a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.

According to yet another embodiment of the present invention, there is also provided an electronic device, including a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.

According to the invention, the adjustment process of the target parameter is observed through the visualization tool, so that the parameter configuration process is simplified, the problem of low parameter configuration efficiency can be solved, and the effect of improving the computer parameter adjustment efficiency is achieved.

Drawings

Fig. 1 is a block diagram of a hardware structure of a mobile terminal of a parameter configuration method according to an embodiment of the present invention;

FIG. 2 is a flow chart of a parameter configuration method according to an embodiment of the invention;

FIG. 3 is a flow diagram of a method of instruction generation according to an embodiment of the invention;

FIG. 4 is a block diagram of a parameter configuration apparatus according to an embodiment of the present invention;

fig. 5 is a block diagram of an instruction generating apparatus according to an embodiment of the present invention;

FIG. 6 is a flow chart of a specific embodiment of the present invention;

FIG. 7 is a PCIe tree topology diagram of an embodiment of the present invention.

Detailed Description

Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings in conjunction with the embodiments.

It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.

The method embodiments provided in the embodiments of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking the operation on the mobile terminal as an example, fig. 1 is a hardware structure block diagram of the mobile terminal of a parameter configuration method according to an embodiment of the present invention. As shown in fig. 1, the mobile terminal may include one or more (only one shown in fig. 1) processors 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 mobile terminal may further include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration, and does not limit the structure of the mobile terminal. For example, the mobile terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.

The memory 104 may be used to store a computer program, for example, a software program and a module of an application software, such as a computer program corresponding to a parameter configuration method in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, so as to implement the method described above. The memory 104 may include high speed random access memory, and may also include 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 memory located remotely from the processor 102, which may be connected to the mobile terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.

The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a Network adapter (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 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.

In this embodiment, a parameter configuration method is provided, and fig. 2 is a flowchart according to an embodiment of the present invention, where the method is applied in a computer system provided with a PCIe control device of a high-speed serial computer expansion bus, and as shown in fig. 2, the flowchart includes the following steps:

step S202, a PCIe control device receives a configuration instruction from a visualization tool which is in communication connection with the PCIe control device, wherein the configuration instruction comprises identification information of a target node to be adjusted in the PCIe control device and a first target value to which a target parameter is to be adjusted;

in this embodiment, the configuration instruction is an instruction generated by the visualization tool after determining, based on the received adjustment instruction, the identification information of the target node to be adjusted and the first target value to which the target parameter is to be adjusted, which are included in the PCIe control device, and the PCIe control device receives the configuration instruction from the visualization tool, so that the parameter adjustment process of the PCIe control device can be displayed by the visualization tool, thereby facilitating adjustment of parameters in the computer system, and also facilitating prediction of an adjusted result.

The visualization tool may be a User Interface (UI) tool, a display screen connected through the UI tool, or other visualization equipment or devices; the display screen may be a touch screen or a display screen connected with an input device (such as a keyboard); the identification information can be a data label, an identification code, or other types of data or identifications capable of identifying the target node; the configuration instruction comprises the identification information of the target node and the first target value, so that the PCIe control device can quickly adjust the target node and the target parameter according to the configuration instruction after acquiring the configuration instruction, thereby improving the adjustment efficiency of the target node and the target parameter.

After receiving the adjustment instruction, the visualization tool firstly identifies the adjustment instruction so as to determine that the configuration instruction comprises the identification information of the target node and the first target value; and then determining a target node to be adjusted and a first target value to which the target parameter is to be adjusted according to the adjustment instruction, generating a configuration instruction, and sending the configuration instruction to the PCIe control equipment.

It should be noted that the manner of sending the configuration instruction to the PCIe control device by the visualization tool may be through wired transmission, or through wireless communication transmission, or through interface transmission.

Step S204, the PCIe control equipment analyzes the configuration instruction to obtain the identification information and the first target value;

in this embodiment, the PCIe control device parses the configuration instruction, so as to convert the identification information and the first target value into a data format that can be recognized by the PCIe control device, so that the PCIe control device can modify and adjust the corresponding target node and the parameter.

In step S206, the PCIe control device adjusts the value of the target parameter of the target node indicated by the identification information to the first target value.

In this embodiment, the target parameter of the target node is adjusted to the first target value to adapt the computer system to actual requirements, so that the computer system can perform good operation under different usage environments.

Through the steps, the visual tool can visually display the target parameter adjusting process of the target node, so that the adjusting result can be pre-judged according to the adjusting process, the adjusting result can be determined without restarting a computer system, the parameter configuration process is simplified, the problem of low parameter configuration efficiency in the related technology is solved, and the parameter configuration efficiency is improved.

In an optional embodiment, adjusting, at the PCIe control device, the value of the target parameter of the target node indicated by the identification information to the first target value includes:

step S2062, the PCIe control equipment acquires first signal quality information in the computer system where the PCIe control equipment is located, wherein the first signal quality information is used for indicating the signal transmission quality in the computer system;

in step S2064, in a case where it is determined that the first signal quality information does not meet the preset condition, the PCIe control device adjusts the value of the target parameter of the target node indicated by the identification information to the first target value.

In this embodiment, the adjustment of the target parameter of the target node according to the first signal quality information in the computer system is to adjust the signal transmission quality in the computer system by adjusting the target parameter of the target node, so as to improve the internal operating efficiency in the computer system.

The first signal quality information includes (but is not limited to) information such as a rate, a data amount, and a data transmission phase of signal transmission in the computer system, and the first signal quality information may be obtained by detecting a designated node through a signal detection module, or by detecting all nodes through the signal detection module, and then determining according to an average value of detection results, or by other methods; the preset condition may (but is not limited to) be set according to an index of a communication protocol, or may be set according to an actual use requirement, or may be determined according to an actual operation condition of the device (such as power consumption, limited power, age, and the like).

For example, when it is detected that the first signal quality information is lower than the signal quality required by the communication protocol, in order to ensure the normal operation of the computer system, the target parameter of the target node is adjusted to the first target value, so that the signal transmission quality of the computer system at the target node meets the requirement, and the signal transmission quality inside the computer system is improved.

The device for detecting the signal quality inside the computer system may be a signal detection module disposed inside the computer system, an external signal detection tool, or other devices having a signal detection function.

In an optional embodiment, after the PCIe control device adjusts the value of the target parameter of the target node indicated by the identification information to the first target value, the method further includes:

step S2066, after the PCIe control device obtains that the value of the target parameter is adjusted to the first target value, the PCIe control device obtains second signal quality information in the computer system where the PCIe control device is located, where the second signal quality information is used to indicate signal transmission quality in the computer system;

in step S2068, when the second signal quality information does not meet the preset condition, the PCIe control device sends a prompt message to the visualization tool, where the prompt message is used to prompt that the second signal quality information does not meet the preset condition.

In this embodiment, after the target parameter of the target node is adjusted to the first target value, the signal transmission quality in the computer system may still not meet the preset condition, and therefore, the target node in the computer system needs to be continuously adjusted; therefore, the adjusted second signal quality information needs to be acquired to determine whether the adjusted internal signal transmission quality of the computer system meets the preset condition, so that the target node can be continuously adjusted under the condition that the adjusted internal signal transmission quality of the computer system does not meet the preset condition, and the signal transmission quality in the computer system meets the preset condition.

And under the condition that the preset condition is determined not to be met, the prompt message is sent to the visualization tool, so that the user can visually know the adjustment result through the visualization tool, and then the user can further adjust the target node according to the adjustment result without adjusting the target node after the computer system is restarted, and the adjustment efficiency is improved.

The second signal quality information also includes (but is not limited to) information such as a rate, a data amount, and a data transmission phase of signal transmission in the computer system, and the second signal quality information may be obtained by detecting a designated node through a signal detection module, or by detecting all nodes through the signal detection module, and then determining according to an average value of detection results, or by other methods; the prompt message includes (but is not limited to) text message, sound message, graphics, etc. for indicating that the second signal quality information does not meet the preset condition, wherein the text message may be text message highlighting the second signal quality information that does not meet the preset condition with different colors, or may be a text of "signal quality is not satisfactory", or may be text message in other forms.

In an optional embodiment, after the PCIe control device obtains the value of the target parameter and adjusts the value to the first target value, the method further includes, after obtaining the second signal quality information in the computer system where the PCIe control device is located:

in step S20610, the PCIe control device stores the first target value in the target storage area when the second signal quality information meets the preset condition.

In this embodiment, the first target value is stored in the target storage area to avoid data loss, so that the first target value can be called in time after the computer system is restarted or needs to be used.

The target storage area may be a storage area located inside the computer system, may also be an external storage device connected to the computer system, such as a flash, a removable hard disk, or other storage devices or apparatuses, such as a cloud storage, communicatively connected to the computer system.

In an optional embodiment, after the PCIe control device stores the first target value in the target storage area, the method further includes:

step S20612, in the case where it is determined that the computer system where the PCIe control device is located is restarted, the PCIe control device calls the first target value from the storage area;

in step S20614, the PCIe control device controls the target node to operate in a manner that the value of the target parameter is the first target value.

In this embodiment, after the computer system is restarted, the first target value is directly called from the target storage area, and the target parameter of the target node does not need to be readjusted, so that the operation efficiency of the adjustment device is saved.

In an alternative embodiment, the present invention further provides an instruction generating method, which is applied in a visualization tool connected to a computer system including a PCIe control device of a high-speed serial computer expansion bus, as shown in fig. 3, and the method includes:

step S302, receiving an adjusting instruction;

step S304, determining the identification information of the target node to be adjusted and the first target value to which the target parameter is to be adjusted, which are included in the PCIe control equipment, according to the adjustment instruction;

step S306, generating a configuration instruction based on the adjustment instruction, wherein the configuration instruction comprises identification information of the target node and a first target value to which the target parameter is to be adjusted;

step S308, sending the configuration instruction to the PCIe control device to instruct the PCIe control device to perform the following operations: analyzing the configuration instruction to acquire identification information and a first target value; and adjusting the value of the target parameter of the target node indicated by the identification information to be the first target value.

In this embodiment, the visualization tool may receive the adjustment instruction, where the adjustment instruction is sent to the visualization tool by the user through the touch screen, or sent to the visualization tool by the user through a peripheral input device such as a keyboard connected to the visualization tool, where the peripheral device such as the touch screen or the keyboard may be connected to the visualization tool in a wired or wireless manner; accordingly, the adjustment instruction may be transmitted to the visualization tool by wire or by wireless communication.

Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.

In this embodiment, a parameter configuration apparatus is further provided, and the apparatus is used to implement the foregoing embodiments and preferred embodiments, and the description already made is omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.

Fig. 4 is a block diagram of a parameter configuration apparatus according to an embodiment of the present invention, where the parameter configuration apparatus may be applied in a computer system including a PCIe control device of a high speed serial computer expansion bus, as shown in fig. 4, the apparatus includes:

a first instruction receiving module 42, configured to control a PCIe control device to receive a configuration instruction from a visualization tool communicatively connected to the PCIe control device, where the configuration instruction includes identification information of a target node to be adjusted in the PCIe control device and a first target value to which a target parameter is to be adjusted;

the instruction analysis module 44 is configured to control the PCIe control device to analyze the configuration instruction to obtain the identification information and the first target value;

and a parameter adjusting module 46, configured to control the PCIe control device to adjust the value of the target parameter of the target node indicated by the identification information to the first target value.

In an alternative embodiment, the parameter adjustment module 46 includes:

a first signal detection unit 462, configured to control a PCIe control device to obtain first signal quality information in a computer system where the PCIe control device is located, where the first signal quality information is used to indicate signal transmission quality in the computer system;

and a parameter adjusting unit 464, configured to, in a case where it is determined that the first signal quality information does not meet the preset condition, control the PCIe control device to adjust the value of the target parameter of the target node indicated by the identification information to the first target value.

In an alternative embodiment, the parameter adjustment module 46 further comprises:

the second signal detection unit 466 is configured to control second signal quality information in the computer system where the PCIe control device is located after the value of the target parameter acquired by the PCIe control device is adjusted to the first target value, where the second signal quality information is used to indicate signal transmission quality in the computer system;

and a prompting unit 468, configured to control the PCIe control device to send a prompting message to the visualization tool when the second signal quality information does not meet the preset condition, where the prompting message is used to prompt that the second signal quality information does not meet the preset condition.

In an alternative embodiment, the parameter adjustment module 46 further comprises:

a storage unit 4610, configured to control the PCIe control device to store the first target value in the target storage area if the second signal quality information meets the preset condition.

In an optional embodiment, the apparatus further comprises:

a parameter calling unit 4612, configured to control the PCIe control device to call the first target value from the storage area when it is determined that the computer system where the PCIe control device is located is restarted;

a parameter running unit 4614, configured to control the PCIe control device to control the target node to run in a manner that the value of the target parameter is the first target value.

Fig. 5 is a block diagram of an instruction generating apparatus according to an embodiment of the present invention, where the instruction generating apparatus may be applied in a visualization tool connected to a computer system including a PCIe control device of a high-speed serial computer expansion bus, as shown in fig. 5, the apparatus includes:

a second instruction receiving module 52, configured to receive an adjustment instruction;

a target determining module 54, configured to determine, according to the adjustment instruction, a target node to be adjusted and a first target value to which the target parameter is to be adjusted, which are included in the PCIe control device;

an instruction generating module 56, configured to generate a configuration instruction based on the adjustment instruction, where the configuration instruction includes identification information of the target node and a first target value to which the target parameter is to be adjusted;

an instruction sending module 58, configured to send a configuration instruction to the PCIe control device to instruct the PCIe control device to perform the following operations: analyzing the configuration instruction to acquire identification information and a first target value; and adjusting the value of the target parameter of the target node indicated by the identification information to be the first target value.

It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.

The present invention will be described with reference to specific examples.

As shown in fig. 6, first, a computer system is connected through a UI tool (corresponding to step S601 in fig. 6), wherein the connection mode can be USB connection or wireless communication connection.

As shown in fig. 6 and fig. 7 (fig. 7 is a connection relationship topological diagram between devices according to the present invention), after the UI tool is connected to the computer system, there is a display interface on the UI tool to display the whole PCIe tree topological diagram, and then a corresponding PCIe node can be selected according to actual conditions to perform signal-related parameter configuration (corresponding to step S602 in fig. 6); for example, when a node for a PCIe switch into bus02:02.0 is selected, the corresponding value of swing and value of emphassis are displayed on the UI tool.

And then, performing corresponding analysis according to the current signal quality, and adjusting the swing and emphasis parameter values (corresponding to step S603 and step S604 in fig. 6).

Then, the corresponding adjustment result is checked according to the eye pattern tested by the high-frequency oscilloscope (corresponding to step S605 in fig. 6). At this time, if the adjustment result shows that there is room for improvement in signal quality, the adjustment may be performed again, or the corresponding adjustment parameter may be selected to be saved (corresponding to step S606 in fig. 6), so that the corresponding adjustment parameter may also be valid after the computer system is restarted.

Embodiments of the present invention also provide a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.

In an exemplary embodiment, the storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.

Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.

In an exemplary embodiment, the electronic apparatus 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.

For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary embodiments, and details of this embodiment are not repeated herein.

It will be apparent to those skilled in the art that the various modules or steps of the invention described above may be implemented using a general purpose computing device, they may be centralized on a single computing device or distributed across a network of computing devices, and they may be implemented using program code executable by the computing devices, such that they may be stored in a memory device and executed by the computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into various integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.

The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

完整详细技术资料下载
上一篇:石墨接头机器人自动装卡簧、装栓机
下一篇:少针脚型接口和通用异步收发器接口复用方法、装置、设备

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!