CN113721765B - Control method, device and equipment for input/output port of equipment - Google Patents

Control method, device and equipment for input/output port of equipment Download PDF

Info

Publication number
CN113721765B
CN113721765B CN202110989587.3A CN202110989587A CN113721765B CN 113721765 B CN113721765 B CN 113721765B CN 202110989587 A CN202110989587 A CN 202110989587A CN 113721765 B CN113721765 B CN 113721765B
Authority
CN
China
Prior art keywords
input
output port
equipment
port information
output
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.)
Active
Application number
CN202110989587.3A
Other languages
Chinese (zh)
Other versions
CN113721765A (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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202110989587.3A priority Critical patent/CN113721765B/en
Publication of CN113721765A publication Critical patent/CN113721765A/en
Application granted granted Critical
Publication of CN113721765B publication Critical patent/CN113721765B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • 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/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Human Computer Interaction (AREA)
  • Stored Programmes (AREA)

Abstract

The method, the device, the equipment and the computer readable storage medium for controlling the input and output ports of the equipment are provided, a model adapting module of the corresponding relation between the equipment model and the input and output ports is stored in the equipment in advance, for single equipment, after the main board identification of the equipment is identified, the model adapting module is loaded to acquire the input and output port information corresponding to the equipment according to the main board identification, then all the input and output ports of all chips of the equipment can be scanned and determined in the starting-up process, and only the input and output ports recorded in the input and output port information are started, so that the problem that the same basic code uniformly designed for equipment of different models cannot be uniformly arranged on the switch configuration of the input and output ports of the equipment of different models is solved, and the automatic switch configuration of the input and output ports of the equipment of different models is realized.

Description

Control method, device and equipment for input/output port of equipment
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a computer readable storage medium for controlling an input/output port of a device.
Background
The Input/Output (I/O) port is an outlet for communication between the device and the outside, and refers to registers in the interface circuit, where the registers are used to store data information, control information, and status information, respectively, and after a connection (binding) is established between the device and a port through a system call, data transmitted to the port by the transport layer is received by a corresponding process, and data transmitted to the transport layer by the corresponding process is Output from the port.
To save power for the device, the input/output ports that are not used for the device often need to be shut down. The input/output ports which are not used for the equipment at least comprise input/output ports which are not led out of the equipment main board, namely, all the input/output ports of all chips deployed on the equipment main board are not led out of the main board for users to use, and if the input/output ports of the chips which are not led out in the running process of the equipment are also kept in an on state, useless power consumption is caused. The input/output port led out of the main board of the device is usually embodied in the screen printing information of the main board, so that when providing the device service for the user, only the input/output port led out of the main board is opened, and the name of the input/output port led out of the main board is updated in the setting interface of the device according to the screen printing information of the main board, so that the user knows the corresponding information of the port in the software configuration interface and the port on the main board.
To facilitate port switch configuration, the input/output port name of the boot page is typically modified in the base code provided by the equipment vendor, and unused input/output ports are set to off and their informational displays are hidden in the code portion defined by the input/output port control options to allow the user to determine the available input/output ports. The same port configuration scheme can be adopted for a single model, but for the basic codes compatible with multiple models, the configuration method is not applicable because the number of input/output ports and the names of the input/output ports used by different model products are often different.
The input/output port configuration scheme for various models is provided, and is a technical problem to be solved by a person skilled in the art.
Disclosure of Invention
The invention aims to provide a control method, a device, equipment and a computer readable storage medium for an input/output port of equipment, which are used for realizing automatic switch configuration of the input/output ports of various types.
In order to solve the above technical problems, the present application provides a method for controlling an input/output port of a device, including:
the machine type adapting module is arranged in the equipment in advance and stores the corresponding relation between the machine type of the equipment and the input/output port;
identifying a main board identifier of the equipment;
loading the model adapting module to acquire the input/output port information corresponding to the equipment according to the main board identification;
and in the starting-up process, scanning and determining all the input and output ports of all the chips of the equipment, and starting only the input and output ports recorded in the input and output port information.
Optionally, the acquiring, according to the main board identifier, the information of the input/output port corresponding to the device specifically includes:
analyzing the main board identifier to obtain the model of the equipment;
and determining the input/output port information corresponding to the equipment according to the model of the equipment.
Optionally, the acquiring, according to the main board identifier, the information of the input/output port corresponding to the device specifically includes:
judging whether the model adapting module stores the input/output port information corresponding to the main board identification;
if yes, taking the input/output port information corresponding to the main board identification as the input/output port information corresponding to the equipment;
if not, analyzing the main board identifier to obtain the model of the equipment, and determining the input/output port information corresponding to the equipment according to the model of the equipment.
Optionally, the method further comprises:
and if the input/output port information corresponding to the equipment is not successfully acquired, taking default input/output port information pre-stored in a basic input/output system of the equipment as the input/output port information corresponding to the equipment.
Optionally, in the starting-up process, scanning and determining all input/output ports of all chips of the device, and only opening the input/output ports recorded in the input/output port information, which specifically includes:
in the starting-up process, judging whether the input/output port scanned currently is an input/output port recorded in the input/output port information; if yes, setting the input/output port scanned currently to be in an on state; if not, setting the input/output port scanned currently to be in a closed state;
judging whether all input/output ports of all chips of the equipment are scanned completely;
if the scanning is finished, ending;
and if the scanning is not finished, taking the next non-scanned input/output port as the input/output port scanned currently, and returning to the step of judging whether the input/output port scanned currently is the input/output port recorded in the input/output port information.
Optionally, the method further comprises:
and after all the input/output ports recorded in the input/output port information are started, updating an input/output port list of a starting page of the equipment according to the on-off state of the input/output ports of the equipment.
Optionally, the method further comprises:
receiving an input/output port configuration command input by a user on a starting page of the equipment;
and updating the input/output port information corresponding to the equipment and the input/output port switch state of the equipment according to the input/output port configuration command.
In order to solve the technical problem, the present application further provides a control device for an input/output port of a device, which is characterized by comprising:
the deployment unit is used for deploying a model adaptation module which stores the corresponding relation between the machine model of the equipment and the input/output port in the equipment in advance;
the identification unit is used for identifying the main board identification of the equipment;
the acquisition unit is used for loading the model adaptation module so as to acquire the input/output port information corresponding to the equipment according to the main board identifier;
and the first control unit is used for scanning and determining all the input and output ports of all the chips of the equipment in the starting process, and only opening the input and output ports recorded in the input and output port information.
In order to solve the above technical problem, the present application further provides a control device for an input/output port of a device, including:
a memory, configured to store instructions, where the instructions include any one of the steps of the method for controlling an input/output port of the device;
and the processor is used for executing the instructions.
To solve the above technical problem, the present application further provides a computer readable storage medium, on which a computer program is stored, where the computer program when executed by a processor implements the steps of the method for controlling an input/output port of an apparatus according to any one of the above.
According to the control method for the input/output ports of the equipment, the model adapting module of the corresponding relation between the equipment model and the input/output ports is stored in the equipment in advance, for single equipment, after the main board identification of the equipment is identified, the model adapting module is loaded to acquire the input/output port information corresponding to the equipment according to the main board identification, then all the input/output ports of all the chips of the equipment can be scanned and determined in the starting process, and only the input/output ports recorded in the input/output port information are started, so that the problem that the same basic code designed for different equipment in a unified mode cannot be uniformly arranged on the switch configuration of the input/output ports is solved, and the automatic switch configuration of the input/output ports of the equipment of different types is realized.
The embodiment of the application also provides a control device for an input/output port of a device, the device and a computer readable storage medium, which have the beneficial effects and are not described herein.
Drawings
For a clearer description of embodiments of the present application or of the prior art, the drawings that are used in the description of the embodiments or of the prior art will be briefly described, it being apparent that the drawings in the description that follow are only some embodiments of the present application, and that other drawings may be obtained from these drawings by a person of ordinary skill in the art without inventive effort.
Fig. 1 is a flowchart of a method for controlling an input/output port of a device according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a control device for an input/output port of an apparatus according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a control device for an input/output port of a device according to an embodiment of the present application.
Detailed Description
The core of the application is to provide a control method, a device, equipment and a computer readable storage medium for an input/output port of equipment, which are used for realizing automatic switch configuration of the input/output ports of various types.
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
Example 1
Fig. 1 is a flowchart of a method for controlling an input/output port of a device according to an embodiment of the present application. As shown in fig. 1, the method for controlling an input/output port of a device provided in the embodiment of the present application includes:
s101: the machine type adapting module is arranged in the equipment in advance and stores the corresponding relation between the machine type of the equipment and the input/output port.
S102: and identifying the main board identification of the equipment.
S103: and loading the model adapting module to acquire the input/output port information corresponding to the equipment according to the main board identification.
S104: in the starting-up process, all the input/output ports of all the chips of the equipment are scanned and determined, and only the input/output ports recorded in the input/output port information are started.
It should be noted that, the method for controlling the input/output port of the device provided in the embodiment of the present application may be applicable to an Intel architecture server, but is not limited to a server of an Intel platform, and has a general application value on servers of other platforms or other computer systems.
In a specific implementation, for step S101, in order to facilitate unified configuration of devices of different models, a model adaptation module is previously deployed in the device, where the model adaptation module is an execution program, and at least includes a correspondence between multiple device models and input/output ports, and is configured to provide information of the input/output ports required by the device. The information of the input and output ports of the equipment model stored in the model adapting module can be all input and output ports of the maximum chip set contained in the equipment model used according to the basic code deployed by the model adapting module. In general, the number of chips and the types of chips involved in a device model to which a set of basic codes is applicable are identical, and the maximum set of input/output ports stored by the model adaptation module is all input/output ports of all chips on a motherboard of such a device. Specifically, a table for storing information of input/output ports (including input/output port types and port numbers) and a maximum set of input/output ports applied to the device and an execution program for extracting information of input/output ports required by the local model from the maximum set of tables may be deployed in the model adaptation module. In general, after the switch state of the input/output port is changed, the device needs to be restarted to take effect, and the switch state of the input/output port of the device is controlled in the starting process, so that the device is convenient for a user to use, and the model adapting module can be deployed in a basic code of a basic input/output system (Basic Input Output System, BIOS).
For step S102, in particular, during the device power-on process, the main board identifier of the device is identified to perform model adaptation.
For step S103, the loading the model adapting module to obtain the input/output port information corresponding to the device according to the motherboard identifier, where the obtaining the input/output port information corresponding to the device according to the motherboard identifier may specifically include: analyzing the main board mark to obtain the machine type of the equipment; and determining the input/output port information corresponding to the equipment according to the model of the equipment. Optionally, if the information of the input/output port required by the current device is stored in the model adapting module, the stored information of the input/output port can be directly used for controlling the switch of the input/output port of the device; or after the information of the input/output ports corresponding to the equipment is determined according to the model of the equipment, the information is compared with the stored information of the input/output ports, and then the on-off control of the input/output ports of the equipment is performed. The obtained information of the input/output port corresponding to the device may specifically include information such as a type of the input/output port to be opened, a port number of the input/output port, and a port name of the input/output port. In general, a specific input/output port can be located according to the type of the input/output port and the port number of the input/output port.
For step S104, during the startup process, all the input/output ports to be controlled by the device are determined, and then the switch control is performed on each input/output port according to the information of the input/output ports. Specifically, step S104 may include:
in the starting-up process, judging whether the input/output port scanned currently is an input/output port recorded in the input/output port information; if yes, the input/output port scanned currently is set to be in an open state; if not, setting the input/output port scanned currently to be in a closed state;
judging whether all input/output ports of all chips of the equipment are scanned completely;
if the scanning is finished, ending;
if not, the next non-scanned input/output port is the current scanned input/output port, and the step of judging whether the current scanned input/output port is the input/output port recorded in the input/output port information is returned.
The order of the scani/o ports may be dependent on the chip start-up order of the device or may be user-defined.
Further, the method for controlling the input/output port of the device provided by the embodiment of the application may further include: after all the input/output ports described in the input/output port information are turned on, the input/output port list of the start page of the device is updated according to the on/off state of the input/output ports of the device. The starting page of the device is a configuration page (Setup page) of a basic input/output system of the device, and a user can manually set starting items of the device on the page, so that after the switching state of all input/output ports of the device is controlled, only the opened input/output ports are displayed on the starting page of the device, and other input/output ports are hidden, so that the user can determine the information of the opened input/output ports, and further switch control is performed. In addition, an option may be provided for the user to view the input/output port that is turned off.
According to the control method for the input/output ports of the equipment, the model adapting module of the corresponding relation between the equipment model and the input/output ports is stored in the equipment in advance, for single equipment, after the main board identification of the equipment is identified, the model adapting module is loaded to acquire the input/output port information corresponding to the equipment according to the main board identification, then all the input/output ports of all the chips of the equipment can be scanned and determined in the starting process, and only the input/output ports recorded in the input/output port information are started, so that the problem that the same basic code designed for different equipment in a unified mode cannot be set on the input/output port switch configuration in a unified mode is solved, and the automatic switch configuration of the input/output ports of the equipment of different models is realized.
Example two
In the above embodiment, the input/output port led out from the device motherboard is generally set to an on state, while the other input/output ports are set to an off state and their information is hidden on the start page of the device. In the method for controlling the input/output ports of the device provided in the embodiment of the present application, step S103 may include, based on the foregoing embodiment, obtaining, according to the main board identifier, information of the input/output ports corresponding to the device, as the user may further close the unnecessary input/output ports for power saving purposes:
judging whether the model adapting module stores the input/output port information corresponding to the main board identification;
if yes, taking the input/output port information corresponding to the main board identification as the input/output port information corresponding to the equipment;
if not, analyzing the main board identification to obtain the machine type of the equipment, and determining the input/output port information corresponding to the equipment according to the machine type of the equipment.
In the above embodiment, it is mentioned that the information of the input/output port applied by the device may be stored in the model adapting module, where the information may specifically be information of the input/output port opened by the device before the last device shutdown, and the included input/output ports may be all the input/output ports led out by the device motherboard, or may be the input/output ports left opened after the user screening on this basis. In the starting-up process of the equipment, if the input/output port information corresponding to the main board identification is checked to be stored in the machine type adapting module, the input/output port information can be directly utilized to carry out the input/output port switch control of the equipment. On the basis, if the user needs to reset the input/output port setting during each startup, the input/output port information applied by the equipment stored in the model adapting module can be deleted.
And if the input/output port information corresponding to the main board identification is not stored in the model adapting module, analyzing the main board identification to obtain the model of the equipment, and determining the input/output port information corresponding to the equipment according to the model of the equipment.
Example III
On the basis of the foregoing embodiment, the method for controlling an input/output port of a device provided in the embodiment of the present application may further include:
if the input/output port information corresponding to the equipment is not successfully acquired, the default input/output port information pre-stored in the basic input/output system of the equipment is taken as the input/output port information corresponding to the equipment.
In implementations, the default input output port information may be stored in a UNI file (a file format in BIOS code, information defining a string) of the basic input output system of the device. In the starting-up process of the equipment, if the information of the input/output port corresponding to the equipment is not successfully acquired, for example, the information of the input/output port corresponding to the main board identifier is not acquired, and the information of the input/output port corresponding to the equipment model is not acquired, the default information of the input/output port is called to perform the switch control of the input/output port of the equipment.
The default input/output port information may be information of an input/output port corresponding to a device model, or the default input/output port information may be updated by information of an input/output port turned on before the last shutdown, or whether to keep custom settings is determined according to user settings.
Optionally, the method for controlling the input/output port of the device provided in the embodiment of the present application may further include:
if the input/output port information corresponding to the equipment is not successfully acquired, determining the reason of failure in acquiring the input/output port information, and recording an input/output port updating failure log.
Example IV
On the basis of the foregoing embodiment, the method for controlling an input/output port of a device provided in the embodiment of the present application may further include:
receiving an input/output port configuration command input by a user on a starting page of the equipment;
and updating the input/output port information corresponding to the equipment and the input/output port switch state of the equipment according to the input/output port configuration command.
After the equipment is started, a user can select a starting page for entering the equipment, an input/output port for starting the equipment is closed according to personal requirements, and then the equipment is restarted to take effect.
Optionally, after updating the input/output port information corresponding to the device and the input/output port switch state of the device according to the input/output port configuration command, the method for controlling the input/output port of the device provided in the embodiment of the present application may further include: the device is automatically restarted.
Various embodiments corresponding to the method for controlling the input/output port of the device are described in detail above, and on the basis of the above, the application also discloses a device, a device and a computer readable storage medium for controlling the input/output port of the device, which correspond to the method.
Example five
Fig. 2 is a schematic structural diagram of a control device for an input/output port of an apparatus according to an embodiment of the present application.
As shown in fig. 2, a control device for an input/output port of a device provided in an embodiment of the present application includes:
a deployment unit 201, configured to deploy, in an apparatus, a model adaptation module storing a correspondence between an apparatus model and an input/output port in advance;
an identifying unit 202, configured to identify a motherboard identifier of the device;
an obtaining unit 203, configured to load a model adaptation module, so as to obtain input/output port information corresponding to the device according to the motherboard identifier;
the first control unit 204 is configured to scan all the input/output ports of all the chips of the determining device during the power-on process, and only turn on the input/output ports described in the input/output port information.
Optionally, the device input/output port control apparatus provided in the embodiment of the present application may further include:
and the second control unit is used for taking default input/output port information pre-stored in a basic input/output system of the equipment as the input/output port information corresponding to the equipment if the input/output port information corresponding to the equipment is not successfully acquired.
Optionally, the device input/output port control apparatus provided in the embodiment of the present application may further include:
and the recording unit is used for determining the acquisition failure reason of the input/output port information if the input/output port information corresponding to the equipment is not successfully acquired, and recording the update failure log of the input/output port.
Optionally, the device input/output port control apparatus provided in the embodiment of the present application may further include:
and the first updating unit is used for updating the input/output port list of the starting page of the equipment according to the on-off state of the input/output ports of the equipment after all the input/output ports recorded in the input/output port information are started.
Optionally, the device input/output port control apparatus provided in the embodiment of the present application may further include:
the receiving unit is used for receiving an input/output port configuration command input by a user on a starting page of the equipment;
and the second updating unit is used for updating the input/output port information corresponding to the equipment and the input/output port switch state of the equipment according to the input/output port configuration command.
Since the embodiments of the apparatus portion and the embodiments of the method portion correspond to each other, the embodiments of the apparatus portion are referred to the description of the embodiments of the method portion, and are not repeated herein.
Example six
Fig. 3 is a schematic structural diagram of a control device for an input/output port of a device according to an embodiment of the present application.
As shown in fig. 3, a control device for an input/output port of a device provided in an embodiment of the present application includes:
a memory 310, configured to store instructions, where the instructions include steps of a method for controlling an input/output port of a device according to any one of the foregoing embodiments;
and a processor 320 for executing the instructions.
Processor 320 may include one or more processing cores, such as a 3-core processor, an 8-core processor, etc. The processor 320 may be implemented in at least one hardware form of digital signal processing DSP (Digital Signal Processing), field programmable gate array FPGA (Field-Programmable Gate Array), programmable logic array PLA (Programmable Logic Array). Processor 320 may also include a main processor, which is a processor for processing data in an awake state, also referred to as a central processor CPU (Central Processing Unit), and a coprocessor; a coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 320 may be integrated with an image processor GPU (Graphics Processing Unit), a GPU for use in responsible for rendering and rendering of the content required to be displayed by the display screen. In some embodiments, the processor 320 may also include an artificial intelligence AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
Memory 310 may include one or more computer-readable storage media, which may be non-transitory. Memory 310 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In this embodiment, the memory 310 is at least used for storing a computer program 311, where the computer program 311, after being loaded and executed by the processor 320, can implement relevant steps in the method for controlling an input/output port of a device disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 310 may further include an operating system 312, data 313, and the like, where the storage may be transient storage or permanent storage. The operating system 312 may be Windows. The data 313 may include, but is not limited to, data related to the above-described method.
In some embodiments, the control device for the input/output ports of the device may further include a display 330, a power supply 340, a communication interface 350, an input/output interface 360, a sensor 370, and a communication bus 380.
Those skilled in the art will appreciate that the configuration shown in fig. 3 does not constitute a limitation of the control device of the device input output ports and may include more or fewer components than shown.
The control device for the input/output port of the device provided by the embodiment of the application comprises a memory and a processor, wherein the processor can realize the control method for the input/output port of the device when executing the program stored in the memory, and the effects are the same as those described above.
Example seven
It should be noted that the apparatus and device embodiments described above are merely exemplary, and for example, the division of modules is merely a logic function division, and there may be other division manners in actual implementation, for example, multiple modules or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or modules, which may be in electrical, mechanical, or other forms. The modules illustrated as separate components may or may not be physically separate, and components shown as modules may or may not be physical modules, i.e., may be located in one place, or may be distributed over a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules may be integrated into one module. The integrated modules may be implemented in hardware or in software functional modules.
The integrated modules, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. With such understanding, the technical solution of the present application, or a part contributing to the prior art or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium, performing all or part of the steps of the method described in the various embodiments of the present application.
To this end, the embodiments of the present application also provide a computer readable storage medium having a computer program stored thereon, which when executed by a processor, implements steps of a control method, such as an input/output port of a device.
The computer readable storage medium may include: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (ram) RAM (Random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The computer program included in the computer readable storage medium provided in this embodiment can implement the steps of the control method of the input/output port of the device as described above when executed by the processor, and the same effects are achieved.
The above describes in detail a method, an apparatus, a device, and a computer readable storage medium for controlling an input/output port of a device provided in the present application. In the description, each embodiment is described in a progressive manner, and each embodiment is mainly described by the differences from other embodiments, so that the same similar parts among the embodiments are mutually referred. The apparatus, device and computer readable storage medium of the embodiments are described more simply because they correspond to the methods of the embodiments, and the description thereof will be given with reference to the method section. It should be noted that it would be obvious to those skilled in the art that various improvements and modifications can be made to the present application without departing from the principles of the present application, and such improvements and modifications fall within the scope of the claims of the present application.
It should also be noted that in this specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.

Claims (10)

1. A method for controlling an input/output port of a device, comprising:
the machine type adapting module is arranged in the equipment in advance and stores the corresponding relation between the machine type of the equipment and the input/output port;
identifying a main board identifier of the equipment;
loading the model adapting module to acquire the input/output port information corresponding to the equipment according to the main board identification;
and in the starting-up process, scanning and determining all the input and output ports of all the chips of the equipment, and starting only the input and output ports recorded in the input and output port information.
2. The control method according to claim 1, wherein the obtaining, according to the main board identifier, the input/output port information corresponding to the device specifically includes:
analyzing the main board identifier to obtain the model of the equipment;
and determining the input/output port information corresponding to the equipment according to the model of the equipment.
3. The control method according to claim 1, wherein the obtaining, according to the main board identifier, the input/output port information corresponding to the device specifically includes:
judging whether the model adapting module stores the input/output port information corresponding to the main board identification;
if yes, taking the input/output port information corresponding to the main board identification as the input/output port information corresponding to the equipment;
if not, analyzing the main board identifier to obtain the model of the equipment, and determining the input/output port information corresponding to the equipment according to the model of the equipment.
4. The control method according to claim 1, characterized by further comprising:
and if the input/output port information corresponding to the equipment is not successfully acquired, taking default input/output port information pre-stored in a basic input/output system of the equipment as the input/output port information corresponding to the equipment.
5. The control method according to claim 1, wherein during the power-on process, scanning to determine all input/output ports of all chips of the device, and opening only the input/output ports described in the input/output port information, specifically includes:
in the starting-up process, judging whether the input/output port scanned currently is an input/output port recorded in the input/output port information; if yes, setting the input/output port scanned currently to be in an on state; if not, setting the input/output port scanned currently to be in a closed state;
judging whether all input/output ports of all chips of the equipment are scanned completely;
if the scanning is finished, ending;
and if the scanning is not finished, taking the next non-scanned input/output port as the input/output port scanned currently, and returning to the step of judging whether the input/output port scanned currently is the input/output port recorded in the input/output port information.
6. The control method according to claim 1, characterized by further comprising:
and after all the input/output ports recorded in the input/output port information are started, updating an input/output port list of a starting page of the equipment according to the on-off state of the input/output ports of the equipment.
7. The control method according to claim 1, characterized by further comprising:
receiving an input/output port configuration command input by a user on a starting page of the equipment;
and updating the input/output port information corresponding to the equipment and the input/output port switch state of the equipment according to the input/output port configuration command.
8. A control device for an input/output port of a device, comprising:
the deployment unit is used for deploying a model adaptation module which stores the corresponding relation between the machine model of the equipment and the input/output port in the equipment in advance;
the identification unit is used for identifying the main board identification of the equipment;
the acquisition unit is used for loading the model adaptation module so as to acquire the input/output port information corresponding to the equipment according to the main board identifier;
and the first control unit is used for scanning and determining all the input and output ports of all the chips of the equipment in the starting process, and only opening the input and output ports recorded in the input and output port information.
9. A control device for an input/output port of a device, comprising:
a memory for storing instructions comprising the steps of the method of controlling an input-output port of the apparatus of any one of claims 1 to 7;
and the processor is used for executing the instructions.
10. A computer-readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, carries out the steps of the method of controlling an input-output port of a device according to any one of claims 1 to 7.
CN202110989587.3A 2021-08-26 2021-08-26 Control method, device and equipment for input/output port of equipment Active CN113721765B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110989587.3A CN113721765B (en) 2021-08-26 2021-08-26 Control method, device and equipment for input/output port of equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110989587.3A CN113721765B (en) 2021-08-26 2021-08-26 Control method, device and equipment for input/output port of equipment

Publications (2)

Publication Number Publication Date
CN113721765A CN113721765A (en) 2021-11-30
CN113721765B true CN113721765B (en) 2023-07-25

Family

ID=78678195

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110989587.3A Active CN113721765B (en) 2021-08-26 2021-08-26 Control method, device and equipment for input/output port of equipment

Country Status (1)

Country Link
CN (1) CN113721765B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110399170A (en) * 2019-07-19 2019-11-01 浪潮电子信息产业股份有限公司 A kind of port management method of SATA hard disc, system and associated component
CN111222062A (en) * 2020-01-09 2020-06-02 百度在线网络技术(北京)有限公司 Applet running method and device, electronic equipment and storage medium
CN112350872A (en) * 2020-11-23 2021-02-09 网易(杭州)网络有限公司 Network architecture configuration information generation method and device, storage medium and electronic equipment
CN112905512A (en) * 2021-02-05 2021-06-04 苏州源控电子科技有限公司 DIO interface configuration method, device, equipment and storage medium based on Windows system
CN112927434A (en) * 2021-01-06 2021-06-08 上海泰砥科技有限公司 Block chain and DID (digital information device) shared charging method and shared charging pile system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8161322B2 (en) * 2009-12-07 2012-04-17 Intel Corporation Methods and apparatus to initiate a BIOS recovery

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110399170A (en) * 2019-07-19 2019-11-01 浪潮电子信息产业股份有限公司 A kind of port management method of SATA hard disc, system and associated component
CN111222062A (en) * 2020-01-09 2020-06-02 百度在线网络技术(北京)有限公司 Applet running method and device, electronic equipment and storage medium
CN112350872A (en) * 2020-11-23 2021-02-09 网易(杭州)网络有限公司 Network architecture configuration information generation method and device, storage medium and electronic equipment
CN112927434A (en) * 2021-01-06 2021-06-08 上海泰砥科技有限公司 Block chain and DID (digital information device) shared charging method and shared charging pile system
CN112905512A (en) * 2021-02-05 2021-06-04 苏州源控电子科技有限公司 DIO interface configuration method, device, equipment and storage medium based on Windows system

Also Published As

Publication number Publication date
CN113721765A (en) 2021-11-30

Similar Documents

Publication Publication Date Title
CN102200916B (en) Electronic equipment, configurable member and method for storing configuration information of configurable member
CN104991782A (en) Method and system for modifying BIOS configuration
CN103777979B (en) Method and device for recovering BIOD through cloud end
WO2022247139A1 (en) Log output method and system for server, and related apparatus
CN107368343A (en) A kind of starting up of terminal method, terminal and storage medium based on Android system
CN112486522A (en) Deployment method and device of OpenStack bare machine with intelligent network card
CN112506745B (en) Memory temperature reading method and device and computer readable storage medium
CN113434202A (en) Starting method and device of equipment, electronic equipment and computer storage medium
CN106843940A (en) A kind of fast updating method of embedded system
CN111708652A (en) Fault repairing method and device
CN113721765B (en) Control method, device and equipment for input/output port of equipment
CN109634675A (en) A kind of redundancy approach of BIOS, redundant system and relevant apparatus
CN112905252A (en) Sequencing method and medium for server BIOS startup item sequence
CN106095643A (en) The establishing method of systematic parameter access and server thereof
CN115878327A (en) Bus reservation method, device, server, electronic equipment and storage medium
CN115495161A (en) BIOS option modification validation method and device and storage medium
CN113849233A (en) BIOS null boot entry deleting method, system, terminal and storage medium
CN107506271A (en) A kind of method of testing and device
CN1790263B (en) Mobile memory device and its icon changing method
KR102414206B1 (en) AUTOSAR standard application software component
CN109634685B (en) Starting and stopping method and related device for PXE function of PCH gigabit Ethernet
CN110908684A (en) Method and device for updating silk-screen information of configuration page memory
CN110716836A (en) SSD (solid State disk) testing method and device based on DOS (data over serial interface), computer equipment and storage medium
CN101187882A (en) Computer system for supporting multi-operation system and method for supporting multi-operation system
CN117806924B (en) Control method and device of indicating device, server and 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