Timing control system and method of server
By using the alarm signal of the real-time clock unit to control the power supply unit when the server is powered off, the substrate management control unit is powered on, and the server is automatically powered on, which solves the problem that the server cannot automatically power on, and improves the automation and energy-saving effect of management.
Patent Information
- Application Number
- CN202510867177.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-26
- Publication Date
- 2025-07-25
- Estimated Expiration
- 2045-06-26
AI Technical Summary
The server cannot automatically turn on when the power is out, resulting in inconvenience in management and waste of resources.
A combined system of power supply unit, switching unit, level setting unit, substrate management control unit, real-time clock unit and logic control unit is adopted. The alarm signal of the real-time clock unit enables the power supply unit in the server shutdown state, and the logic control unit is controlled to power on through the substrate management control unit to realize automatic power on.
The server can be powered on automatically after power outage, saving power consumption and reducing the security risks of power-off operations, improving management automation and accuracy.
Smart Images

Figure CN120371081A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of timing control, and particularly to a timing control system and method for a server. Background Art
[0002] In server application scenarios, the efficient management and energy-saving operation of servers are crucial. Therefore, the automatic power-on and power-off of servers have become a research hotspot.
[0003] Currently, a Real Time Clock (RTC) chip has one power supply interface powered by a battery and another power supply interface connected to the standby power supply of the server. When the server is in a power-off state, the battery powers the RTC chip to ensure that the time recorded by the RTC remains accurate even when the server is powered off. However, when the server is in a power-off state, only the RTC chip is in a normal working state due to battery power supply, and other devices in the server are in a powerless state, making it impossible to achieve the automatic power-on of the server. Summary of the Invention
[0004] This application provides a timing control system and method for a server to at least solve the problem that the server cannot be automatically powered on in a power-off state in related technologies.
[0005] This application provides a timing control system for a server, including: a power supply unit, a switch unit, a level setting unit, a baseboard management control unit, a real-time clock unit, an energy storage unit, and a logic control unit; The power supply unit is used to supply power to the baseboard management control unit, the real-time clock unit, and the logic control unit after being enabled; The energy storage unit is connected to the real-time clock unit and is used to supply power to the real-time clock unit when the power supply unit is powered off; The real-time clock unit is connected to the switch unit and is used to enable the power supply unit through the conductive switch unit when the server is in a shutdown state and the alarm is triggered; The baseboard management control unit is respectively connected to the switch unit, the real-time clock unit, and the logic control unit, and is used to read the clock time of the real-time clock unit after power-on. If the clock time of the real-time clock unit is the preset power-on time, it controls the logic control unit to power on, and controls the switch unit to disconnect after the logic control unit is powered on; The level setting unit is respectively connected to the energy storage unit, the switch unit, and the power supply unit, and is used to enable the power supply unit when the switch unit is in a disconnected state.
[0006] The present application also provides a method for timing control of a server, which is applied to a timing control system of the server. The method includes: when the server is in a shutdown state and the alarm of the real-time clock unit is triggered, the real-time clock unit enables the power supply unit through the switch unit in a conducting state; The baseboard management control unit powers on; The baseboard management control unit reads the clock time of the real-time clock unit. If the clock time of the real-time clock unit is the preset boot time, the control logic control unit powers on and the control switch unit disconnects; The level setting unit enables the power supply unit when the switch unit is in a disconnected state.
[0007] Through the present application, the control system of the server includes a power supply unit, a switch unit, a level setting unit, a baseboard management control unit, a real-time clock unit, an energy storage unit, and a logic control unit; the power supply unit is used to supply power to the baseboard management control unit, the real-time clock unit, and the logic control unit after being enabled; the energy storage unit is connected to the real-time clock unit and is used to supply power to the real-time clock unit when the power supply unit is powered off; the real-time clock unit is connected to the switch unit and is used to enable the power supply unit through the switch unit in a conducting state when the server is in a shutdown state and the alarm is triggered; the baseboard management control unit is respectively connected to the switch unit, the real-time clock unit, and the logic control unit, and is used to read the clock time of the real-time clock unit after powering on. If the clock time of the real-time clock unit is the preset boot time, the control logic control unit powers on, and after the logic control unit powers on, the control switch unit disconnects; the level setting unit is respectively connected to the energy storage unit, the switch unit, and the power supply unit, and is used to enable the power supply unit when the switch unit is in a disconnected state. It can be seen that by adopting the above technical solution, when the server is in a power-off state, the alarm signal output by the real-time clock unit due to the alarm trigger can enable the power supply unit, and then the power supply unit powers on to supply power to the baseboard management control unit, and then the baseboard management control unit controls the logic control unit to power on to realize the server boot, and then the level setting unit continues to enable the power supply unit, and then the power supply unit continuously supplies power. Therefore, the problem that the server cannot be automatically powered on when in a power-off state can be solved. Description of the Drawings
[0008] In order to more clearly illustrate the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0009] Figure 1Schematic diagram of a software timing system based on a server operating system provided for the related art; Figure 2 Schematic diagram of a timing control system for a server provided for an embodiment of the present application; Figure 3 Flowchart of a timing control method for a server provided for an embodiment of the present application. Detailed implementation manners
[0010] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the protection scope of the present application.
[0011] It should be noted that in the description of the present application, the terms "including", "comprising" or any other variation thereof are intended to cover a non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or device. The terms "first", "second", etc. in the present application are used to distinguish similar objects and are not used to describe a specific order or sequence.
[0012] In order to enable those skilled in the art in the technical field to better understand the solution of the present application, the present application will be further described in detail below in conjunction with the accompanying drawings and specific implementation manners.
[0013] In the server application scenario, the efficient management and energy-saving operation of the server are crucial. The on / off operations of traditional servers mostly rely on manual control or software timing tasks based on the server operating system. The manual control method not only consumes manpower but also is difficult to achieve precise timing on / off. Especially in the large-scale server cluster management scenario, the operation efficiency is extremely low and errors are prone to occur. And for the software timing tasks based on the server operating system, the server cannot be automatically powered on after a power failure. For example, Figure 1 Schematic diagram of a software timing system based on a server operating system provided for the related art. As Figure 1As shown, in the software timing scenario based on the server operating system, the Real-Time Clock (RTC) is relied on to implement the function of real-time clock recording. The RTC usually has two System Management Buses (SMBUSs). The Central Processing Unit (CPU) is connected to the first SMBUS interface of the RTC and is used to read and modify the RTC clock, operate registers, etc. The first SMBUS interface has the highest read and write permissions for the RTC chip and can control the relevant read and write permissions of the second SMBUS interface. The Baseboard Management Controller (BMC) is connected to the second SMBUS interface and is generally only used to read the RTC clock. In terms of power supply, the RTC has two power supply interfaces. One power supply interface is powered by a battery, and the other power supply interface is connected to the standby power supply STBY of the server system. When the server is in the G3 state (i.e., the power-off state), that is, when the Power Supply Unit (PSU) has no output, the battery powers the RTC chip to ensure that the RTC clock remains accurate when the server is in the power-off state. When the server is in the S5 - S0 state, that is, when the PSU has output, the standby power supply STBY is powered on, and the RTC chip internally switches to be powered by the standby power supply STBY to save battery power. Thus, when the server is in the S5 - S0 state, that is, when the PSU has output, devices such as the BMC are in a normal working state, and the timed power-on and power-off operations can be performed through the BMC. However, relying on the BMC to achieve timed power-on when the PSU has output causes some devices to still be in the running state in the S5 - S0 state, resulting in waste of power consumption resources and there is also a security risk that the power-on and power-off operations can be tampered with. When the server is in the G3 state, only the RTC chip is powered by the battery and is in a normal working state. Since the PSU has no output, other devices are in a power-off state and cannot achieve automatic power-on. In view of this, the present application provides a timed control system and method for a server. Next, the timed control system of the server will be described in detail first.
[0014] Figure 2 It is a schematic structural diagram of a timed control system for a server provided by an embodiment of the present application. As Figure 2As shown in the figure, the timing control system of the server includes: a power supply unit 101, a switch unit 102, a level setting unit 103, a baseboard management control unit 104, a real-time clock unit 105, an energy storage unit 106, and a logic control unit 107; the power supply unit 101 is used to supply power to the baseboard management control unit 104, the real-time clock unit 105, and the logic control unit 107 after being enabled; the energy storage unit 106 is connected to the real-time clock unit 105 and is used to supply power to the real-time clock unit 105 when the power supply unit 101 is powered off; the real-time clock unit 105 is connected to the switch unit 102 and is used to enable the power supply unit 101 through the switch unit 102 in the on state when the server is in the shutdown state and the alarm is triggered; the baseboard management control unit 104 is respectively connected to the switch unit 102, the real-time clock unit 105, and the logic control unit 107, and is used to read the clock time of the real-time clock unit 105 after power-on. If the clock time of the real-time clock unit 105 is the preset power-on time, it controls the logic control unit 107 to power on, and controls the switch unit 102 to disconnect after the logic control unit 107 powers on; the level setting unit 103 is respectively connected to the energy storage unit 106, the switch unit 102, and the power supply unit 101, and is used to enable the power supply unit 101 when the switch unit 102 is in the off state.
[0015] Specifically, the specific implementation manner of the power supply unit 101 may include a PSU, etc., but is not limited thereto.
[0016] Specifically, the specific implementation manner of the energy storage unit 106 may include a battery, etc., but is not limited thereto. When the power supply unit 101 has no output (i.e., after the power supply unit 101 is disabled), the energy storage unit 106 supplies power to the real-time clock unit 105 to ensure that the clock time recorded by the real-time clock unit 105 remains accurate when the server is in the power-off state; when the power supply unit 101 has output, the standby power supply STBY of the real-time clock unit 105 powers on, and the real-time clock unit 105 internally switches to be powered by the standby power supply STBY to save the power of the energy storage unit 106.
[0017] Specifically, the specific implementation manner of the real-time clock unit 105 may include an RTC, etc., but is not limited thereto.
[0018] Specifically, the specific implementation manner of the baseboard management control unit 104 may include a BMC, etc., but is not limited thereto.
[0019] Specifically, the specific implementation manner of the logic control unit 107 may include a Complex Programmable Logic Device (CPLD), etc., but is not limited thereto.
[0020] Optionally, continue to refer toFigure 2 The timing control system of the server further includes: a first voltage regulation unit 108 and a second voltage regulation unit 109; the first voltage regulation unit 108 is respectively connected to the baseboard management control unit 104 and the power supply unit 101, and is used to convert the first power supply voltage PSU_OUT output by the power supply unit 101 into a second power supply voltage PWR_BMC, and transmit the second power supply voltage PWR_BMC to the baseboard management control unit 104; the baseboard management control unit 104 is used to enable the second voltage regulation unit 109 if the clock time of the real-time clock unit 105 is the preset power-on time, and the second voltage regulation unit 109 is used to convert the first power supply voltage PSU_OUT into a third power supply voltage PWR_PLD after being enabled, and transmit the third power supply voltage PWR_PLD to the logic control unit 107 to power on the logic control unit 107.
[0021] Exemplarily, continue to refer to Figure 2 All power supply sources of the timing control system of the server are the power supply unit 101, and the power supply unit 101 outputs the first power supply voltage PSU_OUT after being enabled. The second power supply voltage PWR_BMC required by the baseboard management control unit 104 is converted and output through the independent first voltage regulation unit 108. The first voltage regulation unit 108 is default self-starting, that is, after the power supply unit 101 outputs the first power supply voltage PSU_OUT, the first voltage regulation unit 108 immediately converts the first power supply voltage PSU_OUT into the second power supply voltage PWR_BMC and provides the second power supply voltage PWR_BMC to the baseboard management control unit 104 to complete the power-on of the baseboard management control unit 104. The third power supply voltage PWR_PLD required by the logic control unit 107 is converted and output through the independent second voltage regulation unit 109. The baseboard management control unit 104 controls the second voltage regulation unit 109 through the third enable signal FM_PLD_EN. When the third enable signal FM_PLD_EN is valid, the second voltage regulation unit 109 converts the first power supply voltage PSU_OUT into the third power supply voltage PWR_PLD and provides the third power supply voltage PWR_PLD to the logic control unit 107 to complete the power-on of the logic control unit 107. In addition, the baseboard management control unit 104 can also control the power-on and power-off of the logic control unit 107 through the fourth enable signal FM_PWRON_N. In addition, the remaining power supply voltages PWR_SYSx required by other units in the server are converted and output through SYS_VRx (voltage regulation unit), and the logic control unit 107 controls SYS_VRx to output the remaining power supply voltages PWR_SYSx through the fifth enable signal FM_VRx_EN, where SYS_VRx can be multiple voltage regulation units, for example, SYS_VR1, SYS_VR2..., and they are uniformly represented by SYS_VRx.
[0022] Specifically, the specific implementation manner of the switch unit 102 may include transistors, relays, etc., but is not limited thereto.
[0023] Exemplarily, the real-time clock unit 105 includes an alarm terminal for outputting an alarm signal FM_RTC_ALT_N, the power supply unit 101 includes a first enable terminal for receiving a first enable signal FM_PS_ON_N, the alarm terminal is connected to the first end of the switch unit 102, the first enable terminal is connected to the second end of the switch unit 102, and the baseboard management control unit 104 is connected to the control end of the switch unit 102 to output a second enable signal FM_RTC_CTRL_N to the switch unit 102.
[0024] Specifically, continue to refer to Figure 2 , the specific implementation manner of the level setting unit 103 may be as follows: including a pull-up resistor R2 and a pull-down resistor R1; the first end of the pull-up resistor R2 is connected to the energy storage unit 106, and the second end of the pull-up resistor R2 is connected to the first end of the switch unit 102; the first end of the pull-down resistor R1 is respectively connected to the second end of the switch unit 102 and the power supply unit 101, and the second end of the pull-down resistor R1 is grounded to GND. In this way, the circuit structure of the level setting unit 103 can be simple and the cost is relatively low. But it is not limited thereto.
[0025] Exemplarily, the first end of the pull-up resistor R2 is connected to the energy storage unit 106, and the second end of the pull-up resistor R2 is respectively connected to the first end of the switch unit 102 and the alarm terminal; the first end of the pull-down resistor R1 is respectively connected to the second end of the switch unit 102 and the first enable terminal of the power supply unit 101, and the second end of the pull-down resistor R1 is grounded to GND. The baseboard management control unit 104 controls the conduction and disconnection of the switch unit 102 through the second enable signal FM_RTC_CTRL_N. The resistance ratio of the pull-down resistor R1 to the pull-up resistor R2 is greater than or equal to 10:1, that is, the resistance value of the pull-down resistor R1 is more than 10 times the resistance value of the pull-up resistor R2. After the AC power supply of the power supply unit 101 is turned on (that is, after the power supply unit 101 is powered on), when the switch unit 102 is in the off state, the level setting unit 103 outputs a low level (that is, the first level signal) to the first enable terminal of the power supply unit 101 to enable the power supply unit 101 to output a first power supply voltage PSU_OUT. When the switch unit 102 is in the on state, the level setting unit 103 outputs a high level (that is, the second level signal) to the first enable terminal of the power supply unit 101 to disable the power supply unit 101, and the power supply unit 101 has no output.
[0026] Optionally, the timing control system of the server further includes: a switching unit 111 and a central processing unit 110. The real-time clock unit 105 includes a first communication interface and a second communication interface. The baseboard management control unit 104 includes a third communication interface. The central processing unit 110 includes a fourth communication interface. The third communication interface is connected to the first end of the switching unit 111. The fourth communication interface is connected to the second end of the switching unit 111. The first communication interface is connected to the third end of the switching unit 111. The switching unit 111 is configured to switch between a first connection state and a second connection state in response to a switching signal output by the baseboard management control unit 104. The first connection state is that the first communication interface is connected to the third communication interface, and the second connection state is that the first communication interface is connected to the fourth communication interface. The baseboard management control unit 104 is configured to read the clock time of the real-time clock unit 105 through the first communication interface, perform clock calibration on the real-time clock unit 105, read the alarm status of the real-time clock unit 105, clear the alarm status of the real-time clock unit 105, and write a preset shutdown time and a preset startup time into the storage space of the real-time clock unit 105. The central processing unit 110 is configured to read the clock time of the real-time clock unit 105 through the first communication interface. The second communication interface is connected to the third communication interface.
[0027] Specifically, the central processing unit 110 may include a CPU and the like, but is not limited thereto. Among them, the central processing unit 110 is the core processing unit of the server, responsible for executing the instruction sets of the operating system and application programs, performing various arithmetic and data processing tasks, and determining which types of tasks the server can run and the execution efficiency of these tasks.
[0028] Specifically, the specific implementation manner of the switching unit 111 may include an analog switch and the like, but is not limited thereto.
[0029] Specifically, the first communication interface and the second communication interface may be a first SMBUS interface and a second SMBUS interface respectively, but are not limited thereto. Among them, the first SMBUS interface is used to read and modify the clock time of the real-time clock unit 105, operate registers, etc. The first SMBUS interface has the highest read and write permissions for the real-time clock unit 105 and can control the relevant read and write permissions of the second SMBUS interface.
[0030] Exemplarily, the third communication interface of the baseboard management control unit 104 is connected to the first end of the switching unit 111, the fourth communication interface of the central processing unit 110 is connected to the second end of the switching unit 111, the third end of the switching unit 111 is connected to the first SMBUS interface of the real-time clock unit 105, and the third communication interface SMB_BMC_RTC of the baseboard management control unit 104 is connected to the second SMBUS interface of the real-time clock unit 105. That is, the baseboard management control unit 104 multiplexes the third communication interface to be connected to the first SMBUS interface and the second SMBUS interface of the real-time clock unit 105, and accesses the real-time clock unit 105 by accessing different Slave addresses. The baseboard management control unit 104 controls whether the central processing unit 110 or the baseboard management control unit 104 is connected to the first SMBUS interface of the real-time clock unit 105 through the switching signal FW_SW_SEL. Of course, the baseboard management control unit 104 and the central processing unit 110 can also be connected through eSPI signal lines to perform data transmission.
[0031] Correspondingly, Figure 3 FIG. is a flowchart of a timing control method for a server provided by an embodiment of the present application. As Figure 3 shown, the timing control method for a server includes: S110, when the server is in a shutdown state and the real-time clock unit alarm is triggered, the real-time clock unit enables the power supply unit through the switching unit in a conducting state.
[0032] S120, the baseboard management control unit is powered on.
[0033] S130, the baseboard management control unit reads the clock time of the real-time clock unit. If the clock time of the real-time clock unit is the preset power-on time, the control logic control unit is powered on, and the control switching unit is disconnected.
[0034] S140, the level setting unit enables the power supply unit when the switching unit is in a disconnected state.
[0035] Specifically, when the server is in the shutdown state and the real-time clock unit 105 alarm is triggered, the real-time clock unit 105 outputs an alarm signal FM_RTC_ALT_N with a first level value. The alarm signal FM_RTC_ALT_N with the first level value is transmitted to the power supply unit 101 through the switched unit 102 in the conducting state, so that the level value of the first enable signal FM_PS_ON_N input to the power supply unit 101 is the first level, enabling the power supply unit 101. In response to the first enable signal FM_PS_ON_N with the first level value, the power supply unit 101 powers on, and then the baseboard management control unit 104 powers on. The baseboard management control unit 104 reads the clock time of the real-time clock unit 105. If the clock time is the preset power-on time, the baseboard management control unit 104 controls the logic control unit 107 to power on. After the logic control unit 107 powers on, a power-on operation is performed. The baseboard management control unit 104 controls the switched unit 102 to disconnect, and the level setting unit 103 outputs a first level signal, so that the level value of the first enable signal FM_PS_ON_N is the first level, continuously enabling the power supply unit 101.
[0036] Optionally, the baseboard management control unit 104 is further configured to, after reading the clock time of the real-time clock unit 105, if the clock time of the real-time clock unit 105 is not the preset power-on time, read and clear the alarm status of the real-time clock unit 105, and disable the power supply unit 101 through the switched unit 102 in the conducting state.
[0037] Correspondingly, for the timing control method of the server, after the baseboard management control unit 104 reads the clock time of the real-time clock unit 105, it further includes: if the clock time of the real-time clock unit 105 is not the preset power-on time, read and clear the alarm status of the real-time clock unit 105, and disable the power supply unit 101 through the switched unit 102 in the conducting state. In this way, incorrect power-on can be avoided, and the accuracy of the automatic power-on control can be improved.
[0038] Specifically, when the clock time of the real-time clock unit 105 reaches the preset alarm time, the real-time clock unit 105 sets a specific flag bit to indicate that the alarm has been triggered. By reading the status of the flag bit, it can be known whether an alarm event has occurred. Clearing the alarm status is usually completed by writing a specific command to the real-time clock unit 105 or directly modifying the status register to modify the status of the flag bit.
[0039] Specifically, if the clock time is not the preset power-on time, the baseboard management control unit 104 reads and clears the alarm status of the real-time clock unit 105. The real-time clock unit 105 outputs an alarm signal FM_RTC_ALT_N with a second-level voltage value. The alarm signal FM_RTC_ALT_N with a second-level voltage value is transmitted to the power supply unit 101 through the switched unit 102 in the conducting state, so that the voltage value of the first enable signal FM_PS_ON_N input to the power supply unit 101 is the second level, disabling the power supply unit 101.
[0040] Exemplarily, when the server is in the shutdown state and the alarm is triggered, the level value of the alarm signal FM_RTC_ALT_N at the alarm terminal of the real-time clock unit 105 is the first level (for example, low level but not limited to this). The alarm signal FM_RTC_ALT_N with the level value of the first level is transmitted to the first enable terminal of the power supply unit 101 through the switched unit 102 in the conducting state, so that the level value of the first enable signal FM_PS_ON_N is the first level, enabling the power supply unit 101, and the power supply unit 101 powers on. Since the first voltage regulation unit 108 is default self-started, after the power supply unit 101 powers on, the first voltage regulation unit 108 automatically converts the first power supply voltage PSU_OUT output by the power supply unit 101 into the second power supply voltage PWR_BMC and provides the second power supply voltage PWR_BMC to the baseboard management control unit 104 to power on the baseboard management control unit 104. After the baseboard management control unit 104 powers on, it accesses the second SMBUS interface of the real-time clock unit 105 through the third communication interface, reads the clock time and the preset power-on time and preset power-off time recorded in the memory. If the clock time is the preset power-on time, it controls the second voltage regulation unit 109 to power on through the third enable signal FM_PLD_EN, and controls the logic control unit 107 to power on through the fourth enable signal FM_PWRON_N with the level value of the third level. If the clock time is between the preset power-off time and the preset power-on time (i.e., the alarm is triggered due to other abnormal states before the preset power-on time), the baseboard management control unit 104 switches to connect its third communication interface to the first SMBUS interface of the real-time clock unit 105 through the switching signal FM_SW_SEL, reads and clears the alarm status, so that the level value of the alarm signal FM_RTC_ALT_N at the alarm terminal of the real-time clock unit 105 is the second level (for example, high level). The alarm signal FM_RTC_ALT_N with the level value of the second level is transmitted to the first enable terminal of the power supply unit 101 through the switched unit 102 in the conducting state, so that the level value of the first enable signal FM_PS_ON_N is the second level, disabling the power supply unit 101, and the power supply unit 101 powers off and waits for the time to reach the preset power-on time. After the logic control unit 107 powers on, the baseboard management control unit 104 controls the switched unit 102 to disconnect through the second enable signal FM_RTC_CTRL_N, and the level value of the first enable signal FM_PS_ON_N is maintained at the first level due to the pull-down resistor R1, so as to continue enabling the power supply unit 101, and the power supply unit 101 normally outputs the first power supply voltage PSU_OUT, and the server maintains the power-on state.The baseboard management control unit 104 is switched to its third communication interface through the switching signal FM_SW_SEL to be connected to the first SMBUS interface of the real-time clock unit 105, accesses the real-time clock unit 105 through the first SMBUS interface, and clears the alarm time set based on the preset power-on time and the preset power-on time stored in the memory of the real-time clock unit 105. Then, the BMC is switched to the fourth communication interface of the central processing unit 110 through the baseboard management control unit 104 through the switching signal FM_SW_SEL to be connected to the first SMBUS interface of the real-time clock unit 105, ensuring that the central processing unit 110 can normally obtain the clock time of the real-time clock unit 105.
[0041] It can be understood that when the server is in the shutdown state in this application, the power supply unit 101 outputs, and only the real-time clock unit 105 is in the running state. In this way, power consumption can be saved and the security risk of tampering with the power-on and power-off operations can be reduced. And the control of the first enable signal FM_PS_ON_N is realized by using the alarm signal FM_RTC_ALT_N of the real-time clock unit 105, that is, when the alarm of the real-time clock unit 105 is triggered, the alarm signal FM_RTC_ALT_N enables the first enable signal FM_PS_ON_N to realize power-on control. When the alarm of the real-time clock unit 105 is not triggered, the alarm signal FM_RTC_ALT_N turns off the first enable signal FM_PS_ON_N to save power. In this way, both power consumption can be saved and automatic power-on control can be realized. In the embodiment of this application, when the server is in the power-off state, the triggering of the alarm of the real-time clock unit 105 can make the level value of the first enable signal FM_PS_ON_N be the first level, and then make the power supply unit 101 power on to supply power to the baseboard management control unit 104. Further, the baseboard management control unit 104 controls the logic control unit 107 to power on to realize the power-on of the server. And by outputting the first level signal through the level setting unit 103, the level value of the first enable signal FM_PS_ON_N can be kept at the first level, and then the power supply unit 101 can continue to supply power. Therefore, the problem that the server cannot be automatically powered on when it is in the power-off state can be solved.
[0042] In another embodiment of the present disclosure, the baseboard management control unit 104 is further configured to disable the logic control unit 107 when the server is in the power-on state and the timing of the preset power-off time ends. The logic control unit 107 is configured to perform a power-off operation after being disabled; the baseboard management control unit 104 is further configured to control the switch unit 102 to conduct after the logic control unit 107 performs a power-off operation; the level setting unit 103 is configured to disable the power supply unit 101 through the switch unit 102 in the conducting state.
[0043] Optionally, the baseboard management control unit 104 is further configured to perform clock calibration on the real-time clock unit 105 before disabling the logic control unit 107, and clear the alarm status of the real-time clock unit 105 when the alarm of the real-time clock unit 105 is triggered.
[0044] Correspondingly, the timing control method of the server further includes: when the server is in the powered-on state and the timing for a preset shutdown time ends, the baseboard management control unit 104 performs clock calibration on the real-time clock unit 105; when the alarm of the real-time clock unit 105 is triggered, the baseboard management control unit 104 clears the alarm status of the real-time clock unit 105 and disables the logic control unit 107; the logic control unit 107 performs a shutdown operation after being disabled; the baseboard management control unit 104 controls the switch unit 102 to conduct; the level setting unit 103 disables the power supply unit 101 through the switch unit 102 in the conducting state.
[0045] Specifically, when the server is in the powered-on state and the baseboard management control unit 104 finishes timing for a preset shutdown time, the baseboard management control unit 104 performs clock calibration on the real-time clock unit 105; when the alarm of the real-time clock unit 105 is triggered, the baseboard management control unit 104 clears the alarm status of the real-time clock unit 105; the baseboard management control unit 104 sends a fourth enable signal FM_PWRON_N with a fourth level value to the logic control unit 107; in response to the fourth enable signal FM_PWRON_N with a fourth level value, the logic control unit 107 performs a shutdown operation; the baseboard management control unit 104 controls the switch unit 102 to conduct, and the level setting unit 103 outputs a second level signal to make the level value of the first enable signal FM_PS_ON_N be the second level, disable the power supply unit 101, and the power supply unit 101 powers down.
[0046] Exemplarily, the baseboard management control unit 104 may start a software timer based on a preset shutdown time; when the timer counts down to the preset shutdown time, the baseboard management control unit 104 obtains the current network time from a Network Time Protocol Server (NTP) to calibrate the clock of the implementation clock unit, and confirms whether the real-time clock unit 105 triggers an alarm. If the real-time clock unit 105 triggers an alarm, relevant processing is performed, and the alarm status is cleared to ensure that the alarm signal FM_RTC_ALT_N signal is at a second level. This is because many operations (such as a failure, etc.) can trigger an alarm, thereby making the alarm signal FM_RTC_ALT_N signal at a first level. To avoid these operations from affecting the automatic shutdown, it is necessary to first clear the alarm status to ensure that the alarm signal FM_RTC_ALT_N signal is at the second level, and then perform subsequent operations. Then, the shutdown operation is controlled by the fourth enable signal FM_PWRON_N with a fourth level value to control the logic control unit 107 to trigger the shutdown of the server system. Then, the baseboard management control unit 104 controls the switch unit 102 to conduct through the second enable signal FM_RTC_CTRL_N signal, so that the level setting unit 103 outputs a second level signal to the power supply unit 101, so that the level value of the first enable signal FM_PS_ON_N is at the second level to disable the power supply unit 101. The power supply unit 101 is powered down. At this time, the AC power of the server is present, but only the real-time clock unit 105 of the server is powered by the energy storage unit 106 and is in a normal working state.
[0047] In another embodiment of the present application, the baseboard management control unit 104 is further configured to obtain the current network time, start timing based on the current network time and the preset shutdown time, calibrate the clock of the real-time clock unit 105, set the alarm time for the real-time clock unit 105 based on the preset startup time, and write the preset shutdown time and the preset startup time into the storage space of the real-time clock unit 105.
[0048] Correspondingly, the timing control method of the server further includes: the baseboard management control unit 104 obtains the current network time and starts timing based on the current network time and the preset shutdown time; The baseboard management control unit 104 calibrates the clock of the real-time clock unit 105 and sets an alarm for the real-time clock unit 105 based on the preset startup time; The baseboard management control unit 104 writes the preset shutdown time and the preset startup time into the storage space of the real-time clock unit 105.
[0049] Exemplarily, the baseboard management control unit 104 reads the accurate current network time from NTP, combines the preset shutdown time and the current network time to set a software timer, thereby completing the automatic shutdown setting. The baseboard management control unit 104 switches the first SMBUS interface to be connected to its third communication interface through the switching signal FM_SW_SEL signal, reads the clock time of the real-time clock unit 105 through the first SMBUS interface. If the difference between the clock time and the current network time is greater than or equal to a preset threshold (such as 2 seconds, etc.), the current network time is written into the real-time clock unit 105 to complete the time calibration of the real-time clock unit 105. Then, the baseboard management control unit 104 continues to enable the alarm function of the real-time clock unit 105 through the first SMBUS interface, and sets the preset power-on time as the alarm time. Then, the baseboard management control unit 104 continues to write the preset power-on time and the preset shutdown time into the storage space (such as SRAM, etc.) of the real-time clock unit 105 through the first SMBUS interface. Then, the baseboard management control unit 104 switches the first SMBUS interface to be connected to the fourth communication interface through the switching signal FM_SW_SEL to ensure that the central processing unit 110 can normally obtain the clock time of the real-time clock.
[0050] 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.
[0051] The embodiment of the present application also provides an electronic device, including the timing control system of the server described in any of the above embodiments.
[0052] Those skilled in the art can further realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. To clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described according to functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.
[0053] The above has introduced in detail a timing control system for a server and a timing control method for a server provided by the present application. Specific examples are used in this article to elaborate on the principle and implementation manner of the present application. The description of the above embodiments is only used to help understand the method and its core idea of the present application. It should be noted that for those of ordinary skill in the art in this technical field, without departing from the principle of the present application, several improvements and modifications can still be made to the present application, and these improvements and modifications also fall within the protection scope of the claims of the present application.
Claims
1. A timing control system for a server, characterized in that, Including: A power supply unit, a switch unit, a level setting unit, a baseboard management control unit, a real-time clock unit, an energy storage unit, and a logic control unit; The power supply unit is used to supply power to the baseboard management control unit, the real-time clock unit, and the logic control unit after being enabled; The energy storage unit is connected to the real-time clock unit and is used to supply power to the real-time clock unit when the power supply unit is powered off; The real-time clock unit is connected to the switch unit and is used to enable the power supply unit through the switch unit in a conducting state when the server is in a shutdown state and the alarm is triggered; The baseboard management control unit is respectively connected to the switch unit, the real-time clock unit, and the logic control unit, and is used to read the clock time of the real-time clock unit after power-on. If the clock time of the real-time clock unit is the preset power-on time, it controls the logic control unit to power on, and controls the switch unit to disconnect after the logic control unit powers on; The level setting unit is respectively connected to the energy storage unit, the switch unit, and the power supply unit, and is used to enable the power supply unit when the switch unit is in a disconnected state.
2. The timing control system of the server according to claim 1, wherein The baseboard management control unit is further used to, after reading the clock time of the real-time clock unit, if the clock time of the real-time clock unit is not the preset power-on time, read and clear the alarm state of the real-time clock unit, and disable the power supply unit through the switch unit in a conducting state.
3. The timing control system of the server according to claim 1, characterized in that It further includes: a first voltage regulation unit and a second voltage regulation unit; The first voltage regulation unit is respectively connected to the baseboard management control unit and the power supply unit, and is used to convert the first power supply voltage output by the power supply unit into a second power supply voltage and transmit the second power supply voltage to the baseboard management control unit; The baseboard management control unit is used to enable the second voltage regulation unit if the clock time of the real-time clock unit is the preset power-on time. The second voltage regulation unit is used to convert the first power supply voltage into a third power supply voltage after being enabled and transmit the third power supply voltage to the logic control unit to enable the logic control unit to power on.
4. The timing control system of the server according to claim 1, wherein The switch unit includes a transistor.
5. The timing control system of the server according to claim 1, characterized in that, The baseboard management control unit is further used to disable the logic control unit when the server is in a power-on state and the timing for the preset shutdown time ends. The logic control unit is used to perform a shutdown operation after being disabled; The baseboard management control unit is further used to control the switch unit to conduct after the logic control unit performs a shutdown operation; The level setting unit is used to disable the power supply unit through the switch unit in a conducting state.
6. The timing control system of the server according to claim 5, characterized in that, The baseboard management control unit is further used to perform clock calibration on the real-time clock unit before disabling the logic control unit, and clear the alarm state of the real-time clock unit when the alarm of the real-time clock unit is triggered.
7. The timing control system of the server according to claim 5, wherein The level setting unit includes a pull-up resistor and a pull-down resistor; The first end of the pull-up resistor is connected to the energy storage unit, and the second end of the pull-up resistor is connected to the first end of the switch unit; The first end of the pull-down resistor is respectively connected to the second end of the switch unit and the power supply unit, and the second end of the pull-down resistor is grounded.
8. The timing control system of the server according to claim 5, characterized in that The baseboard management control unit is further configured to obtain the current network time, start timing based on the current network time and the preset shutdown time, perform clock calibration on the real-time clock unit, set the alarm time for the real-time clock unit based on the preset startup time, and write the preset shutdown time and the preset startup time into the storage space of the real-time clock unit.
9. The timing control system of the server according to claim 5, characterized in that, It further includes: A switching unit and a central processing unit. The real-time clock unit includes a first communication interface and a second communication interface. The baseboard management control unit includes a third communication interface. The central processing unit includes a fourth communication interface; The third communication interface is connected to the first end of the switching unit, the fourth communication interface is connected to the second end of the switching unit, the first communication interface is connected to the third end of the switching unit. The switching unit is configured to switch between a first connection state and a second connection state in response to a switching signal output by the baseboard management control unit. The first connection state is that the first communication interface is connected to the third communication interface, and the second connection state is that the first communication interface is connected to the fourth communication interface. The baseboard management control unit is configured to read the clock time of the real-time clock unit through the first communication interface, perform clock calibration on the real-time clock unit, read the alarm status of the real-time clock unit, clear the alarm status of the real-time clock unit, and write the preset shutdown time and the preset startup time into the storage space of the real-time clock unit. The central processing unit is configured to read the clock time of the real-time clock unit through the first communication interface; The second communication interface is connected to the third communication interface.
10. A timing control method for a server, characterized in that Applied to the timing control system of the server according to any one of claims 1-9, wherein the method includes: When the server is in a shutdown state and the alarm of the real-time clock unit is triggered, the real-time clock unit enables the power supply unit through the switch unit in a conducting state; The baseboard management control unit is powered on; The baseboard management control unit reads the clock time of the real-time clock unit. If the clock time of the real-time clock unit is the preset startup time, the control logic control unit is powered on and the switch unit is controlled to disconnect; The level setting unit enables the power supply unit when the switch unit is in a disconnected state.
11. The timing control method of the server according to claim 10, wherein After the baseboard management control unit reads the clock time of the real-time clock unit, it further includes: If the clock time of the real-time clock unit is not the preset startup time, read and clear the alarm status of the real-time clock unit, and disable the power supply unit through the switch unit in a conducting state.
12. The timing control method of the server according to claim 10, wherein It further includes: When the server is in the powered-on state and the timing for the preset shutdown time ends, the baseboard management control unit performs clock calibration on the real-time clock unit; When the alarm of the real-time clock unit is triggered, the baseboard management control unit clears the alarm state of the real-time clock unit and disables the logic control unit; After being disabled, the logic control unit performs a shutdown operation; The baseboard management control unit controls the switch unit to conduct; The level setting unit disables the power supply unit through the switch unit in the conducting state.
13. The timing control method of the server according to claim 10, characterized in that, Further included: The baseboard management control unit obtains the current network time and starts timing based on the current network time and the preset shutdown time; The baseboard management control unit performs clock calibration on the real-time clock unit and sets the alarm time for the real-time clock unit based on the preset power-on time; The baseboard management control unit writes the preset shutdown time and the preset power-on time into the storage space of the real-time clock unit.
Citation Information
Patent Citations
Method for updating substrate management controller timing time
CN101192073A
Method and equipment for preventing automatic startup of system after RTC removl
CN110413092A
Startup method, shutdown method, logic device, server and readable storage medium
CN119248357A
Cited By
Power supply system of server, server and power supply method
CN120803235A