CN114564096A - Control method and system for standby power protection and related components - Google Patents

Control method and system for standby power protection and related components Download PDF

Info

Publication number
CN114564096A
CN114564096A CN202210188741.1A CN202210188741A CN114564096A CN 114564096 A CN114564096 A CN 114564096A CN 202210188741 A CN202210188741 A CN 202210188741A CN 114564096 A CN114564096 A CN 114564096A
Authority
CN
China
Prior art keywords
power
power supply
interrupt signal
nmi interrupt
state
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.)
Granted
Application number
CN202210188741.1A
Other languages
Chinese (zh)
Other versions
CN114564096B (en
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 CN202210188741.1A priority Critical patent/CN114564096B/en
Publication of CN114564096A publication Critical patent/CN114564096A/en
Application granted granted Critical
Publication of CN114564096B publication Critical patent/CN114564096B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/28Supervision thereof, e.g. detecting power-supply failure by out of limits supervision
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/30Means for acting in the event of power-supply failure or interruption, e.g. power-supply fluctuations
    • 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
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B70/00Technologies for an efficient end-user side electric power management and consumption
    • Y02B70/30Systems integrating technologies related to power network operation and communication or information technologies for improving the carbon footprint of the management of residential or tertiary loads, i.e. smart grids as climate change mitigation technology in the buildings sector, including also the last stages of power distribution and the control, monitoring or operating management systems at local level
    • 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
    • Y04INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
    • Y04SSYSTEMS INTEGRATING TECHNOLOGIES RELATED TO POWER NETWORK OPERATION, COMMUNICATION OR INFORMATION TECHNOLOGIES FOR IMPROVING THE ELECTRICAL POWER GENERATION, TRANSMISSION, DISTRIBUTION, MANAGEMENT OR USAGE, i.e. SMART GRIDS
    • Y04S20/00Management or operation of end-user stationary applications or the last stages of power distribution; Controlling, monitoring or operating thereof
    • Y04S20/20End-user application control systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Power Sources (AREA)

Abstract

The application discloses control method, system and relevant subassembly of standby power protection, and this method includes: receiving an NMI interrupt signal sent by a CPLD when the PSU detects that AC power failure occurs; running an interrupt processing function according to the NMI interrupt signal so that the interrupt processing function reads the AC power supply state in the GPIO and monitors an AC power failure thread when the AC power supply state is the power failure state; entering a standby power process; the control method further comprises the following steps: if the NMI interrupt signal is lost in the power standby process, polling and reading the AC power supply state at preset time intervals, and monitoring the AC power failure thread again when the AC power supply state is in the power failure state. According to the control method, the NMI interrupt signal is used as the premise, the AC power supply state is read in a polling mode when the NMI interrupt signal is lost, the control method has the advantage of quick sensing, the efficiency of standby power protection can be improved, the power consumption of a standby power supply is saved, and the reliability of data protection is improved.

Description

Control method and system for standby power protection and related components
Technical Field
The invention relates to the field of server control, in particular to a control method and system for standby power protection and related components.
Background
The standby power protection of the server is based on a standby power supply (BBU), and the standby power supply is used for temporarily supplying power to the system when the AC of the system is powered off, so that the data can be rapidly stored.
At present, the standby power protection of the server generally monitors the standby power protection process through a form of direct polling GPIO (General Purpose Input Output), the polling timeliness is poor, waiting time delay of a polling response is waited, and under the premise that the standby power is limited, power consumption in the time delay process is enough to influence the effect of the standby power protection, so that the standby power protection has hidden trouble of data storage failure.
Therefore, how to provide a solution to the above technical problems is a problem to be solved by those skilled in the art.
Disclosure of Invention
In view of the above, the present invention provides a method, a system and related components for controlling backup power protection. The specific scheme is as follows:
a control method of standby power protection comprises the following steps:
receiving an NMI interrupt signal sent by a CPLD when the PSU detects that AC power failure occurs;
running an interrupt processing function according to the NMI interrupt signal so that the interrupt processing function reads an AC power supply state in a GPIO (general purpose input/output) and monitors an AC power failure thread when the AC power supply state is a power failure state;
entering a standby power process;
the control method further comprises the following steps:
and if the NMI interrupt signal is lost in the power standby process, polling and reading the AC power supply state at preset time intervals, and monitoring the AC power failure thread again when the AC power supply state is in a power failure state.
Preferably, before the receiving CPLD detects the NMI interrupt signal sent by the PSU when the AC power failure occurs, the method further includes:
and trapping the NMI interrupt signal into a kernel service state and waiting for receiving the NMI interrupt signal.
Preferably, the trapping process in the kernel service state includes:
trapping into a kernel service state through ioctl system calls.
Preferably, after the power supply process is finished, the method further includes:
and shutting down the main system and the standby power supply by using the Linux ram system.
Preferably, before the main system and the standby power are shut down by the linux ram system, the method further comprises:
invoking kexec to start the linux ram system.
Preferably, after entering the power backup process, the method further includes:
and backing up the cache data and/or the kernel data to the hard disk.
Preferably, after the power supply process is completed, the method further includes:
and exiting the monitoring of the AC power-down thread.
Correspondingly, this application still discloses a control system who is equipped with electric protection, includes:
the receiving module is used for receiving an NMI interrupt signal sent by the CPLD when the PSU detects that the AC power failure occurs;
the terminal module is used for running an interrupt processing function according to the NMI interrupt signal so that the interrupt processing function reads an AC power supply state in a GPIO (general purpose input/output) and monitors an AC power failure thread when the AC power supply state is a power failure state;
the standby power module is used for entering a standby power process;
the terminal module is further configured to:
and if the NMI interrupt signal is lost in the power standby process, polling and reading the AC power supply state at preset time intervals, and monitoring the AC power failure thread again when the AC power supply state is in a power failure state.
Correspondingly, this application still discloses a controlling means who is equipped with electric protection, includes:
a memory for storing a computer program;
a processor for implementing the steps of the control method of the power backup protection as described in any one of the above when executing the computer program.
Correspondingly, the application also discloses a readable storage medium, wherein a computer program is stored on the readable storage medium, and when being executed by a processor, the computer program realizes the steps of the control method of the power backup protection.
The application discloses control method for standby power protection, including: receiving an NMI interrupt signal sent by a CPLD when the PSU detects that AC power failure occurs; running an interrupt processing function according to the NMI interrupt signal so that the interrupt processing function reads an AC power supply state in a GPIO (general purpose input/output) and monitors an AC power failure thread when the AC power supply state is a power failure state; entering a standby power process; the control method further comprises the following steps: and if the NMI interrupt signal is lost in the power standby process, polling and reading the AC power supply state at preset time intervals, and monitoring the AC power failure thread again when the AC power supply state is in a power failure state. According to the control method, the NMI interrupt signal is used as the premise, the AC power supply state is read in a polling mode when the NMI interrupt signal is lost, the control method has the advantage of quick sensing, the efficiency of standby power protection can be improved, the power consumption of a standby power supply is saved, and the reliability of data protection is improved.
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 flowchart illustrating steps of a control method for standby power protection according to an embodiment of the present invention;
fig. 2 is an information transmission diagram of a control method of standby power protection according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a control system for standby power protection according to an embodiment of the present invention;
fig. 4 is a structural distribution diagram of an electrically protected control device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
At present, the standby power protection of server, generally through the form of direct polling GPIO monitor the protection process of standby power, this kind of polling timeliness is relatively poor, waits for the waiting time delay of polling response, under the limited prerequisite of standby power volume, the power consumptive in the delay process is enough to influence the effect of standby power protection, leads to the standby power protection to have the hidden danger of data storage failure.
According to the control method, the NMI interrupt signal is used as the premise, the AC power supply state is read in a polling mode when the NMI interrupt signal is lost, the control method has the advantage of quick sensing, the efficiency of standby power protection can be improved, the power consumption of a standby power supply is saved, and the reliability of data protection is improved.
The embodiment of the invention discloses a control method of standby power protection, which is shown in figure 1 and comprises the following steps:
s1: receiving an NMI interrupt signal sent by a CPLD when the PSU detects that AC power failure occurs;
specifically, the generation of an NMI (Non-Maskable Interrupt) Interrupt signal is assumed to be a kernel service state, so that the control method in this embodiment further includes, before receiving an NMI Interrupt signal sent when a CPLD (Complex Programmable Logic Device) detects that a PSU (Power Supply Unit) has an AC Power failure:
and trapping the core in a kernel service state and waiting for receiving an NMI interrupt signal.
Specifically, the process of trapping in the kernel service state includes trapping in the kernel service state through ioctl system call, so that the user mode program is quickly sensed.
S2: running an interrupt processing function according to the NMI interrupt signal so that the interrupt processing function reads the AC power supply state in the GPIO and monitors an AC power failure thread when the AC power supply state is the power failure state;
s3: entering a standby power process;
it is understood that the power backup process may be performed according to a conventional power backup flow.
Further, after entering the power standby process, the method further comprises the following steps: and backing up the cache data and/or the kernel data to the hard disk. It can be understood that the operation of backing up the cache data or the kernel data to the hard disk is independent of the conventional backup data protection, so as to further improve the safety, reliability and integrity of the critical data.
The control method further comprises the following steps:
s4: if the NMI interrupt signal is lost in the power standby process, polling and reading the AC power supply state at preset time intervals, and monitoring the AC power failure thread again when the AC power supply state is in the power failure state.
It can be understood that, if the power backup process can be normally monitored, based on whether the NMI interrupt signal is in place, once the NMI interrupt signal is lost, the AC power supply state must be polled and read, and the AC power down thread monitored again when the state is determined to be the power down state.
It can be understood that, after the power supply process is completed, the method further includes: and exiting the monitoring of the AC power-down thread. And after the data protection of the standby power is finished, the AC power-down thread is not required to be monitored, so that the standby power can be directly quitted.
Further, after the power supply process is finished, the method further comprises the following steps:
and shutting down the main system and the standby power supply by using the Linux ram system.
The method has the advantages that the main system is actively closed by using the Linux ram system, so that the damage caused by sudden power failure of the main system can be avoided; the standby power supply is actively turned off by using the Linux ram system, so that the situation that the standby power supply cannot be turned off due to power failure of the main system and the standby power supply is over-discharged and damaged can be effectively prevented.
It can be understood that, before the Linux ram system is started before being used, that is, before the main system and the standby power supply are shut down by the Linux ram system, the Linux ram system further includes:
invoking kexec starts the linux ram system.
The application discloses control method for standby power protection, including: receiving an NMI interrupt signal sent by a CPLD when the PSU detects that AC power failure occurs; running an interrupt processing function according to the NMI interrupt signal so that the interrupt processing function reads an AC power supply state in a GPIO (general purpose input/output) and monitors an AC power failure thread when the AC power supply state is a power failure state; entering a standby power process; the control method further comprises the following steps: and if the NMI interrupt signal is lost in the power standby process, polling and reading the AC power supply state at preset time intervals, and monitoring the AC power failure thread again when the AC power supply state is in a power failure state. According to the control method, the NMI interrupt signal is used as the premise, the AC power supply state is read in a polling mode when the NMI interrupt signal is lost, the control method has the advantage of quick sensing, the efficiency of standby power protection can be improved, the power consumption of a standby power supply is saved, and the reliability of data protection is improved.
The embodiment of the invention discloses a specific control method for standby power protection, and compared with the previous embodiment, the embodiment further describes and optimizes the technical scheme. Specifically, see fig. 2 for a description of:
the control method for the standby power protection in the embodiment is realized as follows through the whole from the protection starting to the standby power protection ending in the software by wdk, service _ main, IO _ device and service _ start:
a) service _ start starting Service _ main process Service
b) Service _ main process Service starting IO _ main process Service
c) Service _ main startup initialization backup power supply BBU electrical parameters
d) The Service _ main enters a kernel Service state through ioctl system call, an AC power supply state is obtained through wdk drive, if the AC power supply state is not a power failure state AC loss, the Service _ main enters the kernel for a long time to wait for sleep blocking until the AC loss occurs, namely the AC power supply state is the power failure state, an AC offline process is awakened, and the ioctl system call is exited;
e) after the AC loss power failure occurs, 2 PSUs all power down, usually the PSU supports 3ms anti-shaking, and then the external plug-in card is powered off after 6 ms.
f) Then the PSU generates AC loss, and sends an AC power failure signal to the CPLD as an interrupt;
g) the CPLD detects an AC power failure signal and switches a power supply mode to BBU power supply;
h) the CPLD sets an AC power-down signal and then triggers an NMI interrupt signal;
i) wdk, triggering wdk interrupt processing function in the drive when the drive receives the NMI interrupt signal sent by the CPLD;
j) the interrupt processing function reads the AC power supply state in the GPIO, and sends an AC _ LOSS signal to wake up a Service _ main to monitor an AC power-down thread, namely an AC LOSS thread, after confirming that the AC power-down state is AC LOSS;
k) the Service _ main enters a standby power process;
l) if the MNI interrupt signal is lost in the power standby process, reading the AC power supply state, namely the AC _ FAIL state, in the GPIO at preset time intervals, for example, in each 50ms polling, and if the AC _ FAIL state is an AC _ LOSS signal, waking up a Service _ main to monitor an AC LOSS thread;
m) Service _ main terminates the IO _ main process;
n) backing up the cached data hardenda in the memory to a hard disk;
o) the Service _ main monitoring process exits;
p) Service _ start starts executing shutdown flow:
q) calling kexec to start the linux ram system by Service _ start;
r) the linux ram system shuts down the main system;
s) the linux ram system shuts down the backup power BBU.
It is to be understood that the settings of wdk, service _ main, IO _ device, and service _ start in the foregoing are generally implemented in the form of programs or functions, and a specific program language is not limited herein, so long as the effect of each driver or function in the present embodiment can be achieved, and the technical features belong to the protection scope in the present embodiment.
Correspondingly, the present application also discloses a control system for backup power protection, as shown in fig. 3, including:
the receiving module 1 is used for receiving an NMI interrupt signal sent by the CPLD when the PSU detects that the AC power failure occurs;
the terminal module 2 is used for running an interrupt processing function according to the NMI interrupt signal so that the interrupt processing function reads an AC power supply state in a GPIO (general purpose input/output) and monitors an AC power failure thread when the AC power supply state is a power failure state;
the standby power module 3 is used for entering a standby power process;
the terminal module 2 is further configured to:
and if the NMI interrupt signal is lost in the power standby process, polling and reading the AC power supply state at preset time intervals, and monitoring the AC power failure thread again when the AC power supply state is in a power failure state.
In some specific embodiments, the receiving module 1 is further configured to: before receiving an NMI interrupt signal sent by a CPLD when the PSU is detected to have AC power failure, the CPLD enters a kernel service state and waits for receiving the NMI interrupt signal.
In some specific embodiments, the trapping to the kernel service state includes:
trapping into a kernel service state through ioctl system calls.
In some specific embodiments, the power backup module 3 is further configured to: and after the standby power process is finished, the main system and the standby power supply are closed by using the Linux ram system.
In some specific embodiments, the power backup module 3 is further configured to: and calling kexec to start the linux ram system before the main system and the standby power supply are closed through the linux ram system.
In some specific embodiments, the power backup module 3 is further configured to: and after the power standby process is started, backing up the cache data and/or the kernel data to the hard disk.
In some specific embodiments, the power backup module 3 is further configured to: and after the power standby process is finished, the monitoring of the AC power failure thread is quitted.
According to the embodiment of the application, the NMI interrupt signal is used as the premise, the AC power supply state is read in a polling mode when the NMI interrupt signal is lost, the advantage of quick sensing is achieved, the efficiency of standby power protection can be improved, the power consumption of a standby power supply is saved, and the reliability of data protection is improved.
Correspondingly, the application also discloses a control device for standby power protection, which is shown in fig. 4 and comprises a processor 11 and a memory 12; wherein, the processor 11 implements the following steps when executing the computer program stored in the memory 12:
receiving an NMI interrupt signal sent by a CPLD when the PSU detects that AC power failure occurs;
running an interrupt processing function according to the NMI interrupt signal so that the interrupt processing function reads an AC power supply state in a GPIO (general purpose input/output) and monitors an AC power failure thread when the AC power supply state is a power failure state;
entering a standby power process;
and if the NMI interrupt signal is lost in the power standby process, polling and reading the AC power supply state at preset time intervals, and monitoring the AC power failure thread again when the AC power supply state is in a power failure state.
The embodiment takes the NMI interrupt signal as the premise, polls and reads the AC power supply state when the NMI interrupt signal is lost, has the advantage of quick sensing, can improve the efficiency of standby power protection, saves the power consumption of the standby power supply, and improves the reliability of data protection.
In some specific embodiments, when the processor 11 executes the computer subprogram stored in the memory 12, the following steps may be specifically implemented:
and trapping into a kernel service state and waiting for receiving the NMI interrupt signal.
In some specific embodiments, when the processor 11 executes the computer subprogram stored in the memory 12, the following steps may be specifically implemented:
trapping into a kernel service state through ioctl system calls.
In some specific embodiments, when the processor 11 executes the computer subprogram stored in the memory 12, the following steps may be specifically implemented:
and shutting down the main system and the standby power supply by using the Linux ram system.
In some specific embodiments, when the processor 11 executes the computer subprogram stored in the memory 12, the following steps may be specifically implemented:
invoking kexec to start the linux ram system.
In some specific embodiments, when the processor 11 executes the computer subprogram stored in the memory 12, the following steps may be specifically implemented:
and backing up the cache data and/or the kernel data to the hard disk.
In some specific embodiments, when the processor 11 executes the computer subprogram stored in the memory 12, the following steps may be specifically implemented:
and exiting the monitoring of the AC power-down thread.
Further, the control device for standby power protection in this embodiment may further include:
the input interface 13 is configured to obtain a computer program imported from the outside, store the obtained computer program in the memory 12, and also be configured to obtain various instructions and parameters transmitted by an external terminal device, and transmit the various instructions and parameters to the processor 11, so that the processor 11 performs corresponding processing by using the various instructions and parameters. In this embodiment, the input interface 13 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 an output interface 14, configured to output various data generated by the processor 11 to a terminal device connected thereto, so that other terminal devices connected to the output interface 14 can acquire various data generated by the processor 11. In this embodiment, the output interface 14 may specifically include, but is not limited to, a USB interface, a serial interface, and the like.
And the communication unit 15 is used for establishing remote communication connection between the control device of the standby power protection and the external server so that the control device of the standby power protection can mount the mirror image file into the external server. In this embodiment, the communication unit 15 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 16 is used for acquiring various parameter data or instructions input by a user through real-time key cap knocking.
And the display 17 is used for displaying relevant information of the standby power protection process in real time so as to facilitate a user to know the specific state of the current standby power protection in time.
The mouse 18 may be used to assist the user in entering data and to simplify the user's operation.
Further, embodiments of the present application 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, hard disk, removable hard disk, CD-ROM, or any other form of storage medium known in the art. The readable storage medium has stored therein a computer program which, when executed by a processor, performs the steps of:
receiving an NMI interrupt signal sent by a CPLD when the PSU detects that AC power failure occurs;
running an interrupt processing function according to the NMI interrupt signal so that the interrupt processing function reads an AC power supply state in a GPIO (general purpose input/output) and monitors an AC power failure thread when the AC power supply state is a power failure state;
entering a standby power process;
and if the NMI interrupt signal is lost in the power standby process, polling and reading the AC power supply state at preset time intervals, and monitoring the AC power failure thread again when the AC power supply state is in a power failure state.
The embodiment takes the NMI interrupt signal as the premise, polls and reads the AC power supply state when the NMI interrupt signal is lost, has the advantage of quick sensing, can improve the efficiency of standby power protection, saves the power consumption of the standby power supply, and improves the reliability of data protection.
In some specific embodiments, when the processor 11 executes the computer subprogram stored in the memory 12, the following steps may be specifically implemented:
and trapping into a kernel service state and waiting for receiving the NMI interrupt signal.
In some specific embodiments, when the processor 11 executes the computer subprogram stored in the memory 12, the following steps may be specifically implemented:
trapping into a kernel service state through ioctl system calls.
In some specific embodiments, when the processor 11 executes the computer subprogram stored in the memory 12, the following steps may be specifically implemented:
and shutting down the main system and the standby power supply by using the Linux ram system.
In some specific embodiments, when the processor 11 executes the computer subprogram stored in the memory 12, the following steps may be specifically implemented:
invoking kexec to start the linux ram system.
In some specific embodiments, when the processor 11 executes the computer subprogram stored in the memory 12, the following steps may be specifically implemented:
and backing up the cache data and/or the kernel data to the hard disk.
In some specific embodiments, when the processor 11 executes the computer subprogram stored in the memory 12, the following steps may be specifically implemented:
and exiting the monitoring of the AC power-down thread.
Further, the control device for standby power protection in this embodiment may further include:
the input interface 13 is configured to obtain a computer program imported from the outside, store the obtained computer program in the memory 12, and also be configured to obtain various instructions and parameters transmitted by an external terminal device, and transmit the instructions and parameters to the processor 11, so that the processor 11 performs corresponding processing by using the instructions and parameters. In this embodiment, the input interface 13 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 an output interface 14, configured to output various data generated by the processor 11 to a terminal device connected thereto, so that other terminal devices connected to the output interface 14 can acquire various data generated by the processor 11. In this embodiment, the output interface 14 may specifically include, but is not limited to, a USB interface, a serial interface, and the like.
And the communication unit 15 is used for establishing remote communication connection between the control device of the standby power protection and the external server so that the control device of the standby power protection can mount the mirror image file into the external server. In this embodiment, the communication unit 15 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 16 is used for acquiring various parameter data or instructions input by a user through real-time key cap knocking.
And the display 17 is used for displaying relevant information of the standby power protection process in real time so as to facilitate a user to know the specific state of the current standby power protection in time.
The mouse 18 may be used to assist the user in entering data and to simplify the user's operation.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be 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 phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The control method, the system and the related components of the standby power protection provided by the invention are described in detail, a specific example is applied in the text to explain the principle and the implementation of the invention, and the description of the above embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A control method of standby power protection is characterized by comprising the following steps:
receiving an NMI interrupt signal sent by a CPLD when the PSU detects that AC power failure occurs;
running an interrupt processing function according to the NMI interrupt signal so that the interrupt processing function reads an AC power supply state in a GPIO (general purpose input/output) and monitors an AC power failure thread when the AC power supply state is a power failure state;
entering a standby power process;
the control method further comprises the following steps:
if the NMI interrupt signal is lost in the power supply process, polling and reading the AC power supply state at preset time intervals, and monitoring the AC power failure thread again when the AC power supply state is in a power failure state.
2. The method according to claim 1, wherein before the receiving the NMI interrupt signal sent by the CPLD when the PSU is powered down by the AC power, the method further comprises:
and trapping the NMI interrupt signal into a kernel service state and waiting for receiving the NMI interrupt signal.
3. The method of claim 2, wherein the trapping process into the kernel service state comprises:
trapping into a kernel service state through ioctl system calls.
4. The control method according to claim 1, wherein after the power backup process is finished, the method further comprises:
and shutting down the main system and the standby power supply by using the Linux ram system.
5. The control method according to claim 4, wherein before the main system and the standby power supply are shut down by the linux ram system, the method further comprises:
invoking kexec to start the linux ram system.
6. The control method according to any one of claims 1 to 5, characterized by further comprising, after entering the power backup process:
and backing up the cache data and/or the kernel data to the hard disk.
7. The control method according to claim 6, wherein after the power backup process is completed, the method further comprises:
and exiting the monitoring of the AC power-down thread.
8. A control system for backup power protection, comprising:
the receiving module is used for receiving an NMI interrupt signal sent by the CPLD when the PSU detects that the AC power failure occurs;
the terminal module is used for running an interrupt processing function according to the NMI interrupt signal so that the interrupt processing function reads an AC power supply state in a GPIO (general purpose input/output) and monitors an AC power failure thread when the AC power supply state is a power failure state;
the standby power module is used for entering a standby power process;
the terminal module is further configured to:
if the NMI interrupt signal is lost in the power supply process, polling and reading the AC power supply state at preset time intervals, and monitoring the AC power failure thread again when the AC power supply state is in a power failure state.
9. A control device for backup power protection, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the control method of the backup protection according to any one of claims 1 to 7 when executing the computer program.
10. A readable storage medium, characterized in that the readable storage medium has stored thereon a computer program which, when being executed by a processor, realizes the steps of the control method of the power backup protection according to any one of claims 1 to 7.
CN202210188741.1A 2022-02-28 2022-02-28 Control method and system for standby power protection and related components Active CN114564096B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210188741.1A CN114564096B (en) 2022-02-28 2022-02-28 Control method and system for standby power protection and related components

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210188741.1A CN114564096B (en) 2022-02-28 2022-02-28 Control method and system for standby power protection and related components

