Shutdown control method and device, equipment and medium

The management module monitors and coordinates the status of the shutdown button of the multi-unit server in real time to ensure that the power is off after the functional module completes the soft shutdown. This solves the problem of data loss and hardware damage during the complete shutdown of the multi-unit server and realizes convenient shutdown and data processing. Safe protection.

CN118535230APending Publication Date: 2024-08-23西安超越申泰信息科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410964993.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-17
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

The one-key shutdown method of multi-unit servers results in loss of software data, software damage, and damage to hardware life, making it impossible to shut down the entire machine conveniently without damaging the server's software and hardware.

Method used

The management module monitors the status of the power-on button of the entire machine in real time, sends a shutdown command and waits for each target function module to return a completion signal, and then performs a soft shutdown operation and cuts off the power to ensure that the power is cut off after all functional modules are completed.

Benefits of technology

It reduces the risk of data loss, avoids software damage and hardware life damage, realizes convenient shutdown of the entire machine, and protects the data security of multi-unit servers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118535230A
    Figure CN118535230A
Patent Text Reader

Abstract

The invention relates to the technical field of computers, and discloses a shutdown control method, device and equipment. The method comprises the steps that in response to the fact that a management module in the multi-unit server monitors that the button state of a target button is changed into a shutdown state, a shutdown instruction is sent to a plurality of target function modules in the multi-unit server, and a shutdown completion signal returned by the target function modules is waited; in response to shutdown completion signals returned by all the target function modules received by the management module, executing soft shutdown operation, and sending a first enable signal to a power supply module in the multi-unit server; and controlling the power supply module to stop supplying power to all the functional modules based on the first enable signal. By means of the scheme, convenient shutdown of the whole multi-unit server is achieved, meanwhile, software and hardware of the multi-unit server are not damaged, and data safety of the multi-unit server is protected.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a shutdown control method, system, device and medium. Background Art

[0002] A multi-unit server is a server that has multiple computing units that support independent work. In order to facilitate users to quickly shut down the multi-unit server, in addition to an independent switch for each unit, the multi-unit server also has a switch that can shut down the entire machine with one click. However, this one-click shutdown usually uses direct disconnection of the power supply of the entire machine to shut down the entire machine. This forced power-off shutdown method will affect the system of the multi-unit server, causing the system to have problems such as blue screen, black screen or error code, resulting in the loss of some data of the software currently running on the computer, such as office documents or some other data programs. It may even cause damage to the software and make it unusable. Because the above one-click shutdown operation skips the operation of restoring the software and hardware configuration when the computer is shut down, it damages the life of hardware such as the computer motherboard and graphics card components.

[0003] Therefore, it is urgent to propose a shutdown control method to solve the above defects. Summary of the invention

[0004] In view of this, the present invention proposes a shutdown control method, system, device and medium, which solves the problems of partial software data loss, software damage, hardware life damage, etc. that occur during the one-key soft shutdown of a multi-unit server. It achieves convenient shutdown of the entire machine without damaging the server's software and hardware, thereby protecting the data security of the multi-unit server.

[0005] Based on the above purpose, an embodiment of the present invention provides a shutdown control method, which is applied to a multi-unit server and specifically includes the following steps: In response to the management module in the multi-unit server monitoring that the button state of the target button has changed to the shutdown state, sending a shutdown instruction to several target function modules in the multi-unit server and waiting for the shutdown completion signal returned by them; In response to the management module receiving the shutdown completion signals returned by all the target functional modules, performing a soft shutdown operation and sending a first enable signal to a power module in the multi-unit server; The power supply module is controlled to stop supplying power to all the functional modules based on the first enable signal.

[0006] In some implementations, the step of sending a shutdown instruction to several target functional modules in the multi-unit server includes: Obtaining in-place signals and power-on / off status information of all functional modules in the multi-unit server; According to each of the in-place signals and each of the on / off status information, searching for a target functional module that is in-place and in a powered-on state; Send the shutdown instruction to the target functional module.

[0007] In some implementations, the shutdown control method further includes: In response to the target functional module receiving the shutdown instruction, a soft shutdown operation is performed, and the shutdown completion signal is sent to the management module.

[0008] In some implementations, the shutdown control method further includes: In response to being connected to an external input power source, the power module outputs a first target current to the management module to supply power to the management module.

[0009] In some implementations, the shutdown control method further includes: In response to the management module monitoring that the button state of the target button has changed to the power-on state, a second enable signal is sent to the power module to control the power module to supply power to all the functional modules.

