# US 11,907,073 B2 · Method and apparatus for data interaction between BIOS and BMC of server, and device

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 11,907,073 B2
- Document ID: US11907073B2
- Status: Granted
- Kind: B2
- Application number: 18/034,057
- Filed: 2021-09-28
- Published: 2023-12-07
- Granted: 2024-02-20
- Earliest claimed: 2020-11-11
- Assignees: Inspur Suzhou Intelligent Technology Co., Ltd.
- Applicants: Inspur Suzhou Intelligent Technology Co., Ltd.
- Inventors: Xiuqiang Sun; Jiaming Huang; Xuntang Li; Yingliang Qiao; Huatang Ban; Daotong Li; Shanbin Al; Fanyi Yao
- Web page: https://patentgrep.com/patent/US11907073B2

## CPC

- G06F 11/142: {Reconfiguring to eliminate the error (group management mechanisms in a peer-to-peer network H04L67/1044)}
- G06F 11/076: {by exceeding a count or rate limit, e.g. word- or bit count limit}
- G06F 11/1417: {Boot up procedures}
- G06F 11/1441: {Resetting or repowering}
- G06F 2201/81: Threshold
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method and an apparatus for data interaction between a BIOS and a BMC of a server, a device and a readable storage medium. According to the state of an IPMI link between a BIOS and a BMC, it is determined whether to perform data interaction. At the same time, whether the BMC cannot be activated due to abnormalities are determined by confirming whether the number of times of restarting the server reaches preset threshold at the BDS stage of the BIOS. When the number of times of restarting the server reaches the preset threshold and the BMC is still not activated, the BMC is determined to be abnormal. When the number of times of restarting the server has not yet reached preset threshold, the BIOS performs the action of restarting system, wherein preset threshold is confirmed by a variable self-defined inside the BIOS and may be set freely.

## Claims

### Claim 1

A method for data interaction between a BIOS and a BMC of a server, applied to the BIOS, comprising:
S1, when the server is powered on, obtaining a state of an IPMI link between the BIOS and the BMC to obtain a first state value; when the first state value is normal, entering S2; and when the first state value is abnormal, entering S3;
S2, performing data interaction with the BMC via the IPMI link and booting to a system;
S3, initializing the server and booting to a BDS stage, and obtaining the state of the IPMI link between the BIOS and the BMC again to obtain a second state value; when the second state value is normal, entering S2; and when the second state value is abnormal, entering S4;
S4, determining whether a number of times of restarting the server exceeds a preset threshold; when the number of times of restarting the server exceeds the preset threshold, entering S5; and when the number of times of restarting the server does not exceed the preset threshold, entering S6;
S5, determining that the BMC is abnormal, performing self-recovery according to target data in a local preset memory address space, and booting to the system; and
S6, executing a restarting command to control the server to restart and entering S1.

### Claim 2 (depends on 1)

The method according to claim 1, wherein after determining that the BMC is abnormal, the method further comprises:
outputting BMC abnormal prompt information via a serial port.

### Claim 3 (depends on 1)

The method according to claim 1, wherein executing the restarting command to control the server to restart and entering S1 comprises:
executing the restarting command to control the server to restart, waiting for a preset time and entering S1.

### Claim 4 (depends on 1)

The method according to claim 1, wherein performing data interaction with the BMC via the IPMI link comprising:
sending hardware device information to the BMC via the IPMI link to display the hardware device information.

### Claim 5 (depends on 1)

The method according to claim 1, wherein performing data interaction with the BMC via the IPMI link comprising:
obtaining latest configuration information of a target function from the BMC via the IPMI link.

### Claim 6 (depends on 5)

The method according to claim 5, wherein performing self-recovery according to the target data in the local preset memory address space comprising:
reading NVRAM data from the local preset memory address space to obtain original configuration information of the target function.

### Claim 7 (depends on 1)

The method according to claim 1, wherein when the server is powered on for a first time, the BIOS obtains the state of the IPMI link between the server and the BMC via an IPMI protocol.

### Claim 8 (depends on 1)

The method according to claim 1, wherein a content of data interaction comprises: hardware device information transmitted by the BIOS to the BMC and data of functions of the BIOS transmitted by the BMC to the BIOS.

### Claim 9 (depends on 8)

The method according to claim 8, wherein when the BMC is determined to be abnormal, the BIOS is not capable of obtaining the data of the functions of the BIOS from the BMC.

### Claim 10 (depends on 1)

A device for data interaction between a BIOS and a BMC of a server, comprising:
a memory configured for storing a computer program; and
a processor configured for executing the computer program to implement the method for the data interaction between the BIOS and the BMC of the server according to claim 1.

### Claim 11 (depends on 10)

The device according to claim 10, wherein after determining that the BMC is abnormal, the method further comprises:
outputting BMC abnormal prompt information via a serial port.

### Claim 12 (depends on 10)

The device according to claim 10, wherein executing the restarting command to control the server to restart and entering S1 comprises:
executing the restarting command to control the server to restart, waiting for a preset time and entering S1.

### Claim 13 (depends on 10)

The device according to claim 10, wherein performing data interaction with the BMC via the IPMI link comprising:
sending hardware device information to the BMC via the IPMI link to display the hardware device information.

### Claim 14 (depends on 10)

The device according to claim 10, wherein performing data interaction with the BMC via the IPMI link comprising:
obtaining latest configuration information of a target function from the BMC via the IPMI link.

### Claim 15 (depends on 14)

The device according to claim 14, wherein performing self-recovery according to the target data in the local preset memory address space comprising:
reading NVRAM data from the local preset memory address space to obtain original configuration information of the target function.

### Claim 16 (depends on 1)

A non-transitory readable storage medium storing a computer program thereon, wherein the computer program, when executed by a processor, implements the method for the data interaction between the BIOS and the BMC of the server according to claim 1.

### Claim 17 (depends on 10)

The non-transitory readable storage medium according to claim 10, wherein after determining that the BMC is abnormal, the method further comprises:
outputting BMC abnormal prompt information via a serial port.

### Claim 18 (depends on 16)

The non-transitory readable storage medium according to claim 16, wherein executing the restarting command to control the server to restart and entering S1 comprises:
executing the restarting command to control the server to restart, waiting for a preset time and entering S1.

### Claim 19 (depends on 16)

The non-transitory readable storage medium according to claim 16, wherein performing data interaction with the BMC via the IPMI link comprising:
sending hardware device information to the BMC via the IPMI link to display the hardware device information.

### Claim 20 (depends on 16)

The non-transitory readable storage medium according to claim 16, wherein performing data interaction with the BMC via the IPMI link comprising:
obtaining latest configuration information of a target function from the BMC via the IPMI link.
