A Server OCP Network Card Status Acquisition Device and Method
By introducing the first motherboard and the second motherboard into the server, obtaining the I2C command method of the OCP network card and controlling the front-mounted ear indicator light, the problem that the standard OCP network card cannot easily observe the working status of the network port is solved, and adaptability and flexibility to self-developed and out-of-buy network cards are achieved.
Patent Information
- Application Number
- CN202211201063.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-29
- Publication Date
- 2025-06-13
- Estimated Expiration
- 2042-09-29
AI Technical Summary
Standard OCP network cards cannot easily observe the working status of the network port on site. The existing solutions require self-developed OCP network cards and motherboards, and the adaptability is poor and cannot support the purchase of standard OCP network cards from outside.
By introducing the first motherboard and the second motherboard into the server, the first motherboard obtains the I2C command method of the OCP network card and notifies the second motherboard. The second motherboard communicates with the network card through the I2C command method of the OCP network card, obtains working status information and controls the front-mounted ear indicator.
It realizes that whether you use self-developed or purchased OCP network cards, the server front-mounted ear indicator light can display the working status of the network card, simplifying the adaptation process and improving flexibility.
Smart Images

Figure CN115454786B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of obtaining the status of OCP network cards, and particularly to an apparatus and method for obtaining the status of OCP network cards in a server. Background Art
[0002] The current standard OCP network card does not define that the OCP network card device outputs the network port working status signal to the motherboard. The standard OCP network card displays the network port working status through its own network port lights. Figure 1 It is a schematic diagram of the current standard OCP network card device structure. The PCIe controller is connected to the first network card connector through PCIe signal 1. The first network card connector is connected to the second network card connector through PCIe signal 2. The second network card connector is connected to the network controller through PCIe signal 3. The network controller is connected to the network port through network interface signal 1. When the PCIe controller sends or receives data with an external network device through the above connection method, the network controller monitors that there is data transmission on PCIe signal 3 and network interface signal 1, and will output LED light control signal 1 to control LED1 to display the active or idle status of the network port. The status of LED1 includes but is not limited to: always on, always off, flashing, and brightness change.
[0003] Since standard OCP network card devices are all inserted at the rear end of the server chassis, after being installed in the cabinet, users cannot conveniently and intuitively observe the working status of the network ports of the OCP network card devices on site, and need to open the rear cover of the cabinet additionally to see.
[0004] The existing solution is to display the OCP network card status on the front hanging ear. A custom network port status signal is added in the connection interface between the self-developed OCP network card device and the self-developed server motherboard to transmit the OCP network card device network port status to the self-developed motherboard, and the self-developed motherboard then outputs it to the network port status LED light on the front hanging ear. Figure 2It is a schematic structural diagram of the front ear display device for the current OCP network card status. Generally, a self-developed mainboard uses a programmable logic device, and the OCP network card status is obtained by the programmable logic device. However, there are many types of OCP network cards, and the I2C access commands of various network card chips are different. To use the programmable logic device to separately obtain the working status of all types of OCP network cards through I2C signals, the functional requirements for the programmable logic device are too high. The programmable logic device requires a lot of logic resources and is difficult to implement. Therefore, generally, a self-developed programmable logic device is only adapted to one type of OCP network card. When replacing other types of OCP network cards, it is necessary to re-develop the OCP network card device and the programmable logic device. Only in the scenario where the self-developed OCP network card and the programmable logic device are used in combination can the front ear LED display be supported. For off-the-shelf standard OCP network cards or other types of OCP network cards, the front ear LED cannot be displayed. Summary of the Invention
[0005] To solve the above problems, the present invention provides a server OCP network card status acquisition device and method. Whether the server is equipped with a self-developed OCP network card or an off-the-shelf standard OCP network card, its front ear indicator can display the working status of the OCP network card.
[0006] In a first aspect, the technical solution of the present invention provides a server OCP network card status acquisition device, including a PCIe controller and a first network card connector; a second network card connector and a network controller are provided on the OCP network card; the PCIe controller, the first network card connector, the second network card connector, and the network controller are connected in sequence; the device further includes: a first mainboard, a second mainboard, and a front ear indicator;
[0007] The first mainboard is connected to the second mainboard, and the second mainboard is respectively connected to the first network card connector and the front ear indicator; the first mainboard obtains the I2C command method of the OCP network card and notifies the second mainboard. The second mainboard sends an I2C command to the first network card connector in the I2C command method of the OCP network card, communicates with the OCP network card, obtains the OCP network card working status information, and controls the status of the front ear indicator according to the OCP network card working status information.
[0008] Further, the first mainboard controls the working mode of the second mainboard, where the working mode of the second mainboard includes a direct-through mode and an independent access OCP network card network port working status mode;
[0009] In the direct-through mode, the first mainboard is connected to the first network card connector through the second mainboard, communicates with the OCP network card, obtains the I2C command method of the OCP network card, and notifies the second mainboard of the I2C command method of the OCP network card;
[0010] In the independent access OCP network card network port working status mode, the second motherboard sends I2C commands to the first network card connector in the I2C command mode of the OCP network card, communicates with the OCP network card, and obtains the working status information of the OCP network card.
[0011] Further, the second motherboard includes: an I2C controller, an I2C mode control register, and an OCP network card I2C command register;
[0012] The I2C controller is respectively connected to the I2C mode control register, the OCP network card I2C command register, the first motherboard, the first network card connector, and the front hanging ear indicator light;
[0013] The I2C mode control register is used to store the working mode of the I2C controller, and the OCP network card I2C command register is used to store the I2C command mode of the OCP network card.
[0014] Further, the I2C controller communicates with the first motherboard and the first network card connector respectively through the I2C signal mode, the first network card connector communicates with the second network card connector through the I2C signal mode, and the second network card connector communicates with the network connector through the I2C signal mode;
[0015] Correspondingly, the first motherboard controls the working mode of the second motherboard, specifically including:
[0016] The first motherboard sends a first I2C command to the I2C controller. The first I2C command contains information that the working mode of the I2C controller is the direct-through mode. The I2C controller configures the I2C mode control register according to the information of the direct-through mode, so that the I2C controller is in the direct-through mode;
[0017] After the first motherboard obtains the I2C command mode of the OCP network card, it sends a second I2C command to the I2C controller. The second I2C command contains information that the working mode of the I2C controller is the independent access OCP network card network port working status mode and the information of the I2C command mode of the OCP network card. The I2C controller configures the OCP network card I2C command register according to the information of the I2C command mode of the OCP network card, and configures the I2C mode control register according to the information of the independent access OCP network card network port working status mode, so that the I2C controller is in the independent access OCP network card network port working status mode.
[0018] Further, the first motherboard is a BMC motherboard, and the second motherboard is a programmable logic device motherboard.
[0019] In a second aspect, the technical solution of the present invention provides a method for obtaining the status of a server OCP network card, including the following steps:
[0020] The first motherboard obtains the I2C command mode of the OCP network card and notifies the second motherboard;
[0021] The second main board sends I2C commands to the first network card connector in the I2C command mode of the OCP network card, communicates with the OCP network card, and obtains the working status information of the OCP network card;
[0022] The second main board controls the status of the front earphone indicator according to the working status information of the OCP network card.
[0023] Furthermore, the method further includes the following steps:
[0024] The first main board controls the working mode of the second main board, where the working mode of the second main board includes a direct-through mode and an independent access to the working status mode of the OCP network card port;
[0025] In the direct-through mode, the first main board communicates with the OCP network card through the second main board, obtains the I2C command mode of the OCP network card, and notifies the second main board of the I2C command mode of the OCP network card;
[0026] In the independent access to the working status mode of the OCP network card port, the second main board sends I2C commands to the first network card connector in the I2C command mode of the OCP network card, communicates with the OCP network card, and obtains the working status information of the OCP network card.
[0027] Furthermore, the first main board obtains the I2C command mode of the OCP network card, specifically including:
[0028] Obtain the OCP network card model information, and parse the I2C command mode of the OCP network card according to the OCP network card model information.
[0029] Furthermore, the second main board includes: an I2C controller, an I2C mode control register, and an OCP network card I2C command register; the I2C mode control register is used to store the working mode of the I2C controller, and the OCP network card I2C command register is used to store the I2C command mode of the OCP network card;
[0030] Correspondingly, the first main board controls the working mode of the second main board, specifically including:
[0031] The first main board sends a first I2C command to the I2C controller. The first I2C command contains information that the working mode of the I2C controller is the direct-through mode. The I2C controller configures the I2C mode control register according to the information of the direct-through mode, so that the I2C controller is in the direct-through mode;
[0032] After the first main board obtains the I2C command mode of the OCP network card, it sends a second I2C command to the I2C controller. The second I2C command contains information about the working mode of the I2C controller being the independent access to the working status mode of the OCP network card port and information about the I2C command mode of the OCP network card. The I2C controller configures the I2C command register of the OCP network card according to the information about the I2C command mode of the OCP network card, and configures the I2C mode control register according to the information about the independent access to the working status mode of the OCP network card port, so that the I2C controller is in the independent access to the working status mode of the OCP network card port.
[0033] Further, the first main board is a BMC main board, and the second main board is a programmable logic device main board.
[0034] A server OCP network card status acquisition device and method provided by the present invention have the following beneficial effects compared with the prior art: The first main board with more powerful functions obtains the I2C command mode of the OCP network card. The first main board can know the I2C command mode of any type of OCP network card without being restricted by the OCP network card. Then, the second main board is configured according to the I2C command mode of the OCP network card, and the second main board communicates with the OCP network card in the corresponding I2C command mode to obtain the OCP network card status to control the front hanging ear indicator. Only the first main board needs to be correspondingly configured when replacing the OCP network card, so that no matter whether the server is equipped with a self-developed OCP network card or an off-the-shelf standard OCP network card, the front hanging ear indicator can display the working status of the OCP network card. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the technical solutions of the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for the description of the embodiments or the prior art. Obviously, the following drawings are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0036] Figure 1 It is a schematic diagram of the current standard OCP network card device structure.
[0037] Figure 2 It is a schematic diagram of the current OCP network card status front hanging ear display device structure.
[0038] Figure 3 It is a schematic diagram of the structure of a server OCP network card status acquisition device provided by an embodiment of the present invention.
[0039] Figure 4 It is a schematic diagram of the structure of a specific embodiment of a server OCP network card status acquisition device provided by an embodiment of the present invention.
[0040] Figure 5 It is a schematic diagram of the second main board structure in a server OCP network card status acquisition device provided by an embodiment of the present invention.
[0041] Figure 6 It is a schematic diagram of the startup process of the Baseboard Management Controller (BMC) in a specific embodiment of a server OCP network card status acquisition device provided by an embodiment of the present invention.
[0042] Figure 7 It is a schematic diagram of the process in which the Baseboard Management Controller (BMC) in a specific embodiment of a server OCP network card status acquisition device provided by an embodiment of the present invention controls the Complex Programmable Logic Device (CPLD) to be in an independent access mode.
[0043] Figure 8 It is a schematic diagram of the process in which the Complex Programmable Logic Device (CPLD) in a specific embodiment of a server OCP network card status acquisition device provided by an embodiment of the present invention controls the front ear indicator light.
[0044] Figure 9 It is a schematic diagram of the process of a server OCP network card status acquisition method provided by the present invention.
[0045] Figure 10 It is a schematic diagram of the working process of a specific embodiment of a server OCP network card status acquisition method provided by the present invention. Detailed implementation manners
[0046] The following explains some terms related to the present invention.
[0047] OC: Open Compute Project, an open-source computing project. The Open Compute Project (OCP) is a set of open-source hardware. It is a hardware design specification for data centers led by Facebook and participated in by many IT giant companies, including the customization design specifications for computer rooms, cabinets, servers, storage, and network devices, as well as the management specifications for cloud hardware.
[0048] BMC: Baseboard Management Controller, the baseboard management controller.
[0049] CPLD: Complex Programmable Logic Device, the complex programmable logic device.
[0050] I2C: Inter-Integrated Circuit, which is the name for an internal integrated circuit. It is a serial communication bus that uses a multi-master and slave architecture and is a simple, two-way, two-wire synchronous serial bus.
[0051] PCIE: Peripheral Component Interconnect Express, a high-speed serial computer expansion bus standard.
[0052] LED: Light Emitting Diode, a light-emitting diode.
[0053] To enable those skilled in the art to better understand the solution of this application, the following further detailed description of this application will be given in conjunction with the accompanying drawings and specific embodiments. Obviously, the described embodiments are only a part of the embodiments of this application, rather than all of them. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the scope of protection of this application.
[0054] Figure 3 It is a schematic structural diagram of a device for obtaining the status of an OCP network card of a server provided by an embodiment of the present invention, including a PCIe controller and a first network card connector; a second network card connector and a network controller are provided on the OCP network card; the PCIe controller, the first network card connector, the second network card connector, and the network controller are connected in sequence. In addition, a network port and an LED1 are provided on the OCP network card and are respectively connected to the network controller.
[0055] The device further includes a first main board, a second main board, and a front hanging ear indicator light. The first main board is connected to the second main board, and the second main board is respectively connected to the first network card connector and the front hanging ear indicator light. The first main board obtains the I2C command mode of the OCP network card and notifies the second main board, and the second main board sends an I2C command to the first network card connector in the I2C command mode of the OCP network card to communicate with the OCP network card, obtain the working status information of the OCP network card, and control the status of the front hanging ear indicator light according to the working status information of the OCP network card.
[0056] It should be noted that the first main board can obtain the I2C command mode of any OCP network card. For example, in some specific embodiments, the first main board uses BMC. BMC has powerful functions and a large software capacity, and at the same time, I2C applications are already very mature, and its usability and editability are very high, and it can be used as the first main board. BMC first accesses the OCP network card information through the I2C bus. Specifically, it collects the model information of the OCP network card, parses out the I2C command mode of the OCP network card according to the model information, and then BMC transfers the parsed I2C command mode of the OCP network card to the second main board. The second main board accesses the OCP network card through this I2C access command and controls the front hanging ear indicator light to turn on, off, and blink to indicate the working status of the OCP network card.
[0057] In some specific embodiments, the second main board adopts a programmable logic controller, such as a CPLD. The second main board learns about the I2C command mode of the OCP network card from the first main board. It only needs to store the I2C commands of the OCP network card and does not need to determine which OCP network card and the I2C commands required for each OCP network card by itself, which simplifies the design of the second main board. When adding a new network card, only the first main board needs to be modified, and no modification is required on the second main board side.
[0058] In addition, the first main board needs to communicate with the OCP network card to learn about the I2C command mode of the OCP network card. In this embodiment, the first main board communicates with the OCP network card through the second main board. In addition to transmitting the communication between the first main board and the OCP network card, the second main board also needs to communicate with the OCP network card itself to learn about the working state of the OCP network card. Therefore, in this embodiment, the first main board controls the working mode of the second main board, where the working mode of the second main board includes a through mode and an independent access to the working state mode of the OCP network card port.
[0059] In the through mode, the first main board is connected to the first network card connector through the second main board, communicates with the OCP network card, obtains the I2C command mode of the OCP network card, and notifies the second main board of the I2C command mode of the OCP network card. In the independent access to the working state mode of the OCP network card port, the second main board sends I2C commands to the first network card connector in the I2C command mode of the OCP network card, communicates with the OCP network card, and obtains the working state information of the OCP network card.
[0060] Figure 4It is a schematic structural diagram of a specific embodiment. The first main board uses BMC, and the second main board uses CPLD. The principle of this specific embodiment is as follows: The PCIe controller is connected to the first network card connector through PCIe signal 1. The first network card connector is connected to the second network card connector through PCIe signal 2. The second network card connector is connected to the network controller through PCIe signal 3. The network controller is connected to the network port through network interface signal 1. When the PCIe controller sends or receives data from an external network device through the above connection method, the network controller monitors that there is data transmission on PCIe signal 3 and network interface signal 1, and will output LED light control signal 1 to control LED1 to display the active state or idle state of the network port. The states of LED1 include but are not limited to: always on, always off, flashing, and brightness change. The baseboard management controller BMC is connected to the programmable logic device CPLD through i2c signal 1. The programmable logic device CPLD is connected to the first network card connector through i2c signal 2. The first network card connector is connected to the second network card connector through i2c signal 3. The second network card connector is connected to the network controller through i2c signal 4, realizing that the baseboard management controller BMC and the programmable logic device CPLD access the network controller of the OCP network card through i2c signals. The baseboard management controller BMC first controls the programmable logic device CPLD to be in the pass-through mode. In the pass-through mode, the baseboard management controller BMC communicates with the OCP network card through the I2C bus via the programmable logic device CPLD, accesses the OCP network card information, and passes this i2c access command of the OCP network card to the CPLD. Then the baseboard management controller BMC controls the programmable logic device CPLD to be in the mode of independently accessing the working state of the OCP network card port. The CPLD independently accesses the OCP network card through the stored i2c access command and controls the hanging ear LED light to turn on, off, or flash to indicate the working state of the OCP network card.
[0061] It can be understood that the second main board requires a memory working mode to work in a suitable working mode. In this embodiment, the second main board adopts a register storage working mode and the I2C command method of the OCP network card. Figure 5 It is a schematic structural diagram of the second main board. The second main board includes: an I2C controller, an I2C mode control register, and an OCP network card I2C command register. Among them, the I2C controller is respectively connected to the I2C mode control register, the OCP network card I2C command register, the first main board, the first network card connector, and the front hanging ear indicator light. The I2C mode control register is used to store the working mode of the I2C controller, and the OCP network card I2C command register is used to store the I2C command method of the OCP network card.
[0062] Specifically, the I2C controller communicates with the first main board and the first network card connector respectively through the I2C signal mode. The first network card connector communicates with the second network card connector through the I2C signal mode, and the second network card connector communicates with the network connector through the I2C signal mode.
[0063] Based on the above second main board structure, the first main board controls the working mode of the second main board, specifically including: the first main board sends a first I2C command to the I2C controller, and the first I2C command contains information that the working mode of the I2C controller is the through mode. The I2C controller configures the I2C mode control register according to the information of the through mode to make the I2C controller in the through mode; after the first main board obtains the I2C command mode of the OCP network card, it sends a second I2C command to the I2C controller. The second I2C command contains information that the working mode of the I2C controller is the mode of independently accessing the working state of the OCP network card port and the information of the I2C command mode of the OCP network card. The I2C controller configures the OCP network card I2C command register according to the information of the I2C command mode of the OCP network card, and configures the I2C mode control register according to the information of the mode of independently accessing the working state of the OCP network card port to make the I2C controller in the mode of independently accessing the working state of the OCP network card port.
[0064] Taking the first main board as the BMC and the second main board as the CPLD as an example, the working processes of the first main board and the second main board are described below.
[0065] 1) Figure 6 It is a schematic diagram of the startup process of the baseboard management controller BMC. The baseboard management controller BMC starts the working process and accesses the OCP network card to obtain the OCP network card model information:
[0066] (1) The baseboard management controller BMC sends an I2C command to the complex programmable logic device CPLD through the I2C signal 1.
[0067] (2) The I2C controller stores the "I2C controller working mode information" into the "I2C mode control register".
[0068] (3) The "i2c mode control register" sets the i2c controller to the through mode.
[0069] (1)(4) In this mode, the i2c controller only responsible for connecting the i2c signal 1 of the baseboard management controller BMC and the i2c signal 2 of the OCP network card. The baseboard management controller BMC communicates directly with the OCP network card after passing through the i2c signal 1, i2c signal 2, i2c signal 3, and i2c signal 4.
[0070] 2) Figure 7It is a schematic diagram of the process for the Baseboard Management Controller (BMC) to control the Complex Programmable Logic Device (CPLD) in the independent access mode. After the BMC accesses the Open Compute Project (OCP) network card and obtains the OCP network card model information, it configures the I2C controller 1 to the "CPLD independent access to the OCP network card port working status mode":
[0071] (1)The BMC sends an I2C command to the CPLD through the I2C signal 1. This command contains the "I2C controller working mode information" and the "I2C access command information for the OCP network card working status register".
[0072] (2)(3)The I2C controller stores the "I2C controller working mode information" and the "I2C access command information for the OCP network card working status register" into the "I2C mode control register" and the "OCP network card I2C command register" respectively. After the BMC configures the I2C controller to the "CPLD independent access to the OCP network card port working status mode", the BMC ends the working process.
[0073] 3) Figure 8 It is a schematic diagram of the process for the CPLD to control the front earphone indicator light. The CPLD starts the process of independently obtaining the OCP network card port working status. The CPLD sends an I2C access command for the OCP network card working status register to the OCP network card. After obtaining the information of the OCP network card working status register, it controls the corresponding on, off, and flashing states of the earphone LED light:
[0074] (1)(2)The "I2C controller" reads the working mode information from the "I2C mode control register" and enters the "CPLD independent access to the OCP network card port working status mode".
[0075] (3)(4)The "I2C controller" reads the "I2C access command information for the OCP network card working status register" from the "OCP network card I2C command register" and configures it into the I2C command for the "I2C controller" to access the "OCP network card".
[0076] (5)The "I2C controller" accesses the "OCP network card" to obtain the "OCP network card port working status information".
[0077] (6)The "I2C controller" controls the corresponding on, off, and flashing states of the front earphone LED light according to the "OCP network card port working status information".
[0078] In the above specific embodiments, the BMC controls the CPLD, the CPLD directly obtains the working status of the network interface of the OCP network card from the OCP network card, and displays the working status of the network interface of the OCP network card through the LED light on the front ear. The BMC only needs to perform an operation to access the working status of the network interface of the OCP network card once, and then send the command to access the working status of the network interface of the OCP network card to the CPLD. Subsequently, the CPLD independently obtains the working status information of the network interface of the OCP network card, and the CPLD controls the LED light on the front ear network interface to display the working status of the OCP network card. The above specific embodiments release the resources of the BMC, and the BMC only needs to perform an operation to access the OCP network card device once; simplify the CPLD design, and the CPLD only needs to store the working mode and OCP i2c commands required by it. The CPLD does not need to determine which OCP network card and the i2c commands required for each OCP network card. When adding a new network card, only the BMC side needs to be modified, and the CPLD side does not need to be modified at all.
[0079] In the above text, the embodiments of a server OCP network card status acquisition device are described in detail. Based on the server OCP network card status acquisition device described in the above embodiments, an embodiment of the present invention also provides a server OCP network card status acquisition method corresponding to the device.
[0080] Figure 9 It is a schematic flowchart of a server OCP network card status acquisition method provided by the present invention. As Figure 9 shown, the method includes the following steps.
[0081] S1, the first main board obtains the I2C command mode of the OCP network card and notifies the second main board.
[0082] S2, the second main board sends the I2C command to the first network card connector in the I2C command mode of the OCP network card, communicates with the OCP network card, and obtains the working status information of the OCP network card.
[0083] S3, the second main board controls the status of the front ear indicator light according to the working status information of the OCP network card.
[0084] In this embodiment, the communication between the first main board, the second main board and the OCP network card is realized by controlling the working mode of the second main board by the first main board. Among them, the working mode of the second main board includes a through mode and an independent access to the working status mode of the OCP network card network interface.
[0085] In the direct-through mode, the first main board communicates with the OCP network card through the second main board, obtains the I2C command mode of the OCP network card, and notifies the second main board of the I2C command mode of the OCP network card; in the mode of independently accessing the working state of the OCP network card port, the second main board sends an I2C command to the first network card connector in the I2C command mode of the OCP network card to communicate with the OCP network card and obtain the working state information of the OCP network card.
[0086] Among them, when the first main board communicates with the OCP network card, it obtains the OCP network card model information and parses the I2C command mode of the OCP network card according to the OCP network card model information.
[0087] In this embodiment, the second main board includes: an I2C controller, an I2C mode control register, and an OCP network card I2C command register; the I2C mode control register is used to store the working mode of the I2C controller, and the OCP network card I2C command register is used to store the I2C command mode of the OCP network card.
[0088] Correspondingly, the first main board controls the working mode of the second main board, specifically including:
[0089] The first main board sends a first I2C command to the I2C controller. The first I2C command contains information that the working mode of the I2C controller is the direct-through mode. The I2C controller configures the I2C mode control register according to the information of the direct-through mode to make the I2C controller in the direct-through mode;
[0090] After the first main board obtains the I2C command mode of the OCP network card, it sends a second I2C command to the I2C controller. The second I2C command contains information that the working mode of the I2C controller is the mode of independently accessing the working state of the OCP network card port and the information of the I2C command mode of the OCP network card. The I2C controller configures the OCP network card I2C command register according to the information of the I2C command mode of the OCP network card and configures the I2C mode control register according to the information of the mode of independently accessing the working state of the OCP network card port to make the I2C controller in the mode of independently accessing the working state of the OCP network card port.
[0091] In some specific embodiments, the first main board uses a BMC main board, and the second main board uses a programmable logic device main board, such as a CPLD.
[0092] The following takes BMC and CPLD as examples to illustrate the working process of a specific embodiment. Figure 10 It is a schematic diagram of the working process of this specific embodiment, including the following processes.
[0093] The BMC starts the working process. The BMC configures the I2C controller working mode of the CPLD to the pass-through mode. The BMC accesses the OCP network card to obtain the OCP network card model information. The BMC configures the I2C command mode of the CPLD according to the OCP network card model information. The BMC configures the I2C controller working mode of the CPLD to the OCP network card access mode. The BMC ends the working process. The CPLD starts the working process. The CPLD sends specific I2C commands to access the OCP network card according to the I2C command mode configured by the BMC to obtain the OCP network card working status information. The CPLD decodes the OCP network card working status information to control the corresponding on, off, and blinking states of the earhook LED. The CPLD accesses the OCP network card at a fixed frequency, obtains the OCP network card working status information, and refreshes the status of the earhook LED.
[0094] The method for obtaining the OCP network card status of the server in this embodiment is implemented based on the aforementioned device for obtaining the OCP network card status of the server. Therefore, the specific implementation manners in this method can be seen in the embodiment part of the device for obtaining the OCP network card status of the server in the previous text. Therefore, its specific implementation manners can refer to the descriptions of the corresponding various part embodiments and will not be elaborated here.
[0095] In addition, since the method for obtaining the OCP network card status of the server in this embodiment is implemented based on the aforementioned device for obtaining the OCP network card status of the server, its functions correspond to those of the above device and will not be elaborated here.
[0096] The above-disclosed is only the preferred embodiment of the present invention, but the present invention is not limited thereto. Any non-creative changes that can be thought of by those skilled in the art, as well as several improvements and refinements made without departing from the principle of the present invention, should fall within the protection scope of the present invention.
Claims
1. A server OCP network card status acquisition device, comprising a PCIe controller and a first network card connector; a second network card connector and a network controller are provided on the OCP network card. ; The PCIe controller, the first network card connector, the second network card connector, and the network controller are connected in sequence; characterized in that the device further comprises: a first main board, a second main board, and a front hanging ear indicator light; the first main board is connected to the second main board, and the second main board is respectively connected to the first network card connector and the front hanging ear indicator light; the first main board obtains the I2C command mode of the OCP network card and notifies the second main board, and the second main board sends an I2C command to the first network card connector in the I2C command mode of the OCP network card, communicates with the OCP network card, obtains the working status information of the OCP network card, and controls the status of the front hanging ear indicator light according to the working status information of the OCP network card; the first main board controls the working mode of the second main board, wherein the working mode of the second main board includes a direct-through mode and an independent access OCP network card network port working status mode; in the direct-through mode, the first main board is connected to the first network card connector through the second main board, communicates with the OCP network card, obtains the I2C command mode of the OCP network card, and notifies the second main board of the I2C command mode of the OCP network card; in the independent access OCP network card network port working status mode, the second main board sends an I2C command to the first network card connector in the I2C command mode of the OCP network card, communicates with the OCP network card, and obtains the working status information of the OCP network card.
2. The server OCP network card status acquisition device according to claim 1, characterized in that the second main board comprises: an I2C controller, an I2C mode control register, and an OCP network card I2C command register; the I2C controller is respectively connected to the I2C mode control register, the OCP network card I2C command register, the first main board, the first network card connector, and the front hanging ear indicator light; the I2C mode control register is used to store the working mode of the I2C controller, and the OCP network card I2C command register is used to store the I2C command mode of the OCP network card.
3. The server OCP network card status acquisition device according to claim 2, characterized in that the I2C controller communicates with the first main board and the first network card connector respectively through an I2C signal mode, the first network card connector communicates with the second network card connector through an I2C signal mode, and the second network card connector communicates with the network connector through an I2C signal mode; correspondingly, the first main board controls the working mode of the second main board, specifically including: the first main board sends a first I2C command to the I2C controller, and the first I2C command contains information that the working mode of the I2C controller is the direct-through mode. The I2C controller configures the I2C mode control register according to the information of the direct-through mode, so that the I2C controller is in the direct-through mode; After the first mainboard obtains the I2C command mode of the OCP network card, it sends a second I2C command to the I2C controller. The second I2C command contains information about the working mode of the I2C controller being the independent access to the working status mode of the OCP network card port and information about the I2C command mode of the OCP network card. The I2C controller configures the I2C command register of the OCP network card according to the information about the I2C command mode of the OCP network card, and configures the I2C mode control register according to the information about the independent access to the working status mode of the OCP network card port, so that the I2C controller is in the independent access to the working status mode of the OCP network card port.
4. The server OCP network card status acquisition device according to claim 3, wherein, the first mainboard is a BMC mainboard, and the second mainboard is a programmable logic device mainboard.
5. A method for acquiring the status of a server OCP network card, wherein, it includes the following steps: The first mainboard obtains the I2C command mode of the OCP network card and notifies the second mainboard; The second mainboard sends an I2C command to the first network card connector in the I2C command mode of the OCP network card, communicates with the OCP network card, and obtains the working status information of the OCP network card; The second mainboard controls the status of the front mounting ear indicator according to the working status information of the OCP network card; The first mainboard controls the working mode of the second mainboard, where the working mode of the second mainboard includes a direct pass mode and an independent access to the working status mode of the OCP network card port; In the direct pass mode, the first mainboard communicates with the OCP network card through the second mainboard, obtains the I2C command mode of the OCP network card, and notifies the second mainboard of the I2C command mode of the OCP network card; In the independent access to the working status mode of the OCP network card port, the second mainboard sends an I2C command to the first network card connector in the I2C command mode of the OCP network card, communicates with the OCP network card, and obtains the working status information of the OCP network card.
6. The method for acquiring the status of a server OCP network card according to claim 5, wherein, The first mainboard obtains the I2C command mode of the OCP network card, specifically including: Obtaining the OCP network card model information, and parsing the I2C command mode of the OCP network card according to the OCP network card model information.
7. The method for acquiring the status of a server OCP network card according to claim 6, wherein, The second mainboard includes: an I2C controller, an I2C mode control register, and an OCP network card I2C command register; the I2C mode control register is used to store the working mode of the I2C controller, and the OCP network card I2C command register is used to store the I2C command mode of the OCP network card; Correspondingly, the first mainboard controls the working mode of the second mainboard, specifically including: The first mainboard sends a first I2C command to the I2C controller. The first I2C command contains information about the working mode of the I2C controller being the direct pass mode. The I2C controller configures the I2C mode control register according to the information about the direct pass mode, so that the I2C controller is in the direct pass mode; After the first main board obtains the I2C command mode of the OCP network card, it sends a second I2C command to the I2C controller. The second I2C command contains information that the working mode of the I2C controller is the mode of independently accessing the working state of the OCP network card port and information about the I2C command mode of the OCP network card. The I2C controller configures the I2C command register of the OCP network card according to the information about the I2C command mode of the OCP network card, and configures the I2C mode control register according to the information about the mode of independently accessing the working state of the OCP network card port, so that the I2C controller is in the mode of independently accessing the working state of the OCP network card port.
8. The method for obtaining the OCP network card status of the server according to claim 7, wherein, the first main board is a BMC main board, and the second main board is a programmable logic device main board.
Citation Information
Patent Citations
OCP riser card and computer equipment
CN111400217A
Secure hardware programmable architecture
CN114616566A