CN110569074A - Computer shutdown method, system and storage medium - Google Patents
Computer shutdown method, system and storage medium Download PDFInfo
- Publication number
- CN110569074A CN110569074A CN201910849133.9A CN201910849133A CN110569074A CN 110569074 A CN110569074 A CN 110569074A CN 201910849133 A CN201910849133 A CN 201910849133A CN 110569074 A CN110569074 A CN 110569074A
- Authority
- CN
- China
- Prior art keywords
- shutdown
- computer
- message
- power supply
- running software
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/442—Shutdown
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Power Sources (AREA)
Abstract
the embodiment of the invention discloses a computer shutdown method, a computer shutdown system and a storage medium, wherein the method is applied to a control board card and comprises the following steps: when a shutdown event is monitored, a shutdown message is generated; and sending the shutdown message to a computer through a first preset interface so as to enable the computer to call a shutdown program to close each running software and operating system, and when the running software and the operating system are closed, closing a computer power supply. The embodiment of the invention provides a computer shutdown method, a computer shutdown system and a storage medium, which are used for conveniently and quickly realizing shutdown on the basis of ensuring the data security of a computer.
Description
Technical Field
The present invention relates to computer technologies, and in particular, to a computer shutdown method, system, and storage medium.
Background
in the prior art, computer shutdown methods mainly include two methods, namely shutdown by pressing a power key of a chassis for a long time and shutdown by an operating system.
The disadvantages of the prior art include at least: the data in the computer is easily damaged when the computer is powered off by pressing a power key of the case for a long time; in the process of shutdown through the operating system, a user firstly needs to shut down each software running in the computer, and after the software is shut down, the shutdown is performed through the operating system, and the shutdown can be completed only by performing multiple human-computer interactions with the software and the operating system, so that the shutdown process is complex.
Disclosure of Invention
in view of this, embodiments of the present invention provide a computer shutdown method, system and storage medium, which are used to conveniently and quickly implement shutdown on the basis of ensuring data security of a computer.
In a first aspect, an embodiment of the present invention provides a computer shutdown method, applied to a control board, including:
When a shutdown event is monitored, a shutdown message is generated;
And sending the shutdown message to a computer through a first preset interface so as to enable the computer to call a shutdown program to close each running software and operating system, and when the running software and the operating system are closed, closing a computer power supply.
In a second aspect, an embodiment of the present invention provides a computer shutdown method, applied to a computer, including:
receiving a shutdown message sent by a control board card through a first preset interface, wherein the shutdown message is generated when the control board card monitors a shutdown event;
And calling a shutdown program to close each running software and operating system according to the shutdown message, and closing the power supply of the computer when the running software and the operating system are closed.
In a third aspect, an embodiment of the present invention provides a computer shutdown system, including:
The control board card is used for generating a shutdown message when a shutdown event is monitored; sending the shutdown message to a computer through a first preset interface;
the computer is used for receiving the shutdown message sent by the control board card; and calling a shutdown program to close each running software and operating system according to the shutdown message, and closing the power supply of the computer when the running software and the operating system are closed.
In a fourth aspect, an embodiment of the present invention provides a storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a computer-aided method according to any embodiment of the present invention.
According to the method, the system and the storage medium for shutting down the computer provided by the embodiment of the invention, when a self-made control board card is used for monitoring a shutdown event (for example, a pressing event of a shutdown key arranged on the control board card is monitored), a shutdown message is generated; sending a shutdown message to a computer through a first preset interface; when the computer receives a shutdown message sent by the control board, a shutdown program is called according to the shutdown message to close each running software and operating system, and when the shutdown of each running software and operating system is completed, the power supply of the computer is closed.
the shutdown event is monitored through the self-made control board card, the shutdown message is generated and sent to the computer, so that the computer calls a shutdown program to shut down, data damage caused by shutdown of a power key of the long-press case is avoided, multiple times of interaction of a man-machine is not needed, and shutdown is conveniently and quickly realized on the basis of ensuring data safety of the computer.
Drawings
in order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, a brief description will be given below of the drawings required for the embodiments or the technical solutions in the prior art, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a flowchart of a computer shutdown method according to an embodiment of the present invention;
FIG. 2 is a flowchart of a computer shutdown method according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a computer shutdown system according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a terminal according to a fifth embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described through embodiments with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. 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. In the following embodiments, optional features and examples are provided in each embodiment, and various features described in the embodiments may be combined to form a plurality of alternatives, and each numbered embodiment should not be regarded as only one technical solution.
Example one
fig. 1 is a flowchart of a computer shutdown method according to an embodiment of the present invention, where the method is applicable to a situation where a computer is shutdown, and the method may be implemented by a control board, and may be specifically implemented by software and/or hardware in the control board.
referring to fig. 1, the computer shutdown method is applied to a control board, and includes the following steps:
S110, when a shutdown event is monitored, a shutdown message is generated.
The control board card can be understood as a circuit board with a control function, and the control board card provided by the embodiment of the invention can be understood as a self-made circuit board with a function of controlling a computer. The control board card can be integrated in the original computer case, or can be independent of the computer case and configured to be in communication connection with a computer.
when a user needs to close the computer, a shutdown event preset by the control board card can be triggered. When the control board monitors the shutdown event, a shutdown message may be generated. A shutdown key for shutdown of the computer may be preset on the control board, and the shutdown event may be a pressing event of the shutdown key. The power-off key may be pressed when the user needs to turn off the computer. When the control board monitors the pressing event of the shutdown key, a shutdown message can be generated.
furthermore, a first time length range can be preset; correspondingly, when the control panel card monitors the pressing event of the shutdown key, whether the time length for pressing the shutdown key is within the first time length range is judged, and if yes, a shutdown message is generated.
furthermore, authority fingerprints, voiceprint or iris characteristics and the like can be preset; correspondingly, when the control panel card monitors the pressing event of the shutdown key and judges that the time for pressing the shutdown key is in the first time length range, the control panel card can further perform authentication of authority fingerprints, voiceprint or iris characteristics and the like, and if the authentication is passed, a shutdown message is generated.
In addition, the shutdown event is not limited to the above events, and for example, the shutdown event may also be an event such as a shutdown gesture captured by the image capturing device, which is not specifically limited herein.
and S120, sending the shutdown message to the computer through the first preset interface so that the computer calls a shutdown program to close each running software and operating system, and when the running software and the operating system are closed, closing the power supply of the computer.
The first preset interface may be a serial communication interface, such as an RS232 interface or a USB interface. The control board card can send the shutdown message to the computer through the first preset interface. After receiving the Shutdown message, the computer may call the Shutdown program to close the running software and the operating System, for example, call a function program in the System Manager module to close the application to close the running software, and call the Shutdown command to close the operating System of the computer. After the operating system is closed, the computer can automatically close the computer power supply, namely, the power failure of the 220V power supply voltage is completed.
after the user manually saves the running software, triggering a shutdown event preset by the control board card to enable the control board card to generate a shutdown message and send the shutdown message to the computer; in addition, the user can directly trigger the shutdown event preset by the control board card without manually saving the running software, so that the control board card generates a shutdown message and sends the shutdown message to the computer. Correspondingly, when the user stores the disk manually, the computer can call a shutdown program according to the shutdown message to directly close each running software; when the user does not store the running programs manually, the computer can call the shutdown program according to the shutdown message to store data of the running software, and close the running software after the storage is finished, so that the automatic storage and closing of the running software are realized, and the user experience is optimized.
the self-made control board card is used for monitoring a shutdown event, and a shutdown message is generated and sent to the computer when the shutdown event is monitored, so that the computer calls a shutdown program to shut down. Compared with the existing method of turning off the computer by pressing the power key of the case for a long time, the method of turning off the computer provided by the embodiment does not directly turn off the power of the case according to the power-off event, but generates the power-off message to the computer, so that the computer calls the power-off program to turn off the computer, and data damage caused by directly turning off the power of the case is avoided. Compared with the existing method for shutting down each software and operating system manually by a user, the computer shutdown method provided by the embodiment does not need to carry out multiple times of human-computer interaction, so that the shutdown process is more convenient and faster.
Optionally, after sending the shutdown message to the computer through the first preset interface, the method further includes: receiving a response message fed back by the computer, wherein the response message is generated when the computer detects that the current condition meets the preset shutdown condition before calling a shutdown program to close each running software and operating system; monitoring a power supply closing event of the computer according to the response message; and when a power supply closing event of the computer is monitored, the power supply of the control board card is closed.
The control board card can also receive a response message sent by the computer, monitor a power supply shutdown event of the computer according to the response message, and shut down the power supply of the computer after the power supply of the computer is shut down, so that the all-dimensional shutdown of the computer and the two terminals of the control board card is realized, and the power resource is saved.
The preset shutdown condition may be, for example, a preset shutdown-capable running task or a shutdown-incapable running task; correspondingly, the response message is generated when the current condition is detected to meet the preset shutdown condition, for example, the response message is generated when the current running tasks are detected to be all the running tasks capable of being shutdown, or the response message is generated when the current running tasks are detected to have no running tasks incapable of being shutdown.
If the computer detects that the current condition does not accord with the preset shutdown condition, no response message is generated; correspondingly, if the control board card does not monitor the response message fed back by the computer within a certain time range after sending the shutdown message, the current computer is considered not to be in the shutdown state, and the computer is not shut down, and at the moment, the control board card does not need to monitor the power supply shutdown event of the computer, so that the waste of the running resources in the control board card is avoided.
Optionally, the power supply of the control board card includes an uninterruptible power supply and a mains supply; when the mains supply is in a power supply state, the uninterrupted power supply is charged by the mains supply; when the commercial power supply is in a power-off state, the uninterrupted power supply is utilized for temporary power supply.
Among them, an Uninterruptible Power Supply (UPS) is a System device that connects a battery (mostly a lead-acid maintenance-free battery) with a load and converts a direct current into a city mains (i.e., a mains Power Supply) through module circuits such as an inverter of the load. The function of the device is mainly used for providing stable and uninterrupted power supply for a single computer, a computer network system or other power electronic equipment such as an electromagnetic valve, a pressure transmitter and the like. When the mains supply is input normally (namely in a power supply state), the UPS supplies the mains supply to a load for use after stabilizing the voltage, and the UPS is an alternating current type voltage stabilizer and also charges a battery of the UPS; when the commercial power supply is interrupted (namely in a power-off state), the UPS immediately supplies the direct current electric energy of the battery to the load by temporarily continuing to supply 220V alternating current through a method of switching and converting the inverter, so that the load keeps normal work and protects load software and hardware from being damaged.
The power supply of the control board card is turned off, for example, a turn-off command is sent to the uninterruptible power supply, so that the uninterruptible power supply stops charging or supplying power according to the turn-off command; and when the uninterruptible power supply stops charging or supplying power, disconnecting the contactor connected with the mains supply.
Optionally, the computer shutdown method further includes: when the uninterruptible power supply temporarily supplies power, generating a temporary power supply message; and sending the temporary power supply message to the computer through a second preset interface so that the computer generates a countdown message of the emergency disk according to the temporary power supply message, calling a shutdown program to close each running software and operating system when the countdown message is overtime, and closing the power supply of the computer when each running software and operating system is closed.
when the control panel card utilizes the uninterruptible power supply to temporarily supply power, namely, the commercial power supply is disconnected to be in a power-off state. In addition, the control board card can also generate a temporary power supply message and send the temporary power supply message to the computer through a second preset interface. The second preset interface may be the same as or different from the first preset interface. When the computer receives the temporary power supply message, a countdown message of the emergency saving can be generated, and the countdown message can remind the user of carrying out the emergency saving on the running task so as to prevent data loss. The countdown duration in the countdown message may be a preset duration, for example, 30 seconds or 60 seconds, and is not limited in this respect. When the countdown message is over time (namely, when the countdown reading time reaches 0 second), the computer defaults that the user finishes the emergency disk storage, a shutdown program is called to close all running software and operating systems, and when all the running software and the operating systems are closed, the power supply of the computer is closed. Optionally, the computer shutdown method further includes: when the countdown message is not over time, if a shutdown event is monitored, a shutdown message is generated; and sending the shutdown message to the computer through the first preset interface so that the computer calls a shutdown program to close each running software and operating system, and closing the power supply of the computer when each running software and operating system is closed.
When the countdown message is not over time, if the user finishes the emergency disk storage, a shutdown event preset by the control board card can be triggered. The control board card can also generate a shutdown message when monitoring the shutdown event at the moment, and send the shutdown message to the computer. When the computer receives the shutdown message, even if the countdown message is not overtime, the computer can call the shutdown program to close all running software and operating systems, and when the running software and the operating systems are closed, the power supply of the computer is closed, so that the flexibility of shutdown is improved.
Optionally, the computer shutdown method further includes: when the countdown message is not timed out, if a power supply recovery event of the mains supply is monitored, generating a power supply recovery message; and sending the power supply recovery message to the computer through a third preset interface so as to stop the computer from being powered off.
When the countdown message is not timed out, if the power supply of the mains supply is recovered, the control board can monitor the recovery event of the mains supply, generate a power supply recovery message and send the power supply recovery message to the computer through the third preset interface. The third preset interface may be the same as or different from the second preset interface or the first preset interface. When the computer receives the message of recovering power supply, the computer can stop shutdown, specifically, the computer stops displaying the countdown message, and simultaneously can also generate and display the message of recovering power supply, thereby improving the flexibility of shutdown.
In addition, if the computer can call a shutdown program to store data of each running software and close each running software after the storage is finished, the computer can remind a user to store running tasks without generating countdown information of emergency storage, only needs to generate a shutdown message of temporary power supply, automatically stores the data of each running software, and closes each running software after the storage is finished. Correspondingly, if the computer receives the power supply recovery message of the control board card in the process of calling the shutdown program to automatically store the data of each running software, the shutdown step can be stopped.
in addition, when the control board card is abnormal, the user can also trigger a forced shutdown event of the control board card. When the control board monitors the forced shutdown event, the power supply of the control board can be turned off. The forced shutdown event may be, for example, pressing a shutdown key of the control board, and the pressing duration is within a preset second duration range, where the forced shutdown event is not specifically limited. When the control board card is abnormal, the power supply is turned off, so that the computer is not influenced by the abnormality of the control board card and can be shut down by the original shutdown mode.
According to the computer shutdown method provided by the embodiment, the shutdown event is monitored through the self-made control board card, the shutdown message is generated and sent to the computer, so that the computer calls the shutdown program to shutdown, data damage caused by shutdown of the power key of the long-press case is avoided, multiple times of interaction between a human machine and the computer is not needed, and shutdown is conveniently and rapidly realized on the basis of ensuring data safety of the computer.
Example two
Fig. 2 is a flowchart of a computer shutdown method according to a second embodiment of the present invention, where the method is applicable to a computer shutdown situation, and the method may be implemented by a computer, and may be specifically implemented by software and/or hardware in the computer. The present embodiment has the same inventive concept as the above embodiments, and the same or corresponding terms as the above embodiments are explained, and the present embodiment is not described again.
Referring to fig. 2, the computer shutdown method is applied to a computer, and comprises the following steps:
s210, receiving a shutdown message sent by the control board card through a first preset interface, wherein the shutdown message is generated when the control board card monitors a shutdown event;
And S220, calling a shutdown program to close each running software and operating system according to the shutdown message, and closing the power supply of the computer when the running software and the operating system are closed.
Optionally, invoking a shutdown program to close each running software includes: and calling a shutdown program to store data of each running software, and closing each running software when the storage is finished.
after the user manually saves the running software, triggering a shutdown event preset by the control board card to enable the control board card to generate a shutdown message and send the shutdown message to the computer; in addition, the user can directly trigger the shutdown event preset by the control board card without manually saving the running software, so that the control board card generates a shutdown message and sends the shutdown message to the computer. Correspondingly, when the user stores the disk manually, the computer can call a shutdown program according to the shutdown message to directly close each running software; when the user does not store the running programs manually, the computer can call the shutdown program according to the shutdown message to store data of the running software, and close the running software after the storage is finished, so that the automatic storage and closing of the running software are realized, and the user experience is optimized.
Optionally, before the shutdown program is called to close each running software and operating system, the method further includes: detecting whether the current condition meets a preset shutdown condition or not according to the shutdown message; if so, generating a response message and feeding the response message back to the control board card, so that the control board card monitors the power supply shutdown event of the computer according to the response message, and shuts down the power supply of the control board card when the power supply shutdown event of the computer is monitored.
optionally, the computer shutdown method further includes: and generating a subsystem shutdown instruction according to the shutdown message, and sending the subsystem shutdown instruction to at least one subsystem so as to shutdown the at least one subsystem.
If the computer is an industrial control computer (hereinafter, simply referred to as an industrial personal computer), the computer can be connected with a plurality of subsystems. The subsystem may be a robot arm or the like. After receiving the shutdown message sent by the control board card, the computer may further generate a subsystem shutdown instruction, and send the subsystem shutdown instruction to the at least one subsystem, so that the at least one subsystem is shut down. In addition, the computer can also monitor the subsystem power-off event and turn off the power supply of the computer after the subsystem is shut down, thereby realizing the shutdown process of the industrial personal computer and the subsystem.
optionally, the computer shutdown method further includes: receiving a temporary power supply message sent by the control board card through a second preset interface, wherein the temporary power supply message is generated when the control board card utilizes an uninterrupted power supply to supply power temporarily; and generating a countdown message of the emergency disk according to the temporary power supply message, calling a shutdown program to close each running software and operating system when the countdown message is overtime, and closing the power supply of the computer when each running software and operating system is closed.
optionally, the computer shutdown method further includes: when the countdown message is not timed out, a shutdown message sent by the control board card is received through a first preset interface, wherein the shutdown message is generated when the control board card monitors a shutdown event; and calling a shutdown program to close each running software and operating system according to the shutdown message, and closing the power supply of the computer when the running software and the operating system are closed.
optionally, the computer shutdown method further includes: when the countdown message is not timed out, receiving a power supply recovery message sent by the control board card through a third preset interface, wherein the power supply recovery message is generated when the control board card monitors a power supply recovery event of the mains supply; and stopping the power supply according to the power supply recovery message.
in addition, if the computer can call a shutdown program to store data of each running software and close each running software after the storage is finished, the computer can remind a user to store running tasks without generating countdown information of emergency storage, only needs to generate a shutdown message of temporary power supply, automatically stores the data of each running software, and closes each running software after the storage is finished. Correspondingly, if the computer receives the power supply recovery message of the control board card in the process of calling the shutdown program to automatically store the data of each running software, the shutdown step can be stopped.
In the shutdown method of the computer provided in this embodiment, when receiving a shutdown message sent by a control board, the computer calls a shutdown program to shutdown, where the shutdown message is generated when a self-made control board monitors a shutdown event. Therefore, data damage caused by shutdown of a power key of a long-press case is avoided, multiple times of human-computer interaction is not needed, and shutdown is conveniently and rapidly realized on the basis of ensuring data security of a computer. In addition, the present embodiment has the same inventive concept as the above embodiments, and technical details that are not described in detail in the present embodiment can be referred to the above embodiments, and the present embodiment can achieve the same advantageous effects as the above embodiments.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a computer shutdown system according to a third embodiment of the present invention, which is applicable to shutdown of a computer.
Referring to fig. 3, the computer shutdown system in this embodiment includes:
The control board 310 is configured to generate a shutdown message when a shutdown event is monitored; sending a shutdown message to a computer through a first preset interface;
the computer 320 is used for receiving a shutdown message sent by the control board card; and calling a shutdown program to close each running software and operating system according to the shutdown message, and closing the power supply of the computer when the running software and the operating system are closed.
optionally, the computer is further configured to call a shutdown procedure to store data in the running software, and close the running software when the storage is completed.
Optionally, the computer is further configured to detect whether the current condition meets a preset shutdown condition according to the shutdown message; if so, generating a response message and feeding the response message back to the control board card; correspondingly, the control board is further configured to monitor a power-off event of the computer according to the response message, and to turn off the power supply of the control board when the power-off event of the computer is monitored.
optionally, the computer is further configured to generate a subsystem shutdown instruction according to the shutdown message, and send the subsystem shutdown instruction to the at least one subsystem, so that the at least one subsystem is shutdown.
Optionally, the power supply of the control board card includes an uninterruptible power supply and a mains supply; when the mains supply is in a power supply state, the uninterrupted power supply is charged by the mains supply; when the commercial power supply is in a power-off state, the uninterrupted power supply is utilized for temporary power supply.
wherein, close the power supply of control integrated circuit board, include: sending a turn-off command to the uninterruptible power supply so that the uninterruptible power supply stops charging or supplying power according to the turn-off command; and when the uninterruptible power supply stops charging or supplying power, disconnecting the contactor connected with the mains supply.
Optionally, the control board is further configured to generate a temporary power supply message when the uninterruptible power supply temporarily supplies power; sending the temporary power supply message to the computer through a second preset interface; correspondingly, the computer is also used for generating a countdown message of the emergency disk according to the temporary power supply message, calling a shutdown program to close each running software and operating system when the countdown message is overtime, and closing the power supply of the computer when each running software and operating system is closed.
optionally, the control board is further configured to, when the countdown message is not timed out, generate a shutdown message if a shutdown event is monitored; and sending the shutdown message to the computer through the first preset interface so that the computer calls a shutdown program to close each running software and operating system, and closing the power supply of the computer when each running software and operating system is closed.
Optionally, the control board is further configured to, when the countdown message is not timed out, generate a power supply restoration message if a power supply restoration event of the utility power supply is monitored; and sending the power supply recovery message to the computer through a third preset interface so as to stop the computer from being powered off.
optionally, the control board is further configured to turn off a power supply of the control board when a forced shutdown event is monitored.
the computer shutdown system provided by the embodiment belongs to the same inventive concept as the computer shutdown method provided by the above embodiment, and the technical details that are not described in detail in the embodiment can be referred to the above embodiment, and the embodiment has the same beneficial effects as the above embodiment.
Example four
The present embodiment provides a storage medium having a computer program stored thereon, which when executed by a processor implements the computer-related method as set forth in the above embodiments. Among them, the main realizable method is as follows:
when a shutdown event is monitored, a shutdown message is generated; and sending the shutdown message to the computer through the first preset interface so that the computer calls a shutdown program to close each running software and operating system, and closing the power supply of the computer when each running software and operating system is closed.
Alternatively, the main achievable methods are as follows:
Receiving a shutdown message sent by a control board card through a first preset interface, wherein the shutdown message is generated when the control board card monitors a shutdown event; and calling a shutdown program to close each running software and operating system according to the shutdown message, and closing the power supply of the computer when the running software and the operating system are closed.
The storage medium proposed by the present embodiment belongs to the same inventive concept as the computer shutdown method proposed by the above embodiments, and technical details that are not described in detail in the present embodiment can be referred to the above embodiments, and the present embodiment has the same beneficial effects as the above embodiments.
EXAMPLE five
The embodiment provides a terminal, which may be, for example, a terminal integrated with a control board in a computer shutdown system, or a computer in a computer shutdown system. By applying the terminal provided by the embodiment, the computer shutdown method provided by the embodiment can be realized. Fig. 4 is a schematic structural diagram of a terminal according to a fifth embodiment of the present invention. Referring to fig. 4, the terminal includes:
One or more processors 410;
A memory 420 for storing one or more programs;
When executed by the one or more processors 410, cause the one or more processors 410 to implement the computer-aided method as set forth in the embodiments above.
In FIG. 4, a processor 410 is illustrated as an example; the processor 410 and the memory 420 may be connected by a bus or other means, such as by a bus in FIG. 4.
Memory 420 serves as a computer-readable storage medium that may be used to store software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the computer-implemented methods of embodiments of the present invention. The processor 410 executes various functional applications of the terminal and data processing by executing software programs, instructions, and modules stored in the memory 420, that is, implements the computer-related method described above. Among them, the main realizable method is as follows:
When a shutdown event is monitored, a shutdown message is generated; and sending the shutdown message to the computer through the first preset interface so that the computer calls a shutdown program to close each running software and operating system, and closing the power supply of the computer when each running software and operating system is closed.
alternatively, the main achievable methods are as follows:
receiving a shutdown message sent by a control board card through a first preset interface, wherein the shutdown message is generated when the control board card monitors a shutdown event; and calling a shutdown program to close each running software and operating system according to the shutdown message, and closing the power supply of the computer when the running software and the operating system are closed.
The memory 420 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 420 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory 420 may further include memory located remotely from the processor 410, which may be connected to the terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The terminal proposed by the present embodiment and the computer-aided method proposed by the above embodiments belong to the same inventive concept, and the technical details that are not described in detail in the present embodiment can be referred to the above embodiments, and the present embodiment and the above embodiments have the same beneficial effects.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments illustrated herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims (10)
1. A computer shutdown method is applied to a control board card and comprises the following steps:
When a shutdown event is monitored, a shutdown message is generated;
And sending the shutdown message to a computer through a first preset interface so as to enable the computer to call a shutdown program to close each running software and operating system, and when the running software and the operating system are closed, closing a computer power supply.
2. The method according to claim 1, wherein after sending the shutdown message to the computer through the first predetermined interface, the method further comprises:
Receiving a response message fed back by a computer, wherein the response message is generated when the computer detects that the current condition meets a preset shutdown condition before calling a shutdown program to close each running software and operating system;
Monitoring a power supply closing event of the computer according to the response message;
And when the power supply closing event of the computer is monitored, closing the power supply of the control board card.
3. The method of claim 2, wherein the power supplies of the control boards comprise an uninterruptible power supply and a mains power supply;
When the mains supply is in a power supply state, the uninterruptible power supply is charged by using the mains supply; and when the commercial power supply is in a power-off state, the uninterruptible power supply is utilized for temporary power supply.
4. the method of claim 3, further comprising:
when the uninterruptible power supply temporarily supplies power, generating a temporary power supply message;
And sending the temporary power supply message to a computer through a second preset interface so that the computer generates a countdown message of the emergency disk according to the temporary power supply message, calling a shutdown program to close each running software and operating system when the countdown message is overtime, and closing a computer power supply when each running software and operating system is closed.
5. The method of claim 4, further comprising:
If a shutdown event is monitored when the countdown message is not timed out, generating a shutdown message;
And sending the shutdown message to a computer through a first preset interface so as to enable the computer to call a shutdown program to close each running software and operating system, and when the running software and the operating system are closed, closing a computer power supply.
6. The method of claim 4, further comprising:
When the countdown message is not timed out, if a power supply recovery event of the mains supply is monitored, generating a power supply recovery message;
And sending the power supply recovery message to a computer through a third preset interface so as to stop the computer from being powered off.
7. A computer shutdown method applied to a computer comprises the following steps:
Receiving a shutdown message sent by a control board card through a first preset interface, wherein the shutdown message is generated when the control board card monitors a shutdown event;
And calling a shutdown program to close each running software and operating system according to the shutdown message, and closing the power supply of the computer when the running software and the operating system are closed.
8. The method of claim 7, wherein invoking the shutdown program to shut down each running software comprises:
And calling a shutdown program to store data of each running software, and closing each running software when the storage is finished.
9. A computer shutdown system, comprising:
The control board card is used for generating a shutdown message when a shutdown event is monitored; sending the shutdown message to a computer through a first preset interface;
The computer is used for receiving the shutdown message sent by the control board card; and calling a shutdown program to close each running software and operating system according to the shutdown message, and closing the power supply of the computer when the running software and the operating system are closed.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a computer-aided method according to any one of claims 1-6 or 7-8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910849133.9A CN110569074A (en) | 2019-09-09 | 2019-09-09 | Computer shutdown method, system and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910849133.9A CN110569074A (en) | 2019-09-09 | 2019-09-09 | Computer shutdown method, system and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110569074A true CN110569074A (en) | 2019-12-13 |
Family
ID=68778618
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910849133.9A Pending CN110569074A (en) | 2019-09-09 | 2019-09-09 | Computer shutdown method, system and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110569074A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112596444A (en) * | 2020-12-21 | 2021-04-02 | 苏州科达科技股份有限公司 | Electronic equipment shutdown control method and system |
CN112631409A (en) * | 2020-12-11 | 2021-04-09 | 邦彦技术股份有限公司 | VPX case power-off control method and circuit and VPX case |
CN118113361A (en) * | 2024-04-30 | 2024-05-31 | 山东艾琳智能科技有限公司 | Computer shutdown judging system |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020129355A1 (en) * | 2001-03-01 | 2002-09-12 | Mike Velten | Method and system for monitoring an apparatus for a computer |
CN101436154A (en) * | 2007-11-14 | 2009-05-20 | 鸿富锦精密工业(深圳)有限公司 | Startup and closedown test system and method of computer mainboard |
CN203759477U (en) * | 2014-03-14 | 2014-08-06 | 天津市英贝特航天科技有限公司 | Automatic computer startup/shutdown device |
CN104111716A (en) * | 2013-04-18 | 2014-10-22 | 研祥智能科技股份有限公司 | Power off system and method of computer |
CN109669728A (en) * | 2018-12-14 | 2019-04-23 | 深圳市中科亿信技术有限公司 | The software closedown method and device of vxworks operating system |
-
2019
- 2019-09-09 CN CN201910849133.9A patent/CN110569074A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020129355A1 (en) * | 2001-03-01 | 2002-09-12 | Mike Velten | Method and system for monitoring an apparatus for a computer |
CN101436154A (en) * | 2007-11-14 | 2009-05-20 | 鸿富锦精密工业(深圳)有限公司 | Startup and closedown test system and method of computer mainboard |
CN104111716A (en) * | 2013-04-18 | 2014-10-22 | 研祥智能科技股份有限公司 | Power off system and method of computer |
CN203759477U (en) * | 2014-03-14 | 2014-08-06 | 天津市英贝特航天科技有限公司 | Automatic computer startup/shutdown device |
CN109669728A (en) * | 2018-12-14 | 2019-04-23 | 深圳市中科亿信技术有限公司 | The software closedown method and device of vxworks operating system |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112631409A (en) * | 2020-12-11 | 2021-04-09 | 邦彦技术股份有限公司 | VPX case power-off control method and circuit and VPX case |
CN112596444A (en) * | 2020-12-21 | 2021-04-02 | 苏州科达科技股份有限公司 | Electronic equipment shutdown control method and system |
CN118113361A (en) * | 2024-04-30 | 2024-05-31 | 山东艾琳智能科技有限公司 | Computer shutdown judging system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110569074A (en) | Computer shutdown method, system and storage medium | |
CN102882267B (en) | Power supply device, electronic equipment and power supply method | |
CN107834657B (en) | Charging method, terminal equipment and power adapter | |
US10811878B2 (en) | Power distribution unit having capability for remaining power management | |
EP3226380B1 (en) | Uninterruptible power supply | |
CN110120700B (en) | Power supply system and control method thereof | |
CN111427722A (en) | Data storage method and system for abnormal power failure of computer | |
US20040078655A1 (en) | Apparatus and method for power integrated control | |
WO2015180514A1 (en) | Commercial power supply method and device | |
CN111246199B (en) | Control method and device for camera test, terminal equipment and storage medium | |
CN107046309B (en) | Charging method and device capable of automatically adjusting charging current | |
CN116382449B (en) | Power supply distribution method, system and storage medium | |
CN105022665A (en) | Control method for locking long-term unused app for Android and system of control method | |
CN112366812A (en) | Energy-saving mode control method and device of uninterruptible power supply | |
CN214376313U (en) | Self-service equipment power supply unit and self-service equipment | |
CN106532907B (en) | Miniature direct-current UPS (uninterrupted Power supply) and application method thereof | |
CN111969711A (en) | Whole cabinet power supply stable switching method, system, terminal and storage medium | |
CN101364194A (en) | Electronic device and management method thereof | |
CN116225196A (en) | Control method and system for UPS shutdown of self-service terminal | |
CN112455250B (en) | Storage battery timing charging system and method | |
CN114204607B (en) | Control method and device of fuel cell power generation system and fuel cell power generation system | |
CN117439230B (en) | Energy storage module and starting method thereof, energy storage system and starting method thereof | |
CN112769216B (en) | Circuit breaker and circuit breaker control method | |
US11837912B2 (en) | Switching method and multi-input power system | |
CN117856313B (en) | Control method, device and equipment of energy storage battery 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 | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 201807 Shanghai City, north of the city of Jiading District Road No. 2258 Applicant after: Shanghai Lianying Medical Technology Co., Ltd Address before: 201807 Shanghai City, north of the city of Jiading District Road No. 2258 Applicant before: SHANGHAI UNITED IMAGING HEALTHCARE Co.,Ltd. |