[0010] In some implementations, the step of obtaining the presence signals and power on / off status information of all functional modules in the multi-unit server includes: The management module obtains the presence signal and the power on / off status information of each functional module based on a preset bus, and the preset bus includes a serial port bus, an I2C management bus or a GPIO bus.

[0011] In some implementations, the shutdown control method further includes: The functional module periodically sends a presence signal to the preset bus.

[0012] Another aspect of the embodiment of the present invention further provides a shutdown control device, which is applied to a multi-unit server, including: The first module is configured to send a shutdown instruction to a plurality of target function modules in the multi-unit server and wait for a shutdown completion signal returned by the target function modules in response to the management module in the multi-unit server monitoring that the button state of the target button changes to a shutdown state; A second module is configured to execute a soft shutdown operation in response to the management module receiving the shutdown completion signals returned by all the target functional modules, and send a first enable signal to the power module in the multi-unit server; The third module is configured to control the power supply module to stop supplying power to all the functional modules based on the first enable signal.

[0013] According to another aspect of an embodiment of the present invention, a computer device is provided, comprising: at least one processor; and a memory, wherein the memory stores a computer program executable on the processor, and the computer program implements the steps of the above method when executed by the processor.

[0014] According to another aspect of the embodiments of the present invention, a computer-readable storage medium is provided, which stores a computer program that implements the above method steps when executed by a processor.

[0015] The present invention has at least the following beneficial technical effects: the shutdown control method of the present invention monitors the button status of the power button of the whole machine in real time through the management module. When the power button of the whole machine is pressed, the management module can immediately capture the change of the button status, and then send the shutdown instruction to each target functional module. After receiving all the shutdown completion signals, the management module cuts off its own power and sends an enable signal to the power module, ensuring that the power is cut off after all the target functional modules are soft-shutdowned, ensuring that there is enough time to save data and close applications during the shutdown process of the multi-unit server, thereby reducing the risk of data loss, avoiding the problem of software damage and hardware life damage caused by sudden power failure of the functional module, and realizing convenient shutdown of the whole machine without damaging the server's software and hardware, thereby protecting the data security of the multi-unit server. BRIEF DESCRIPTION OF THE DRAWINGS In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other embodiments can be obtained based on these drawings without paying creative work.

[0016] Figure 1 A block diagram of an embodiment of a shutdown control method provided by the present invention; Figure 2 A schematic diagram of an embodiment of a multi-unit server provided by the present invention; Figure 3 A schematic diagram of an embodiment of power supply for a multi-unit server provided by the present invention; Figure 4 A schematic diagram of an embodiment of shutting down a multi-unit server provided by the present invention; Figure 5 A schematic diagram of an embodiment of a shutdown control system provided by the present invention; Figure 6 A schematic diagram of the structure of an embodiment of a computer device provided by the present invention; Figure 7A schematic diagram of the structure of an embodiment of a computer-readable storage medium provided by the present invention. DETAILED DESCRIPTION

[0017] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the embodiments of the present invention are further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.

[0018] It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are for distinguishing two non-identical entities with the same name or non-identical parameters. It can be seen that "first" and "second" are only for the convenience of expression and should not be understood as limitations on the embodiments of the present invention. The subsequent embodiments will not explain this one by one.

[0019] Based on the above purpose, the first aspect of the embodiment of the present invention provides a shutdown control method, which is applied to a multi-unit server. Figure 1 As shown, it includes the following steps: Step S100, in response to the management module in the multi-unit server detecting that the button state of the target button has changed to the shutdown state, a shutdown instruction is sent to several target function modules in the multi-unit server and a shutdown completion signal returned by the modules is waited for; Step S200, in response to the management module receiving the shutdown completion signals returned by all target functional modules, performing a soft shutdown operation and sending a first enable signal to the power supply module in the multi-unit server; Step S300: Control the power supply module to stop supplying power to all functional modules based on the first enable signal.

[0020] In some embodiments, Figure 2A schematic diagram of an embodiment of a multi-unit server provided by the present invention. A multi-unit server usually has at least one power module, multiple functional modules, one management module and one whole machine power on / off button (i.e., target button). The power module is used to realize DC-DC (direct current to direct current) or AC-DC (alternating current to direct current) power conversion. The functional module is used to realize information processing, data exchange and data storage. The management module is used to realize the management of server equipment. When the operator wants to shut down the multi-unit server, he presses the whole machine power on / off button to shut down the whole machine. The management module can obtain the operator's action in real time according to the change of the button state, and then send the shutdown instruction to each target functional module. After each target functional module obtains the shutdown instruction, it executes the soft shutdown operation through the soft shutdown script, and sends a shutdown completion signal to the management module after the shutdown is completed. According to the shutdown completion signal, after confirming that all target functional modules have completed the shutdown, the management module completes its own soft shutdown and then turns off the whole machine power to complete the whole machine power off. The target functional module is a functional module that is in place and in the power-on state. In place means that the functional module has been installed in the specified position according to the design requirements and the connection is intact without any physical obstruction or damage.

[0021] The shutdown control method of the present invention monitors the button status of the power button of the whole machine in real time through the management module. When the power button of the whole machine is pressed, the management module can immediately capture the change of the button status to the shutdown state, and then send the shutdown instruction to each target functional module. After receiving all the shutdown completion signals, the management module cuts off its own power and sends an enable signal to the power module, ensuring that the power is cut off after all the target functional modules are soft-shutdowned, ensuring that there is enough time to save data and close applications during the shutdown process of the multi-unit server, thereby reducing the risk of data loss, avoiding the problem of software damage and hardware life damage caused by sudden power failure of the functional module, and realizing convenient shutdown of the whole machine without damaging the server's software and hardware, thereby protecting the data security of the multi-unit server. In some embodiments, the step of sending a shutdown command to several target functional modules in a multi-unit server includes: obtaining the presence signals and power-on / off status information of all functional modules in the multi-unit server; searching for the target functional modules that are in place and in the power-on state according to each presence signal and each power-on / off status information; and sending a shutdown command to the target functional modules.

[0022] In some implementations, the shutdown control method of the present invention further includes: in response to the target functional module receiving the shutdown instruction, executing a soft shutdown operation, and sending a shutdown completion signal to the management module.

[0023] In some embodiments, the shutdown control method of the present invention further includes: in response to access to an external input power source, the power module outputs a first target current to the management module to supply power to the management module.

[0024] In some embodiments, the shutdown control method of the present invention further includes: in response to the management module monitoring that the button state of the target button has changed to the power-on state, sending a second enable signal to the power module to control the power module to supply power to all functional modules.

[0025] In some embodiments, the step of obtaining the presence signals and power-on / off status information of all functional modules in a multi-unit server includes: a management module obtains the presence signals and power-on / off status information of each functional module based on a preset bus, and the preset bus includes a serial port bus, an I2C (Inter-Integrated Circuit) management bus, or a GPIO (General-Purpose Input / Output) bus.

[0026] In some implementations, the shutdown control method of the present invention further includes: the functional module periodically sending a presence signal to a preset bus.

