Server Power-down Timing Control System and Control Method
By introducing the first control module and the second control module into the server, and using the energy storage module discharge and output level extension technology, the problem that the power module cannot power down in time when the server is powered off abnormally is solved, and the preset timing power down of the power module is realized, ensuring the stability of the server.
Patent Information
- Application Number
- CN202211362626.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-02
- Publication Date
- 2025-06-27
- Estimated Expiration
- 2042-11-02
AI Technical Summary
In the event of abnormal power outage of the server, multiple power modules cannot guarantee power down according to the preset timing, which may lead to chip damage or firmware abnormality.
The first control module and the second control module are introduced, and different control methods are adopted under different load states of the server to ensure that the power module is powered down according to the preset timing. The first control module is discharged through the energy storage module, and the second control module extends the power-on time of the power supply module by the output level.
It realizes that when the server is powered off abnormally, multiple power modules can still power down according to the preset timing, avoiding chip damage and firmware abnormalities.
Smart Images

Figure CN115686173B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of servers, and more particularly, to a power-down timing control system and control method for a server. Background Art
[0002] With the development of information technology, servers are increasingly widely used. There are relatively high requirements for the power-up and power-down timing of some system-level chips in the server, especially in the case of abnormal power-off, the power-down timing cannot be satisfied. In this case, it is very likely to cause chip damage or firmware abnormality. In the related art, when the server experiences an abnormal power-off during a high-load working state, the output levels of each power supply module in the server will rapidly drop to zero, and the power-down time interval is extremely short. Summary of the Invention
[0003] The embodiments of the present application provide a power-down timing control system and control method for a server, so as to at least solve the problem that in the related art, when the server experiences an abnormal power-off, multiple power supply modules therein cannot ensure power-down according to a preset timing.
[0004] According to an embodiment of the present application, there is provided a power-down timing control system for a server, including: a first control module, a second control module, and multiple power supply modules; wherein, the first control module and the second control module are respectively connected to the multiple power supply modules, and the first control module is connected to the second control module; the first control module determines the load state of the server, and when the server powers down and the load state is the first state, controls multiple energy storage modules to discharge to the multiple power supply modules to control the multiple power supply modules to power down according to a preset timing; when the server powers down and the load state is the second state, the second control module outputs a level to the multiple power supply modules to control the multiple power supply modules to power down according to a preset timing.
[0005] In an exemplary embodiment, the first control module includes: a baseboard management controller, a detection module, a charging module, and multiple energy storage modules; wherein, the detection module and the multiple energy storage modules are connected to the baseboard management controller, the charging module is connected to the multiple energy storage modules, and the multiple energy storage modules are connected to the multiple power supply modules; the detection module is configured to determine the load power of the server and send the load power to the baseboard management controller; the baseboard management controller is configured to determine the load state of the server based on the load power; and when the server powers down and the load state is the first state, control the multiple energy storage modules to discharge to the multiple power supply modules, when the server powers down and the load state is the second state, send indication information to the second control module, and when the server is in a powered-on state, control the charging module to charge the multiple energy storage modules, wherein the indication information is used to instruct the second control module to control the multiple power supply modules to power down according to a preset timing.
[0006] In an exemplary embodiment, the baseboard management control is configured to determine that the load status of the server is in a first state when the load power is greater than a preset power threshold, and determine that the load status of the server is in a second state when the load power is less than the preset power threshold.
[0007] In an exemplary embodiment, the second control module includes a plurality of general-purpose input / output ports, wherein the plurality of general-purpose input / output ports are used for inputting or outputting levels.
[0008] In an exemplary embodiment, the second control module is configured to, when the server is in the second state, control the plurality of general-purpose input / output ports to output levels to the plurality of power modules, so as to control the plurality of power modules to power down according to a preset time sequence.
[0009] In an exemplary embodiment, the number of general-purpose input / output ports is the same as the number of power modules.
[0010] In an exemplary embodiment, the plurality of energy storage modules include a plurality of capacitors, and the order of the rated capacitances of the capacitors from small to large is consistent with the power-down time sequence of the power modules.
[0011] According to another embodiment of the present application, a control method for a server power-down time sequence control system is provided, including: the first control module determines the load status of the server, and when the server powers down and the load status is in the first state, discharges through the plurality of energy storage modules in the first control module to the plurality of power modules, so as to control the plurality of power modules to power down according to a preset time sequence; when the server powers down and the load status is in the second state, the first control module sends an indication message to the second control module, and the indication message is used to instruct the second control module to output levels to the plurality of power modules, so as to control the plurality of power modules to power down according to a preset time sequence.
[0012] In an exemplary embodiment, the first control module discharges through the plurality of energy storage modules in the first control module to the plurality of power modules, so as to control the plurality of power modules to power down according to a preset time sequence, including: the first control module controls the plurality of energy storage modules to discharge to the plurality of power modules connected to the plurality of energy storage modules, wherein the order of the discharge durations of the plurality of energy storage modules from small to large is the same as the preset time sequence, and the preset time sequence represents the order of the power-down moments of the plurality of power modules from first to last.
[0013] In an exemplary embodiment, when the server loses power and the load state is in the second state, the first control module sends indication information to the second control module. The indication information is used to instruct the second control module to output levels to multiple power modules, so as to control the multiple power modules to power down according to a preset time sequence, including: the first control module sends indication information to the second control module, and the indication information is used to instruct the second control module to output levels to the multiple power modules through multiple general-purpose input / output ports, so as to control the multiple power modules to power down according to a preset time sequence.
[0014] According to another embodiment of the present application, there is also provided a computer-readable storage medium, in which a computer program is stored. Wherein, the computer program is configured to execute the steps in any one of the above method embodiments when running.
[0015] According to another embodiment of the present application, there is also provided an electronic device, including a memory and a processor. A computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0016] Through the present application, due to the introduction of the first control module and the second control module, the first control module and the second control module use different control methods for the server in different load states to control multiple power modules in the server to power down according to a preset time sequence. Among them, the first control module controls multiple energy storage modules to discharge to multiple power modules, and the second control module extends the power-on duration of the power modules by outputting levels to the multiple power modules, thereby controlling the power-down moment of the power modules. Therefore, the problem that multiple power modules in the server cannot ensure powering down according to a preset time sequence in the case of abnormal power-off of the server can be solved, and the effect that multiple power modules in the server can still power down according to a preset time sequence in the case of abnormal power-off of the server is achieved. Description of the Drawings
[0017] Figure 1 is a schematic structural diagram of multiple power modules in a related art server;
[0018] Figure 2 is a schematic structural diagram of an optional server power-down time sequence control system according to an embodiment of the present application;
[0019] Figure 3 is a schematic structural diagram of another optional server power-down time sequence control system according to an embodiment of the present application;
[0020] Figure 4 is a hardware structure block diagram of a mobile terminal of a control method of an optional server power-down time sequence control system according to an embodiment of the present application;
[0021] Figure 5It is a flowchart of a control method for a server power-down timing control system according to an embodiment of the present application;
[0022] Figure 6 It is a schematic structural diagram of another optional server power-down timing control system according to an embodiment of the present application;
[0023] Figure 7 It is a structural block diagram of a server power-down timing control device according to an embodiment of the present application. Detailed implementation manners
[0024] In the following, embodiments of the present application will be described in detail with reference to the accompanying drawings and in combination with embodiments.
[0025] In the related art, an external power supply is used to supply power to multiple power modules in a server. Taking the external power supply as a 12V power supply, the first power module P3V3, the second power module P1V8, and the third power module P1V0 as examples, as Figure 1 shown, the external power supply is sequentially connected to the three power modules. Each power module includes: EN (enable, enable terminal) and PG (power good, output normal signal). It can be understood that after the 12V power supply is powered on, it is driven to output in a preset order, which are P3V3, P1V8, P1V0 respectively. In the case of the 12V power supply power-off, the power-down order of the three power modules is the same as the power-on order. For example: the power-down interval duration of each power module is greater than 40 milliseconds.
[0026] However, in actual application scenarios, the abnormal power-down timing, especially the abnormal power-down timing under the high-load working state of the server, is not considered. When the server is abnormally powered down during the high-load working process, the levels of each power module will rapidly drop to zero, and the power-down interval duration of the three power modules cannot meet the preset duration. For example: 40 milliseconds. To solve the above problems, a server power-down timing control system is provided in this embodiment, as Figure 2 shown, including: a first control module 10, a second control module 20, and multiple power modules 30; wherein, the first control module 10 and the second control module 20 are respectively connected to the multiple power modules 30, and the first control module 10 is connected to the second control module 20; the first control module 10 is used to determine the load state of the server. In the case of the server power-down and the load state being the first state, control the multiple energy storage modules in the first control module 10 to discharge to the multiple power modules 30, so as to control the multiple power modules 30 to power down according to a preset timing; in the case of the server power-down and the load state being the second state, the second control module 20 outputs a level to the multiple power modules 30, so as to control the multiple power modules 30 to power down according to a preset timing.
[0027] For example, the first control module 10 receives the load status of the server, determines that the load status of the server is the first status, and the first control module 10 supplies power to multiple power modules 30 through the energy storage module therein. The power supply duration is determined according to the power-down timing sequence. For example, if the multiple power modules 30 are powered down in sequence from left to right according to the connection order, then the power supply duration of the energy storage module to the power module 30 increases sequentially from left to right.
[0028] It should be noted that the terms "first", "second", etc. in the specification, claims and the above-mentioned drawings of this application are used to distinguish similar objects and do not necessarily need to describe a specific order or sequence.
[0029] In an actual application scenario, the second control module 20 can be a CPLD (Complex Programmable Logic Device), or an MCU (Micro Control Unit) and other microprocessing chips that can perform control.
[0030] Specifically, the logic block in the CPLD is similar to a small-scale PLD. Usually, a logic block contains 4 to 20 macro cells. Each macro cell generally consists of a product term array, a product term distribution, and a programmable register. Each macro cell has multiple configuration methods, and each macro cell can also be cascaded for use. Therefore, relatively complex combinational logic and sequential logic functions can be realized. For CPLDs with higher integration, embedded array blocks with on-chip RAM / ROM are usually provided. The programmable interconnection channels mainly provide the interconnection network between the logic blocks, macro cells, and input / output pins. The input / output block (I / O block) provides the interface between the internal logic and the device I / O pins.
[0031] The CPLD is a digital integrated circuit that needs to construct its own logic function according to actual needs. Its basic design method is to generate the corresponding target file by means of an integrated development software platform, using schematic diagrams, hardware description languages, etc., and transfer the code to the target chip through a download cable ("in-system" programming) to implement the designed digital system.
[0032] In an actual application scenario, after writing the hardware description language using the integrated development software, compile it, and finally give the input excitation signal of the logic circuit for simulation. When the output result meets the preset conditions, perform pin input and output locking (the 64 input and output pins of 7128 can be set according to needs), and finally generate the code, and transfer and store the code in the CPLD chip through the download cable.
[0033] In an alternative manner, such as Figure 3As shown in the figure, the first control module 10 includes: a baseboard management controller 40, a detection module 50, a charging module 60, and multiple energy storage modules 70; among them, the detection module 50 and the multiple energy storage modules 70 are connected to the baseboard management controller 40, the charging module 60 is connected to the multiple energy storage modules 70, and the multiple energy storage modules 70 are connected to the multiple power modules 30; the detection module 50 is used to determine the load power of the server and send the load power to the baseboard management controller 40; the baseboard management controller 40 is used to determine the load status of the server based on the load power; and in the case where the server loses power and the load status is the first state, control the multiple energy storage modules 70 to discharge to the multiple power modules 30, in the case where the server loses power and the load status is the second state, send indication information to the second control module 20, and in the case where the server is in the powered-on state, control the charging module 60 to charge the multiple energy storage modules 70, where the indication information is used to instruct the second control module 20 to control the multiple power modules 30 to power off according to a preset time sequence.
[0034] In an actual application scenario, the charging module 60 can be a charging circuit.
[0035] It can be understood that in the server field, the load status of the server is usually determined by the magnitude of the load power. From this, a method for distinguishing the first state and the second state can be obtained: the baseboard management controller 40 determines that the load status of the server is the first state when the load power is greater than a preset power threshold, and determines that the load status of the server is the second state when the load power is less than the preset power threshold.
[0036] Among them, the preset power threshold can be set in advance based on actual working needs.
[0037] It should be noted that the baseboard management controller includes a 16-bit or 32-bit microcontroller, a random access memory for data storage, a flash memory for non-volatile data storage, and firmware. The baseboard management controller can be used for system status monitoring; motherboard control such as restart, power-on again, power-off, etc.
[0038] The second control module 20 includes multiple general-purpose input / output ports, where the multiple general-purpose input / output ports are used to input or output levels.
[0039] It should be noted that in the case where the server is in the powered-on state, the multiple general-purpose input / output ports in the second control module 20 receive electrical signals input from an external power source. In the case where the server loses power and the load status is in the second state, the second control module 20 controls the multiple general-purpose input / output ports therein to change the signal transmission direction, from input to output, so that the second control module 20 outputs electrical signals to the multiple power modules 30 to control the multiple power modules 30 to power off according to a time sequence.
[0040] In another alternative manner, the baseboard management controller 40 can be directly connected to multiple power modules 30, replacing the second control module 20. In this manner, the baseboard management controller 40 outputs a level to the multiple power modules 30 to control the multiple power modules 30 to power off in sequence according to a preset timing sequence.
[0041] It can be understood that the duration of the output electrical signal is related to the power-off time of the multiple power modules 30. For example: the second control module 20 receives the load status of the server sent by the first control module 10, and the load status of the server is the second status. The second control module 20 outputs a level to the multiple power modules 30 through multiple general-purpose input / output ports thereof, so that the multiple power modules 30 power off in sequence from left to right according to the connection order. Then, the duration of the level output by the second control module 20 to the power module 30 increases sequentially from left to right.
[0042] In an alternative manner, the number of general-purpose input / output ports is the same as the number of power modules 30, and the power-off time of each power module 30 is accurately controlled in a one-to-one correspondence manner to achieve a preset power-off timing sequence.
[0043] The multiple energy storage modules 70 include multiple capacitors, and the rated capacitances of the multiple capacitors are in the same order as the power-off timing sequence of the power modules from small to large.
[0044] It should be noted that the energy storage module 70 includes at least one capacitor for storing electric energy. For example: if the multiple power modules 30 power off in sequence from left to right, then the power supply duration of the energy storage module 70 to the power module 30 increases sequentially from left to right, and the order of the rated capacitance sizes of the capacitors in the energy storage module 70 increases sequentially from left to right.
[0045] In an actual application scenario, the first control module 10 first determines whether the current load status of the server is the first status or the second status according to the load power of the server detected by the detection module 50.
[0046] When the server is in the second status, the first control module 10 can take over the power-off timing sequence by notifying the CPLD. When the CPLD pins GPIO1, GPIO2, and GPIO3 detect an abnormal power-off, the input is changed to an output to control EN to satisfy the power-off timing sequence.
[0047] When the server is in the first status, the first control module 10 turns on the analog switch and switches the pre-charged capacitor to the enable (EN) path of each power chip to ensure that there is enough discharge time when powering off in the first status. The sizes of the capacitors can be arranged from small to large in the order of power-off.
[0048] By introducing a first control module and a second control module, the first control module and the second control module control multiple power modules in a server in different load states by different control methods to power down the multiple power modules in the server according to a preset time sequence. Among them, the first control module controls multiple energy storage modules to discharge to the multiple power modules, and the second control module extends the power-on duration of the power modules by outputting levels to the multiple power modules, thereby controlling the power-down time of the power modules. Therefore, it can solve the problem that multiple power modules in the server cannot ensure powering down according to the preset time sequence in the case of abnormal power failure, and thus achieve the effect that multiple power modules in the server can still power down according to the preset time sequence in the case of abnormal power failure.
[0049] The method embodiments provided in the embodiments of the present application can be executed on a computer terminal or a similar computing device. Taking running on a computer terminal as an example, Figure 4 is a hardware structure block diagram of a mobile terminal for a control method of a server power-down time sequence control system according to an embodiment of the present application. As Figure 4 shown, the mobile terminal may include one or more ( Figure 4 only one is shown in Figure 4 a processor 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data. Among them, the above mobile terminal may further include a transmission device 106 for communication functions and an input / output device 108. Those of ordinary skill in the art can understand that Figure 4 the structure shown is only schematic and does not limit the structure of the above mobile terminal. For example, the mobile terminal may further include more or fewer components than Figure 4 shown, or have a different configuration from
[0050] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the control method of the server power-down time sequence control system in the embodiments of the present application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, implements the above method. The memory 104 may include a high-speed random access memory, and may further include a non-volatile memory, such as one or more magnetic storage devices, flash memories, or other non-volatile solid-state memories. In some instances, the memory 104 may further include a memory remotely disposed relative to the processor 102, and these remote memories may be connected to the mobile terminal through a network. Examples of the above network include, but are not limited to, the Internet, an enterprise intranet, a local area network, a mobile communication network, and combinations thereof.
[0051] The transmission device 106 is used to receive or send data via a network. Specific examples of the above-mentioned network may include a wireless network provided by a communication provider of a computer terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, abbreviated as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a Radio Frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0052] In this embodiment, a method running on the above computer terminal is provided. Figure 5 According to the flowchart of the embodiment of the present application, as Figure 5 shown, the process includes the following steps:
[0053] Step S502, the first control module determines the load status of the server. When the server loses power and the load status is the first state, the first control module discharges multiple energy storage modules to multiple power modules to control the multiple power modules to power off according to a preset time sequence.
[0054] Step S504, when the server loses power and the load status is the second state, the first control module sends indication information to the second control module, and the indication information is used to instruct the second control module to output a level to the multiple power modules to control the multiple power modules to power off according to a preset time sequence.
[0055] Through the above steps, due to the introduction of the first control module and the second control module, the first control module and the second control module use different control methods for the server in different load states to control multiple power modules in the server to power off according to a preset time sequence. Among them, the first control module discharges multiple energy storage modules to multiple power modules, and the second control module extends the power-on duration of the power modules by outputting a level to the multiple power modules, and then controls the power-off time of the power modules. Therefore, the problem that multiple power modules in the server cannot be guaranteed to power off according to a preset time sequence in the case of abnormal power-off of the server can be solved, and the effect that multiple power modules in the server can still power off according to a preset time sequence in the case of abnormal power-off of the server is achieved.
[0056] Among them, the execution subject of the above steps can be the second control module, etc., but it is not limited thereto.
[0057] In an exemplary embodiment, a first control module discharges to a plurality of power supply modules through a plurality of energy storage modules in the first control module to control the plurality of power supply modules to power down according to a preset time sequence, including: the first control module controls the plurality of energy storage modules to discharge to the plurality of power supply modules connected to the plurality of energy storage modules, wherein the order of the discharge durations of the plurality of energy storage modules from small to large is the same as the preset time sequence, and the preset time sequence represents the order of the power-down moments of the plurality of power supply modules from first to last.
[0058] In an exemplary embodiment, when the server loses power and the load state is the second state, the first control module sends indication information to the second control module, and the indication information is used to instruct the second control module to output a level to the plurality of power supply modules to control the plurality of power supply modules to power down according to a preset time sequence, including: the first control module sends indication information to the second control module, and the indication information is used to instruct the second control module to output a level to the plurality of power supply modules through a plurality of general-purpose input / output ports to control the plurality of power supply modules to power down according to a preset time sequence.
[0059] When the execution entity is the second control module, the above method includes the following steps: the second control module obtains the load state of the server determined by the first control module. When the server loses power and the load state is the second state, the second control module receives the first indication information sent by the first control module. When the second control module receives the first indication information, it outputs a level to the plurality of power supply modules to control the plurality of power supply modules to power down according to a preset time sequence; when the server loses power and the load state is the first state, the second control module obtains the second indication information sent by the first control module, and the second indication information is used to represent that the first control module discharges to the plurality of power supply modules through the plurality of energy storage modules in the first control module to control the plurality of power supply modules to power down according to a preset time sequence.
[0060] Through the above steps, due to the introduction of the first control module and the second control module, the first control module and the second control module use different control methods for the server in different load states to control the plurality of power supply modules in the server to power down according to a preset time sequence. Among them, the first control module controls the plurality of energy storage modules to discharge to the plurality of power supply modules, and the second control module extends the power-on duration of the power supply modules by outputting a level to the plurality of power supply modules, thereby controlling the power-down moment of the power supply modules. Therefore, the problem that the plurality of power supply modules in the server cannot be guaranteed to power down according to a preset time sequence in the case of abnormal power-off of the server can be solved, and the effect that the plurality of power supply modules in the server can still power down according to a preset time sequence in the case of abnormal power-off of the server is achieved.
[0061] In an actual application scenario, the embodiment of the present application also provides another server power-down time sequence control system, as Figure 6As shown, it includes: a 12V power supply, a power module P3V3, a power module P1V8, a power module P1V0, a baseboard management controller 40, a detection module 50, and a CPLD.
[0062] Figure 6 An analog switch (not marked in the figure) is provided within the dashed box of . Multiple power modules are respectively connected with capacitors, and a charging module 60 is connected with the multiple capacitors. During the startup phase of the server, after the baseboard management controller 40 starts, it defaults to switching the capacitors connected to each power module to be connected with the charging module 60. When the load power of the server is higher than the preset power threshold, the baseboard management controller 40 identifies the load state at the current moment through the detection module 50, and switches the analog switch from the charging module 60 to the multiple power modules.
[0063] When the load power of the server is lower than the preset power threshold, the baseboard management controller 40 identifies the load state of the server through the detection module 50, notifies the CPLD, and the CPLD receives the control of each EN signal. Before the power consumption of the CPLD is exhausted, it delays the corresponding controlled EN pins to an appropriate time by pulling up or pulling down GPIO1, GPIO2, and GPIO3 in advance.
[0064] It should be noted that GPIO represents a general-purpose input / output port.
[0065] The server power-down timing control method provided by this application uses the baseboard management controller to judge the load state of the server. The baseboard management controller first judges the current load state of the server according to the power detection module; then selects a suitable power-down timing management scheme according to the load state. When the load state of the server is in the first state, the baseboard management controller uses the analog switch to switch the charged capacitors to the EN paths of each power module to ensure that there is enough discharge time when abnormal power-off occurs. The sizes of the capacitors can be arranged from small to large in the order of power-down.
[0066] When the load state of the server is in the second state, the baseboard management controller sends a signal to the CPLD. When GPIO1, GPIO2, and GPIO3 of the CPLD detect abnormal power-off, they change the input to output to control EN to meet the power-down timing.
[0067] Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by means of software plus a necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases, the former is a better implementation method. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art can be embodied in the form of a software product. The computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes several instructions for causing a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods of the various embodiments of the present application.
[0068] In this embodiment, a power-down timing control device for a server is further provided. This device is used to implement the above embodiments and preferred implementation manners, and those that have been described will not be repeated. As used below, the term "module" can be a combination of software and / or hardware that can implement a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware is also possible and contemplated.
[0069] Figure 7 is a structural block diagram of the power-down timing control device for a server according to an embodiment of the present application. As Figure 7 shown, the device includes:
[0070] A control module 70, configured to determine the load status of the server. When the server loses power and the load status is in the first state, discharge through multiple energy storage modules in the first control module to multiple power modules, so as to control the multiple power modules to power down according to a preset timing;
[0071] An indication module 72, configured to, when the server loses power and the load status is in the second state, the first control module sends indication information to the second control module, and the indication information is used to instruct the second control module to output a level to the multiple power modules, so as to control the multiple power modules to power down according to a preset timing.
[0072] Among them, the control module 70 includes: a control sub-module, and the control sub-module is configured to control multiple energy storage modules to discharge to multiple power modules connected to the multiple energy storage modules. Among them, the discharge duration of the multiple energy storage modules is in the same order from small to large as the preset timing, and the preset timing represents the order of the power-down moments of the multiple power modules from first to last;
[0073] The indication module 72 includes: a sending sub-module, and the sending sub-module is configured to send indication information to the second control module, and the indication information is used to instruct the second control module to output a level to the multiple power modules through multiple general-purpose input / output ports, so as to control the multiple power modules to power down according to a preset timing.
[0074] It should be noted that the above-mentioned modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above-mentioned modules are all located in the same processor; or, the above-mentioned modules are respectively located in different processors in any combination form.
[0075] An embodiment of the present application also provides a computer-readable storage medium, in which a computer program is stored. Wherein, the computer program is set to execute the steps in any one of the above method embodiments when running.
[0076] In an exemplary embodiment, the above computer-readable storage medium may include, but is not limited to: various media such as USB flash drives, read-only memories (ROM for short), random access memories (RAM for short), mobile hard disks, magnetic disks or optical discs that can store computer programs.
[0077] An embodiment of the present application also provides an electrical device, including a memory and a processor. A computer program is stored in the memory, and the processor is set to run the computer program to execute the steps in any one of the above method embodiments.
[0078] In an exemplary embodiment, the above electrical device may further include a transmission device and an input / output device. Wherein, the transmission device is connected to the above processor, and the input / output device is connected to the above processor.
[0079] Specific examples in this embodiment may refer to the examples described in the above embodiments and exemplary embodiments, and will not be repeated here.
[0080] Obviously, those skilled in the art should understand that the above-mentioned modules or steps of the present application can be implemented by a general-purpose computing device. They can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices. They can be implemented by program codes executable by the computing device. Thus, they can be stored in a storage device and executed by the computing device. And in some cases, the steps shown or described can be executed in a different order than here, or they can be separately made into individual integrated circuit modules, or multiple modules or steps among them can be made into a single integrated circuit module to implement. In this way, the present application is not limited to any specific combination of hardware and software.
[0081] The above are only the preferred embodiments of the present application and are not used to limit the present application. For those skilled in the art, the present application can have various changes and modifications. Any modification, equivalent replacement, improvement, etc. made within the principle of the present application shall be included in the protection scope of the present application.
Claims
1. A power-down timing control system for a server, characterized in that Including: A first control module, a second control module, and multiple power modules; wherein, The first control module and the second control module are respectively connected to the multiple power modules, and the first control module is connected to the second control module; The first control module determines the load status of the server. When the server loses power and the load status is the first state, it controls multiple energy storage modules in the first control module to discharge to the multiple power modules, so as to control the multiple power modules to power off according to a preset time sequence; when the server loses power and the load status is the second state, the second control module outputs a level to the multiple power modules, so as to control the multiple power modules to power off according to the preset time sequence; Controlling multiple energy storage modules in the first control module to discharge to multiple power modules, so as to control the multiple power modules to power off according to a preset time sequence, includes: the first control module controls multiple energy storage modules to discharge to the multiple power modules connected to the multiple energy storage modules, wherein the order of the discharge durations of the multiple energy storage modules from small to large is the same as the preset time sequence, and the preset time sequence represents the order of the power-off moments of the multiple power modules from first to last; The order of the durations of the second control module outputting a level to the multiple power modules from small to large is the same as the preset time sequence.
2. The system according to claim 1, characterized in that, The first control module includes: a baseboard management controller, a detection module, a charging module, and multiple energy storage modules; wherein, the detection module and the multiple energy storage modules are connected to the baseboard management controller, the charging module is connected to the multiple energy storage modules, and the multiple energy storage modules are connected to the multiple power modules; The detection module is used to determine the load power of the server and send the load power to the baseboard management controller; The baseboard management controller is used to determine the load status of the server based on the load power; and when the server loses power and the load status is the first state, control the multiple energy storage modules to discharge to the multiple power modules, when the server loses power and the load status is the second state, send indication information to the second control module, and when the server is in the powered-on state, control the charging module to charge the multiple energy storage modules, wherein the indication information is used to instruct the second control module to control the multiple power modules to power off according to the preset time sequence.
3. The system according to claim 2, wherein The baseboard management controller is used to determine that the load status of the server is the first state when the load power is greater than a preset power threshold, and determine that the load status of the server is the second state when the load power is less than the preset power threshold.
4. The system according to claim 2, characterized in that, The second control module includes multiple general-purpose input / output ports, wherein the multiple general-purpose input / output ports are used to input or output a level.
5. The system according to claim 4, wherein The second control module is configured to control the multiple general-purpose input / output ports to output levels to the multiple power modules when the server is in the second state, so as to control the multiple power modules to power off according to the preset timing.
6. The system according to claim 4, wherein The number of the general-purpose input / output ports is the same as the number of the power modules.
7. The system according to claim 2, characterized in that, Among the multiple energy storage modules, there are multiple capacitors, and the rated capacitances of the multiple capacitors are in the same order from small to large as the power-off timing of the power modules.
8. A control method for a power-down timing control system of a server, characterized in that, Comprising: The first control module determines the load state of the server. When the server is powered off and the load state is the first state, the first control module discharges the multiple energy storage modules in the first control module to the multiple power modules, so as to control the multiple power modules to power off according to the preset timing. When the server is powered off and the load state is the second state, the first control module sends indication information to the second control module, and the indication information is used to instruct the second control module to output levels to the multiple power modules, so as to control the multiple power modules to power off according to the preset timing, wherein the durations of the second control module outputting levels to the multiple power modules are in the same order from small to large as the preset timing. Wherein, the first control module discharges the multiple energy storage modules in the first control module to the multiple power modules to control the multiple power modules to power off according to the preset timing, including: the first control module controls the multiple energy storage modules to discharge to the multiple power modules connected to the multiple energy storage modules, wherein the discharge durations of the multiple energy storage modules are in the same order from small to large as the preset timing, and the preset timing represents the order of the power-off times of the multiple power modules from first to last.
9. The method according to claim 8, wherein When the server is powered off and the load state is the second state, the first control module sends indication information to the second control module, and the indication information is used to instruct the second control module to output levels to the multiple power modules, so as to control the multiple power modules to power off according to the preset timing, including: The first control module sends indication information to the second control module, and the indication information is used to instruct the second control module to output levels to the multiple power modules through the multiple general-purpose input / output ports, so as to control the multiple power modules to power off according to the preset timing.
10. An electronic device, characterized in that, Comprising a memory and a processor, the processor is configured to run a computer program, wherein the device where the processor is located executes the control method of the server power-off timing control system according to any one of claims 8 to 9 by running the computer program.
11. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored computer program, wherein the device where the computer-readable storage medium is located executes the control method of the server power-off timing control system according to any one of claims 8 to 9 by running the computer program.
Citation Information
Patent Citations
Power-down sequence control device and method
CN108153370A
Power supply control method and system of server system, medium and equipment
CN113625855A