Publications (2)

Publication Number Publication Date
CN114564096A true CN114564096A (en) 2022-05-31
CN114564096B CN114564096B (en) 2023-08-22

Family

ID=81715216

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210188741.1A Active CN114564096B (en) 2022-02-28 2022-02-28 Control method and system for standby power protection and related components

Country Status (1)

Country Link
CN (1) CN114564096B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102354514A (en) * 2010-06-02 2012-02-15 株式会社理光 Image processing apparatus
CN104090527A (en) * 2014-07-01 2014-10-08 深圳市英威腾电气股份有限公司 Power-down protection device
CN107291207A (en) * 2017-06-30 2017-10-24 郑州云海信息技术有限公司 A kind of power-supply switching method and system
CN108491058A (en) * 2018-04-03 2018-09-04 郑州云海信息技术有限公司 A kind of the powered-off fault data guard method and device of Nonvolatile memory
CN110456897A (en) * 2018-05-08 2019-11-15 杭州海康威视数字技术股份有限公司 Power-off protection method, protective device and the server cluster of electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102354514A (en) * 2010-06-02 2012-02-15 株式会社理光 Image processing apparatus
CN104090527A (en) * 2014-07-01 2014-10-08 深圳市英威腾电气股份有限公司 Power-down protection device
CN107291207A (en) * 2017-06-30 2017-10-24 郑州云海信息技术有限公司 A kind of power-supply switching method and system
CN108491058A (en) * 2018-04-03 2018-09-04 郑州云海信息技术有限公司 A kind of the powered-off fault data guard method and device of Nonvolatile memory
CN110456897A (en) * 2018-05-08 2019-11-15 杭州海康威视数字技术股份有限公司 Power-off protection method, protective device and the server cluster of electronic equipment

