CN113407469A - Parameter configuration method and device, storage medium and electronic device - Google Patents

Parameter configuration method and device, storage medium and electronic device Download PDF

Info

Publication number
CN113407469A
CN113407469A CN202110651247.XA CN202110651247A CN113407469A CN 113407469 A CN113407469 A CN 113407469A CN 202110651247 A CN202110651247 A CN 202110651247A CN 113407469 A CN113407469 A CN 113407469A
Authority
CN
China
Prior art keywords
target
pcie control
control device
instruction
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110651247.XA
Other languages
Chinese (zh)
Other versions
CN113407469B (en
Inventor
任鹏冲
叶浩
童友连
杨国全
曹亚曦
王克彦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Huachuang Video Signal Technology Co Ltd
Original Assignee
Zhejiang Huachuang Video Signal Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Huachuang Video Signal Technology Co Ltd filed Critical Zhejiang Huachuang Video Signal Technology Co Ltd
Priority to CN202110651247.XA priority Critical patent/CN113407469B/en
Publication of CN113407469A publication Critical patent/CN113407469A/en
Application granted granted Critical
Publication of CN113407469B publication Critical patent/CN113407469B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4004Coupling between buses
    • G06F13/4022Coupling between buses using switching circuits, e.g. switching matrix, connection or expansion network
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0026PCI express
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Computer Hardware Design (AREA)
  • Information Transfer Systems (AREA)

Abstract

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, wherein the parameter configuration method comprises the following steps: the PCI e control equipment receives a configuration instruction from a visualization tool in communication connection with the PC ie control equipment; the PC ie control equipment analyzes the configuration instruction to acquire identification information and a first target value; the PCI e control device adjusts the value of the target parameter of the target node indicated by the identification information to a first target value. By the method and the device, the problem of low parameter configuration efficiency in the related technology is solved, and the effect of improving the parameter configuration efficiency is achieved.

Description

Parameter configuration method and device, storage medium and electronic device
Technical Field
The embodiment of the invention relates to the field of communication, in particular to a parameter configuration method and device, an instruction generation method and device, a storage medium and an electronic device.
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.

Claims (10)

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.
CN202110651247.XA 2021-06-10 2021-06-10 Parameter configuration method and device, storage medium and electronic device Active CN113407469B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110651247.XA CN113407469B (en) 2021-06-10 2021-06-10 Parameter configuration method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110651247.XA CN113407469B (en) 2021-06-10 2021-06-10 Parameter configuration method and device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN113407469A true CN113407469A (en) 2021-09-17
CN113407469B CN113407469B (en) 2023-04-07

Family

ID=77683573

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110651247.XA Active CN113407469B (en) 2021-06-10 2021-06-10 Parameter configuration method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN113407469B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114567569A (en) * 2022-02-25 2022-05-31 西安微电子技术研究所 PCIe simulation data visualization method, system, device and medium
WO2023045387A1 (en) * 2021-09-26 2023-03-30 华为技术有限公司 Method and apparatus for allocating pcie device identifier, and related device

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040236547A1 (en) * 2003-01-22 2004-11-25 Rappaport Theodore S. System and method for automated placement or configuration of equipment for obtaining desired network performance objectives and for security, RF tags, and bandwidth provisioning
GB201013362D0 (en) * 2010-08-09 2010-09-22 Quadrant Systems Ltd Integrating a new subsystem with an existing computing architecture
US8463951B1 (en) * 2003-03-27 2013-06-11 Nvidia Corporation Unified driver architecture device identifier strategy
CN103412769A (en) * 2013-07-25 2013-11-27 华为技术有限公司 External card parameter configuration method, equipment and system
US20140281067A1 (en) * 2013-03-15 2014-09-18 Debendra Das Sharma Apparatus, system, and method for performing link training and equalization
CN106648615A (en) * 2016-11-07 2017-05-10 中国航空无线电电子研究所 VxWorks-based BSP code development system
CN107436850A (en) * 2015-09-21 2017-12-05 华为技术有限公司 The method that endpoint device accesses in computer system and computer system
CN109271177A (en) * 2018-08-21 2019-01-25 郑州云海信息技术有限公司 A kind of method and system of automatic load PCIE Switch products configuration parameter
US20190087376A1 (en) * 2017-09-15 2019-03-21 Dell Products L.P. Hot-plugged pcie device configuration system
CN110869875A (en) * 2017-05-08 2020-03-06 利奇得公司 Fabric switching graphics module within a storage enclosure
CN111030778A (en) * 2019-11-30 2020-04-17 苏州浪潮智能科技有限公司 Parameter self-adaption method, device and equipment of high-speed signal and readable storage medium
CN111124505A (en) * 2019-10-30 2020-05-08 苏州浪潮智能科技有限公司 Configuration method and device of mainboard hardware
CN111552657A (en) * 2019-02-08 2020-08-18 英特尔公司 PHY recalibration using a message bus interface
CN112579055A (en) * 2020-12-11 2021-03-30 平安普惠企业管理有限公司 Interface parameter checking method and device and computer readable storage medium
US10977051B1 (en) * 2019-11-08 2021-04-13 Xilinx, Inc. Dynamic base address register (BAR) reconfiguration using a peripheral component interconnect express (PCIe) extended configuration space

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040236547A1 (en) * 2003-01-22 2004-11-25 Rappaport Theodore S. System and method for automated placement or configuration of equipment for obtaining desired network performance objectives and for security, RF tags, and bandwidth provisioning
US8463951B1 (en) * 2003-03-27 2013-06-11 Nvidia Corporation Unified driver architecture device identifier strategy
GB201013362D0 (en) * 2010-08-09 2010-09-22 Quadrant Systems Ltd Integrating a new subsystem with an existing computing architecture
US20140281067A1 (en) * 2013-03-15 2014-09-18 Debendra Das Sharma Apparatus, system, and method for performing link training and equalization
CN103412769A (en) * 2013-07-25 2013-11-27 华为技术有限公司 External card parameter configuration method, equipment and system
CN107436850A (en) * 2015-09-21 2017-12-05 华为技术有限公司 The method that endpoint device accesses in computer system and computer system
CN106648615A (en) * 2016-11-07 2017-05-10 中国航空无线电电子研究所 VxWorks-based BSP code development system
CN110869875A (en) * 2017-05-08 2020-03-06 利奇得公司 Fabric switching graphics module within a storage enclosure
US20190087376A1 (en) * 2017-09-15 2019-03-21 Dell Products L.P. Hot-plugged pcie device configuration system
CN109271177A (en) * 2018-08-21 2019-01-25 郑州云海信息技术有限公司 A kind of method and system of automatic load PCIE Switch products configuration parameter
CN111552657A (en) * 2019-02-08 2020-08-18 英特尔公司 PHY recalibration using a message bus interface
CN111124505A (en) * 2019-10-30 2020-05-08 苏州浪潮智能科技有限公司 Configuration method and device of mainboard hardware
US10977051B1 (en) * 2019-11-08 2021-04-13 Xilinx, Inc. Dynamic base address register (BAR) reconfiguration using a peripheral component interconnect express (PCIe) extended configuration space
CN111030778A (en) * 2019-11-30 2020-04-17 苏州浪潮智能科技有限公司 Parameter self-adaption method, device and equipment of high-speed signal and readable storage medium
CN112579055A (en) * 2020-12-11 2021-03-30 平安普惠企业管理有限公司 Interface parameter checking method and device and computer readable storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
VERSION 1.51: ""TeleScan PE",Version 1.51, https://teledynelecroy.com/protocolanalyzer/pci-express/telescan-pe-software/resources/analysis-software", 《TELESCAN PE》 *
张宇林: "汇编语言实现PCI设备配置空间的访问", 《微型电脑应用》 *
李亚南等: "一种PCIe 3.0高速数据采集卡驱动及上位机软件的实现", 《电子测量技术》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023045387A1 (en) * 2021-09-26 2023-03-30 华为技术有限公司 Method and apparatus for allocating pcie device identifier, and related device
CN114567569A (en) * 2022-02-25 2022-05-31 西安微电子技术研究所 PCIe simulation data visualization method, system, device and medium
CN114567569B (en) * 2022-02-25 2023-10-20 西安微电子技术研究所 PCIe simulation data visualization method, system, equipment and medium

Also Published As

Publication number Publication date
CN113407469B (en) 2023-04-07

Similar Documents

Publication Publication Date Title
CN108804302B (en) Remote testing method, system and related equipment
CN111371638B (en) Intelligent equipment testing method and device, server and storage medium
CN113407469B (en) Parameter configuration method and device, storage medium and electronic device
US10972362B2 (en) Network service configuration method and network management device
CN103686813B (en) Device and method for testing automatic switching stability of wireless AP (access point) channel
CN109726108B (en) Front-end code testing method, device, system and medium based on analog data
CN101488890B (en) Method and system for network attack test
CN114157701A (en) Task testing method, device, equipment and storage medium
CN112087354A (en) Communication protocol testing method and device, electronic equipment and storage medium
CN112269746A (en) Automatic testing method and related equipment
CN111901155B (en) Internet of things debugging method, device and system and storage medium
CN112788576A (en) Equipment offline processing method and system, storage medium and electronic device
CN116074228A (en) Network card testing method and device, storage medium and electronic equipment
CN114064485A (en) Software testing method, system, computer equipment and readable storage medium
CN115190057A (en) Automatic testing method and device and electronic equipment
CN115967660A (en) Method and device for testing CAN protocol conversion, terminal equipment and storage medium
CN115146309A (en) Privacy compliance detection method, device, server, terminal and storage medium
CN113961504A (en) Mobile terminal group control method, device, system, server and storage medium
CN114466395A (en) Method and device for testing performance of base station, storage medium and electronic device
CN114390574A (en) Wireless network throughput testing method, device and computer readable storage medium
CN113612659A (en) Equipment networking test method and device, electronic equipment and storage medium
CN112433938A (en) Method and device for testing application of mobile terminal
CN112711449A (en) Data processing method, device and system and computer storage medium
CN110048893B (en) ZigBee-based Internet of things equipment rapid docking method and system
CN110647465A (en) Test data entry method and device and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant