CN115718628A - Low-temperature power-on self-starting method, system, device and medium of edge server - Google Patents

Low-temperature power-on self-starting method, system, device and medium of edge server Download PDF

Info

Publication number
CN115718628A
CN115718628A CN202211511426.4A CN202211511426A CN115718628A CN 115718628 A CN115718628 A CN 115718628A CN 202211511426 A CN202211511426 A CN 202211511426A CN 115718628 A CN115718628 A CN 115718628A
Authority
CN
China
Prior art keywords
temperature
starting
mcu
bios
power
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211511426.4A
Other languages
Chinese (zh)
Inventor
杨濠宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202211511426.4A priority Critical patent/CN115718628A/en
Publication of CN115718628A publication Critical patent/CN115718628A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Power Sources (AREA)

Abstract

The invention provides a low-temperature power-on self-starting method, a system, a device and a medium of an edge server, wherein the method comprises the following steps: after the power is on, the temperature of the server is monitored, so that the temperature of the server meets the starting condition; acquiring a flag bit through the MCU, and judging whether to send a starting signal to the CPU according to the flag bit; sending a starting signal to the CPU through the MCU; setting MCUFlag1 to be 1 through BIOS, and sending MCUFlag1 to MCU; the BIOS acquires the value of the current State After G3, and sets MCUFlag0 according to the acquired value; judging whether a shutdown action occurs at present; executing an S5CallBack function, and judging whether the value of the State After G3 is the Last Status; setting MCUFlag1 to be 0 through BIOS; and powering off the server. The invention can meet three requirements of automatically starting up the edge server when the edge server is electrified under the condition of low temperature, keeping the shutdown when the edge server is electrified and maintaining the state before the power-off by communicating the BIOS with the BMC and the MCU and storing the state mark by the EEPROM.

Description

