IP Library Granted Patent US 11,797,334
Granted Patent B1
US 11,797,334 · App. 18/039,232 · Granted Oct 24, 2023

BMC parameter configuration and effect-taking method and apparatus, device, and medium

Inventor: Zhili Hou (Jiangsu, CN)
Assignee: INSPUR SUZHOU INTELLIGENT TECHNOLOGY CO., LTD.
G06F9/4812G06F8/71G06F9/54
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,797,334
App. No.
18/039,232
Granted
Oct 24, 2023
Kind
B1
Abstract

A method and apparatus for BMC-parameter configuring and taking-effect, a device and a medium. The method includes: after a first process receives a first external parameter, modifying a parameter-configuring state corresponding to the first external parameter of a database to be being-configured, and writing the first external parameter into the database, and triggering an interruption serving program at the same time; by using the interruption serving program, determining whether in the database there exists a parameter-configuring state that is being-configured; when in the database there exists the parameter-configuring state that is the being-configured, writing the first external parameter stored in the database into a configuration file; and after the first external parameter is successfully written into the configuration file, acquiring, from the database, a parameter taking-effect state corresponding to the first external parameter, and according to the parameter taking-effect state, performing taking-effect processing.

Claims (60)

1. A method for BMC-parameter configuring and taking-effect, wherein the method comprises:

after a first process receives a first external parameter, modifying a parameter-configuring state corresponding to the first external parameter of a database to be being-configured, writing the first external parameter into the database, and triggering an interruption serving program at the same time;

by using the interruption serving program, determining whether in the database there exists a parameter-configuring state that is the being-configured;

when in the database there exists the parameter-configuring state that is the being-configured, writing the first external parameter stored in the database into a configuration file; and

after the first external parameter is successfully written into the configuration file, acquiring, from the database, a parameter taking-effect state corresponding to the first external parameter, and according to the parameter taking-effect state, performing taking-effect processing.

2. The method for BMC-parameter configuring and taking-effect according to claim 1 , wherein the database stores parameter-configuring states corresponding to a plurality of types of parameters;

the database is provided with parameter taking-effect states, to represent conditions required for taking-effect of each of the types of parameters; and

processes, by using the corresponding parameter-configuring states and parameter taking-effect states in the database, solve problems of communication between different processes.

3. The method for BMC-parameter configuring and taking-effect according to claim 1 , wherein the operation of, after the first process receives the first external parameter, writing the first external parameter into the database, and triggering the interruption serving program at the same time comprises:

after the first process receives the first external parameter by using a first GPIO, writing the first external parameter into the database, and triggering the interruption serving program by using a second GPIO short-circuited to the first GPIO at the same time.

4. The method for BMC-parameter configuring and taking-effect according to claim 1 , wherein the method further comprises:

after a second process receives a second external parameter, determining whether in the database there exists a parameter-configuring state that is the being-configured; and

when no parameter-configuring state is the being-configured, modifying a parameter-configuring state corresponding to the second external parameter of the database to be the being-configured, to realize configuring and taking-effect of the second external parameter.

5. The method for BMC-parameter configuring and taking-effect according to claim 1 , wherein the method further comprises:

recording a configuring duration of the configuring of the first external parameter; and

when the configuring duration exceeds a preset duration, determining that the configuring is overtime.

6. The method for BMC-parameter configuring and taking-effect according to claim 1 , wherein after the operation of writing the first external parameter into the database, the method further comprises:

after the first external parameter is successfully written into the configuration file, updating the parameter-configuring state corresponding to the first external parameter in the database to configuration success; and

when the first external parameter is not successfully written into the configuration file, according to an error type of a writing error in a writing process, updating the parameter-configuring state, wherein the parameter-configuring state corresponding to the error type includes one or more of being-idle, configuration file does not exist, configuration parameter does not exist, parameter configuration error and another error.

7. The method for BMC-parameter configuring and taking-effect according to claim 1 , wherein the method further comprises:

feeding back the parameter-configuring state obtained after the parameter configuring to a user side.

8. The method for BMC-parameter configuring and taking-effect according to claim 1 , wherein the database is a redis database.

9. The method for BMC-parameter configuring and taking-effect according to claim 1 , wherein the operation of, according to the parameter taking-effect state, performing the taking-effect processing comprises:

according to the parameter taking-effect state, determining a corresponding taking-effect condition; and

according to the taking-effect condition, performing the taking-effect processing;

wherein the taking-effect condition includes one or more of taking effect immediately, taking effect when a BMC restarts automatically, taking effect when a BMC restarts next time, and taking effect delayed.

10. An electronic device, wherein the electronic device comprises:

a memory configured for storing a computer program; and

a processor configured for, when executing the computer program, implementing the operations comprising:

after a first process receives a first external parameter, modifying a parameter-configuring state corresponding to the first external parameter of a database to be being-configured, writing the first external parameter into the database, and triggering an interruption serving program at the same time;

by using the interruption serving program, determining whether in the database there exists a parameter-configuring state that is the being-configured;

when in the database there exists the parameter-configuring state that is the being-configured, writing the first external parameter stored in the database into a configuration file; and

after the first external parameter is successfully written into the configuration file, acquiring, from the database, a parameter taking-effect state corresponding to the first external parameter, and according to the parameter taking-effect state, performing taking-effect processing.

11. A computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program, when executed by a processor, implements the operations comprising:

after a first process receives a first external parameter, modifying a parameter-configuring state corresponding to the first external parameter of a database to be being-configured, writing the first external parameter into the database, and triggering an interruption serving program at the same time;

by using the interruption serving program, determining whether in the database there exists a parameter-configuring state that is the being-configured;

when in the database there exists the parameter-configuring state that is the being-configured, writing the first external parameter stored in the database into a configuration file; and

after the first external parameter is successfully written into the configuration file, acquiring, from the database, a parameter taking-effect state corresponding to the first external parameter, and according to the parameter taking-effect state, performing taking-effect processing.

12. The method for BMC-parameter configuring and taking-effect according to claim 1 , wherein the operation of writing the first external parameter into the database comprises:

writing the first external parameter into a predetermined position of the database.

13. The method for BMC-parameter configuring and taking-effect according to claim 1 , wherein the method further comprises:

providing a key-value pair of one parameter-configuring state in the database, wherein a state key describes a key-value pair of a type of an array, and each of elements in the array represents the parameter-configuring state of a type of parameters.

14. The method for BMC-parameter configuring and taking-effect according to claim 1 , wherein the method further comprises:

providing a key-value pair of one parameter taking-effect state in the database, wherein a state key describes a key-value pair of a type of an array, and each of elements in the array represents a taking-effect condition of a type of parameters.

15. The method for BMC-parameter configuring and taking-effect according to claim 5 , wherein after the operation of when the configuring duration exceeds a preset duration, determining that the configuring is overtime, the method further comprises:

processing configuring of the next external parameter; and

after a predetermined condition is reached, reconfiguring the first external parameter.

16. The electronic device according to claim 10 , wherein the database stores parameter-configuring states corresponding to a plurality of types of parameters;

the database is provided with parameter taking-effect states, to represent conditions required for taking-effect of each of the types of parameters; and

processes, by using the corresponding parameter-configuring states and parameter taking-effect states in the database, solve problems of communication between different processes.

17. The electronic device according to claim 10 , wherein the operation of, after the first process receives the first external parameter, writing the first external parameter into the database, and triggering the interruption serving program at the same time comprises:

after the first process receives the first external parameter by using a first GPIO, writing the first external parameter into the database, and triggering the interruption serving program by using a second GPIO short-circuited to the first GPIO at the same time.

18. The electronic device according to claim 10 , wherein the operations further comprise:

after a second process receives a second external parameter, determining whether in the database there exists a parameter-configuring state that is the being-configured; and

when no parameter-configuring state is the being-configured, modifying a parameter-configuring state corresponding to the second external parameter of the database to be the being-configured, to realize configuring and taking-effect of the second external parameter.

19. The computer-readable storage medium according to claim 11 , wherein the database stores parameter-configuring states corresponding to a plurality of types of parameters;

the database is provided with parameter taking-effect states, to represent conditions required for taking-effect of each of the types of parameters; and

processes, by using the corresponding parameter-configuring states and parameter taking-effect states in the database, solve problems of communication between different processes.

20. The computer-readable storage medium according to claim 11 , wherein the operation of, after the first process receives the first external parameter, writing the first external parameter into the database, and triggering the interruption serving program at the same time comprises:

after the first process receives the first external parameter by using a first GPIO, writing the first external parameter into the database, and triggering the interruption serving program by using a second GPIO short-circuited to the first GPIO at the same time.

Assignments (2)
LICENSE Recorded Jun 30, 2026
From: IEIT SYSTEMS CO., LTD
To: AIVRES SYSTEMS INC.
Reel/Frame 075857/0939 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded May 27, 2023
From: HOU, ZHILI
To: INSPUR SUZHOU INTELLIGENT TECHNOLOGY CO., LTD.
Reel/Frame 063780/0647 →
Priority Claims (1)
CN 202110691443.X · Jun 22, 2021 · national