Hardware management system, method, and apparatus, and computer device
By introducing PCIe network card and microcontrol module into the server daughter card, the hardware management of the daughter card is realized, which solves the problem that the existing technology cannot meet the needs of out-of-band management of the child card, and reduces the cost of the child card environment management.
Patent Information
- Application Number
- PCT/CN2024/098765
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-06-28
- Filing Date
- 2024-06-12
- Publication Date
- 2025-01-02
AI Technical Summary
The existing server hardware management system cannot meet the out-of-band management needs of daughter cards, cannot control the function implementation of the daughter cards, and cannot meet the use needs of the daughter cards.
Provides a hardware management system, including PCIe network card, microcontrol module and business module. The PCIe network card responds to the address request instructions of the microcontrol module, obtains the communication address configured by the server for the business module, and sends control instructions to the microcontrol module. The module identifies the field content of the control command, and based on the operating status of the content control module and the business module, the service module processes the business data of the target task.
Through the interaction between PCIe network card and microcontroller module, the status of the service module in the daughter card is controlled to meet the needs of the daughter card, and there is no need for additional BMC, which reduces the environmental management cost of the daughter card.
Smart Images

Figure CN2024098765_02012025_PF_FP_ABST
Abstract
Description
Hardware management system, method, device and computer equipment
[0001] Related applications
[0002] This application claims priority to Chinese patent application No. 202310783780.0 filed on June 28, 2023, the entire contents of which are incorporated by reference into this application. Technical Field
[0003] The present application relates to the field of communication technology, and in particular to hardware management systems, methods, devices, and computer equipment. Background Art
[0004] A daughterboard is an add-on card that is attached to a computer adapter card. Currently, most servers use the PCIe (peripheral component interconnect express) standard interface to communicate with the daughterboard, thereby achieving certain functions.
[0005] As a daughter card with a standard PCIe interface, its functions are gradually enriched and it needs to process various types of business data. Therefore, the management of the hardware environment of its daughter card is particularly important, which is closely related to the needs of the business scenario.
[0006] Currently, server hardware management is primarily accomplished through a Baseboard Management Controller (BMC). As a dedicated controller for monitoring and managing servers, the BMC supports the standard IPMI specification and can manage the server's environment and status. However, the BMC cannot meet the out-of-band management requirements of daughter cards and cannot control their functionality, thus failing to meet the needs of daughter cards.
[0007] Summary of the Invention
[0008] The embodiments of the present application at least provide a hardware management system, method, apparatus, and computer equipment.
[0009] In the first aspect, an embodiment of the present application provides a hardware management system, comprising: a high-speed peripheral component interconnect standard PCIe network card, a microcontroller module, and a business module; wherein the PCIe network card, the microcontroller module, and the business module are all installed in a single-board daughter card. The PCIe network card, in response to the address request instruction of the microcontroller module, obtains the communication address configured by the server for the business module, and sends a control instruction to the microcontroller module based on the communication address. The microcontroller module identifies the field content of the control instruction and controls the operating status of the microcontroller module and the business module based on the field content. The business module processes the business data of the target task in the server based on the operating status.
[0010] In the second aspect, an embodiment of the present application also provides a hardware management method, which is applied to a single-board daughter card, and includes the following steps: in response to an address request instruction, obtaining the communication address configured by the server for the single-board daughter card, and based on the communication address, sending a control instruction to the single-board daughter card; identifying the field content of the control instruction, and controlling the operating status of the single-board daughter card based on the field content; based on the operating status, processing the business data of the target task in the server.
[0011] In the third aspect, an embodiment of the present application also provides a hardware management device, comprising the following components: an acquisition unit, for obtaining the communication address configured by the server for the single-board daughter card in response to an address request instruction, and sending a control instruction to the single-board daughter card based on the communication address; a control unit, for identifying the field content of the control instruction, and controlling the operating status of the single-board daughter card based on the field content; a business unit, for processing the business data of the target task in the server based on the operating status.
[0012] In a fourth aspect, an embodiment of the present application further provides a computer device comprising: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor. When the computer device is running, the processor and the memory communicate through the bus, and when the machine-readable instructions are executed by the processor, the steps in the implementation of the above-mentioned second aspect are performed.
[0013] In a fifth aspect, the present application also provides a computer storage medium storing computer-executable instructions, wherein the computer-executable instructions are used to execute the hardware management method described in any one of the above items of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. The drawings herein are incorporated into and constitute a part of the specification. These drawings illustrate embodiments consistent with the present application and, together with the specification, are used to illustrate the technical solutions of the present application. It should be understood that the following drawings only illustrate certain embodiments of the present application and should not be regarded as limiting the scope. For those of ordinary skill in the art, other relevant drawings can be obtained based on these drawings without inventive effort.
[0015] FIG1 shows an architecture diagram of a hardware management system provided in an embodiment of the present application;
[0016] FIG2 is a schematic diagram showing the interaction between a daughter card and a server provided in an embodiment of the present application;
[0017] FIG3 is a schematic diagram showing a management method for managing a subcard through a BMC according to an embodiment of the present application;
[0018] FIG4 shows a sequence diagram of the interaction between a PCIe network card, a microcontroller module, and a service module provided by an embodiment of the present application;
[0019] FIG5 shows a sequence diagram of another embodiment of the present application, wherein the PCIe network card, the microcontroller module and the service module interact with each other;
[0020] FIG6 shows a flowchart of a hardware management method provided in an embodiment of the present application;
[0021] FIG7 shows a schematic diagram of a hardware management device provided in an embodiment of the present application;
[0022] FIG8 shows a schematic diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0023] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of this application.
[0024] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, it does not need to be further defined or explained in subsequent drawings.
[0025] The term "and / or" herein simply describes an association relationship, indicating that three relationships can exist. For example, A and / or B can represent the existence of A alone, the simultaneous existence of A and B, and the existence of B alone. In addition, the term "at least one" herein refers to any combination of at least two of any one or more of a plurality of items. For example, "at least one of A, B, and C" can represent any one or more elements selected from the set consisting of A, B, and C.
[0026] A daughterboard is an add-on card that is attached to a computer adapter card. Currently, most servers use the PCIe (peripheral component interconnect express) standard interface to communicate with the daughterboard, thereby achieving certain functions.
[0027] As a daughter card with a standard PCIe interface, its functions are gradually enriched and it needs to process various types of business data. Therefore, the management of the hardware environment of its daughter card is particularly important, which is closely related to the needs of the business scenario.
[0028] Currently, server hardware management is primarily accomplished through a Baseboard Management Controller (BMC). As a dedicated controller for monitoring and managing servers, the BMC supports the standard IPMI specification and can manage the server's environment and status. However, the BMC cannot meet the out-of-band management requirements of daughter cards and cannot control their functionality, thus failing to meet the needs of daughter cards.
[0029] Based on the above research, the present application provides a hardware management system, method, apparatus and computer equipment, which is used to manage the daughter card of the server, including: PCIe network card, micro-control module and business module. Here, the PCIe network card can respond to the address request instruction of the micro-control module, obtain the communication address configured by the server for the business module, and send a control instruction to the micro-control module. The micro-control module can identify the field content of the control instruction and control the operating status of the business module of the micro-control module based on the field content. The business module can process the business data of the target task based on the operating status. Based on this, the lightweight hardware management system provided in the present application interacts between the PCIe network card and the micro-control module to control the status of the business module in the daughter card, and then controls the business module to process the business data of the target task. Therefore, when the use requirements of the daughter card are met, there is no need to use the BMC to perform environmental management of the daughter card, thereby reducing the environmental management cost of the daughter card.
[0030] To facilitate understanding of this embodiment, we first introduce in detail a hardware management system disclosed in an embodiment of this application. The hardware management system is installed in a sub-card of the server. The sub-card is external hardware connected to the server through the above-mentioned PCIe standard interface, and is used to collaborate with the server to process target tasks.
[0031] Referring to Figure 1, which is an architectural diagram of a hardware management system provided in an embodiment of the present application, the hardware management system includes: a PCIe network card 10, a microcontroller module 20, and a service module 30, wherein the PCIe network card 10 is used to: respond to a request instruction from the microcontroller module, obtain the communication address configured by the server for the service module, and send a control instruction to the microcontroller module.
[0032] The hardware management system provided in the embodiment of the present application is installed in the daughter card of the server. FIG2 is a schematic diagram of the interaction between the daughter card and the server. As can be seen from the figure, the daughter card can be connected to the server host through the PCIe3.0×8 interface. Specifically, communication can be carried out between the host and the PCIe network card. At the same time, the PCIe network card can exchange data with the microcontroller module (i.e., the MCU management unit) through the IIC interface and two GPIO channels, so that the microcontroller module controls the business module to perform the target task.
[0033] In specific implementations, a PCIe network card can act as a master device, and a microcontroller module can act as a slave device. Generally speaking, a slave device cannot actively initiate communication requests to the master device. Figure 3 shows a schematic diagram of how a daughter card is managed through a BMC. The PCIe network card, acting as a master device, can communicate with the daughter card via the interconnect bus. Specifically, when the BMC controls the daughter card, the PCIe network card can initiate communication with the daughter card via the interconnect bus based on the BMC's control instructions.
[0034] In the embodiment of the present application, as shown in Figure 2, the PCIe network card can exchange data with the microcontroller module via the IIC interface and two GPIO channels. Therefore, the present application adds two additional GPIO channels between the PCIe network card and the microcontroller module. When the microcontroller module is ready, it can actively send a request instruction to the microcontroller module via the GPIO channels, thereby enabling the slave device to actively send a request to the master device, thereby meeting the usage requirements of the daughter card.
[0035] After receiving the request, the PCIe network card communicates with the host to indicate the communication address configured for the service module, thereby assigning a target task to the service module based on the communication address. The PCIe network card then receives control instructions from the host for the daughter card and sends them to the microcontroller, which then controls the entire daughter card.
[0036] The micro-control module 20 identifies the field content of the control instruction and controls the operation status of the micro-control module and the service module based on the field content.
[0037] Business module 30: processes business data of the target task based on the running status.
[0038] In the embodiment of the present application, the microcontroller module can be used to control the entire daughter card. Specifically, the microcontroller module can implement functions such as powering on and off, resetting, etc. of each component of the daughter card. It can also be used to request the configuration of a communication address for the service module of the daughter card. Here, powering on and off is used to indicate whether to power on or off each component of the daughter card, and resetting is used to indicate whether to reset the voltage of a component of the daughter card when a fault occurs.
[0039] After identifying the control instruction, the microcontroller module can read the field content in the register corresponding to the control instruction and control the operating status of each part in the daughter card based on the field content.
[0040] For example, if the identified control instruction is to power off the microcontrol module and the service module, the service area corresponding to the service module and the microcontrol module area can be powered off respectively to put the service module and the microcontrol module in a power-off state.
[0041] After detecting the business data of the target task sent by the server, the business data can be sent to the business module for processing. Specifically, the operating status of the business module can be first determined, and when the operating status meets the data processing conditions, the business module can be instructed to process the business data. For example, when the operating status is the power-on state, it can be determined that the operating status of the business module meets the data processing conditions.
[0042] It can be seen from the above description that the present application provides a hardware management system for managing the daughter card of the server, which includes: a PCIe network card, a micro-control module and a business module. Here, the PCIe network card can respond to the address request instruction of the micro-control module, obtain the communication address configured by the server for the business module, and send a control instruction to the micro-control module. The micro-control module can identify the field content of the control instruction and control the operating status of the business module of the micro-control module based on the field content. The business module can process the business data of the target task based on the operating status. Based on this, the lightweight hardware management system provided in the present application interacts between the PCIe network card and the micro-control module to control the status of the business module in the daughter card, and then controls the business module to process the business data of the target task. Therefore, when the use requirements of the daughter card are met, there is no need to use the BMC to perform environmental management of the daughter card, thereby reducing the environmental management cost of the daughter card.
[0043] In one embodiment, the PCIe network card 10 is further configured to detect the operating status of the server and send a control signal to the microcontroller module via the second GPIO channel when the server is in a target state.
[0044] In an embodiment of the present application, the second GPIO channel can be used as a ready channel, which can be used to indicate whether the server's operating status can normally allocate target tasks to the business module. Here, the target status can be a ready state.
[0045] When it is determined that the server is in the target state, the server can communicate with the PCIe network card so that the PCIe network card sends a control signal to the microcontroller module through the ready channel. The control signal can be used to instruct the microcontroller module to prepare for communication before data processing.
[0046] In an embodiment of the present application, the GPIO channel can be used to trigger signaling between the microcontroller module and the PCIe network card to implement an active communication mechanism between the microcontroller module and the PCIe network card, so as to efficiently manage the hardware environment.
[0047] In one embodiment, the above-mentioned micro-control module 20 is also used to: initiate a communication request to the PCIe network card, and after reading the PCIe network card's response to the communication request and identifying the content in the register of the micro-control module, instruct the PCIe network card to send a configuration request to the server, wherein the configuration request is used to instruct the server to configure a communication address for the business module.
[0048] In the embodiment of the present application, an interaction protocol between the PCIe network card and the microcontroller module can be firstly formulated, and the microcontroller module can proactively initiate a communication request to the PCIe network card based on the interaction protocol. Specifically, the read request can be sent to the PCIe network card through the first GPIO channel.
[0049] FIG4 is a sequence diagram of the interaction between a PCIe network card, a microcontroller module, and a service module, wherein the microcontroller module can generate an interrupt via a GPIO falling edge, thereby identifying a read request to the PCIe network card.
[0050] Next, the PCIe network card can respond to the communication request from the microcontroller module and return the device address (0x04 in Figure 4) and register address (0xfa in Figure 4) to the microcontroller module. The microcontroller module can then generate an interrupt and identify the content in register 0xfa. Considering that the above-mentioned single-board daughter card can process the business data of the target task through the business module, a communication address can be configured for the single-board daughter card to enable communication between the single-board daughter card and the server.
[0051] Here, as shown in Figure 4, first, you can request the server to configure a slot number for the single board daughter card, and then assign an IP address and MAC address to the single board daughter card based on the slot number. The specific method for configuring the communication address for the single board daughter card is as follows and will not be expanded here.
[0052] In an embodiment of the present application, the microcontrol module can actively communicate with the PCIe network card, for example, initiate a communication request to the PCIe network card, thereby realizing an active communication mechanism between the microcontrol module and the PCIe network card, so as to facilitate efficient management of the hardware environment.
[0053] In one embodiment, the above-mentioned micro-control module 20 is also used to: write fill data in the register of the micro-control module in response to the read request of the PCIe network card, so that the PCIe network card obtains the slot identifier configured for the single-board daughter card after reading the fill data, and determines the communication address of the single-board daughter card based on the slot identifier, wherein the communication address includes: IP address and MAC address.
[0054] In the embodiment of the present application, the above-mentioned fill data can be the field content corresponding to the quick configuration instruction. Here, the field content of the quick configuration instruction can be 0xb0. Based on this, it can be seen from Figure 4 that the fill data written by the microcontroller module in register 0xfa can be 0x000xb0. After the PCIe network card reads the content 0xb0 in 0xfa, it can determine that it has recognized the quick configuration instruction and initiate an address request instruction to instruct the server to configure the slot identifier for the single-board daughter card.
[0055] It should be understood that, considering that the server will subsequently need to configure the IP address and MAC address for the single-board daughter card based on the slot identifier of the single-board daughter card, the slot identifier of the single-board daughter card can be configured by the server without reading the actual slot number of the single-board daughter card.
[0056] After reading the above 0xb0 in the register, the server can determine that the address request instruction sent by the PCIe network card has been detected, and in response to the address request instruction, allocate a slot identifier for the single-board daughter card. As shown in Figure 4, the server can instruct the PCIe network card to write the slot identifier (i.e., slot in Figure 4) into the register to instruct the microcontroller module to read the slot identifier.
[0057] Next, the microcontroller module can respond to the address acquisition request of the service module, assemble the IP address and MAC address for the single board daughter card based on the above slot identifier, and return the slot identifier, IP address and MAC address to the service module.
[0058] In an embodiment of the present application, the microcontrol module can actively communicate with the PCIe network card, for example, actively requesting to configure a communication address for the single-board daughter card, thereby realizing an active communication mechanism between the microcontrol module and the PCIe network card, so as to facilitate efficient management of the hardware environment.
[0059] In one embodiment, the microcontroller module 20 is further configured to send a ready signal to the PCIe network card via a first GPIO channel of a general purpose input / output port, so that the PCIE network card communicates with the microcontroller module based on the ready signal.
[0060] In the embodiment of the present application, as shown in FIG2 , the PCIe network card can exchange data with the microcontroller module through the IIC interface and two GPIO channels, wherein the GPIO channel includes a chat channel and the above-mentioned ready channel.
[0061] When the microcontroller is in the ready state, it needs to request signaling from the PCIe network card. At this point, the microcontroller can send a ready signal to the PCIe network card via the chat channel. The PCIe network card can then respond to the ready signal and proactively initiate an interaction command to the microcontroller. Subsequently, the PCIe network card and the microcontroller can communicate with each other via the chat channel, such as interrupts and shortcut configuration commands.
[0062] In an embodiment of the present application, two additional GPIO channels can be added between the PCIe network card and the microcontroller module. When the microcontroller module is ready, a request instruction can be actively sent to the microcontroller module through the GPIO channel to enable the slave device to actively send a request to the master device to meet the usage requirements of the daughter card.
[0063] In one embodiment, the above-mentioned control instruction includes: a first reset instruction and a second reset instruction, and the above-mentioned microcontrol module 20 is also used to: after receiving the first reset instruction, reset the microcontrol module in response to the first reset instruction, or, after receiving the second reset instruction, reset the business module in response to the second reset instruction.
[0064] In the embodiment of the present application, considering that at least some modules of the single-board daughter card may have operational failures during operation, it is necessary to reset the failed area to restore normal operation.
[0065] Based on this, the microcontroller module can send control instructions through the above-mentioned chat channel, which are used to instruct the corresponding module in the single-board daughter card to perform power-on and power-off or reset processing. Specifically, the control instructions include: 0x5a01 business module power-off instruction (corresponding field content is 0x5a01), business module power-on instruction (corresponding field content is 0x5a02), business module power-off reset instruction (corresponding field content is 0x5a03), business module reset instruction (corresponding field content is 0x5a04), and microcontroller module reset instruction (corresponding field content is 0x5a05).
[0066] It should be understood that the power-on and power-off instructions are used to instruct the corresponding module area to be powered on or off, and the reset instruction is used to instruct the corresponding module area to be reset. Here, the reset process can be understood as restarting the module area.
[0067] In a specific implementation, the microcontroller module can be reset using the first reset instruction, which is the aforementioned 0x5a05. Furthermore, the service module can be reset using the second reset instruction, which includes 0x5a03 and 0x5a04. The specific method for controlling the single-board daughter card based on this control instruction is described below and will not be detailed here.
[0068] In the embodiment of the present application, considering that at least some modules of the single-board daughter card may have operational failures during operation, it is necessary to reset the failed area. Based on this, control instructions for the single-board daughter card can be defined in the above-mentioned interaction protocol to achieve control of the single-board daughter card.
[0069] In one embodiment, the PCIe network card 10 is further configured to determine the field content corresponding to the control instruction and write the field content into the register of the microcontroller module.
[0070] In an embodiment of the present application, the address of the register corresponding to the control instruction can be the same as or different from the above-mentioned 0xfa. For example, the register address can be set to 0xff. FIG5 is another sequence diagram of the interaction between the PCIe network card, the microcontroller module, and the service module. Here, when it is necessary to power off the service area corresponding to the service module, the PCIe network card can write the field content corresponding to the service module power-off instruction: 0x5a01 into the third register in the microcontroller module. After reading 0x5a01, the microcontroller module can control the service area to power off.
[0071] In addition, when the microcontroller unit is detected to be in an abnormal operating state, the microcontroller unit can be reset using the first reset instruction. Specifically, the PCIe network card can write the field content corresponding to the microcontroller module reset instruction: 0x5a05 into the third register of the microcontroller module. After reading 0x5a05, the microcontroller module can perform a soft reset on the module area in which it is located.
[0072] In the embodiment of the present application, the single-board daughter card can be controlled by pre-prepared control instructions to realize the functions of the single-board daughter card, thereby realizing the management of the single-board daughter card.
[0073] Additionally, to facilitate understanding of this embodiment, this embodiment also provides a hardware management method. The hardware management method provided in this embodiment is generally executed by a computer device with certain computing capabilities. In some possible implementations, this hardware management method can be implemented by a processor invoking computer-readable instructions stored in a memory.
[0074] Referring to FIG. 6 , which is a flowchart of a hardware management method provided in an embodiment of the present application, the hardware management method includes steps S601 - S605 .
[0075] S601: In response to an address request instruction, obtain a communication address configured by a server for the single-board daughter card, and send a control instruction to the single-board daughter card based on the communication address.
[0076] S603: Identify the field content of the control instruction, and control the operating state of the single-board daughter card based on the field content.
[0077] S605: Based on the running status, process the business data of the target task in the server.
[0078] In the embodiment of the present application, the specific implementation process of the hardware management method can be referred to the embodiment corresponding to Figure 1, which will not be repeated here.
[0079] In summary, in the embodiment of the present application, first, in response to the address request instruction, the communication address configured by the server for the business module can be obtained, and a control instruction can be sent to the single-board daughter card based on the communication address. After identifying the field content of the control instruction, the operating state of the single-board daughter card can be controlled based on the field content, and based on the operating state, the business data of the target task in the server can be processed. Based on this, the lightweight hardware management method provided in the present application interacts between the PCIe network card and the microcontroller module to control the state of the business module in the daughter card, and then controls the business module to process the business data of the target task, so that when the use requirements of the daughter card are met, there is no need to use the BMC to perform environmental management of the daughter card, thereby reducing the environmental management cost of the daughter card.
[0080] Those skilled in the art will understand that in the above-mentioned method of the specific implementation method, the writing order of each step does not mean a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of each step should be determined by its function and possible internal logic.
[0081] Based on the same inventive concept, a hardware management device corresponding to the hardware management method is also provided in the embodiment of the present application. Since the principle of solving the problem by the device in the embodiment of the present application is similar to the above-mentioned hardware management method in the embodiment of the present application, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.
[0082] 7 , which is a schematic diagram of a hardware management device provided in an embodiment of the present application, the device includes: an acquisition unit 71 , a control unit 72 , and a service unit 73 .
[0083] The acquisition unit 71 is configured to acquire the communication address configured by the server for the single board daughter card in response to the address request instruction, and send a control instruction to the single board daughter card based on the communication address.
[0084] The control unit 72 is used to identify the field content of the control instruction and control the operating state of the single board daughter card based on the field content.
[0085] The business unit 73 is configured to process the business data of the target task in the server based on the running status.
[0086] In an embodiment of the present application, first, in response to an address request instruction, the communication address configured by the server for the business module can be obtained, and a control instruction can be sent to the single-board daughter card based on the communication address. After identifying the field content of the control instruction, the operating state of the single-board daughter card can be controlled based on the field content, and based on the operating state, the business data of the target task in the server can be processed. Based on this, the lightweight hardware management method provided in the present application interacts between the PCIe network card and the microcontroller module to control the state of the business module in the daughter card, and then controls the business module to process the business data of the target task, so that when the use requirements of the daughter card are met, there is no need to use the BMC to perform environmental management of the daughter card, thereby reducing the environmental management cost of the daughter card.
[0087] In one possible implementation, the control unit 72 is further used to: initiate a communication request to the PCIe network card, and after reading the PCIe network card's response to the communication request and identifying the content in the register of the microcontroller module, instruct the PCIe network card to send a configuration request to the server, wherein the configuration request is used to instruct the server to configure a communication address for the single-board daughter card.
[0088] In one possible implementation, the control unit 72 is further used to: write fill data in the register of the microcontrol module in response to a read request of the PCIe network card, so that the PCIe network card obtains the slot identifier configured for the single-board daughter card after reading the fill data, and determines the communication address of the single-board daughter card based on the slot identifier, wherein the communication address includes: an IP address and a MAC address.
[0089] In a possible implementation, the control unit 72 is further configured to send a ready signal to the PCIe network card via a first GPIO channel of a general purpose input / output port, so that the PCIE network card communicates with the microcontroller module based on the ready signal.
[0090] In a possible implementation, the acquiring unit 71 is further configured to: send a control signal to the microcontroller module via a second GPIO channel when detecting that the server is in the target state.
[0091] In one possible implementation, the control instruction includes: a first reset instruction and a second reset instruction, and the control unit 72 is further used to: after receiving the first reset instruction, reset the microcontrol module in response to the first reset instruction, or, after receiving the second reset instruction, reset the business module in response to the second reset instruction.
[0092] In a possible implementation, the acquiring unit 71 is further configured to determine the field content corresponding to the control instruction and write the field content into the register of the microcontroller module.
[0093] For descriptions of the processing flow of each unit in the device and the interaction flow between each unit, reference can be made to the relevant descriptions in the above method embodiment, which will not be described in detail here.
[0094] Corresponding to the hardware management method in Figure 6, an embodiment of the present application also provides a computer device 800, as shown in Figure 8, which is a structural diagram of the computer device 800 provided in an embodiment of the present application, including: a processor 81, a memory 82, and a bus 83; the memory 82 is used to store execution instructions, including a memory 821 and an external memory 822; the memory 821 here is also called an internal memory, which is used to temporarily store the calculation data in the processor 81, as well as the data exchanged with the external memory 822 such as a hard disk. The processor 81 exchanges data with the external memory 822 through the memory 821. When the computer device 800 is running, the processor 81 communicates with the memory 82 through the bus 83, so that the processor 81 executes the following instructions: in response to an address request instruction, obtain the communication address configured by the server for the single board daughter card, and based on the communication address, send a control instruction to the single board daughter card; identify the field content of the control instruction, and control the operating status of the single board daughter card based on the field content; based on the operating status, process the business data of the target task in the server.
[0095] The present application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, executes the steps of the hardware management method described in the above method embodiment. The storage medium may be a volatile or non-volatile computer-readable storage medium.
[0096] An embodiment of the present application also provides a computer program product, which carries program code. The instructions included in the program code can be used to execute the steps of the hardware management method described in the above method embodiment. For details, please refer to the above method embodiment and will not be repeated here.
[0097] The computer program product may be implemented in hardware, software, or a combination thereof. In one embodiment, the computer program product is implemented as a computer storage medium. In another embodiment, the computer program product is implemented as a software product, such as a software development kit (SDK).
[0098] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system and device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. In the several embodiments provided in this application, it should be understood that the disclosed system, device and method can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0099] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.
[0100] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0101] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0102] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The scope of protection of the present application is not limited thereto. Although the present application has been described in detail with reference to the above-mentioned embodiments, those skilled in the art should understand that any person skilled in the art can modify or easily conceive of changes to the technical solutions described in the above-mentioned embodiments within the technical scope disclosed in the present application, or perform equivalent replacements for some of the technical features thereof. These modifications, changes, or replacements do not deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.
Claims
1. A hardware management system, wherein: The system comprises: a high-speed peripheral component interconnect standard PCIe network card, a microcontroller module and a service module; wherein the PCIe network card, the microcontroller module and the service module are all installed in a single-board daughter card; The PCIe network card, in response to the address request instruction of the micro-control module, obtains the communication address configured by the server for the business module, and sends a control instruction to the micro-control module based on the communication address; The microcontrol module identifies the field content of the control instruction and controls the operation status of the microcontrol module and the business module based on the field content; The business module processes the business data of the target task in the server based on the running status.
2. The system according to claim 1, wherein: The micro-control module is also used to: initiate a communication request to the PCIe network card, and after the PCIe network card responds to the communication request and identifies the content in the register of the micro-control module, instruct the PCIe network card to send a configuration request to the server, wherein the configuration request is used to instruct the server to configure a communication address for the single-board daughter card.
3. The system according to claim 2, wherein: The micro-control module is also used to: write fill data in the register in response to a read request of the PCIe network card, so that the PCIe network card can obtain the slot identifier configured for the single-board daughter card after reading the fill data, and determine the communication address of the single-board daughter card based on the slot identifier, wherein the communication address includes: an IP address and a MAC address.
4. The system according to claim 1, wherein: The micro-control module is further used to send a preparation signal to the PCIe network card through a first GPIO channel of a general purpose input and output port, so that the PCIE network card communicates with the micro-control module based on the preparation signal.
5. The system according to claim 1, wherein: The PCIe network card is further used to send a control signal to the micro-control module through a second GPIO channel when detecting that the server is in a target state.
6. The system according to claim 1, wherein: The control instructions include: a first reset instruction and a second reset instruction; The microcontrol module is further configured to: after receiving the first reset instruction, reset the microcontrol module in response to the first reset instruction, or after receiving the second reset instruction, reset the service module in response to the second reset instruction.
7. The system according to claim 6, wherein: The PCIe network card is further used to: determine the field content corresponding to the control instruction, and write the field content into the register of the micro-control module.
8. A hardware management method, applied to a single-board daughter card, wherein: The method comprises: In response to the address request instruction, obtaining the communication address configured by the server for the single board daughter card, and sending a control instruction to the single board daughter card based on the communication address; Identify the field content of the control instruction, and control the running state of the single board daughter card based on the field content; Based on the running status, business data of the target task in the server is processed.
9. A hardware management device, wherein: The device comprises: An acquisition unit, configured to acquire, in response to an address request instruction, a communication address configured by the server for the single-board daughter card, and send a control instruction to the single-board daughter card based on the communication address; A control unit, configured to identify the field content of the control instruction and control the operation state of the single board daughter card based on the field content; The business unit is used to process the business data of the target task in the server based on the running status.
10. A computer device, wherein: The device includes: a processor, a memory and a bus, the memory stores machine-readable instructions executable by the processor, when the computer device is running, the processor and the memory communicate through the bus, and when the machine-readable instructions are executed by the processor, the steps of the hardware management method as described in claim 8 are performed.
Citation Information
Patent Citations
Method, device and system for communicating with single board
CN102170366A
Methods, platform devices, and systems for setting business board addresses
CN102273178A
Plug-in card type PTN, OTN and SDH transmission equipment board card management device and management method
CN111737179A
Method and system of obtaining physical slot number of single board, and type of slot
CN1960261A
Control device and control system
CN218124727U