Low-temperature power-on self-starting method, system, device and medium of edge server
Technical Field
The invention relates to the technical field of computers, in particular to a low-temperature power-on self-starting method, a system, a device and a medium of an edge server.
Background
At present, a method for powering on and automatically starting up a server commonly adopted by an Intel X86 platform is as follows: the State of the option "State After G3" is modified under BIOS SETUP. And G3 represents that the power supply state of the server is a state that the power supply is cut off and the server is completely powered off. There are three options for this option, S0: after the representative server is electrified, the representative server is started by itself, and the CPU runs to the S0 state to load the BIOS code and is guided to enter the system; the second state is S5: after the representative server is powered on, keeping the state of the CPU as S5, namely a shutdown state; the third option is, last state: after the representative server is powered on, the server is kept in a state before the server is powered off, that is, before the server enters the G3 state, for example, if the server before the server is powered on is in a power-on state, the server is automatically powered on to enter the S0 state when the server is powered on again, and if the server is in a power-off state before the server is powered off, the server is powered off to maintain the S5 state when the server is powered on again.
However, the current solutions have the following drawbacks:
1. the implementation of this scheme relies on a RTC powered register to record the value of the option "State After G3" and to record the on and off State of the machine before power up. After the server is powered on, the PCH is powered on, and the ME in the PCH can determine whether to send a starting signal to the CPU by judging the state of the register, so that whether to start the server when the server is powered on next time is controlled. If the battery voltage is too low, the state of the register cannot be maintained, and the server cannot be powered on or powered off as required according to the requirements of customers.
2. If the server is in a low-temperature environment, for example, in an edge server scene, the low temperature of the machine may reach minus 40 ℃, generally, in order to solve the problem of the low-temperature environment, the current MCU may detect the ambient temperature after receiving a power-on key signal and before sending an instruction to the CPU to notify the power-on, if the temperature is too low, the heating sheet is enabled to heat the server, and after the temperature reaches the standard, a signal is sent to enable the CPU to power on. At this time, if the power-on automatic start is set, power is supplied to the PCH, and after the ME code is loaded internally, the CPU is controlled to start up and enters the S0 state, and other devices of the server cannot normally start up due to low temperature, so that the server is down or has abnormal functions.
Disclosure of Invention
In view of the above problems, an object of the present invention is to provide a method, a system, a device, and a medium for low-temperature power-on self-start of an edge server, which can satisfy three requirements of an edge server that is powered on at a low temperature for automatic start, power on for shutdown, and power on for maintaining a state before power off, by communicating a BIOS with a BMC and an MCU and storing a state flag in an EEPROM.
In order to achieve the purpose, the invention is realized by the following technical scheme: a low-temperature power-on self-starting method of an edge server comprises the following steps:
s1: after the power is on, the temperature of the server is monitored through the MCU, and the temperature of the server is ensured to meet the starting condition;
s2: acquiring a flag MCUFlag0 and a flag MCUFlag1 through the MCU, and judging whether to send a starting signal to the CPU according to the flag; if yes, executing step S3; otherwise, the current state is maintained until power is off;
s3: sending a starting signal to the CPU through the MCU to enable the CPU to enter an S0 state;
s4: loading and initializing IPMI through BIOS, and setting MCUFlag1 to be 1;
s5: the BIOS sends the MCUFlag1 to the MCU through the BMC and stores the MCUFlag 1;
s6: the BIOS acquires the value of the current SetUp option State After G3, sets MCUFlag0 according to the acquired value, and stores the value;
s7: judging whether a shutdown action occurs at present; if yes, executing step S8, otherwise, maintaining the current state until powering off;
s8: executing an S5CallBack function through the BIOS, and judging whether the value of the State After G3 is the Last Status; if yes, executing step S9, otherwise, maintaining the current state until powering off;
s9: setting MCUFlag1 to be 0 through BIOS, and storing;
s10: and powering off the server.
Further, step S1 includes:
after the power is on, the MCU executes a temperature control program by loading a code, acquires a temperature value by a built-in temperature sensor of the server, and compares the temperature value with a preset value;
if the temperature value is greater than or equal to the preset value, the starting condition is met, and the next step is directly executed;
if the temperature value is smaller than the preset value, the starting condition is not met, the heating action of the heating sheet is continuously executed, and the temperature is continuously monitored until the starting condition is met.
Further, step S2 includes:
the MCU acquires a flag bit MCUFlag0 and a flag bit MCUFlag1 from a built-in EEPROM, and performs AND calculation on the MCUFlag0 and the MCUFlag1 to generate a calculation result;
if the calculation result is 1, sending a starting signal to the CPU, and enabling the subsequent CPU to enter an S0 state; if the calculation result is 0, the state is maintained, and the CPU is in an S5 state and is maintained to be powered down.
Further, step S4 includes:
initializing a CPU, an internal memory and IO equipment through a BIOS, and loading a boot system for starting;
initializing the IPMI service of the BIOS through the BIOS, and enabling the IPMI service to interact with the BMC, wherein after the IPMI initialization is completed, the BIOS sets the current MCUFlag1 to be 1, and the current server is in a starting state.
Further, step S5 includes:
the BIOS sends the MCUFlag1 to the BMC through an IPMI command;
after receiving the MCUFlag1, the BMC establishes communication with the MCU through the I2C, sends the MCUFlag1 to the MCU, and stores the MCUFlag1 in an EEPROM (electrically erasable programmable read-Only memory) built in the MCU.
Further, step S6 includes:
the BIOS acquires the value of the current SetUp option State After G3;
if the obtained value is S0 or Last Status, setting MCUFlag0 to 1;
if the acquired value is S5, MCUFlag0 is set to 0;
after the MCUFlag0 is set, the BIOS sends the MCUFlag0 to the MCU through the BMC and stores the MCUFlag0 in the EEPROM built in the MCU.
Further, step S9 includes:
setting MCUFlag1 to be 0 in an S5CallBack function through a BIOS;
and the BIOS sends the MCUFlag1 to the MCU through the BMC and stores the MCUFlag1 in an EEPROM built in the MCU.
Correspondingly, the invention also discloses a low-temperature power-on self-starting system of the edge server, which comprises the following components: the temperature monitoring unit is used for monitoring the temperature of the server through the MCU after the power is on, and ensuring that the temperature of the server meets the starting condition;
the first judgment unit is used for acquiring a flag MCUFlag0 and a flag MCUFlag1 through the MCU and judging whether to send a starting signal to the CPU according to the flag;
the starting unit is used for sending a starting signal to the CPU through the MCU so as to enable the CPU to enter an S0 state;
the flag bit setting unit is used for setting the values of a flag bit MCUFlag0 and a flag bit MCUFlag1 through a BIOS; the flag bit storage unit is used for controlling the BIOS to send the MCUFlag0 and the MCUFlag1 to the MCU through the BMC and store the MCUFlag0 and the MCUFlag 1;
the option acquisition unit is used for controlling the BIOS to acquire the value of the current SetUp option State After G3, setting MCUFlag0 according to the acquired value and storing the value;
the second judgment unit is used for judging whether the shutdown action occurs currently;
the option identification unit is used for executing an S5CallBack function through the BIOS and judging whether the value of State After G3 is Last Status;
and the power-off unit is used for carrying out power-off operation on the server.
Correspondingly, the invention discloses a low-temperature power-on self-starting device of an edge server, which comprises:
the memory is used for storing a low-temperature power-on self-starting program of the edge server;
and the processor is used for realizing the steps of the low-temperature power-on self-starting method of the edge server when executing the low-temperature power-on self-starting program of the edge server.
Correspondingly, the invention discloses a readable storage medium, wherein the readable storage medium stores a low-temperature power-on self-starting program of the edge server, and the low-temperature power-on self-starting program of the edge server realizes the steps of the low-temperature power-on self-starting method of the edge server when being executed by a processor.
Compared with the prior art, the invention has the beneficial effects that: the invention discloses a low-temperature power-on self-starting method, a system, a device and a medium of an edge server. The invention uses EEPROM to store the status flag, and MCU monitors the status flag to execute the control logic, thus avoiding the failure of maintaining the register status due to too low RTC voltage, failure of ME in PCH to send out correct control signal and failure of normal function realization. Meanwhile, in a low-temperature scene, the action of controlling the heating of the heating sheet and the action of controlling the server State after G3 are controlled and executed by the MCU, so that the condition that the server is electrified and automatically started under the condition that the temperature of peripheral IO equipment and the like does not reach the standard is avoided.
Therefore, compared with the prior art, the invention has prominent substantive features and remarkable progress, and the beneficial effects of the implementation are also obvious.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a process flow diagram of an embodiment of the present invention.
Fig. 2 is a system block diagram of an embodiment of the present invention.
In the figure, 1, a temperature monitoring unit; 2. a first judgment unit; 3. a starting unit; 4. a flag bit setting unit; 5. a flag bit storage unit; 6. an option acquisition unit; 7. a second judgment unit; 8. an option identification unit; 9. and a power-down unit.
Detailed Description
The core of the invention is to provide a low-temperature power-on self-starting method of an edge server, in the prior art, because the register state can not be maintained due to the too low RTC voltage, the ME in the PCH can not send out a correct control signal, and the normal power-on self-starting function can not be realized. In addition, if the server is in a low-temperature environment, other devices of the server cannot be normally started due to low temperature, and a downtime or abnormal function occurs.
The low-temperature power-on self-starting method of the edge server provided by the invention realizes three requirements of automatic power-on starting, power-on shutdown and power-on power-off state maintenance through the communication of the BIOS, the BMC and the MCU and the storage of the state mark by the EEPROM. The invention uses EEPROM to store the status flag, and MCU monitors the status flag to execute the control logic, thus avoiding the failure of maintaining the register status due to too low RTC voltage, failure of ME in PCH to send out correct control signal and failure of normal function realization. Meanwhile, in a low-temperature scene, the action of controlling the heating of the heating sheet and the action of controlling the server State after G3 are controlled and executed by the MCU, so that the condition that the server is electrified and automatically started under the condition that the temperature of peripheral IO equipment and the like does not reach the standard is avoided.
In order that those skilled in the art will better understand the disclosure, reference will now be made in detail to the embodiments of the disclosure as illustrated in the accompanying drawings. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, belong to the protection scope of the present invention.
The first embodiment is as follows:
as shown in fig. 1, the embodiment provides a low-temperature power-on self-starting method for an edge server, including the following steps:
s1: after the power is on, the temperature of the server is monitored through the MCU, and the temperature of the server is ensured to meet the starting condition.
Specifically, after the power is on, the MCU executes a temperature control program by loading a code, acquires a temperature value by a built-in temperature sensor of the server, and compares the temperature value with a preset value. If the temperature value is greater than or equal to the preset value, the starting condition is met, and the next step is directly executed; if the temperature value is smaller than the preset value, the starting condition is not met, the heating action of the heating sheet is continuously executed, and the temperature is continuously monitored until the starting condition is met.
S2: acquiring a flag MCUFlag0 and a flag MCUFlag1 through the MCU, and judging whether to send a starting signal to the CPU according to the flag; if yes, executing step S3; otherwise, the current state is maintained until power is turned off.
Specifically, the MCU obtains the flag bits MCUFlag0 and MCUFlag1 from the built-in EEPROM, and performs an and calculation on the MCUFlag0 and MCUFlag1 to generate a calculation result. At the moment, whether a starting signal is sent to the CPU is judged according to the calculation result, if the calculation result is 1, the starting signal is sent to the CPU, and the subsequent CPU enters an S0 state; if the calculation result is 0, the state is maintained, and the CPU is in an S5 state and is maintained to be powered down.
S3: and sending a starting signal to the CPU through the MCU to enable the CPU to enter an S0 state.
S4: and loading and initializing IPMI through BIOS, and setting MCUFlag1 to be 1.
Firstly, the CPU memory and the IO equipment are initialized through the BIOS, and a boot system is loaded and started. Then, initializing the IPMI service of the BIOS through the BIOS for interacting with the BMC, and after the IPMI initialization is completed, setting the current MCUFlag1 to be 1 by the BIOS to indicate that the current server is in a starting state.
S5: and the BIOS sends the MCUFlag1 to the MCU through the BMC and stores the MCUFlag 1.
The method specifically comprises the following steps: the BIOS sends the MCUFlag1 to the BMC through an IPMI command; after receiving the MCUFlag1, the BMC establishes communication with the MCU through the I2C, sends the MCUFlag1 to the MCU, and stores the MCUFlag1 in an EEPROM built in the MCU for next judgment and use.
S6: and the BIOS acquires the value of the current SetUp option State After G3, sets MCUFlag0 according to the acquired value, and stores the value.
Firstly, the BIOS acquires the value of the current SetUp option State After G3; if the obtained value is S0 or Last Status, setting MCUFlag0 to 1; if the acquired value is S5, MCUFlag0 is set to 0; after the MCUFlag0 is set, the BIOS sends the MCUFlag0 to the MCU through the BMC and stores the MCUFlag0 in the EEPROM built in the MCU.
The following are specifically mentioned:
if the power is abnormally powered off, when the power is powered on again, the Last State of the server is S0, namely the power-on State.
If the set "State After G3" is "S0" or "Last Status", the MCU should send a power-on signal to make the CPU enter S0, and actually the values of MCUFlag0 and 1 are both 1, and the flag bit and the calculation result are 1, referring to step S2, the CPU will execute the power-on action and enter S0 State, which is in accordance with expectations.
If the set "State After G3" is "S5", the MCU should not send a power-on signal to keep the CPU in the S5 State, actually, the MCUFlag0 value is 0, the MCUFlag1 value is 1, the flag bit is 0 After the and calculation, referring to step S2, the power-on action is not performed, and the CPU will keep the S5 State, which is expected.
S7: judging whether a shutdown action occurs at present; if yes, step S8 is executed, otherwise, the current state is maintained until power is off.
S8: executing an S5CallBack function through the BIOS, and judging whether the value of the State After G3 is the Last Status; if yes, step S9 is executed, otherwise, the current state is maintained until power is off.
S9: setting MCUFlag1 to 0 through BIOS, and storing.
Firstly, setting MCUFlag1 to be 0 in an S5CallBack function through a BIOS; then, the BIOS sends the MCUFlag1 to the MCU through the BMC and stores the MCUFlag in an EEPROM built in the MCU.
It should be noted that if a normal shutdown operation occurs in the power-on state, the S5CallBack function of the BIOS is triggered. At this time, the server is going to enter the S5 State, and if "State After G3" is selected as "Last Status", the server should be in the power-off State After being powered on again (S5). The Intel X86 architecture CPU is realized by writing a fixed numerical value into a fixed IO address to trigger an interrupt, and the BIOS associates the interrupt with a self-defined S5CallBack function in the form of registering an interrupt processing function. Registering an interrupt handling function is a routine action of the BIOS. In the S5CallBack function, the value of the current SetUp option "State After G3" is obtained, and if the value is "S0" or "Last Status", MCUFlag1 is set to 0. If the value is S5, BIOS does not act, i.e., MCUFlag1 remains at 1.
At this time, the CPU enters the S5 State after shutdown, and if the power is abnormally turned off, the Last State of the server is S5 when the power is turned on again, namely the power-off State.
If the set "State After G3" is "S0", the MCU should send a power-on signal to make the CPU enter S0, and actually the values of MCUFlag0 and 1 are both 1, and the flag bit and the calculation result are 1, referring to step S2, the power-on action is executed, and the CPU enters S0, which is in line with expectations.
If the set "State After G3" is "S5", the MCU should not send a power-on signal to keep the CPU on S5, and actually the MCUFlag0 value is 0, the MCUFlag1 value is 0, the flag bit is summed with the calculated flag bit result is 0, and referring to step S2, the power-on operation is not executed, and the CPU maintains the S5 State, which is expected.
If the set "State After G3" is "Last Status", the MCU should not send a power-on signal to keep the CPU in S5, and actually the value of MCUFlag0 is 1, the value of MCUFlag1 is 0, the flag bit is 0 After the and calculation, the power-on action is not executed in reference to step S2, and the CPU maintains the State of S5, which is in accordance with expectations.
S10: and powering off the server.
Therefore, the method essentially provides a starting process that the edge server is powered on after abnormal power-off and is powered off again. Under a low-temperature scene, after the abnormal power failure is re-electrified, the edge server realizes the execution flow of the function of 'State After G3'. The MCU has two states to be judged, MCUFlag0: state After G3, MCUFlag1: last State. The values of the two flags are determined by the BIOS and are sent to the BMC through the IPMI, and the BMC and the MCU are communicated through an I2C link and are stored in the EEPROM by the MCU.
The embodiment provides a low-temperature power-on self-starting method of an edge server, which realizes three requirements of automatic power-on starting, power-on shutdown and power-on power-off before maintenance by communicating a BIOS (basic input/output system) with a BMC (baseboard management controller) and an MCU (micro control unit) and storing a state mark by an EEPROM (electrically erasable programmable read-only memory). The method uses the EEPROM to store the state mark, and the MCU monitors the state mark and executes the control logic, thereby avoiding that the register state can not be maintained due to too low RTC voltage, the ME in the PCH can not send out correct control signals, and the function can not be normally realized. Meanwhile, in a low-temperature scene, the action of controlling the heating of the heating sheet and the action of controlling the server State after G3 are controlled and executed by the MCU, so that the condition that the server is electrified and automatically started under the condition that the temperature of peripheral IO equipment and the like does not reach the standard is avoided.
The second embodiment:
based on the first embodiment, as shown in fig. 2, the present invention further discloses a low-temperature power-on self-starting system for an edge server, including: the device comprises a temperature monitoring unit 1, a first judging unit 2, a starting unit 3, a zone bit setting unit 4, a zone bit storage unit 5, an option obtaining unit 6, a second judging unit 7, an option identifying unit 8 and a power-off unit 9.
And the temperature monitoring unit 1 is used for monitoring the temperature of the server through the MCU after the power is on, and ensuring that the temperature of the server meets the starting condition. The temperature monitoring unit 1 is specifically configured to: after the power is on, the MCU executes a temperature control program by loading a code, acquires a temperature value by a built-in temperature sensor of the server, and compares the temperature value with a preset value; if the temperature value is greater than or equal to a preset value, the starting condition is met; if the temperature value is smaller than the preset value, the starting condition is not met, the heating action of the heating sheet is continuously executed, and the temperature is continuously monitored until the starting condition is met.
And the first judgment unit 2 is used for acquiring the flag bits MCUFlag0 and MCUFlag1 through the MCU and judging whether to send a power-on signal to the CPU according to the flag bits. The first judging unit 2 is specifically configured to: the MCU acquires a flag bit MCUFlag0 and a flag bit MCUFlag1 from a built-in EEPROM, and performs AND calculation on the MCUFlag0 and the MCUFlag1 to generate a calculation result; if the calculation result is 1, sending a starting signal to the CPU, and enabling the subsequent CPU to enter an S0 state; if the calculation result is 0, the state is maintained, and the CPU is in an S5 state and is maintained to be powered down.
And the starting unit 3 is used for sending a starting signal to the CPU through the MCU so as to enable the CPU to enter an S0 state.
And the flag bit setting unit 4 is used for setting the values of the flag bits MCUFlag0 and MCUFlag1 through the BIOS. The flag setting unit 4 is specifically configured to: initializing a CPU, a memory and IO equipment through a BIOS, and loading a boot system to start; initializing the IPMI service of the BIOS through the BIOS, wherein the IPMI service is used for interacting with the BMC, and after the IPMI initialization is completed, the BIOS sets the values of the current flag MCUFlag0 and the flag MCUFlag 1.
And the flag bit storage unit 5 is used for controlling the BIOS to send the MCUFlag0 and the MCUFlag1 to the MCU through the BMC and store the MCUFlag0 and the MCUFlag 1. The flag bit storage unit 5 is specifically configured to: the BIOS sends the MCUFlag0 and the MCUFlag1 to the BMC through an IPMI command; after receiving the MCUFlag0 and the MCUFlag1, the BMC establishes communication with the MCU through the I2C, sends the MCUFlag0 and the MCUFlag1 to the MCU, and stores the MCUFlag0 and the MCUFlag1 in an EEPROM built in the MCU.
And the option obtaining unit 6 is used for controlling the BIOS to obtain the value of the current SetUp option State After G3, setting the MCUFlag0 according to the obtained value, and storing the value.
The second judging unit 7 is configured to judge whether a shutdown action occurs currently.
And the option identification unit 8 is used for executing the S5CallBack function through the BIOS and judging whether the value of State After G3 is the Last Status.
And the power-off unit 9 is used for carrying out power-off operation on the server.
The embodiment provides a low-temperature power-on self-starting system of an edge server, which realizes three requirements of automatic power-on starting, power-on shutdown and power-on before power-off maintaining state by means of communication between a BIOS (basic input/output system) and a BMC (baseboard management controller) and an MCU (micro control unit) and storage of a state mark by an EEPROM (electrically erasable programmable read-only memory).
Example three:
the embodiment discloses a low-temperature power-on self-starting device of an edge server, which comprises a processor and a memory; wherein, the processor implements the following steps when executing the low-temperature power-on self-starting program of the edge server stored in the memory:
1. after the power is on, the temperature of the server is monitored through the MCU, and the temperature of the server is ensured to meet the starting condition.
2. Acquiring a flag MCUFlag0 and a flag MCUFlag1 through the MCU, and judging whether to send a starting signal to the CPU according to the flag; if yes, executing step 3; otherwise, the current state is maintained until power is down.
3. And sending a starting signal to the CPU through the MCU to enable the CPU to enter an S0 state.
4. And loading and initializing IPMI through BIOS, and setting MCUFlag1 to be 1.
5. And the BIOS sends the MCUFlag1 to the MCU through the BMC and stores the MCUFlag 1.
6. And the BIOS acquires the value of the current SetUp option State After G3, sets the MCUFlag0 according to the acquired value, and stores the value.
7. Judging whether a shutdown action occurs at present; if yes, executing step 8, otherwise, maintaining the current state until powering down.
8. Executing an S5CallBack function through the BIOS, and judging whether the value of State After G3 is Last Status; if yes, step 9 is executed, otherwise, the current state is maintained until power is off.
9. Setting MCUFlag1 to 0 through BIOS, and storing.
10. And powering off the server.
Further, the low-temperature power-on self-starting apparatus of the edge server in this embodiment may further include:
and the input interface is used for acquiring the externally introduced low-temperature power-on self-starting program of the edge server, storing the acquired low-temperature power-on self-starting program of the edge server into the memory, and also used for acquiring various instructions and parameters transmitted by external terminal equipment and transmitting the instructions and parameters to the processor, so that the processor can perform corresponding processing by using the instructions and the parameters. In this embodiment, the input interface may specifically include, but is not limited to, a USB interface, a serial interface, a voice input interface, a fingerprint input interface, a hard disk reading interface, and the like.
And the output interface is used for outputting various data generated by the processor to the terminal equipment connected with the output interface, so that other terminal equipment connected with the output interface can acquire various data generated by the processor. In this embodiment, the output interface may specifically include, but is not limited to, a USB interface, a serial interface, and the like.
And the communication unit is used for establishing remote communication connection between the low-temperature power-on self-starting device of the edge server and the external server so that the low-temperature power-on self-starting device of the edge server can mount the mirror image file into the external server. In this embodiment, the communication unit may specifically include, but is not limited to, a remote communication unit based on a wireless communication technology or a wired communication technology.
And the keyboard is used for acquiring various parameter data or instructions input by a user through real-time key cap knocking.
And the display is used for displaying relevant information in the short circuit positioning process of the power supply line of the running server in real time.
The mouse can be used for assisting a user in inputting data and simplifying the operation of the user.
Example four:
the present embodiments also disclose a readable storage medium, where the readable storage medium includes Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, a hard disk, a removable hard disk, a CD-ROM, or any other form of storage medium known in the art. The readable storage medium stores a low-temperature power-on self-starting program of the edge server, and when the low-temperature power-on self-starting program of the edge server is executed by the processor, the low-temperature power-on self-starting program of the edge server realizes the following steps:
1. after the power is on, the temperature of the server is monitored through the MCU, and the temperature of the server is ensured to meet the starting condition.
2. Acquiring a flag MCUFlag0 and a flag MCUFlag1 through the MCU, and judging whether to send a starting signal to the CPU according to the flag; if yes, executing step 3; otherwise, the current state is maintained until power is down.
3. And sending a starting signal to the CPU through the MCU to enable the CPU to enter an S0 state.
4. And loading and initializing IPMI through BIOS, and setting MCUFlag1 to be 1.
5. And the BIOS sends the MCUFlag1 to the MCU through the BMC and stores the MCUFlag 1.
6. And the BIOS acquires the value of the current SetUp option State After G3, sets the MCUFlag0 according to the acquired value, and stores the value.
7. Judging whether a shutdown action occurs at present; if yes, executing step 8, otherwise, maintaining the current state until powering down.
8. Executing an S5CallBack function through the BIOS, and judging whether the value of State After G3 is Last Status; if yes, step 9 is executed, otherwise, the current state is maintained until power is off.
9. Setting MCUFlag1 to 0 through BIOS, and storing.
10. And powering off the server.
In summary, the invention, through the communication between the BIOS and the BMC and the MCU, and by storing the status flag in the EEPROM, meets the three requirements of the edge server, namely, automatic power-on, power-on-off-keeping, and power-on-off-keeping before power-on.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. For the method disclosed by the embodiment, the description is simple because the method corresponds to the system disclosed by the embodiment, and the relevant points can be referred to the description of the method part.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the several embodiments provided in the present invention, it should be understood that the disclosed system, system and method may be implemented in other ways. For example, the above-described system embodiments are merely illustrative, and for example, the division of the units is only one type of logical functional division, and other divisions may be realized in practice, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, systems or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each module may exist alone physically, or two or more modules are integrated into one unit.
Similarly, each processing unit in the embodiments of the present invention may be integrated into one functional module, or each processing unit may exist physically, or two or more processing units are integrated into one functional module.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Finally, it should also be noted that, in this document, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
The method, system, apparatus and readable storage medium for low-temperature power-on self-start of edge server provided by the present invention are described in detail above. The principles and embodiments of the present invention are explained herein using specific examples, which are presented only to assist in understanding the method and its core concepts. It should be noted that, for those skilled in the art, without departing from the principle of the present invention, it is possible to make various improvements and modifications to the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.