Also Published As

Publication number Publication date
CN114564096B (en) 2023-08-22

Similar Documents

Publication Publication Date Title
JPH09212261A (en) Power supply control system for information processor
CN111913669B (en) SSD power-down speed improving method and device, computer equipment and storage medium
JPH11288334A (en) Method and device for power down for computer system
CN111427722A (en) Data storage method and system for abnormal power failure of computer
EP2843502A1 (en) Information processing device, information processing method, and program
CN102437917B (en) A kind of network wake-up method, network wake-up device and computer
WO2023024863A1 (en) System chip and electronic device
CN109669728B (en) Software shutdown method and device for VxWorks operating system
WO2021175194A1 (en) Method for timed startup of terminal, and terminal
CN113672070A (en) Start-stop control method and device for transport mode and electronic equipment
CN116149957B (en) Method for saving server power-on and power-off records through BMC
CN114564096A (en) Control method and system for standby power protection and related components
CN111367700A (en) Forced recovery method, system and related components after BMC downtime
CN108196617B (en) BMC time setting method, device and system and readable storage medium
CN107273239B (en) Protection system and protection method for server boot code
CN113075992B (en) Memory power-on method, device, equipment and computer readable storage medium
CN109298892B (en) Device and method for controlling startup and shutdown of server
CN112835826A (en) Communication method, device, equipment and readable storage medium
CN113835977B (en) State prompting method, state prompting device, computer equipment and computer readable storage medium
JPH10105296A (en) Power source controller
CN115718628A (en) Low-temperature power-on self-starting method, system, device and medium of edge server
CN104142832A (en) Computer and rebooting method thereof
CN115586926B (en) Remote wake-up circuit and electronic equipment
CN110413092B (en) Method and equipment for preventing automatic system startup after RTC (real time clock) is cleared
CN115562900B (en) AMD server system installation power-off processing method, device, equipment and 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
GR01 Patent grant
GR01 Patent grant