External device processing methods, apparatus, electronic devices and readable storage media
By obtaining the slot silkscreen information and combined ID of the hardware I/O ports, the problem of inflexible display of server device configuration information is solved, and accurate location and attribute settings of external devices are achieved.
Patent Information
- Application Number
- CN202310283733.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-22
- Publication Date
- 2025-11-14
- Estimated Expiration
- 2043-03-22
AI Technical Summary
In the existing technology, the display and processing methods of server configuration information cannot meet the requirements of flexible configuration, and cannot accurately and intuitively view and set the attributes of external devices.
By obtaining the silkscreen information of the external device slots connected to the hardware I/O ports, the configuration relationship is determined, and the combination ID information is displayed in the BIOS setup interface. The configuration information is then obtained and sent to the BMC for display and processing.
It enables accurate location and identification of external devices connected to different hardware I/O ports of the server equipment, and supports viewing and setting device attributes under flexible configuration.
Smart Images

Figure CN116302134B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of server technology, and in particular to an external device processing method, apparatus, electronic device, and readable storage medium. Background Technology
[0002] As server technology and functionality continue to improve, servers support an increasing number of configurations. This necessitates displaying server configuration information in the BIOS setup to help users understand the availability of connected devices. The BIOS (Basic Input Output System) is a set of programs embedded in a ROM (Read Only Memory image) chip on the computer's motherboard. It stores the computer's most important basic input / output programs, system settings, power-on self-test (POST) programs, and system startup programs. Its main function is to provide the lowest-level, most direct hardware settings and control for the computer.
[0003] Currently, in order to accurately and intuitively view and configure the properties of external devices connected to the server, BIOS R&D engineers need to collect the configuration information of the server devices in advance and process it into a set of static data. This static data is then used in the code to perform functions such as matching and assigning silkscreen strings.
[0004] However, with the development of server technology, server configurations are becoming increasingly diverse, and the number of devices included in each configuration is also dynamically changing. The display and processing methods for server device configuration information in related technologies cannot meet the functional requirements. Summary of the Invention
[0005] This invention provides an external device processing method, apparatus, electronic device, and readable storage medium to solve the problem that the configuration information display methods in related technologies are singular and cannot meet the requirements of flexible configuration.
[0006] To address the aforementioned technical problems, embodiments of the present invention provide an external device processing method, comprising:
[0007] Obtain the silkscreen information of the first slot where the first external device connected to the first hardware I / O port is located;
[0008] Based on the silkscreen information of the first slot, determine the configuration relationship between the first hardware I / O port and the first external device;
[0009] When the first hardware I / O port and the first external device are not fixedly configured, a combined ID information corresponding to the first external device is determined; the combined ID information is a combination of feature information that distinguishes the correspondence between the first external device and the first hardware I / O port.
[0010] Based on the combined ID information, the name of the first hardware I / O port is determined and displayed in the BIOS setup interface;
[0011] Based on the first hardware I / O port name displayed in the BIOS setup interface, obtain the configuration information of the first hardware I / O port corresponding to the first hardware I / O port name; the configuration information of the first hardware I / O port includes the first hardware I / O port information and the first slot information of the first external device connected to the first hardware I / O port.
[0012] The configuration information of the first hardware I / O port is sent to the BMC; the BMC displays the configuration information of the first hardware I / O port in the BMC Web interface, and processes the first external device connected to the first hardware I / O port based on the configuration information of the first hardware I / O port displayed in the BMC Web interface.
[0013] Optionally, determining the configuration relationship between the first hardware I / O port and the first external device based on the silkscreen information of the first slot includes:
[0014] The silkscreen information of the first slot is matched with a preset silkscreen list; the preset silkscreen list includes slot silkscreen information that is fixedly set with the silkscreen information of the first hardware I / O port.
[0015] If the silkscreen information of the first slot matches the silkscreen information of the slot in the preset silkscreen list, it is determined that the first hardware I / O port and the first external device are fixed.
[0016] If the silkscreen information of the first slot fails to match the silkscreen information of the slot in the preset silkscreen list, it is determined that the first hardware I / O port and the first external device are not fixed.
[0017] Optionally, after determining the configuration relationship between the first hardware I / O port and the first external device based on the silkscreen information of the first slot, the method further includes:
[0018] When the first hardware I / O port and the first external device are fixedly configured, the silkscreen information of the first slot is determined as the name of the first hardware I / O port and the name of the first hardware I / O port is displayed in the BIOS setup interface.
[0019] Optionally, when the first hardware I / O port and the first external device are not fixedly configured, determining the combined ID information corresponding to the first external device includes:
[0020] When the first hardware I / O port and the first external device are not fixedly configured, determine the interface type of the first hardware I / O port;
[0021] If the interface type of the first hardware I / O port is a PCIE root port, obtain the ID information of the first hardware I / O port corresponding to the first hardware I / O port;
[0022] When the interface type of the first hardware I / O port is SATA port, obtain the SATA configuration identifier information of the first SATA configuration to which the first external device belongs;
[0023] The ID information of the first hardware I / O port and / or the SATA configuration identifier information are determined as the combined ID information corresponding to the first external device.
[0024] Optionally, the ID information of the first hardware I / O port includes the bandwidth information of the first hardware I / O port;
[0025] When the interface type of the first hardware I / O port is a PCIE root port, after obtaining the ID information of the first hardware I / O port corresponding to the first hardware I / O port, the process further includes:
[0026] Based on the bandwidth information of the first hardware I / O port, the external device information connected to the first hardware I / O port is determined; the external device information includes the type and number of external devices connected to the first hardware I / O port under the specified bandwidth.
[0027] If the type and / or number of external devices is greater than 1, obtain the device ID information of the first external device;
[0028] The device ID information of the first external device is combined with the combined ID information to determine the combined ID information corresponding to the first external device.
[0029] Optionally, determining the name of the first hardware I / O port based on the combined ID information and displaying the name of the first hardware I / O port in the BIOS setup interface includes:
[0030] The silkscreen information of the first external device located in the first slot corresponding to the combined ID information is determined as the name of the first hardware I / O port, and the name of the first hardware I / O port is displayed in the BIOS setup interface.
[0031] Optionally, after obtaining the configuration information of the first hardware I / O port corresponding to the first hardware I / O port name based on the first hardware I / O port name displayed in the BIOS setup interface, the method further includes:
[0032] The configuration information of the first hardware I / O port is stored in the first memory corresponding to the name of the first hardware I / O port displayed in the BIOS setup interface.
[0033] Optionally, after storing the first hardware I / O port configuration information in the first memory corresponding to the first hardware I / O port name displayed in the BIOS setup interface, the method further includes:
[0034] If a change in the configuration information of the first hardware I / O port is detected, the parameters of the changed configuration information of the first hardware I / O port are obtained.
[0035] The configuration information of the first hardware I / O port is updated based on the parameters of the changed configuration information of the first hardware I / O port.
[0036] Optionally, processing the first external device connected to the first hardware I / O port based on the configuration information of the first hardware I / O port displayed in the BMC Web interface includes:
[0037] Based on the configuration information of the first hardware I / O port displayed in the BMC Web interface, determine the presence information of the first external device connected to the first hardware I / O port;
[0038] Based on the location information of the first external device, perform maintenance and / or attribute setting processing on the first external device.
[0039] To address the aforementioned technical problems, embodiments of the present invention also provide an external device processing apparatus, comprising:
[0040] The first acquisition module is used to acquire the silkscreen information of the first external device connected to the first hardware I / O port in the first slot.
[0041] The first determining module is used to determine the setting relationship between the first hardware I / O port and the first external device based on the silkscreen information of the first slot.
[0042] The second determining module is used to determine the combined ID information corresponding to the first external device when the first hardware I / O port and the first external device are not fixedly configured; the combined ID information is a combination of feature information that distinguishes the correspondence between the first external device and the first hardware I / O port.
[0043] The third determining module is used to determine the name of the first hardware I / O port based on the combined ID information and display the name of the first hardware I / O port in the BIOS setup interface;
[0044] The second acquisition module is used to acquire the configuration information of the first hardware I / O port corresponding to the first hardware I / O port name based on the first hardware I / O port name displayed in the BIOS setup interface; the configuration information of the first hardware I / O port includes the first hardware I / O port information and the first slot information of the first external device connected to the first hardware I / O port.
[0045] The sending module is used to send the configuration information of the first hardware I / O port to the BMC; the BMC displays the configuration information of the first hardware I / O port in the BMC Web interface, and processes the first external device connected to the first hardware I / O port based on the configuration information of the first hardware I / O port displayed in the BMC Web interface.
[0046] To address the aforementioned technical problems, embodiments of the present invention also provide an electronic device, the electronic device including a memory and a processor, the memory being used to store a computer program, and the processor being used to execute the computer program to implement the external device processing method as described in any of the preceding embodiments.
[0047] To address the aforementioned technical problems, embodiments of the present invention also provide a readable storage medium storing a computer program, which, when executed by a processor, implements the external device processing method as described in any of the preceding claims.
[0048] In this embodiment of the invention, based on the silkscreen information of the first external device connected to the first hardware I / O port in the first slot, when it is determined that the first hardware I / O port and the first external device are not fixedly configured, the combined ID information corresponding to the first external device is determined, and the name of the first hardware I / O port is determined based on the combined ID information and displayed in the BIOS setup interface; for different application scenarios and application requirements, relevant processing operations are performed on the first external device connected to the first hardware I / O port based on the name of the first hardware I / O port displayed in the BIOS setup interface. This system allows for the renaming of the first hardware I / O port displayed in the BIOS setup interface, based on the combined ID information corresponding to the first external device, using different hardware I / O ports of the server device as units. Furthermore, it retrieves the configuration information of the first hardware I / O port corresponding to the name displayed in the BIOS setup interface and sends this configuration information to the BMC (Browser Control Center). The BMC then displays this configuration information in its web interface and processes the first external device connected to that first hardware I / O port based on this information. This system can determine the presence of the first external device currently connected to the first hardware I / O port, enabling accurate location and identification of different external devices connected to different hardware I / O ports of the server device, and allowing for relevant processing of the external devices based on this location information.
[0049] The above description is merely an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention and to implement it in accordance with the contents of the specification, and in order to make the above and other objects, features and advantages of the present invention more apparent and understandable, specific embodiments of the present invention are described below. Attached Figure Description
[0050] Figure 1 This is a flowchart of the steps of an external device processing method provided in an embodiment of the present invention;
[0051] Figure 2 This is a flowchart of another external device processing method provided in an embodiment of the present invention;
[0052] Figure 3 This is a logic block diagram of an external device processing device provided in an embodiment of the present invention;
[0053] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention.
[0054] Figure label:
[0055] 400: Electronic device; 410: Processing component; 420: Power supply component; 430: Network interface; 440: Input / output interface; 450: Memory. Detailed Implementation
[0056] Exemplary embodiments of the invention will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention may be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this invention will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
[0057] To enable those skilled in the art to better understand the present invention, the concepts involved in the present invention are described below:
[0058] BIOS (Basic Input Output System): The BIOS is a set of programs embedded in a ROM (Read Only Memory image) chip on the computer's motherboard. It stores the computer's most important basic input / output programs, system settings information, power-on self-test (POST) programs, and system startup programs. Its main function is to provide the lowest-level and most direct hardware settings and control for the computer. In this embodiment of the invention, the name of the first hardware I / O port displayed in the BIOS setup interface is determined mainly based on the silkscreen information of the first slot where the first external device connected to the first hardware I / O port of the server device is located. Then, based on the name of the first hardware I / O port, the specific location of the first external device is found, and relevant processing is performed on the first external device.
[0059] PCIe (PCI Express, Peripheral Component Interconnect Express, a high-speed serial computer expansion bus standard) is a high-speed serial computer expansion bus standard proposed by Intel in 2001 to replace the older PCI, PCI-X, and AGP bus standards. PCIe features high-speed serial point-to-point dual-channel high-bandwidth transmission, where each connected device has its own dedicated channel bandwidth and does not share the bus bandwidth. It primarily supports active power management, error reporting, end-to-end reliable transmission, hot-plugging, and Quality of Service (QoS) functions. Its main advantage is its high data transfer rate, and it still has considerable development potential. PCIe also comes in various specifications, from PCIe x1 to PCIe x32, to meet the needs of both low-speed and high-speed devices for a certain period. The latest PCIe interface is PCIe 3.0, with a bit rate of 8Gbps, approximately twice the bandwidth of the previous generation. It also includes a series of important new features such as transmitter and receiver equalization, PLL (Phase Locked Loop) improvements, and clock data recovery to improve data transfer and data protection performance.
[0060] SATA (Serial Advanced Technology Attachment) is an industry-standard serial hardware driver interface used to connect host bus adapters to high-capacity storage devices such as optical drives and hard drives. This interface is typically used to connect hard drives to host systems, such as computer motherboards. It implements the AHCI (Advanced Host Controller Interface) protocol standard and is currently the most common solid-state drive (SSD) interface.
[0061] BMC (Baseboard Management Controller): A Baseboard Management Controller is a dedicated service processor that uses sensors to monitor the status of a computer, server, or other hardware device. It communicates with the system administrator via a separate connection. The BMC is part of the Intelligent Platform Management Interface (IPMI) and is typically contained within the main board of the monitored device. The BMC's sensors measure internal physical variables such as temperature, humidity, power supply voltage, fan speed, communication parameters, and operating system functions. If any of these variables exceeds specified limits, it notifies the administrator, who can then take appropriate action remotely.
[0062] In an embodiment of the present invention, Figure 1 A flowchart illustrating the steps of an external device processing method provided by an embodiment of the present invention is shown, as follows: Figure 1 As shown, the method may include:
[0063] Step 110: Obtain the silkscreen information of the first slot where the first external device connected to the first hardware I / O port is located.
[0064] In this embodiment of the invention, the first hardware I / O port can be any one of several hardware I / O ports corresponding to at least one CPU (Central Processing Unit / Processor) of the server device. This hardware I / O port is used to connect to external devices of the server. The first external device is any external device connected to any one of the several hardware I / O ports corresponding to at least one CPU of the server device. Specifically, this external device can be an external hard drive, network card, GPU (Graphics Processing Unit), or other types of external devices to implement various complex business processes.
[0065] Specifically, the external devices connected to a server will vary depending on the specific business processing requirements. The combination of external devices used to fulfill a particular business processing need is called a configuration. A single server can be configured in multiple ways by combining different external devices.
[0066] It should be noted that the first hardware I / O port of the server device can connect to one or more slots and / or drive bays, each slot and / or drive bay having silkscreen information corresponding to that drive bay. The first hardware I / O port connects to the first external device through one of the at least one connected slot and / or drive bay as the first slot. It should be noted that the first slot connected to the first external device may vary depending on the device type and bandwidth of the first external device.
[0067] In this embodiment of the invention, the silkscreen information of the first external device connected to the first hardware I / O port in the first slot can be obtained through the BIOS during the POST (Power-On Self Test) phase of the server device.
[0068] Step 120: Determine the configuration relationship between the first hardware I / O port and the first external device based on the silkscreen information of the first slot.
[0069] In this embodiment of the invention, the setting relationship between the first hardware I / O port and the first external device can include a fixed setting relationship and a non-fixed setting relationship. Wherein, a fixed setting relationship between the first hardware I / O port and the first external device means that the correspondence between the first hardware I / O port and the first slot where the first external device is located is fixed. However, in actual design application scenarios, it is impossible to maintain a fixed correspondence between the first hardware I / O port and the first slot where the first external device is located. In this case, for situations where a fixed setting cannot be achieved, the correspondence between the first hardware I / O port and the first slot where the first external device is located can be determined to be a non-fixed setting based on the silkscreen information of the first slot. For example, under the premise of meeting the design requirements, the silkscreen of the four NVEM slots connected to one of the PCIe rootports of CPU#1 can be set to NVEM#0, NVEM#1, NVEM#2 and NVEM#3 in the order of Lane 1-15; for the SATA port, the silkscreen correspondence between the upper-level SATA controller port and at least one slot and / or drive bay connected to it remains unchanged. For example, if the silkscreen of the upper-level SATA controller port is SATAcontroller port 0 / 1 / 2 / 3..., the silkscreen of the four slots and / or drive bays connected to it will also remain SATA0 / 1 / 2 / 3; however, if it is not possible to fix the correspondence between the first hardware I / O port and the first slot where the first external device is located under the premise of meeting the design requirements, steps 130-150 need to be executed to process the first external device.
[0070] Specifically, the silkscreen information of the first slot can be compared with the preset silkscreen information of the slot that is fixedly set with the silkscreen information of the first hardware I / O port. If the silkscreen information of the first slot is in the preset silkscreen information of the slot that is fixedly set with the silkscreen information of the first hardware I / O port, it can be determined that the setting relationship between the first hardware I / O port and the first external device is a fixed setting; if the silkscreen information of the first slot is not in the preset silkscreen information of the slot that is fixedly set with the silkscreen information of the first hardware I / O port, it can be determined that the setting relationship between the first hardware I / O port and the first external device is a non-fixed setting.
[0071] It should be noted that the fixed setting between the first hardware I / O port and the first slot where the first external device is located means that the silkscreen information of the first hardware I / O port and the silkscreen information of the first slot are consistent and remain fixed.
[0072] Step 130: When the first hardware I / O port and the first external device are not fixed, determine the combined ID information corresponding to the first external device.
[0073] The combined ID information is a combination of feature information that distinguishes the correspondence between the first external device and the first hardware I / O port. This feature information may include ID information related to the first external device, ID information related to the first hardware I / O port, and ID information related to the first slot. Specifically, it may include the device ID information of the first external device, the configuration identifier information of the configuration to which the first external device belongs, the ID information of the first hardware I / O port, and the silkscreen information of the first slot. The combined ID information can be determined by combining one or more of the different feature information. In practical applications, it can be determined based on the external devices connected to all hardware I / O ports of the server device, including the first hardware I / O port, and the information that can accurately and conveniently distinguish the first external device can be used as the combined ID information corresponding to the first external device.
[0074] In this embodiment of the invention, when it is determined through step 120 that the first hardware I / O port and the first external device are not fixedly configured, the combined ID information corresponding to the first external device is determined. Specifically, the combined ID information corresponding to the first external device can be determined by the interface type of the first hardware I / O port, and the information included in the combined ID information is obtained. After obtaining the combined ID information corresponding to the first external device, steps 140 and 150 can be executed.
[0075] Step 140: Determine the name of the first hardware I / O port based on the combined ID information and display the name of the first hardware I / O port in the BIOS setup interface.
[0076] In this embodiment of the invention, the name of the first hardware I / O port determined according to the combined ID information can be a string of silkscreen information of the first slot where the first external device connected to the first hardware I / O port is located, as determined according to the combined ID information, or it can be a GPIO (General-purpose input / output) string.
[0077] After the name of the first hardware I / O port is displayed in the BIOS setup interface, you can intuitively configure and view the properties of the first external device connected to the server device through the first hardware I / O port.
[0078] Step 150: Based on the first hardware I / O port name displayed in the BIOS setup interface, obtain the configuration information of the first hardware I / O port corresponding to the first hardware I / O port name.
[0079] The configuration information of the first hardware I / O port includes the first hardware I / O port information and the first slot information of the first external device connected to the first hardware I / O port.
[0080] It should be noted that the first hardware I / O port information may include the CPU number to which the first hardware I / O port belongs, the original number of the first hardware I / O port, and the bandwidth allocated to the first hardware I / O port by the BIOS; the first slot information of the first external device connected to the first hardware I / O port may include the physical slot number and the silkscreen information of the first slot; wherein, the physical slot number and the silkscreen information of the first slot can have a one-to-one correspondence, and the silkscreen information of the first slot can be determined by the physical slot number;
[0081] Similarly, based on the silkscreen information of the first slot corresponding to the first hardware I / O port name displayed in the BIOS setup interface, the number of the first slot corresponding to the silkscreen information of the first slot can be determined. Then, based on the number of the first slot, the specific location and presence of the first external device connected to the first slot can be determined.
[0082] In this embodiment of the invention, the configuration information of the first hardware I / O port corresponding to the first hardware I / O port name is obtained based on the different hardware I / O ports of the server device, according to the first hardware I / O port name displayed in the BIOS setup interface. Therefore, the configuration information of the first hardware I / O port obtained in step 150 can be the configuration information of any hardware I / O port among several hardware I / O ports set in the current server device. The number of the first slot can be the number of the first slot designed for the first external device currently connected to the first hardware I / O port, after obtaining the first hardware I / O port information corresponding to the first hardware I / O port name and the silkscreen information of the first slot of the first external device connected to the first hardware I / O port according to the first hardware I / O port name displayed in the BIOS setup interface. This number is used to establish the correspondence between the number of the first slot and the silkscreen information of the first slot, so as to facilitate the determination of the current presence of the first external device through the silkscreen information of the first slot, that is, the name of the first hardware I / O port. After designing a unique first slot number corresponding to the first external device currently connected to the first hardware I / O port, the slot number and the silkscreen information of the first slot are used as the first slot information. The first slot information and the first hardware I / O port information are used as the first hardware I / O port configuration information corresponding to the first hardware I / O port name, thereby completing the operation of obtaining the first hardware I / O port configuration information corresponding to the first hardware I / O port name.
[0083] Step 160: Send the configuration information of the first hardware I / O port to the BMC; the BMC displays the configuration information of the first hardware I / O port in the BMC Web interface, and processes the first external device connected to the first hardware I / O port based on the configuration information of the first hardware I / O port displayed in the BMC Web interface.
[0084] In this embodiment of the invention, the BIOS can obtain the configuration information of the first hardware I / O port corresponding to the first hardware I / O port name displayed in the BIOS setup interface, and then send the configuration information to the BMC. After receiving the configuration information of the first hardware I / O port, the BMC displays the configuration information of the first hardware I / O port in the BMC Web interface. Of course, after receiving the configuration information of the first hardware I / O port, the BMC can select the part of the configuration information of the first hardware I / O port that needs to be displayed in the BMC Web interface according to actual needs. The comparison of this embodiment of the invention does not make specific limitations.
[0085] Specifically, the BMC processes the first external device connected to the first hardware I / O port based on the configuration information of the first hardware I / O port displayed in the BMC Web interface. This processing can include viewing and setting the attributes of the first external device, and establishing a one-to-one correspondence between the software attributes and the physical location of the first external device to locate it. The software attributes of the first external device can include its Segment (data file space), Bus, Device, and Function number. The physical location of the first external device includes the silkscreen information of the chassis or card slot where it resides. Since there is a one-to-one correspondence between the silkscreen information of the first slots, the specific physical location of the first external device can be determined through the silkscreen information of the first slots, thus locating the first external device. After determining the physical location of the first external device, operations such as viewing and setting its software attributes are completed.
[0086] Furthermore, when the first external device in the server equipment fails, the software attributes of the first external device in the alarm information correspond to the silkscreen information of the first slot in the physical location of the first external device. Based on the silkscreen information of the first slot, the first slot where the first external device is located is determined, and then the specific physical location of the first external device is located. After locating the specific physical location of the first external device, maintenance and other operations are performed on the faulty first external device.
[0087] In this embodiment of the invention, processing the first external device connected to the first hardware I / O port can also realize the function of system slot (Type 9) information in SMBIOS (System Management BIOS). The system slot information may include slot indicator, slot type, slot data bus width, whether it is currently in use, slot length, slot ID, slot characteristics, segment group number, bus number, device / function number, etc.
[0088] In this embodiment of the invention, when it is determined that the first hardware I / O port and the first external device are not fixedly configured based on the silkscreen information of the first slot where the first external device is located, the ID information corresponding to the first external device is determined, and the configuration information of the first hardware I / O port, determined by the ID information and displayed in the BIOS setup interface, is sent to the BMC. The BMC displays the configuration information of the first hardware I / O port in the BMC Web interface, and processes the first external device connected to the first hardware I / O port based on the configuration information of the first hardware I / O port displayed in the BMC Web interface. The BIOS setup interface can rename the hardware I / O port names displayed on the server device, based on different hardware I / O ports. Based on these renamed hardware I / O port names, users can view and configure the software attributes of external devices. Furthermore, in the event of a faulty external device, the BMC can accurately locate and maintain the faulty device based on the correspondence between its software attributes and physical location. This correspondence can also be used to access system slot information in SMBIOS.
[0089] In an embodiment of the present invention, Figure 2 A flowchart illustrating the steps of another external device processing method provided by an embodiment of the present invention is shown, as follows: Figure 2 As shown, the method may include:
[0090] Step 201: Obtain the silkscreen information of the first slot where the first external device connected to the first hardware I / O port is located.
[0091] For details, please refer to step 110 above; it will not be repeated here.
[0092] Step 202: Match the silkscreen information of the first slot with the preset silkscreen list.
[0093] The preset silkscreen list includes slot silkscreen information that is fixedly set with the silkscreen information of the first hardware I / O port.
[0094] Specifically, the silkscreen information of all slots that are fixedly set with the silkscreen information of the first hardware I / O port can be set as a preset silkscreen list. The preset silkscreen list includes the silkscreen information of all slots that are fixedly set with the silkscreen information of the first hardware I / O port. The silkscreen information of the first slot is matched with the preset silkscreen list. If the match is successful, step 203 is executed; if the match fails, step 205 is executed.
[0095] Step 203: Determine that the first hardware I / O port and the first external device are fixed.
[0096] Specifically, if the silkscreen information of the first slot matches the silkscreen information of the slot in the preset silkscreen list, the first hardware I / O port and the first external device are determined to be fixed.
[0097] In this embodiment of the invention, if it is determined that the first hardware I / O port and the first external device have a fixed configuration relationship, step 204 is executed.
[0098] Step 204: Determine the silkscreen information of the first slot as the name of the first hardware I / O port and display the name of the first hardware I / O port in the BIOS setup interface.
[0099] In this invention, when it is determined that the first hardware I / O port and the first external device have a fixed configuration relationship, the silkscreen information of the first slot where the first external device is located can be directly determined as the name of the first hardware I / O port, and the name of the first hardware I / O port can be displayed in the BIOS setup interface.
[0100] After the name of the first hardware I / O port is displayed in the BIOS setup interface, you can intuitively configure and view the properties of the first external device connected to the server device through the first hardware I / O port.
[0101] Step 205: Determine that the first hardware I / O port and the first external device are not fixed.
[0102] Specifically, if the silkscreen information of the first slot fails to match the silkscreen information of the slot in the preset silkscreen list, it can be determined that the first hardware I / O port and the first external device are not fixed settings.
[0103] In this embodiment of the invention, if it is determined that the first hardware I / O port and the first external device are not in a fixed configuration relationship, step 206 is executed.
[0104] Step 206: Determine the interface type of the first hardware I / O port.
[0105] In this embodiment of the invention, the interface type of the first hardware I / O port may include PCIE rootport and SATA port.
[0106] Specifically, after determining that the first hardware I / O port and the first external device have a non-fixed configuration relationship, it is necessary to determine the specific content of the combined ID information corresponding to the first external device based on the specific interface type of the first hardware I / O port. Specifically, if the interface type of the first hardware I / O port is a PCIE root port, then step 207 is executed; if the interface type of the first hardware I / O port is a SATA port, then step 208 is executed.
[0107] Step 207: Obtain the ID information of the first hardware I / O port corresponding to the first hardware I / O port.
[0108] In this embodiment of the invention, after determining that the interface type of the first hardware I / O port is a PCIE rootport, the ID information of the first hardware I / O port corresponding to the first hardware I / O port can be obtained. Specifically, the ID information of the first hardware I / O port can be determined based on the hardware information of the first hardware I / O port. The hardware information may include the design bandwidth, information on the combination of different bandwidths and different external devices, the types of external devices that can be connected under the first hardware I / O port, and the silkscreen information of the slot where the external device is located.
[0109] Specifically, the GPIO string of the hardware information of the first hardware I / O port can be used as the ID information of the first hardware I / O port.
[0110] Step 208: Obtain the SATA configuration identifier information of the first SATA configuration to which the first external device belongs.
[0111] In this embodiment of the invention, after determining that the interface type of the first hardware I / O port is a SATA port, the SATA configuration identification information of the first SATA configuration to which the first external device belongs can be obtained; specifically, the SATA configuration is the configuration of the SATA device obtained by dividing the SATA external devices connected to the server device according to different functions. The same server may include several SATA configurations, and the first SATA configuration is the SATA configuration to which the first external device belongs among the several SATA configurations.
[0112] Specifically, the SATA configuration identification information of the first SATA configuration can be the difference information between different SATA configurations when the SATA external devices connected to the server device are divided according to different functions.
[0113] It should be noted that the SATA configuration is divided only for the SATA external devices connected to the server device according to different functions, which is different from the configuration obtained by combining external devices connected to the server device to meet a certain business processing in related technologies.
[0114] In this embodiment of the invention, the GPIO combination string of the first SATA configuration to which the first external device belongs can be used as the SATA configuration identifier information of the first SATA configuration.
[0115] After executing steps 207 and / or 208, step 209 is executed based on the first hardware I / O port ID information obtained in step 207 and / or the SATA configuration identifier information obtained in step 208.
[0116] Step 209: Determine the ID information of the first hardware I / O port and / or SATA configuration identifier information as the combined ID information corresponding to the first external device.
[0117] In this embodiment of the invention, after executing step 207 and / or step 208, based on the ID information of the first hardware I / O port obtained in step 207 and / or the SATA configuration identifier information obtained in step 208, the ID information of the first hardware I / O port and / or the SATA configuration identifier information are determined as combined ID information corresponding to the first external device.
[0118] Optionally, after step 207, sub-steps 2071-2073 may also be included:
[0119] Sub-step 2071: Determine the external device information connected to the first hardware I / O port based on the bandwidth information of the first hardware I / O port.
[0120] In the case where the interface type of the first hardware I / O port is a PCIE root port, the ID information of the first hardware I / O port may also include the bandwidth information of the first hardware I / O port. The bandwidth information of the first hardware I / O port is used to determine the external device information connected to the first hardware I / O port.
[0121] Specifically, the external device information may include the type and number of external devices connected to the first hardware I / O port under the bandwidth conditions of the bandwidth information. If the number and / or type of external devices in the external device information is greater than 1, it indicates that the first hardware I / O port, belonging to the same PCIE root port, has different types and / or different numbers of external devices connected to it under the same bandwidth. In this case, further differentiation of the ID information of the first hardware I / O port is needed to accurately locate the first external device. Therefore, if the number and / or type of external devices in the external device information is greater than 1, step 2072 is executed.
[0122] It should be noted that when the type and / or quantity of external devices in the external device information is equal to 1, it indicates that the first hardware I / O port belonging to the PCIe root port, with the same bandwidth, can only connect to one type of external device and can only connect to one external device at a time. In this case, the ID information of the first hardware I / O port can be used to accurately locate the first external device. Therefore, when the type and / or quantity of external devices in the external device information is equal to 1, step 2072 is unnecessary. After step 207, steps 209-213 can be executed to accurately locate the first external device.
[0123] Sub-step 2072: If the type and / or number of external devices is greater than 1, obtain the device ID information of the first external device.
[0124] Specifically, when the number and / or type of external device in the external device information is greater than one, even if the first hardware I / O port belonging to the PCIe root port has the same bandwidth, the types and / or numbers of external devices connected to the first hardware I / O port may differ. Therefore, further differentiation of the ID information of the first hardware I / O port is needed to accurately locate the first external device. Thus, when the number and / or type of external device in the external device information is greater than one, it is necessary to further obtain the device ID information of the first external device and combine it with the ID information of the first hardware I / O port to obtain the combined ID information corresponding to the first external device, thereby achieving accurate location of the first external device.
[0125] It should be noted that the device ID information of the first external device distinguishes the types and quantities of all first external devices that can be connected to the first hardware I / O port under the same bandwidth. For example, when the first hardware I / O port has a bandwidth of ×16, it can connect to one board or one riser card. In this case, the device ID information of the first external device currently connected to the first hardware I / O port is needed to distinguish between the board and the riser card. Similarly, when the first hardware I / O port has a bandwidth of 2 ×8, it can connect to one riser card with a bandwidth of ×16 or two riser cards with a bandwidth of ×8. In this case, the device ID information of the first external device currently connected to the first hardware I / O port is needed to distinguish the number of external devices. The specific information regarding the device ID can be determined according to the specific configuration of the server equipment, and this embodiment of the invention does not impose specific limitations on it.
[0126] Sub-step 2073: Combine the device ID information of the first external device with the combined ID information to determine the combined ID information corresponding to the first external device.
[0127] In this embodiment of the invention, when the type of external device and / or the number of external devices is greater than 1, after obtaining the device ID information of the first external device, the device ID information of the first external device can be combined with the combined ID information by determining the ID information of the first hardware I / O port as corresponding to the first external device, and the combined ID information is determined as the ID information corresponding to the first external device. Then, steps 209-213 are executed to complete the processing operation of the first external device.
[0128] In this embodiment of the invention, when the first hardware I / O port has the same bandwidth, and the types and / or numbers of external devices connected to the first hardware I / O port are different, the first hardware I / O portID information alone is insufficient to accurately identify and locate the first external device connected to the first hardware I / O port. Further differentiation based on the device ID information of the first external device is required. This allows for accurate location and locating of different external devices connected to different hardware I / O ports of the server device, even under special circumstances where the first hardware I / O port has the same bandwidth, and the types and / or numbers of external devices connected to the first hardware I / O port are different. Based on this location information, relevant processing can be performed on the external devices.
[0129] Step 210: Determine the silkscreen information of the first external device in the first slot corresponding to the combined ID information as the name of the first hardware I / O port and display the name of the first hardware I / O port in the BIOS setup interface.
[0130] Specifically, since the first hardware I / O port and the first external device are not in a fixed configuration relationship, it is necessary to determine the combined ID information corresponding to the first external device through steps 206-209; then, the specific location of the first slot where the first external device is located is determined according to the combined ID information; then, the silkscreen information of the first external device in the first slot corresponding to the combined ID information is determined as the name of the first hardware I / O port and the name of the first hardware I / O port is displayed in the BIOS setup interface.
[0131] Step 211: Based on the first hardware I / O port name displayed in the BIOS setup interface, obtain the configuration information of the first hardware I / O port corresponding to the first hardware I / O port name.
[0132] This step can be referred to in detail in step 150 above, and will not be repeated here.
[0133] Step 212: Store the configuration information of the first hardware I / O port in the first memory corresponding to the name of the first hardware I / O port displayed in the BIOS setup interface.
[0134] Specifically, the first memory can be a memory in the server device set up based on different first hardware I / O ports for storing configuration information of the first hardware I / O ports; wherein, different memories can be set up for different hardware I / O ports of the server device, or an overall memory can be set up to store configuration information of different hardware I / O ports. In the overall memory, the hardware I / O port configuration information corresponding to all hardware I / O ports of the server device can be stored, and the hardware I / O port configuration information corresponding to all hardware I / O ports of the server device stored in the overall memory can be identified and distinguished by the first hardware I / O port name.
[0135] In this embodiment of the invention, the configuration information of the first hardware I / O port stored in the first memory can be stored in the form of an array corresponding to the name of the first hardware I / O port; according to the read and write method provided by the PCIE protocol, the configuration information of the first hardware I / O port is written into the first memory corresponding to the name of the first hardware I / O port displayed in the BIOS setup interface.
[0136] Optionally, after step 212, sub-steps 2121-2122 may also be included:
[0137] Sub-step 2121: If a change in the configuration information of the first hardware I / O port is detected, obtain the parameters of the changed configuration information of the first hardware I / O port.
[0138] Specifically, the parameters of the first hardware I / O port configuration information are the specific parameter values corresponding to the first hardware I / O port configuration information. If any parameter value in the first hardware I / O port configuration information changes, the parameter value after the change can be obtained, and then sub-step 2122 can be executed according to the parameter value after the change.
[0139] Of course, if any parameter value in the first hardware I / O port configuration information changes, the data values of all parameters in the first configuration information can be obtained, and then sub-step 2122 can be executed based on the data values of all parameters in the first configuration information after the change.
[0140] Sub-step 2122: Update the first hardware I / O port configuration information according to the parameters of the changed first hardware I / O port configuration information.
[0141] Specifically, based on the parameters of the changed first hardware I / O port configuration information, the parameters of the changed first hardware I / O port configuration information can be reassigned to the parameters in the first memory corresponding to the parameters of the changed first hardware I / O port configuration information, so as to realize the real-time update of the first hardware I / O port configuration information stored in the first memory corresponding to the first hardware I / O port name when a change in the first hardware I / O port configuration information is detected.
[0142] In this embodiment of the invention, through sub-steps 2121-2122, when a change in the first hardware I / O port configuration information is detected, the parameters of the changed first hardware I / O port configuration information are obtained; and the first hardware I / O port configuration information is updated according to the parameters of the changed first hardware I / O port configuration information. This ensures the accuracy of the execution result of step 213.
[0143] Step 213: Send the configuration information of the first hardware I / O port to the BMC; the BMC displays the configuration information of the first hardware I / O port in the BMC Web interface, and processes the first external device connected to the first hardware I / O port based on the configuration information of the first hardware I / O port displayed in the BMC Web interface.
[0144] For details on this step, please refer to step 160 above; it will not be repeated here.
[0145] Optionally, processing the first external device connected to the first hardware I / O port based on the configuration information of the first hardware I / O port displayed in the BMC Web interface may include:
[0146] Based on the configuration information of the first hardware I / O port displayed in the BMC Web interface, determine the presence information of the first external device connected to the first hardware I / O port;
[0147] Based on the location information of the first external device, perform maintenance and / or attribute setting processing on the first external device.
[0148] Specifically, when the first external device in the server equipment fails, the software attributes of the first external device in the alarm information correspond to the silkscreen information of the first slot in the physical location of the first external device. Based on the silkscreen information of the first slot, the first slot where the first external device is located is determined, and then the specific physical location of the first external device is located. After locating the specific physical location of the first external device, maintenance and other operations are performed on the faulty first external device.
[0149] In this embodiment of the invention, the presence information of the first external device connected to the first hardware I / O port can also be determined based on the configuration information of the first hardware I / O port displayed in the BMC Web interface, and operations such as viewing and setting the relevant device attributes of the first external device can be performed.
[0150] In summary, in this embodiment of the invention, based on the silkscreen information of the first external device located in the first slot connected to the first hardware I / O port, when it is determined that the first hardware I / O port and the first external device are not fixedly configured, the combined ID information corresponding to the first external device is determined, and based on the combined ID information, the name of the first hardware I / O port is determined and displayed in the BIOS setup interface; for different application scenarios and application requirements, based on the name of the first hardware I / O port displayed in the BIOS setup interface, relevant processing operations are performed on the first external device connected to the first hardware I / O port. This system allows for the renaming of the first hardware I / O port displayed in the BIOS setup interface, based on the combined ID information corresponding to the first external device, using different first hardware I / O ports of the server device as units. Furthermore, it retrieves the configuration information of the first hardware I / O port corresponding to the first hardware I / O port name displayed in the BIOS setup interface and sends this configuration information to the BMC. The BMC then displays this configuration information in its web interface and processes the first external device connected to the first hardware I / O port based on this information. This system can determine the presence of the first external device currently connected to the first hardware I / O port, enabling accurate location and identification of different external devices connected to different hardware I / O ports of the server device, and performing relevant processing on the external devices based on this location information. Even if the external devices included in different configurations of the server equipment change, the corresponding hardware I / O port name can be updated based on the ID information of the changed external device, further ensuring the accuracy of locating the flexibly configured external devices.
[0151] Figure 3 A logic block diagram of an external device processing device according to an embodiment of the present invention is shown, such as... Figure 3 As shown, the external device processing device 300 may include:
[0152] The first acquisition module 310 is used to acquire the silkscreen information of the first external device connected to the first hardware I / O port located in the first slot;
[0153] The first determining module 320 is used to determine the setting relationship between the first hardware I / O port and the first external device based on the silkscreen information of the first slot.
[0154] The second determining module 330 is used to determine the combined ID information corresponding to the first external device when the first hardware I / O port and the first external device are not fixedly configured; the combined ID information is a combination of feature information that distinguishes the correspondence between the first external device and the first hardware I / O port.
[0155] The third determining module 340 is used to determine the name of the first hardware I / O port based on the combined ID information and display the name of the first hardware I / O port in the BIOS setup interface;
[0156] The second acquisition module 350 is used to acquire the configuration information of the first hardware I / O port corresponding to the first hardware I / O port name based on the first hardware I / O port name displayed in the BIOS setup interface; the configuration information of the first hardware I / O port includes the first hardware I / O port information and the first slot information of the first external device connected to the first hardware I / O port.
[0157] The sending module 360 is used to send the configuration information of the first hardware I / O port to the BMC; the BMC displays the configuration information of the first hardware I / O port in the BMC Web interface, and processes the first external device connected to the first hardware I / O port based on the configuration information of the first hardware I / O port displayed in the BMC Web interface.
[0158] Optionally, the first determining module 320 may include:
[0159] The matching submodule is used to match the silkscreen information of the first slot with a preset silkscreen list; the preset silkscreen list includes slot silkscreen information that is fixedly set with the silkscreen information of the first hardware I / O port.
[0160] The first determining submodule is used to determine that the first hardware I / O port and the first external device are fixed when the silkscreen information of the first slot is successfully matched with the slot silkscreen information in the preset silkscreen list.
[0161] The second determining submodule is used to determine that the first hardware I / O port and the first external device are not fixed settings when the silkscreen information of the first slot fails to match the silkscreen information of the slot in the preset silkscreen list.
[0162] Optionally, the external device processing device 300 may further include:
[0163] The fourth determining module is used to determine the silkscreen information of the first slot as the name of the first hardware I / O port and display the name of the first hardware I / O port in the BIOS setup interface when the first hardware I / O port and the first external device are fixedly configured.
[0164] Optionally, the second determining module 330 may include:
[0165] The third determining submodule is used to determine the interface type of the first hardware I / O port when the first hardware I / O port and the first external device are not fixedly configured.
[0166] The first acquisition submodule is used when the interface type of the first hardware I / O port is PCIE root.
[0167] In the case of a port, obtain the ID information of the first hardware I / O port corresponding to the first hardware I / O port;
[0168] The second acquisition submodule is used to acquire the SATA configuration identifier information of the first SATA configuration to which the first external device belongs when the interface type of the first hardware I / O port is SATA port.
[0169] The fourth determining submodule is used to determine the ID information of the first hardware I / O port and / or SATA configuration identifier information as the combined ID information corresponding to the first external device.
[0170] Optionally, the second determining module 330 may further include:
[0171] The fifth determining submodule is used to determine the external device information connected to the first hardware I / O port based on the bandwidth information of the first hardware I / O port; the external device information includes the type and number of external devices connected to the first hardware I / O port under the bandwidth.
[0172] The third acquisition submodule is used to acquire the device ID information of the first external device when the type and / or number of external devices is greater than 1.
[0173] The sixth determining submodule is used to combine the device ID information of the first external device with the combined ID information to determine the combined ID information corresponding to the first external device.
[0174] Optionally, the third determining module 340 may include:
[0175] The seventh determination submodule is used to determine the silkscreen information of the first external device located in the first slot corresponding to the combined ID information as the name of the first hardware I / O port and display the name of the first hardware I / O port in the BIOS setup interface.
[0176] Optionally, the external device processing device 300 may further include:
[0177] The storage module is used to store the configuration information of the first hardware I / O port in a first memory corresponding to the name of the first hardware I / O port displayed in the BIOS setup interface.
[0178] Optionally, the external device processing device 300 may further include:
[0179] The third acquisition module is used to acquire the parameters of the changed first hardware I / O port configuration information when the first hardware I / O port configuration information is detected to have changed.
[0180] The update module is used to update the first hardware I / O port configuration information according to the parameters of the changed first hardware I / O port configuration information.
[0181] Optionally, the sending module 360 may include:
[0182] The seventh determination submodule is used to determine the presence information of the first external device connected to the first hardware I / O port based on the configuration information of the first hardware I / O port displayed in the BMC Web interface.
[0183] The processing submodule is used to perform maintenance processing and / or attribute setting processing on the first external device based on the on-site information of the first external device.
[0184] In summary, in this embodiment of the invention, based on the silkscreen information of the first external device connected to the first hardware I / O port in the first slot, when it is determined that the first hardware I / O port and the first external device are not fixedly configured, the combined ID information corresponding to the first external device is determined, and based on the combined ID information, the name of the first hardware I / O port is determined and displayed in the BIOS setup interface; for different application scenarios and application requirements, based on the name of the first hardware I / O port displayed in the BIOS setup interface, relevant processing operations are performed on the first external device connected to the first hardware I / O port. This system allows for the renaming of the first hardware I / O port name displayed in the BIOS setup interface based on the combined ID information corresponding to the first external device, using different hardware I / O ports of the server device as units. Furthermore, it retrieves the configuration information of the first hardware I / O port corresponding to the first hardware I / O port name displayed in the BIOS setup interface and sends this configuration information to the BMC. The BMC then displays this configuration information in its web interface and processes the first external device connected to the first hardware I / O port based on this information. This system can determine the presence of the first external device currently connected to the first hardware I / O port, enabling accurate location and identification of different external devices connected to different hardware I / O ports of the server device, and performing relevant processing on the external devices based on this location information. Even if the external devices included in different configurations of the server equipment change, the corresponding hardware I / O port name can be updated based on the combined ID information of the changed external devices, further ensuring the accuracy of locating the flexibly configured external devices.
[0185] This invention also provides an electronic device, including a memory and a processor. The memory is used to store a computer program, and the processor is used to execute the computer program to implement the external device processing method described above.
[0186] like Figure 4 As shown, Figure 4A schematic diagram of an electronic device according to an embodiment of the present invention is shown. The electronic device 400 includes a processing component 410, which further includes one or more processors, and memory resources represented by a memory 450 for storing instructions executable by the processing component 410, such as application programs. The application programs stored in the memory 450 may include one or more modules, each corresponding to a set of instructions. Furthermore, the processing component 410 is configured to execute instructions to perform an external device processing method provided in an embodiment of this application.
[0187] Electronic device 400 may also include a power supply component 420 configured to perform power management of electronic device 400, a wired or wireless network interface 430 configured to connect electronic device 400 to a network, and an input / output (I / O) interface 440. Electronic device 400 may operate on an operating system stored in memory 450, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, or similar.
[0188] This application embodiment also provides a readable storage medium storing a computer program, which, when executed by a processor, implements the external device processing method described above.
[0189] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the application disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this application are indicated by the following claims.
[0190] It should be understood that this application is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this application is limited only by the appended claims.
Claims
1. A method for processing external devices, characterized in that, include: Obtain the silkscreen information of the first slot where the first external device connected to the first hardware I / O port is located; Based on the silkscreen information of the first slot, the setting relationship between the first hardware I / O port and the first external device is determined; wherein, if the silkscreen information of the first slot fails to match the silkscreen information of the slot in the preset silkscreen list, the setting relationship between the first hardware I / O port and the first external device is determined to be a non-fixed setting. When the first hardware I / O port and the first external device are not fixedly configured, a combined ID information corresponding to the first external device is determined; the combined ID information is a combination of feature information that distinguishes the correspondence between the first external device and the first hardware I / O port; the combined ID information includes the ID information of the first hardware I / O port and / or SATA configuration identification information; wherein, the ID information is determined according to the hardware information of the first hardware I / O port, and the SATA configuration identification information represents the distinguishing information between different SATA configurations when the SATA external devices connected to the server device are divided according to different functions; Based on the combined ID information, the name of the first hardware I / O port is determined and displayed in the BIOS setup interface; Based on the first hardware I / O port name displayed in the BIOS setup interface, obtain the configuration information of the first hardware I / O port corresponding to the first hardware I / O port name; the configuration information of the first hardware I / O port includes the first hardware I / O port information and the first slot information of the first external device connected to the first hardware I / O port. The configuration information of the first hardware I / O port is sent to the BMC; the BMC displays the configuration information of the first hardware I / O port in the BMC Web interface, and processes the first external device connected to the first hardware I / O port based on the configuration information of the first hardware I / O port displayed in the BMC Web interface.
2. The method according to claim 1, characterized in that, The step of determining the configuration relationship between the first hardware I / O port and the first external device based on the silkscreen information of the first slot includes: The silkscreen information of the first slot is matched with a preset silkscreen list; the preset silkscreen list includes slot silkscreen information that is fixedly set with the silkscreen information of the first hardware I / O port. If the silkscreen information of the first slot matches the silkscreen information of the slot in the preset silkscreen list, it is determined that the first hardware I / O port and the first external device are fixed. If the silkscreen information of the first slot fails to match the silkscreen information of the slot in the preset silkscreen list, it is determined that the first hardware I / O port and the first external device are not fixed.
3. The method according to claim 1, characterized in that, After determining the configuration relationship between the first hardware I / O port and the first external device based on the silkscreen information of the first slot, the method further includes: When the first hardware I / O port and the first external device are fixedly configured, the silkscreen information of the first slot is determined as the name of the first hardware I / O port and the name of the first hardware I / O port is displayed in the BIOS setup interface.
4. The method according to claim 1, characterized in that, When the first hardware I / O port and the first external device are not fixedly configured, determining the combined ID information corresponding to the first external device includes: When the first hardware I / O port and the first external device are not fixedly configured, determine the interface type of the first hardware I / O port; If the interface type of the first hardware I / O port is a PCIE root port, obtain the ID information of the first hardware I / O port corresponding to the first hardware I / O port; When the interface type of the first hardware I / O port is SATA port, obtain the SATA configuration identifier information of the first SATA configuration to which the first external device belongs; The ID information of the first hardware I / O port and / or the SATA configuration identifier information are determined as the combined ID information corresponding to the first external device.
5. The method according to claim 4, characterized in that, The ID information of the first hardware I / O port includes the bandwidth information of the first hardware I / O port; After determining the ID information of the first hardware I / O port and / or the SATA configuration identifier information as the combined ID information corresponding to the first external device, the method further includes: Based on the bandwidth information of the first hardware I / O port, the external device information connected to the first hardware I / O port is determined; the external device information includes the type and number of external devices connected to the first hardware I / O port under the specified bandwidth. If the type and / or number of external devices is greater than 1, obtain the device ID information of the first external device; The device ID information of the first external device is combined with the combined ID information to determine the combined ID information corresponding to the first external device.
6. The method according to claim 1, characterized in that, The step of determining the name of the first hardware I / O port based on the combined ID information and displaying the name of the first hardware I / O port in the BIOS setup interface includes: The silkscreen information of the first external device located in the first slot corresponding to the combined ID information is determined as the name of the first hardware I / O port, and the name of the first hardware I / O port is displayed in the BIOS setup interface.
7. The method according to claim 1, characterized in that, After obtaining the configuration information of the first hardware I / O port corresponding to the first hardware I / O port name displayed in the BIOS setup interface, the method further includes: The configuration information of the first hardware I / O port is stored in the first memory corresponding to the name of the first hardware I / O port displayed in the BIOS setup interface.
8. The method according to claim 7, characterized in that, After storing the configuration information of the first hardware I / O port in the first memory corresponding to the name of the first hardware I / O port displayed in the BIOS setup interface, the process further includes: If a change in the configuration information of the first hardware I / O port is detected, the parameters of the changed configuration information of the first hardware I / O port are obtained. The first hardware I / O port configuration information is updated based on the parameters of the changed first hardware I / O port configuration information.
9. The method according to claim 1, characterized in that, The processing of the first external device connected to the first hardware I / O port based on the configuration information of the first hardware I / O port displayed in the BMC Web interface includes: Based on the configuration information of the first hardware I / O port displayed in the BMC Web interface, determine the presence information of the first external device connected to the first hardware I / O port; Based on the location information of the first external device, perform maintenance and / or attribute setting processing on the first external device.
10. An external device processing device, characterized in that, include: The first acquisition module is used to acquire the silkscreen information of the first external device connected to the first hardware I / O port in the first slot. The first determining module is used to determine the setting relationship between the first hardware I / O port and the first external device based on the silkscreen information of the first slot; wherein, if the silkscreen information of the first slot fails to match the silkscreen information of the slot in the preset silkscreen list, the setting relationship between the first hardware I / O port and the first external device is determined to be a non-fixed setting. The second determining module is used to determine the combined ID information corresponding to the first external device when the first hardware I / O port and the first external device are not fixedly configured. The combined ID information is a combination of feature information that distinguishes the correspondence between the first external device and the first hardware I / O port. The combined ID information includes the ID information of the first hardware I / O port and / or SATA configuration identification information. The ID information is determined based on the hardware information of the first hardware I / O port, and the SATA configuration identification information represents the difference information between different SATA configurations when the SATA external devices connected to the server device are divided according to different functions. The third determining module is used to determine the name of the first hardware I / O port based on the combined ID information and display the name of the first hardware I / O port in the BIOS setup interface; The second acquisition module is used to acquire the configuration information of the first hardware I / O port corresponding to the first hardware I / O port name based on the first hardware I / O port name displayed in the BIOS setup interface; the configuration information of the first hardware I / O port includes the first hardware I / O port information and the first slot information of the first external device connected to the first hardware I / O port. The sending module is used to send the configuration information of the first hardware I / O port to the BMC; the BMC displays the configuration information of the first hardware I / O port in the BMC Web interface, and processes the first external device connected to the first hardware I / O port based on the configuration information of the first hardware I / O port displayed in the BMC Web interface.
11. An electronic device, characterized in that, It includes a memory and a processor, the memory being used to store a computer program, and the processor being used to execute the computer program to implement the external device processing method as described in any one of claims 1-9.
12. A readable storage medium, characterized in that, The readable storage medium stores a computer program that, when executed by a processor, implements the external device processing method as described in any one of claims 1-9.
Citation Information
Patent Citations
method for updating PCIE screen printing information in an SMBIOS
CN109766147A
Port management method and system for SATA hard disk and related components
CN110399170A