[0027] In some embodiments, Figure 3 A schematic diagram of an embodiment of the power supply of a multi-unit server provided by the present invention. The power module function is controlled by an enable signal to realize DC-DC or AC-DC power conversion, converting the external input power ( Figure 3 The second enable signal is used to convert the external input power into a DC output power that meets the requirements of the multi-unit server, which is used to power each functional module. When the operator wants to turn on the multi-unit server, he presses the power button of the whole machine to turn on the whole machine. The management module can obtain the operator's action in real time according to the change of the button state, and then send the second enable signal to the power module. After receiving the second enable signal, the power module converts the external power supply and outputs the converted power to each functional module for power supply. The second enable signal is a signal for controlling the power module to start powering. Power conversion is used to convert the input AC or DC power into a stable DC output to meet the working requirements of the internal circuits of the multi-unit server.

[0028] In some embodiments, the power module also outputs a DC_SB (standby DC power supply) for powering the management module, wherein the DC_SB is automatically output when the multi-unit server has power and is not controlled by the enable signal of the power module. When the enable signal is disabled (such as when the server is turned off or enters a low power mode), the DC_SB can still maintain the power supply state to facilitate the management of the multi-unit server.

[0029] In some embodiments, Figure 4A schematic diagram of an embodiment of the shutdown of a multi-unit server provided by the present invention. The management module and each functional module are connected via a bus communication such as a serial port, I2C or GPIO. The management module obtains the presence signal and current on / off status of each functional module in real time through the above bus. When the entire shutdown is triggered, the management module sends a shutdown command to all target functional modules that are in place and in the on state. After the target functional modules obtain the shutdown command, they execute the soft shutdown operation through the soft shutdown script, and send a shutdown completion signal to the management module after the soft shutdown is completed. After the management module confirms that all functional modules that are in place and in the on state have completed the shutdown, the management module completes its own soft shutdown and sends a first enable signal ( Figure 4 The first enable signal is used to turn off the power of the entire server by turning off the power of the entire server (DC_EN) to complete the soft shutdown of the entire server. The presence signal can be a "heartbeat" signal periodically sent by the functional module to the management module or a health check response, so that the management module can confirm that the target functional module is still in place and operating normally. If the management module does not receive a heartbeat signal or health check response from a functional module within a certain period of time, it can be considered that the functional module may not be in place or has a fault. The first enable signal is a signal used to control the power module to stop supplying power.

[0030] The shutdown control method of the present invention monitors the button status of the power button of the whole machine in real time through the management module. When the power button of the whole machine is pressed, the management module can immediately capture the change of the button status, and then send the shutdown instruction to each target functional module. After receiving all the shutdown completion signals, the management module cuts off its own power and sends an enable signal to the power module, ensuring that the power is cut off after all the target functional modules are soft-shutdowned, ensuring that there is enough time to save data and close applications during the shutdown process of the multi-unit server, thereby reducing the risk of data loss, avoiding the problem of software damage and hardware life damage caused by sudden power failure of the functional module, and realizing convenient shutdown of the whole machine without damaging the server's software and hardware, thereby protecting the data security of the multi-unit server.

[0031] Based on the same inventive concept, according to another aspect of the present invention, Figure 5 As shown, an embodiment of the present invention further provides a shutdown control device, which is applied to a multi-unit server, and the shutdown control device includes: The first module 110 is configured to send a shutdown instruction to a plurality of target function modules in the multi-unit server and wait for a shutdown completion signal returned by the target function modules in response to the management module in the multi-unit server detecting that the button state of the target button has changed to a shutdown state; The second module 120 is configured to execute a soft shutdown operation in response to the management module receiving shutdown completion signals returned by all target functional modules, and send a first enable signal to the power supply module in the multi-unit server; The third module 130 is configured to control the power module to stop supplying power to all functional modules based on the first enable signal.

[0032] The shutdown control system of the present invention monitors the button status of the power button of the whole machine in real time through the management module. When the power button of the whole machine is pressed, the management module can immediately capture the change of the button status, and then send the shutdown instruction to each target functional module. After receiving all the shutdown completion signals, the management module cuts off its own power and sends an enable signal to the power module, ensuring that the power is cut off after all the target functional modules are soft-shutdowned, ensuring that there is enough time to save data and close applications during the shutdown process of the multi-unit server, thereby reducing the risk of data loss and avoiding the problem of software damage and hardware life damage caused by sudden power failure of the functional module, realizing convenient shutdown of the whole machine without damaging the server's software and hardware, thereby protecting the data security of the multi-unit server. Based on the same inventive concept, according to another aspect of the present invention, Figure 6 As shown, an embodiment of the present invention further provides a computer device 30, which includes a processor 310 and a memory 320. The memory 320 stores a computer program 321 that can be run on the processor. When the processor 310 executes the program, the steps of the above method are performed.

[0033] The computer equipment of the present invention reduces the risk of data loss, avoids the problem of software damage and hardware life damage caused by sudden power failure of functional modules, realizes convenient shutdown of the entire machine without damaging the server's software and hardware, and protects the data security of multi-unit servers. Based on the same inventive concept, according to another aspect of the present invention, Figure 7 As shown, an embodiment of the present invention further provides a computer-readable storage medium 40, which stores a computer program 410 for executing the above method when executed by a processor.

[0034] The computer-readable storage medium of the present invention reduces the risk of data loss, avoids the problem of software damage and hardware life damage caused by sudden power failure of functional modules, realizes convenient shutdown of the entire machine without damaging the server's software and hardware, and protects the data security of multi-unit servers.

[0035] Finally, it should be noted that a person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium of the program can be a disk, an optical disk, a read-only storage memory (ROM) or a random access memory (RAM), etc. The above-mentioned computer program embodiments can achieve the same or similar effects as the corresponding above-mentioned any method embodiments.

[0036] It will also be appreciated by those skilled in the art that various exemplary logic blocks, modules, circuits and algorithm steps described in conjunction with the disclosure herein can be implemented as electronic hardware, computer software or a combination of the two. In order to clearly illustrate this interchangeability of hardware and software, a general description has been given to the functions of various schematic components, blocks, modules, circuits and steps. Whether this function is implemented as software or hardware depends on specific applications and the design constraints imposed on the entire system. Those skilled in the art can implement the function in various ways for each specific application, but this implementation decision should not be interpreted as causing a departure from the disclosed scope of the embodiments of the present invention.

[0037] The above are exemplary embodiments disclosed in the present invention, but it should be noted that various changes and modifications may be made without departing from the scope of the embodiments disclosed in the present invention as defined in the claims. The functions, steps and / or actions of the method claims according to the disclosed embodiments described herein do not need to be performed in any particular order. The serial numbers of the embodiments disclosed in the above embodiments of the present invention are for description only and do not represent the advantages and disadvantages of the embodiments. In addition, although the elements disclosed in the embodiments of the present invention may be described or required in individual form, they may also be understood as multiple unless explicitly limited to the singular.

[0038] It should be understood that, as used herein, the singular forms "a", "an" are intended to include the plural forms as well, unless the context clearly supports an exception. It should also be understood that, as used herein, "and / or" refers to any and all possible combinations including one or more of the associated listed items.

[0039] A person skilled in the art should understand that the discussion of any of the above embodiments is only exemplary and is not intended to imply that the scope of the disclosure of the embodiments of the present invention (including the claims) is limited to these examples; under the concept of the embodiments of the present invention, the technical features in the above embodiments or different embodiments can also be combined, and there are many other changes in different aspects of the above embodiments of the present invention, which are not provided in detail for the sake of simplicity. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present invention should be included in the protection scope of the embodiments of the present invention.

Claims

1. A shutdown control method, characterized in that: Applicable to multi-unit servers, including: In response to the management module in the multi-unit server monitoring that the button state of the target button has changed to the shutdown state, sending a shutdown instruction to several target function modules in the multi-unit server and waiting for the shutdown completion signal returned by them; In response to the management module receiving the shutdown completion signals returned by all the target functional modules, performing a soft shutdown operation and sending a first enable signal to a power module in the multi-unit server; The power supply module is controlled to stop supplying power to all the functional modules based on the first enable signal.

2. The shutdown control method according to claim 1, characterized in that: The step of sending a shutdown instruction to a plurality of target functional modules in the multi-unit server includes: Obtaining in-place signals and power-on / off status information of all functional modules in the multi-unit server; According to each of the in-place signals and each of the on / off status information, searching for a target functional module that is in-place and in a powered-on state; Send the shutdown instruction to the target functional module.

3. The shutdown control method according to claim 1, characterized in that: Also includes: In response to the target functional module receiving the shutdown instruction, a soft shutdown operation is performed, and the shutdown completion signal is sent to the management module.

4. The shutdown control method according to claim 1, characterized in that: Also includes: In response to being connected to an external input power source, the power module outputs a first target current to the management module to supply power to the management module.

5. The shutdown control method according to claim 1, characterized in that: Also includes: In response to the management module monitoring that the button state of the target button has changed to the power-on state, a second enable signal is sent to the power module to control the power module to supply power to all the functional modules.

6. The shutdown control method according to claim 2, characterized in that: The step of obtaining the presence signals and power on / off status information of all functional modules in the multi-unit server includes: The management module obtains the presence signal and the power on / off status information of each functional module based on a preset bus, and the preset bus includes a serial port bus, an I2C management bus or a GPIO bus.

7. The shutdown control method according to claim 6, characterized in that: Also includes: The functional module periodically sends a presence signal to the preset bus.

8. A shutdown control device, characterized in that: Applicable to multi-unit servers, including: The first module is configured to send a shutdown instruction to a plurality of target function modules in the multi-unit server and wait for a shutdown completion signal returned by the target function modules in response to the management module in the multi-unit server monitoring that the button state of the target button changes to a shutdown state; A second module is configured to execute a soft shutdown operation in response to the management module receiving the shutdown completion signals returned by all the target functional modules, and send a first enable signal to the power module in the multi-unit server; The third module is configured to control the power supply module to stop supplying power to all the functional modules based on the first enable signal.

9. A computer device comprising: at least one processor; as well as A memory storing a computer program executable on the processor, wherein the processor executes the steps of the method according to any one of claims 1 to 7 when executing the program.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are performed.