Method for identifying physical slots of a riser card and related apparatus
By scanning the communication bus and using preset mapping relationships to identify the physical slots of the adapter cards, the problem of inconvenient management of adapter cards in servers is solved, and visual management and efficient operation and maintenance are realized.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-13
- Publication Date
- 2026-03-31
AI Technical Summary
Existing technologies cannot provide visual management of the physical slots of adapter cards in servers, resulting in inconvenience in hardware configuration management.
By scanning the communication bus to obtain adapter card combination information, identifying the physical slot of the adapter card using a preset mapping relationship, and writing the slot number into the sensor name, visual management is achieved.
Reduce manual intervention, improve operational efficiency, lower maintenance costs, and enhance the visualization and ease of use of the management interface.
Smart Images

Figure CN121116882B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of computer technology, and specifically relates to a method and related device for identifying the physical slots of an adapter card. Background Technology
[0002] In modern data centers and high-performance computing (HPC) equipment, server hardware systems are becoming increasingly scalable. Servers connect to external devices via various types of adapter cards to meet performance demands; for example, RAID cards are used for data storage management, and GPU cards are used for graphics processing and computational acceleration. Server systems rely on the BMC (Browser Management Center) to manage hardware status and monitor expansion card slots. Traditional servers connect to adapter cards via slots, and there is a fixed correspondence between the physical slot of the adapter card and the I²C bus number. This eliminates the need to identify the physical slot of the adapter card, and current technology cannot provide visual management for different hardware configurations. Summary of the Invention
[0003] This invention provides a method and related device for identifying the physical slots of an adapter card, which can identify the connection information of the adapter card and identify the physical slots of the adapter card to achieve visual management.
[0004] The first aspect of this invention provides a method for identifying the physical slot of an adapter card, comprising:
[0005] Scan the communication bus to obtain target combination information corresponding to the target adapter card combination to be connected, wherein the combination information is a set of adapter card numbers in the adapter card combination;
[0006] The target configuration number is determined based on the target combination information and the first mapping relationship, wherein the first mapping relationship is a preset mapping relationship between the configuration number and the combination information;
[0007] The target slot connection information corresponding to the target configuration number is determined according to the target configuration number and the second mapping relationship. The second mapping relationship is a preset mapping relationship between the configuration number and the slot connection information. The slot connection information includes the correspondence between the slot number and the communication bus number. The communication bus number is the number of the communication bus connected to the physical slot of the adapter card corresponding to the slot number.
[0008] The correspondence between the target sensor number and the target slot number is determined based on the target slot connection information and the third mapping relationship. The third mapping relationship is a predefined mapping relationship between the sensor number and the communication bus number. The sensor is a virtual device mounted on the communication bus. The target sensor number is the number of the sensor mounted on the target communication bus. The target communication bus number is the number of the communication bus corresponding to the target slot connection information.
[0009] Based on the correspondence between the target sensor number and the target slot number, the target slot number is written into the name of the target sensor.
[0010] A second aspect of the present invention provides a device for identifying the physical slot of an adapter card, comprising:
[0011] A scanning unit is used to scan the communication bus to obtain target combination information corresponding to the connected target adapter card combination, wherein the combination information is a set of adapter card numbers in the adapter card combination;
[0012] The first determining unit determines the target configuration number based on the target combination information and the first mapping relationship, wherein the first mapping relationship is a preset mapping relationship between the configuration number and the combination information;
[0013] The second determining unit is used to determine the target slot connection information corresponding to the target configuration number according to the target configuration number and the second mapping relationship, wherein the second mapping relationship is a preset mapping relationship between the configuration number and the slot connection information, and the slot connection information includes the correspondence between the slot number and the communication bus number, wherein the communication bus number is the number of the communication bus connected to the physical slot of the adapter card corresponding to the slot number;
[0014] The third determining unit is used to determine the correspondence between the target sensor number and the target slot number based on the target slot connection information and the third mapping relationship. The third mapping relationship is a pre-set mapping relationship between the configuration number and the sensor information as defined in the definition. The sensor information includes the correspondence between the sensor number and the communication bus. The sensor is a virtual device mounted on the communication bus. The target sensor number is the number of the sensor mounted on the target communication bus. The target communication bus is the number of the communication bus corresponding to the target slot connection information.
[0015] The writing unit is used to write the target slot number into the name of the target sensor according to the correspondence between the target sensor number and the target slot number.
[0016] A third aspect of the present invention provides a computer device including a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of the method for identifying the physical slot of the adapter card described in the first aspect.
[0017] A fourth aspect of the present invention provides a computer storage medium including instructions that, when executed on a computer, cause the computer to perform the steps of the method for identifying the physical slot of the adapter card described in the first aspect.
[0018] A fifth aspect of the present invention provides a computer program product, including instructions that, when executed by a processor, implement the steps of the method for identifying the physical slot of the adapter card described in the first aspect.
[0019] Compared with related technologies, the method for identifying the physical slot of the adapter card provided in this embodiment of the invention predefines a first mapping relationship between the configuration number and the combination information, a second mapping relationship between the configuration number and the slot connection information, and a mapping relationship between the sensor number and the communication bus number. By scanning the communication bus and confirming the configuration number, the physical slot of the adapter card can be identified, and the slot number of the physical slot can be written into the name of the sensor to achieve visual management. Attached Figure Description
[0020] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the structures shown in these drawings without creative effort.
[0021] Figure 1 A flowchart illustrating the method for identifying the physical slot of an adapter card according to an embodiment of the present invention;
[0022] Figure 2 This is a schematic diagram illustrating the connection relationship between an adapter card and a motherboard.
[0023] Figure 3 A schematic diagram showing the connection relationship between the internal physical slots and the MCIO interface of four types of adapter cards;
[0024] Figure 4 A virtual structural diagram of the physical slot identification device for the adapter card provided in an embodiment of the present invention;
[0025] Figure 5 This is a schematic diagram of the hardware structure of a server provided in an embodiment of the present invention. Detailed Implementation
[0026] The technical solutions in the embodiments of the present invention will be clearly and completely described below. Obviously, the described embodiments are only a part of the embodiments of the present invention, and not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0027] The terminology used in the embodiments of this invention is for the purpose of describing particular embodiments only and is not intended to be limiting of this application. The singular forms “a” and “the” as used in the embodiments of this application and the appended claims are also intended to include the plural forms, unless the context clearly indicates otherwise.
[0028] The terms "first" and "second" are used for descriptive purposes only, to distinguish objects, such as substances, from one another, and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. For example, without departing from the scope of the embodiments of this application, "first XX" may also be referred to as "second XX," and similarly, "second XX" may also be referred to as "first XX." Thus, features defined with "first" and "second" may explicitly or implicitly include one or more of that feature.
[0029] First, some terms involved in this invention will be explained:
[0030] BMC: Baseboard Management Controller. A BMC is an embedded controller used to monitor and manage the hardware status of a server. It can run independently of the operating system and provides remote access and management capabilities. It can monitor and manage server temperature, voltage, fan speed, expansion cards, etc., and typically communicates with external systems via the IPMI (Intelligent Platform Management Interface) protocol.
[0031] I 2 C:I 2 I²C is a commonly used multi-master, bidirectional communication protocol for data transmission between short-distance, low-speed devices. It uses two lines for data transmission: a serial data line (SDA) and a serial clock line (SCL). The I²C protocol is widely used in embedded systems, including for communication between sensors, BMCs, and other peripheral devices.
[0032] Adapter Card: An adapter card is a hardware component typically used to facilitate data and signal transmission between the server motherboard and other devices. Through adapter cards, the motherboard can expand its interfaces to connect with hardware such as RAID cards, GPU cards, and storage devices, thereby enhancing system functionality and scalability.
[0033] MCIO: Multi-Channel I / O. MCIO is an interface type that supports high-speed data transmission, featuring multi-channel data transfer capabilities. It is commonly used to connect motherboards and expansion cards. It provides high-bandwidth I / O channels, enabling connections to high-performance hardware such as RAID cards and GPU cards in high-performance computing devices like servers. MCIO interfaces are typically flexibly configurable; different adapter cards can connect to the motherboard through different MCIO interfaces.
[0034] PCA9548 chip: PCA9548 is an I 2 C-bus switch chip, also known as I 2 C-type multiplexer. This chip allows a single host to control up to 8 I / O lines. 2 C sub-channel, therefore can be in an I 2 Multiple slave devices can be connected to the C-bus without being limited by address conflicts. By controlling the internal registers of the PCA9548 chip, a sub-channel can be selectively enabled or disabled to access slave devices on that channel.
[0035] SKU Number: In server configuration, SKUs can help manage different hardware configurations, such as specific card combinations and wiring methods. Each SKU clearly expresses a specific server configuration, and each SKU has a unique number indicating the specific hardware configuration.
[0036] Sensor ID: The sensor ID is used to identify a specific sensor device, and this ID is unique.
[0037] The following explains the method for marking the physical slots of an adapter card from the perspective of the marking device on the physical slot. Please refer to the relevant documentation. Figure 1 This is a flowchart illustrating a method for identifying the physical slot of an adapter card according to an embodiment of the present invention. The method for identifying the physical slot of the adapter card includes:
[0038] 101. Scan the communication bus to obtain the target combination information corresponding to the target adapter card combination to be connected, wherein the combination information is a set of adapter card numbers in the adapter card combination.
[0039] 102. Determine the target configuration number based on the connection information of the adapter card and the first mapping relationship, wherein the first mapping relationship is a preset mapping relationship between the configuration number and the connection information of the adapter card.
[0040] In this embodiment, the adapter card combination is a combination of adapter cards connected to the server. The adapter card can be connected to the server through the MCIO interface to realize the functional expansion of the server. The server is connected to different adapter card combinations, which are called different server configurations. Pre-defined adapter card combinations that meet different needs are called server configurations. A unique number is set for each server configuration, that is, the first mapping relationship between the configuration number and the adapter card is established.
[0041] The physical slot identification device of the adapter card can obtain the serial number of the adapter card connected to the server by scanning the communication bus, and then obtain the target combination information composed of the serial numbers of all connected adapter cards. Specifically, the connected adapter card can be located by polling the communication bus through the bus device address, and the adapter card number can be read.
[0042] Understandably, the adapter card number is used to identify the adapter card, is unique, and is assigned by the manufacturer during production.
[0043] To facilitate understanding, the following will be combined with Figure 2 Please provide a detailed explanation. Figure 2 This diagram illustrates a specific connection between an adapter card and a motherboard. Adapter cards 10 and 20 are connected to the server's motherboard 30 via the MCIO interface. 2 C bus, motherboard 30 sets BMC, via I 2 C-bus switch chip PCA9548 manages I 2 C-bus channel. Adapter card 10 has physical slots 0, 1, and 2. Expansion devices 11 and 12 are connected to physical slots 1 and 2 respectively. Physical slot 1 is connected to mcio0 via a cable, which is connected to the communication bus I2C16; physical slot 2 is connected to mcio2 via a cable, which is connected to the communication bus I2C18. Adapter card 20 has physical slots 3, 4, and 5. Expansion device 25 is connected to physical slot 5. Physical slot 5 is connected to mcio3 via a cable, which is connected to the communication bus.
[0044] By scanning the communication bus, the BMC locates the adapter cards 10 and 20 connected to the motherboard, reads the adapter card numbers of adapter cards 10 and 20, and thus obtains the number, type, and corresponding communication bus of the adapter cards connected to the motherboard 30, as a server configuration.
[0045] It should be noted that the identification device of the physical slot of the adapter card pre-stores the first mapping relationship. The first mapping relationship can be stored by establishing a two-dimensional array mapping table, and a unique configuration number can be set for each predefined server configuration. The configuration number can be a SKU number.
[0046] Therefore, a unique target configuration number can be determined based on the target adapter card combination and the first mapping relationship.
[0047] In some embodiments, to increase recognition accuracy, steps 101 and 102 can be repeated, specifically including:
[0048] Repeat the step of scanning the communication bus to confirm the target configuration number until a preset number of the same target configuration number are obtained consecutively.
[0049] Set the flag corresponding to the target configuration number to 1;
[0050] If the target configuration number cannot be obtained, the default configuration number is recorded.
[0051] The preset number can be set to 3 times. When the same target configuration number is obtained three times in a row, it can be considered that the correct target configuration number has been obtained. The flag corresponding to the target configuration number is set to 1, which is regarded as the sign that the correct target configuration number has been obtained. The step of scanning the communication bus to confirm the target configuration number can be stopped.
[0052] 103. Determine the target slot connection information corresponding to the target configuration number based on the target configuration number and the second mapping relationship. The second mapping relationship is a predefined mapping relationship between the configuration number and the slot connection information. The slot connection information includes the correspondence between the slot number and the communication bus number. The communication bus number is the number of the communication bus connected to the physical slot of the adapter card corresponding to the slot number.
[0053] In this embodiment, the physical slot identification device of the adapter card pre-stores a second mapping relationship. By establishing a two-dimensional array mapping table, a one-to-one mapping relationship is established between the configuration number and the slot connection information. After obtaining the target configuration number, the physical slot identification device of the adapter card can determine the correspondence between the target slot number and the target communication bus number of the adapter card connected to the server according to the second mapping relationship.
[0054] Understandably, the adapter card connects to the motherboard's communication bus via the MCIO interface. Different types of adapter cards have different physical slot configurations, and there is a fixed one-to-one mapping relationship between the physical slots and the MCIO interfaces, such as... Figure 3 The diagram shows four types of internal connection channels of the adapter card. Therefore, a mapping relationship can be established between the configuration number and the slot connection information based on the connection information of the adapter card.
[0055] 104. Determine the correspondence between the target sensor number and the target slot number based on the target slot connection information and the third mapping relationship. The third mapping relationship is a predefined mapping relationship between the sensor number and the communication bus number. The sensor is a virtual device mounted on the communication bus. The target sensor number is the number of the sensor mounted on the target communication bus. The target communication bus number is the number of the communication bus corresponding to the target slot connection information.
[0056] In this embodiment, the identification device for the physical slot of the adapter card pre-stores a third mapping relationship. By establishing a two-dimensional array mapping table, a one-to-one mapping relationship is established between the communication bus number and the sensor number of the sensor mounted on it. After obtaining the target slot connection information, the correspondence between the target sensor number and the target slot number can be obtained based on the composite mapping of the slot number, communication bus number, and sensor number.
[0057] In some embodiments, the correspondence between the target sensor number and the target slot number is determined based on the target slot connection information and the third mapping relationship, specifically including:
[0058] The sensors are iterated through to obtain the target sensor number;
[0059] Determine if the flag corresponding to the target configuration number is set to 1;
[0060] If it is 1, then the total target communication signal corresponding to the target sensor number is determined according to the target sensor number and the third mapping relationship;
[0061] The target slot number corresponding to the target sensor number is determined based on the target communication total signal and the target slot connection information.
[0062] 105. Based on the correspondence between the target sensor number and the target slot number, write the target slot number into the name of the target sensor.
[0063] In this embodiment, after the identification device of the physical slot of the adapter card obtains the correspondence between the target sensor number and the target slot number, it can rename the name of the target sensor and add the slot number to the target sensor number. The sensor number will be displayed on the sensor interface, so the user can intuitively view the actual position of the physical slot of the adapter card on the sensor interface.
[0064] Compared to related technologies, the method for identifying the physical slot of an adapter card provided by the embodiments of the present invention predefines a first mapping relationship between configuration number and combination information, a second mapping relationship between configuration number and slot connection information, and a mapping relationship between sensor number and communication bus number. By scanning the communication bus, the configuration number is confirmed, the physical slot of the adapter card is identified, and the slot number of the physical slot is written into the name of the sensor. This method has the following advantages:
[0065] Reducing manual intervention and improving operational efficiency: In complex hardware configurations, manually recording slot information is time-consuming and prone to errors.
[0066] By utilizing pre-defined mapping files, the BMC automatically identifies mapping relationships, reducing the need for manual calibration, lowering maintenance costs, and improving management efficiency. It also facilitates visualization of the management interface; by feeding back the identified physical slot locations to the sensor interface, system administrators can intuitively view the actual location of each adapter card, thereby simplifying the management process and improving the visualization and ease of use of expansion card management.
[0067] The present invention has been described above from the perspective of the method for marking the physical slots of the adapter card. The present invention will now be described from the perspective of the device for marking the physical slots of the adapter card.
[0068] Please see Figure 4 This is a virtual structural diagram of a physical slot identification device for an adapter card provided in an embodiment of the present invention. The physical slot identification device 200 for the adapter card includes:
[0069] The scanning unit 201 is used to scan the communication bus to obtain the target combination information corresponding to the connected target adapter card combination, wherein the combination information is a set of adapter card numbers in the adapter card combination.
[0070] The first determining unit 202 is used to determine the target configuration number according to the target combination information and the first mapping relationship, wherein the first mapping relationship is a preset mapping relationship between the configuration number and the combination information;
[0071] The second determining unit 203 is used to determine the target slot connection information corresponding to the target configuration number according to the target configuration number and the second mapping relationship. The second mapping relationship is a predefined mapping relationship between the configuration number and the slot connection information. The slot connection information includes the correspondence between the slot number and the communication bus number. The communication bus number is the number of the communication bus connected to the physical slot of the adapter card corresponding to the slot number.
[0072] The third determining unit 204 is used to determine the correspondence between the target sensor number and the target slot number according to the target slot connection information and the third mapping relationship. The third mapping relationship is a preset mapping relationship between the sensor number and the communication bus number. The sensor is a virtual device mounted on the communication bus. The target sensor number is the number of the sensor mounted on the target communication total signal. The target communication total signal is the number of the communication bus corresponding to the target slot connection information.
[0073] The writing unit 205 is used to write the target slot number into the name of the target sensor according to the correspondence between the target sensor number and the target slot number.
[0074] In one possible design, the scanning unit 201 and the first determining unit 202 are further used for:
[0075] Repeat the step of scanning the communication bus to confirm the target configuration number until a preset number of the same target configuration number are obtained consecutively.
[0076] Set the flag corresponding to the target configuration number to 1;
[0077] If the target configuration number cannot be obtained, the default configuration number is recorded.
[0078] In one possible design, the third determining unit 204 is also used for:
[0079] Traverse the sensors to obtain the target sensor number;
[0080] Determine if the flag corresponding to the target configuration number is set to 1;
[0081] If it is 1, then the total target communication signal corresponding to the target sensor number is determined according to the target sensor number and the third mapping relationship;
[0082] The target slot number corresponding to the target sensor number is determined based on the target communication total signal and the target slot connection information.
[0083] Figure 5 This is a schematic diagram of the server structure of the present invention, as shown below. Figure 5 As shown, the server 300 in this embodiment includes at least one processor 301, at least one network interface 304 or other user interface 303, a memory 305, and at least one communication bus 302. The server 300 may optionally include the user interface 303, including a display, keyboard, or clicking device. The memory 305 may include high-speed RAM, or it may also include non-volatile memory, such as at least one disk storage device. The memory 305 stores execution instructions. When the server 300 is running, the processor 301 communicates with the memory 305, and the processor 301 calls the instructions stored in the memory 305 to execute the aforementioned method for identifying the physical slot of the adapter card. The operating system 306 contains various programs for implementing various basic services and processing tasks based on the hardware.
[0084] The server provided in this embodiment of the invention can execute the technical solution of the above-described method for identifying the physical slot of the adapter card. Its implementation principle and technical effect are similar, and will not be repeated here.
[0085] This invention also provides a computer-readable storage medium storing a computer program that, when executed by a computer, implements the method flow related to the identification device for the physical slot of the adapter card in any of the above method embodiments. Correspondingly, the computer can be the identification device for the physical slot of the adapter card.
[0086] This invention also provides a computer program or a computer program product including a computer program. When executed on a computer, the computer program causes the computer to implement the method flow related to the identification device for the physical slot of the adapter card in any of the above method embodiments. Correspondingly, the computer can be the aforementioned identification device for the physical slot of the adapter card.
[0087] Those skilled in the art will understand that all or part of the steps of the above-described method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments; and the aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.
[0088] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for identifying a physical slot of a switch card, the method comprising: The method comprises the following steps: scanning a communication bus to obtain target combination information corresponding to a connected target adapter card combination, wherein the combination information is a set of numbers of adapter cards in the adapter card combination; determining a target configuration number according to the target combination information and a first mapping relationship, wherein the first mapping relationship is a preset defined mapping relationship between the configuration number and the combination information; determining target slot connection information corresponding to the target configuration number according to the target configuration number and a second mapping relationship, wherein the second mapping relationship is a preset defined mapping relationship between the configuration number and the slot connection information, the slot connection information comprises a corresponding relationship between a slot number and a communication bus number, and the communication bus number is a number of a communication bus connected to a physical slot of the adapter card corresponding to the slot number; determining a corresponding relationship between a target sensor number and a target slot number according to the target slot connection information and a third mapping relationship, wherein the third mapping relationship is a preset defined mapping relationship between the sensor number and the communication bus number, the sensor is a virtual device mounted on the communication bus, the target sensor number is a number of the sensor mounted on a target communication bus signal, and the target communication bus signal is a number of the communication bus corresponding to the target slot connection information; writing the target slot number into a name of the target sensor according to the corresponding relationship between the target sensor number and the target slot number, The method further comprises the following steps: repeating the step of scanning the communication bus to confirm the target configuration number until a preset number of same target configuration numbers are continuously obtained; setting a flag corresponding to the target configuration number to 1, The step of determining the corresponding relationship between the target sensor number and the target slot number according to the target slot connection information and the third mapping relationship comprises the following steps: traversing the sensor to obtain the target sensor number; judging whether the flag corresponding to the target configuration number is set to 1; if yes, determining the target communication bus signal corresponding to the target sensor number according to the target sensor number and the third mapping relationship; determining the target slot number corresponding to the target sensor number according to the target communication bus signal and the target slot connection information.
2. The method of claim 1, wherein, The step of writing the target slot number into the name of the target sensor according to the corresponding relationship between the target sensor number and the target slot number comprises the following step: renaming the target sensor to write the target slot number into the name of the target sensor.
3. The method of claim 1, wherein, The method further comprises the following step: if the target configuration number cannot be obtained, recording a default configuration number.
4. The method of claim 1, wherein, The first mapping relationship, the second mapping relationship and the third mapping relationship are two-dimensional array mapping tables.
5. A device for identifying the physical slot of an adapter card, characterized in that, The method comprises the following steps: a scanning unit is configured to scan a communication bus to obtain target combination information corresponding to a connected target adapter card combination, wherein the combination information is a set of numbers of adapter cards in the adapter card combination; The first determining unit is configured to determine a target configuration number according to the target combination information and a first mapping relationship, wherein the first mapping relationship is a preset and defined mapping relationship between the configuration number and the combination information. The second determining unit is configured to determine target slot connection information corresponding to the target configuration number according to the target configuration number and a second mapping relationship, wherein the second mapping relationship is a preset and defined mapping relationship between the configuration number and the slot connection information, the slot connection information includes a correspondence between a slot number and a communication bus number, and the communication bus number is a number of a communication bus connected to a physical slot of the adapter card corresponding to the slot number. The third determining unit is configured to determine a correspondence between a target sensor number and a target slot number according to the target slot connection information and a third mapping relationship, wherein the third mapping relationship is a preset and defined mapping relationship between the sensor number and the communication bus number, the sensor is a virtual device mounted on the communication bus, the target sensor number is a number of the sensor mounted on a target communication bus signal, and the target communication bus signal is a number of the communication bus corresponding to the target slot connection information. The writing unit is configured to write the target slot number into a name of the target sensor according to the correspondence between the target sensor number and the target slot number. The scanning unit and the first determining unit are further configured to: repeat the step of scanning the communication bus to determine the target configuration number until a preset number of same target configuration numbers are obtained in succession; and set a flag corresponding to the target configuration number to 1. The third determining unit is further configured to: traverse the sensor to obtain the target sensor number; determine whether the flag corresponding to the target configuration number is set to 1; if the flag is set to 1, determine the target communication bus signal corresponding to the target sensor number according to the target sensor number and the third mapping relationship; and determine the target slot number corresponding to the target sensor number according to the target communication bus signal and the target slot connection information.
6. A computer apparatus comprising a memory, a processor, and a computer program stored on the memory, wherein the computer program, when executed by the processor, causes the processor to perform the method of any one of claims 1 to 5. The processor executes the computer program to implement the steps of the method of any one of claims 1-4.
7. A computer-readable storage medium having stored thereon instructions, The instruction is executed by the processor to implement the steps of the method of any one of claims 1-4.
8. A computer program product comprising instructions, characterized in that, The instruction is executed by the processor to implement the steps of the method of any one of claims 1-4.
Citation Information
Patent Citations
Information processing method and electronic equipment
CN107193763A
PCIe bandwidth allocation method and server
CN116827797A