Claims (10)

1. A low-temperature power-on self-starting method of an edge server is characterized by comprising the following steps:
s1: after the power is on, the temperature of the server is monitored through the MCU, and the temperature of the server is ensured to meet the starting condition;
s2: acquiring a flag MCUFlag0 and a flag MCUFlag1 through the MCU, and judging whether to send a starting signal to the CPU according to the flag; if yes, executing step S3; otherwise, the current state is maintained until power is off;
s3: sending a starting signal to the CPU through the MCU to enable the CPU to enter an S0 state;
s4: loading and initializing IPMI through BIOS, and setting MCUFlag1 as 1;
s5: the BIOS sends the MCUFlag1 to the MCU through the BMC and stores the MCUFlag 1;
s6: the BIOS acquires the value of the current SetUp option State After G3, sets MCUFlag0 according to the acquired value, and stores the value;
s7: judging whether a shutdown action occurs at present; if so, executing the step S8, otherwise, maintaining the current state until powering off;
s8: executing an S5CallBack function through the BIOS, and judging whether the value of State After G3 is Last Status; if yes, executing step S9, otherwise, maintaining the current state until powering off;
s9: setting MCUFlag1 to be 0 through BIOS, and storing;
s10: and powering off the server.
2. The low-temperature power-on self-starting method of the edge server according to claim 1, wherein the step S1 comprises:
after the power is on, the MCU executes a temperature control program by loading a code, acquires a temperature value by a built-in temperature sensor of the server, and compares the temperature value with a preset value;
if the temperature value is greater than or equal to the preset value, the starting condition is met, and the next step is directly executed;
if the temperature value is smaller than the preset value, the starting condition is not met, the heating action of the heating sheet is continuously executed, and the temperature is continuously monitored until the starting condition is met.
3. The low-temperature power-on self-starting method of the edge server according to claim 1, wherein the step S2 comprises:
the MCU acquires a flag bit MCUFlag0 and a flag bit MCUFlag1 from a built-in EEPROM, and performs AND calculation on the MCUFlag0 and the MCUFlag1 to generate a calculation result;
if the calculation result is 1, a starting signal is sent to the CPU, and the subsequent CPU enters an S0 state; if the calculation result is 0, the state is maintained, and the CPU is in an S5 state and is maintained to be powered down.
4. The low-temperature power-on self-starting method of the edge server according to claim 3, wherein the step S4 comprises:
initializing a CPU, an internal memory and IO equipment through a BIOS, and loading a boot system for starting;
initializing the IPMI service of the BIOS through the BIOS, and enabling the IPMI service to interact with the BMC, wherein after the IPMI initialization is completed, the BIOS sets the current MCUFlag1 to be 1, and the current server is in a starting state.
5. The low-temperature power-on self-starting method of the edge server according to claim 4, wherein the step S5 comprises:
the BIOS sends the MCUFlag1 to the BMC through an IPMI command;
after receiving the MCUFlag1, the BMC establishes communication with the MCU through the I2C, sends the MCUFlag1 to the MCU, and stores the MCUFlag1 in an EEPROM (electrically erasable programmable read-only memory) built in the MCU.
6. The low-temperature power-on self-starting method of the edge server according to claim 5, wherein the step S6 comprises:
the BIOS acquires the value of the current SetUp option State After G3;
if the obtained value is S0 or Last Status, setting MCUFlag0 to 1;
if the acquired value is S5, MCUFlag0 is set to 0;
after the MCUFlag0 is set, the BIOS sends the MCUFlag0 to the MCU through the BMC and stores the MCUFlag0 in the EEPROM built in the MCU.
7. The low-temperature power-on self-starting method of the edge server according to claim 6, wherein the step S9 comprises:
setting MCUFlag1 to be 0 in an S5CallBack function through a BIOS;
and the BIOS sends the MCUFlag1 to the MCU through the BMC and stores the MCUFlag1 in an EEPROM built in the MCU.
8. A low-temperature power-on self-starting system of an edge server is characterized by comprising:
the temperature monitoring unit is used for monitoring the temperature of the server through the MCU after the power is on, and ensuring that the temperature of the server meets the starting condition;
the first judgment unit is used for acquiring a flag bit MCUFlag0 and a flag bit MCUFlag1 through the MCU and judging whether to send a starting signal to the CPU according to the flag bit;
the starting unit is used for sending a starting signal to the CPU through the MCU so as to enable the CPU to enter an S0 state;
the flag bit setting unit is used for setting the values of a flag bit MCUFlag0 and a flag bit MCUFlag1 through a BIOS; the flag bit storage unit is used for controlling the BIOS to send the MCUFlag0 and the MCUFlag1 to the MCU through the BMC and store the MCUFlag0 and the MCUFlag 1;
an option obtaining unit, configured to control the BIOS to obtain a value of a current SetUp option State After G3, set MCUFlag0 according to the obtained value, and store the MCUFlag;
the second judgment unit is used for judging whether the shutdown action occurs currently;
the option identification unit is used for executing an S5CallBack function through the BIOS and judging whether the value of the State After G3 is the Last Status;
and the power-off unit is used for carrying out power-off operation on the server.
9. A low-temperature power-on self-starting device of an edge server is characterized by comprising:
the memory is used for storing a low-temperature power-on self-starting program of the edge server;
a processor, configured to implement the steps of the low-temperature power-on self-starting method of the edge server according to any one of claims 1 to 7 when executing the low-temperature power-on self-starting program of the edge server.
10. A readable storage medium, characterized by: the readable storage medium stores a low-temperature power-on self-starting program of the edge server, and the low-temperature power-on self-starting program of the edge server, when executed by the processor, implements the steps of the low-temperature power-on self-starting method of the edge server according to any one of claims 1 to 7.
CN202211511426.4A 2022-11-29 2022-11-29 Low-temperature power-on self-starting method, system, device and medium of edge server Pending CN115718628A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211511426.4A CN115718628A (en) 2022-11-29 2022-11-29 Low-temperature power-on self-starting method, system, device and medium of edge server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211511426.4A CN115718628A (en) 2022-11-29 2022-11-29 Low-temperature power-on self-starting method, system, device and medium of edge server

