# US 2021/0173797 A1 · Method, apparatus, and device for transmitting file based on bmc, and medium

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

- Number: US 2021/0173797 A1
- Document ID: US20210173797A1
- Status: Published application
- Kind: A1
- Application number: 16/475,107
- Filed: 2018-10-26
- Published: 2021-06-10
- Earliest claimed: 2018-05-31
- Assignees: Zhengzhou Yunhai Information Technology Co., Ltd.
- Applicants: Zhengzhou Yunhai Information Technology Co., Ltd.
- Inventors: Xuelong WANG
- Web page: https://patentgrep.com/patent/US20210173797A1

## CPC

- G06F 13/20: for access to input/output bus
- G06F 13/4282: {on a serial bus, e.g. I2C bus, SPI bus (on daisy chain buses G06F13/4247)}
- G06F 2213/0016: Inter-integrated circuit (I2C)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method, an apparatus, and a device for transmitting a file based on a BMC, and a medium are provided. The method includes: sending, by using a first BMC, a preset command to a second BMC, before the first BMC transmits a data file to the second BMC; controlling the second BMC to stop an IPMI process running based on an I2C bus in response to the preset command; and controlling the first BMC to transmit the data file to the second BMC by using a communication function of the I2C bus. With the method, when the data file is transmitted between the BMCs, the IPMI process running on the BMC receiving the data file is stopped, such that the data file is not intercepted and verified by the command processing function of the IPMI process, and the IPMI process is prevented from being blocked and crashing.

## Claims

### Claim 1

A method for transmitting a file based on a BMC, comprising:
sending, by using a first BMC, a preset command to a second BMC, before the first BMC transmits a data file to the second BMC;
controlling the second BMC to stop an IPMI process running based on an I2C bus in response to the preset command; and
controlling the first BMC to transmit the data file to the second BMC by using a communication function of the I2C bus.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the controlling the second BMC to stop the IPMI process running based on the I2C bus in response to the preset command comprises:
modifying a value of a preset flag variable from an initial value to a flag value in response to the preset command, and
monitoring the flag variable by using a preset process, and stopping the IPMI process running based on the I2C bus by calling a system function when the value of the flag variable is the flag value.

### Claim 3 (depends on 2)

The method according to claim 2, wherein after transmitting the data file to the second BMC, the method further comprises:
modifying the value of the flag variable to the initial value, and restarting the IPMI process by calling the system function.

### Claim 4 (depends on 2)

The method according to claim 2, wherein after the stopping the IPMI process running based on the I2C bus by calling the system function, the method further comprises:
recording, in a log file, a time instant at which the IPMI process is stopped and parameter information of the first BMC in correspondence with each other.

### Claim 5 (depends on 1, 2)

The method according to claim 2, wherein the initial value is 0, and the flag value is claim 1.

### Claim 6 (depends on 1)

The method according to claim 1, wherein the data file is a mirror file of a bin type.

### Claim 7

An apparatus for transmitting a file based on a BMC, comprising:
a command sending module, configured to send, by using a first BMC, a preset command to a second BMC, before the first BMC transmits a data file to the second BMC;
a process stop module, configured to control the second BMC to stop an IPMI process running based on an I2C bus in response to the preset command; and
a file transmission module, configured to control the first BMC to transmit the data file to the second BMC by using a communication function of the I2C bus.

### Claim 8 (depends on 7)

The apparatus according to claim 7, wherein the process stop module further comprises:
a variable modification module, configured to modify a value of a preset flag variable from an initial value to a flag value in response to the preset command, and
a monitoring calling module, configured to monitor the flag variable by using a preset process, and stop the IPMI process running based on the I2C bus by calling a system function when the value of the flag variable is the flag value.

### Claim 9

A device for transmitting a file based on a BMC, comprising:
a memory, configured to store a computer program; and
a processor, configured to execute the computer program to implement steps of
sending, by using a first BMC, a preset command to a second BMC, before the first BMC transmits a data file to the second BMC,
controlling the second BMC to stop an IPMI process running based on an I2C bus in response to the preset command, and
controlling the first BMC to transmit the data file to the second BMC by using a communication function of the I2C bus.

### Claim 10 (depends on 1)

A computer readable storage medium, storing a computer program, the computer program being executed by a processor to implement steps of the method for transmitting a file based on a BMC according to claim 1.

### Claim 11 (depends on 9)

The device according to claim 9, wherein the controlling the second BMC to stop the IPMI process running based on the I2C bus in response to the preset command comprises:
modifying a value of a preset flag variable from an initial value to a flag value in response to the preset command, and
monitoring the flag variable by using a preset process, and stopping the IPMI process running based on the I2C bus by calling a system function when the value of the flag variable is the flag value.

### Claim 12 (depends on 11)

The device according to claim 11, wherein after transmitting the data file to the second BMC, the processor is further configured to execute the computer program to implement a step of:
modifying the value of the flag variable to the initial value, and restarting the IPMI process by calling the system function.

### Claim 13 (depends on 11)

The device according to claim 11, wherein after the stopping the IPMI process running based on the I2C bus by calling the system function, the processor is further configured to execute the computer program to implement a step of:
recording, in a log file, a time instant at which the IPMI process is stopped and parameter information of the first BMC in correspondence with each other.

### Claim 14 (depends on 11)

The device according to claim 11, wherein the initial value is 0, and the flag value is 1.

### Claim 15 (depends on 9)

The device according to claim 9, wherein the data file is a mirror file of a bin type.