Publications (1)

Publication Number Publication Date
CN115718628A true CN115718628A (en) 2023-02-28

Family

ID=85257548

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211511426.4A Pending CN115718628A (en) 2022-11-29 2022-11-29 Low-temperature power-on self-starting method, system, device and medium of edge server

Country Status (1)

Country Link
CN (1) CN115718628A (en)

Similar Documents

Publication Publication Date Title
US9367446B2 (en) Computer system and data recovery method for a computer system having an embedded controller
US7028220B2 (en) Methods for saving data on the basis of the remaining capacity of a battery in a suspend mode and resuming operations using the saved data
KR100376939B1 (en) Method to manage after-sales service of computer and a/s system of computer using thereof
CN116107819A (en) Server start-up fault detection system, method, device and medium
CN110658758A (en) Control method and control system
CN100378617C (en) Network wakening device and method
WO2023024863A1 (en) System chip and electronic device
CN102437917B (en) A kind of network wake-up method, network wake-up device and computer
CN115658113A (en) Server self-starting method and device, readable storage medium and electronic equipment
CN114116280A (en) Interactive BMC self-recovery method, system, terminal and storage medium
CN100472467C (en) Method and device for monitoring status of computer power supply fan
CN111176958B (en) Information monitoring method, system and storage medium
CN115718628A (en) Low-temperature power-on self-starting method, system, device and medium of edge server
CN115080136A (en) Server memory training method, system and device and readable storage medium
CN113075992B (en) Memory power-on method, device, equipment and computer readable storage medium
CN113900718B (en) Decoupling method, system and device for BMC and BIOS asset information
CN115509333A (en) Server collaborative power-on and power-off device, method, system and medium
CN114564096B (en) Control method and system for standby power protection and related components
CN108073481B (en) Server system capable of providing hardware operation information and processing method thereof
JP3437397B2 (en) Information processing apparatus, battery pack, and method of calculating remaining battery charge of battery pack
CN114328044B (en) AIC+box topology testing method, device and system
CN111158944A (en) Information processing method, power supply system and electronic equipment system
CN117519836B (en) Method and device for controlling starting of server and server
TWI298137B (en)
CN115470054A (en) Server memory function testing method, system, device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination