Timing control system and method for server

By designing the server's timing control system, the power supply unit is controlled by using the alarm signal of the real-time clock unit to control the power supply unit, the problem of the server being unable to automatically turn on after power is cut off, automatic power on is realized, power consumption is saved, and security risks are reduced.

CN120371081BActive Publication Date: 2025-08-22INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510867177.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-06-26
Publication Date
2025-08-22
Estimated Expiration
2045-06-26

AI Technical Summary

Technical Problem

The server cannot automatically turn on when the power is out, resulting in low management efficiency and waste of power and resources and safety risks.

Method used

A server timing control system is designed, including a power supply unit, a switching unit, a level setting unit, a substrate management control unit, a real-time clock unit and a logic control unit. The alarm signal of the real-time clock unit is used to control the opening and closing of the power supply unit to ensure that the power is automatically turned on in a power outage state.

Benefits of technology

It realizes automatic power-on of the server in a power outage state, saves power consumption, reduces the security risk of tampering with the power switch operation, and improves management efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120371081B_ABST
    Figure CN120371081B_ABST
Patent Text Reader

Abstract

The present application discloses a server timing control system and method, relating to the field of timing control technology, comprising 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 energy storage unit 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 used to enable the power supply unit via the switch unit in the on state when the server is in the off state and the alarm is triggered; the baseboard management control unit is used to read the clock time of the real-time clock unit after power-on, and if the clock time of the real-time clock unit is the preset power-on time, control the logic control unit to power on, and control the switch unit to disconnect after the logic control unit is powered on; the level setting unit is used to enable the power supply unit when the switch unit is in the disconnected state. The present application solves the problem that a server cannot automatically power on when it is powered off.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of timing control technology, and in particular to a timing control system and method for a server. Background Art

[0002] In server application scenarios, efficient management and energy-saving operation of servers are crucial, so automatic power on and off of servers has become a research hotspot.

[0003] Currently, the real-time clock (RTC) chip has one power supply port connected to a battery and another to the server's backup power supply. When the server is powered off, the battery powers the RTC chip, ensuring that the RTC time remains accurate even when the server is powered off. However, when the server is powered off, only the RTC chip is operating normally due to battery power, while other components in the server are without power, making it impossible for the server to automatically power on. Summary of the Invention

[0004] The present application provides a timing control system and method for a server, so as to at least solve the problem in the related art that the server cannot automatically start up in a power-off state.

[0005] The present application provides a timing control system for a server, comprising: 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;

[0006] 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;

[0007] 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;

[0008] 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 the on state when the server is in the off state and the alarm is triggered;

[0009] The baseboard management control unit is connected to the switch unit, the real-time clock unit and the logic control unit respectively, and is used to read the clock time of the real-time clock unit after power-on, and control the logic control unit to power on if the clock time of the real-time clock unit is the preset power-on time, and control the switch unit to be disconnected after the logic control unit is powered on;

[0010] The level setting unit is connected to the energy storage unit, the switch unit and the power supply unit respectively, and is used to enable the power supply unit when the switch unit is in an off state.

[0011] The present application also provides a timing control method for a server, which is applied to a timing control system of the server, wherein the method comprises: when the server is in a shutdown state and the alarm of a real-time clock unit is triggered, the real-time clock unit enables a power supply unit via a switch unit in a conducting state;

[0012] The baseboard management control unit is powered on;

[0013] 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 switch unit is disconnected.

[0014] The level setting unit enables the power supply unit when the switch unit is in an off state.

[0015] 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 the on state when the server is in the 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, and if the clock time of the real-time clock unit is the preset power-on time, the logic control unit is controlled to be powered on, and the switch unit is controlled to be disconnected 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 the disconnected state. As can be seen, with 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, which in turn powers up the power supply unit to supply power to the baseboard management control unit. The baseboard management control unit then controls the logic control unit to power up, thereby powering up the server. The power supply unit is then enabled again by the level setting unit, which in turn keeps the power supply unit supplying power. Therefore, the problem of the server being unable to automatically power on when in a power-off state can be solved. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0017] Figure 1 A schematic diagram of the structure of a software timing system based on a server operating system is provided for related technologies;

[0018] Figure 2 A schematic diagram of the structure of a timing control system of a server provided in an embodiment of the present application;

[0019] Figure 3 A flowchart of a timing control method for a server provided in an embodiment of the present application. DETAILED DESCRIPTION

[0020] The following will be combined with the accompanying drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0021] It should be noted that, in the description of this application, the terms "comprises," "includes," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. The terms "first," "second," etc., in this application are used to distinguish similar objects, and are not used to describe a particular order or sequence.

[0022] In order to enable those skilled in the art to better understand the present application, the present application is further described in detail below with reference to the accompanying drawings and specific implementation methods.

[0023] In server application scenarios, efficient management and energy-saving operation of servers are crucial. Traditional server power on and off operations mostly rely on manual control or software timer tasks based on the server operating system. Manual control is not only labor-intensive, but also difficult to achieve accurate timed power on and off. Especially in large-scale server cluster management scenarios, the operation efficiency is extremely low and prone to errors. Software timer tasks based on the server operating system cannot automatically power on the server after a power outage. For example, Figure 1 The following is a structural diagram of a software timing system based on a server operating system provided in the related art. Figure 1As shown in the figure, in a software timing scenario based on a server operating system, the RTC is relied upon to implement the real-time clock recording function. The RTC usually has two system management buses (SMBUS). 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 for battery power and one for the server system's backup power supply STBY. When the server is in G3 (i.e., power-off), meaning the power supply unit (PSU) has no output, the battery powers the RTC chip, ensuring the RTC clock remains accurate even when the server is powered off. When the server is in S5-S0 (i.e., PSU has output), the backup power supply STBY is powered on, and the RTC chip switches internally to the backup power supply STBY to conserve battery power. Thus, when the server is in S5-S0 (i.e., PSU has output), devices like the BMC are in normal working order, and scheduled power on and off can be performed through the BMC. However, relying on the BMC to implement scheduled power on when the PSU has output means that some devices are still running in the S5-S0 state, resulting in wasted power resources and a security risk of tampering with power on and off operations. When the server is in G3 state, only the RTC chip is powered by the battery and in normal working order. Since the PSU has no output, other devices are in a powerless state and cannot automatically start up. In view of this, the present application provides a server timing control system and method. Below, the server timing control system is first described in detail.

[0024] Figure 2 This is a schematic diagram of the structure of a timing control system of a server provided in an embodiment of the present application. Figure 2As shown, 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 power the server in the shutdown state and the alarm is triggered. , the power supply unit 101 is enabled through the switch unit 102 in the on state; 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, and if the clock time of the real-time clock unit 105 is the preset power-on time, the logic control unit 107 is controlled to be powered on, and after the logic control unit 107 is powered on, the switch unit 102 is controlled to be disconnected; 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 disconnected state.

[0025] Specifically, the specific implementation of the power supply unit 101 may include a PSU, etc., but is not limited thereto.

[0026] Specifically, the energy storage unit 106 may include, but is not limited to, a battery. When the power supply unit 101 is not outputting (i.e., when the power supply unit 101 is disabled), the energy storage unit 106 supplies power to the real-time clock unit 105, ensuring that the clock time recorded by the real-time clock unit 105 remains accurate even when the server is powered off. When the power supply unit 101 is outputting, the backup power supply STBY of the real-time clock unit 105 is powered on, and the real-time clock unit 105 switches internally to the backup power supply STBY, thereby conserving energy from the energy storage unit 106.

[0027] Specifically, the specific implementation of the real-time clock unit 105 may include RTC, etc. but is not limited thereto.

[0028] Specifically, the specific implementation of the baseboard management control unit 104 may include BMC, etc., but is not limited thereto.

[0029] Specifically, the specific implementation of the logic control unit 107 may include a complex programmable logic device (CPLD) and the like, but is not limited thereto.

[0030] Optional, see Figure 2 The timing control system of the server also includes: a first voltage regulating unit 108 and a second voltage regulating unit 109; the first voltage regulating unit 108 is connected to the baseboard management control unit 104 and the power supply unit 101 respectively, and is used to convert the first power voltage PSU_OUT output by the power supply unit 101 into a second power voltage PWR_BMC, and transmit the second power voltage PWR_BMC to the baseboard management control unit 104; the baseboard management control unit 104 is used to enable the second voltage regulating unit 109 if the clock time of the real-time clock unit 105 is the preset power-on time, and the second voltage regulating unit 109 is used to convert the first power voltage PSU_OUT into a third power voltage PWR_PLD after being enabled, and transmit the third power voltage PWR_PLD to the logic control unit 107, so that the logic control unit 107 is powered on.

[0031] For example, see Figure 2 The server's timing control system receives all power from the power supply unit 101. When enabled, the power supply unit 101 outputs a first power voltage PSU_OUT. The second power voltage PWR_BMC required by the baseboard management control unit 104 is converted and output by an independent first voltage regulator unit 108. By default, the first voltage regulator unit 108 is self-enabled. That is, after the power supply unit 101 outputs the first power voltage PSU_OUT, the first voltage regulator unit 108 immediately converts the first power voltage PSU_OUT to a second power voltage PWR_BMC and provides the second power voltage PWR_BMC to the baseboard management control unit 104, completing the power-up 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 by an independent second voltage regulator unit 109. The baseboard management control unit 104 controls the second voltage regulator unit 109 via a third enable signal FM_PLD_EN. When the third enable signal FM_PLD_EN is active, the second voltage regulator unit 109 converts the first power supply voltage PSU_OUT to the third power supply voltage PWR_PLD and provides the third power supply voltage PWR_PLD to the logic control unit 107, thereby powering up the logic control unit 107. Furthermore, the baseboard management control unit 104 can also control the power on and off of the logic control unit 107 via a fourth enable signal FM_PWRON_N. Furthermore, the remaining power supply voltages PWR_SYSx required by other units in the server are converted and output by a voltage regulator unit SYS_VRx. The logic control unit 107 controls the output of the remaining power supply voltages PWR_SYSx via a fifth enable signal FM_VRx_EN. SYS_VRx can be multiple voltage regulator units, such as SYS_VR1, SYS_VR2, etc., all of which are collectively represented by SYS_VRx.

[0032] Specifically, the specific implementation of the switch unit 102 may include a transistor, a relay, etc. but is not limited thereto.

[0033] 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 terminal of the switch unit 102, the first enable terminal is connected to the second terminal of the switch unit 102, and the baseboard management control unit 104 is connected to the control terminal of the switch unit 102 to output the second enable signal FM_RTC_CTRL_N to the switch unit 102.

[0034] For details, see Figure 2 The specific implementation of the level setting unit 103 can be as follows: it includes 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 connected to the second end of the switch unit 102 and the power supply unit 101, respectively, and the second end of the pull-down resistor R1 is grounded GND. This simplifies the circuit structure of the level setting unit 103 and reduces costs. However, this is not limited to this.

[0035] 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 clock end; 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 end of the power supply unit 101, and the second end of the pull-down resistor R1 is grounded 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 of the pull-down resistor R1 is greater than 10 times the resistance of the pull-up resistor R2. After the AC power supply of the power supply unit 101 is connected (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, a first level signal) to the first enable terminal of the power supply unit 101, enabling the power supply unit 101 to output the 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, a second level signal) to the first enable terminal of the power supply unit 101, disabling the power supply unit 101, and the power supply unit 101 has no output.

[0036] 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, and 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, and the first communication interface is connected to the third end of the switching unit 111, and the switching unit 111 is used to switch the first connection state and the second connection state in response to the switching signal output by the baseboard management control unit 104, and the first connection state The 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 used 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 the preset shutdown time and the preset startup time into the storage space of the real-time clock unit 105. The central processing unit 110 is used 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.

[0037] Specifically, the central processing unit 110 may include, but is not limited to, a CPU. 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 calculations and data processing tasks, and determining the types of tasks that the server can run and the efficiency of executing these tasks.

[0038] Specifically, the switching unit 111 may include an analog switch, etc., but is not limited thereto.

[0039] Specifically, the first communication interface and the second communication interface can be a first SMBUS interface and a second SMBUS interface, respectively, but are not limited thereto. The first SMBUS interface is used to read and modify the clock time and operation registers of the real-time clock unit 105. 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.

[0040] 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 with the first and second SMBUS interfaces 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 via a switching signal FW_SW_SEL. Of course, the baseboard management control unit 104 and the central processing unit 110 can also be connected via an eSPI signal line for data transmission.

[0041] Accordingly, Figure 3 This is a flow chart of a timing control method for a server provided in an embodiment of the present application. Figure 3 As shown, the timing control method of the server includes: S110, when the server is in the shutdown state and the real-time clock unit alarm is triggered, the real-time clock unit enables the power supply unit through the switch unit in the conductive state.

[0042] S120 , the baseboard management control unit is powered on.

[0043] 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 switch unit is disconnected.

[0044] S140 : The level setting unit enables the power supply unit when the switch unit is in the off state.

[0045] Specifically, when the server is in the shutdown state and the alarm of the real-time clock unit 105 is triggered, the real-time clock unit 105 outputs the alarm signal FM_RTC_ALT_N with a level value of the first level, and the alarm signal FM_RTC_ALT_N with a level value of the first level is transmitted to the power supply unit 101 through the switch unit 102 in the on 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, the power supply unit 101 is powered on, and then the baseboard management control unit 104 is powered 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, and the logic control unit 107 performs the power-on operation after powering on; the baseboard management control unit 104 controls the switch unit 102 to be disconnected, and the level setting unit 103 outputs a first level signal to make the level value of the first enable signal FM_PS_ON_N the first level, and continue to enable the power supply unit 101.

[0046] Optionally, the baseboard management control unit 104 is also used to read and clear the alarm status of the real-time clock unit 105 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, and enable the power supply unit 101 through the switch unit 102 in the on state.

[0047] Accordingly, the server timing control method, after the baseboard management control unit 104 reads the clock time of the real-time clock unit 105, further includes: if the clock time of the real-time clock unit 105 is not the preset power-on time, reading and clearing the alarm status of the real-time clock unit 105, and disabling the power supply unit 101 via the switch unit 102 in the on state. This can prevent accidental power-on and improve the accuracy of automatic power-on control.

[0048] Specifically, when the clock time of the real-time clock unit 105 reaches the preset alarm time, the real-time clock unit 105 will set a specific flag to indicate that the alarm has been triggered. By reading the status of the flag, it can be determined whether an alarm event has occurred. Clearing the alarm state is usually accomplished 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.

[0049] 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, and the real-time clock unit 105 outputs an alarm signal FM_RTC_ALT_N with a level value of the second level. The alarm signal FM_RTC_ALT_N with a level value of the second level is transmitted to the power supply unit 101 through the switch unit 102 in the on state, so that the level value of the first enable signal FM_PS_ON_N input to the power supply unit 101 is the second level, thereby disabling the power supply unit 101.

[0050] Exemplarily, when the server is in a shutdown state and an alarm is triggered, the level of the alarm signal FM_RTC_ALT_N at the alarm terminal of the real-time clock unit 105 is a first level (e.g., a low level, but not limited thereto). The alarm signal FM_RTC_ALT_N at the first level is transmitted via the on-state switch unit 102 to the first enable terminal of the power supply unit 101, causing the level of the first enable signal FM_PS_ON_N to be the first level, thereby enabling the power supply unit 101 and powering on the power supply unit 101. Since the first voltage regulator unit 108 is automatically enabled by default, after the power supply unit 101 is powered on, the first voltage regulator unit 108 automatically converts the first power voltage PSU_OUT output by the power supply unit 101 into a second power voltage PWR_BMC and provides the second power voltage PWR_BMC to the baseboard management control unit 104, thereby powering on the baseboard management control unit 104. After the baseboard management control unit 104 is powered 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, and if the clock time is the preset power-on time, controls the second voltage regulation unit 109 to be powered on through the third enable signal FM_PLD_EN, and controls the logic control unit 107 to be powered on through the fourth enable signal FM_PWRON_N signal with a level value of the third level. If the clock time is between the preset shutdown time and the preset startup time (i.e., the alarm is triggered due to other abnormal conditions before the preset startup time), the baseboard management control unit 104 switches to its third communication interface through the switching signal FM_SW_SEL to connect to the first SMBUS interface of the real-time clock unit 105, reads and clears the alarm status, so that the level value of the alarm signal FM_RTC_ALT_N at the alarm end of the real-time clock unit 105 is the second level (e.g., a high level), and the alarm signal FM_RTC_ALT_N with the second level is transmitted to the first enable end of the power supply unit 101 through the switch unit 102 in the on state, so that the level value of the first enable signal FM_PS_ON_N is the second level, and the power supply unit 101 is disabled, the power supply unit 101 is powered off, and the waiting time reaches the preset startup time. After the logic control unit 107 is turned on, the baseboard management control unit 104 controls the switch unit 102 to be disconnected through the second enable signal FM_RTC_CTRL_N signal. 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, thereby continuing to enable the power supply unit 101. The power supply unit 101 normally outputs the first power supply voltage PSU_OUT, and the server remains in the power-on state.The baseboard management control unit 104 switches to its third communication interface via the switching signal FM_SW_SEL, connecting to the first SMBUS interface of the real-time clock unit 105. It then accesses the real-time clock unit 105 via the first SMBUS interface, clearing 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. The BMC then switches to the fourth communication interface of the central processing unit 110 via the switching signal FM_SW_SEL, connecting 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.

[0051] It is understood that in this application, when the server is in the shutdown state, the power supply unit 101 outputs power, and only the real-time clock unit 105 is in the running state. This saves power consumption and reduces the security risk of tampering with the power on / off operation. Furthermore, the alarm signal FM_RTC_ALT_N of the real-time clock unit 105 is used to control the first enable signal FM_PS_ON_N. 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 achieve power-on control. When the alarm of the real-time clock unit 105 is not triggered, the alarm signal FM_RTC_ALT_N disables the first enable signal FM_PS_ON_N to save power. In this way, both power consumption and automatic power-on control can be achieved.

[0052] In this embodiment of the present application, when the server is in a power-off state, the alarm triggering of the real-time clock unit 105 can cause the level of the first enable signal FM_PS_ON_N to be at a first level, thereby causing the power supply unit 101 to power on and supply power to the baseboard management control unit 104. The baseboard management control unit 104 then controls the logic control unit 107 to power on, thereby powering on the server. Furthermore, the level setting unit 103 outputs a first level signal, which can maintain the level of the first enable signal FM_PS_ON_N at the first level, thereby causing the power supply unit 101 to continue supplying power. Therefore, the problem of a server being unable to automatically power on when in a power-off state can be solved.

[0053] In another embodiment of the present disclosure, the baseboard management control unit 104 is also used to disable the logic control unit 107 when the server is in the power-on state and the preset shutdown time is expired, and the logic control unit 107 is used to perform a shutdown operation after being disabled; the baseboard management control unit 104 is also used to control the switch unit 102 to be turned on after the logic control unit 107 performs the shutdown operation; the level setting unit 103 is used to disable the power supply unit 101 through the switch unit 102 that is in the on state.

[0054] 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 state of the real-time clock unit 105 when the alarm of the real-time clock unit 105 is triggered.

[0055] Accordingly, the timing control method of the server further includes: when the server is in the power-on state and the timing of the preset power-off time ends, the baseboard management control unit 104 performs clock calibration on the real-time clock unit 105;

[0056] When the alarm of the real-time clock unit 105 is triggered, the baseboard management control unit 104 clears the alarm state of the real-time clock unit 105 and disables the logic control unit 107;

[0057] The logic control unit 107 performs a shutdown operation after being disabled;

[0058] The baseboard management control unit 104 controls the switch unit 102 to be turned on;

[0059] The level setting unit 103 disables the power supply unit 101 through the switch unit 102 which is in the on state.

[0060] Specifically, when the server is in the power-on state and the baseboard management control unit 104 has finished timing the preset shutdown time, the baseboard management control unit 104 calibrates the clock of 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 state of the real-time clock unit 105; the baseboard management control unit 104 sends a fourth enable signal FM_PWRON_N with a level value of the fourth level to the logic control unit 107; in response to the fourth enable signal FM_PWRON_N with a level value of the fourth level, the logic control unit 107 performs a shutdown operation; the baseboard management control unit 104 controls the switch unit 102 to be turned on, 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 the second level, thereby disabling the power supply unit 101, and the power supply unit 101 is powered off.

[0061] Exemplarily, the baseboard management control unit 104 can start a software timer based on a preset shutdown time; when the timer finishes timing the preset shutdown time, the baseboard management control unit 104 obtains the current network time from the Network Time Protocol Server (NTP) to calibrate the clock of the implementation clock unit, and confirms whether the real-time clock unit 105 triggers the alarm. If the real-time clock unit 105 triggers the alarm, relevant processing is performed, and the alarm status is cleared to ensure that the alarm signal FM_RTC_ALT_N signal is at the second level. This is because many operations (such as failures, etc.) can trigger the alarm, thereby making the alarm signal FM_RTC_ALT_N signal at the first level. In order to avoid these operations affecting automatic shutdown, it is necessary to clear the alarm status first to ensure that the alarm signal FM_RTC_ALT_N signal is at the second level before performing subsequent operations. Then, the fourth enable signal FM_PWRON_N with a level value of the fourth level is used to control the logic control unit 107 to perform a shutdown operation, triggering the server system to shut down. Then, the baseboard management control unit 104 controls the switch unit 102 to be turned on 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 the second level, and the power supply unit 101 is disabled. The power supply unit 101 is powered off. At this time, the AC power supply of the server is in place, but only the real-time clock unit 105 of the server is powered by the energy storage unit 106 and is in normal working condition.

[0062] In another embodiment of the present application, the baseboard management control unit 104 is also used to obtain the current network time, and start timing based on the current network time and the preset shutdown time, perform clock calibration on 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.

[0063] Accordingly, 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;

[0064] 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 power-on time;

[0065] 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 .

[0066] Exemplarily, the baseboard management control unit 104 reads the accurate current network time from NTP and sets a software timer based on the preset shutdown time and the current network time, thereby completing the automatic shutdown setting. The baseboard management control unit 104 switches the first SMBUS interface to connect to its third communication interface via the switching signal FM_SW_SEL. The baseboard management control unit 104 reads the clock time from the real-time clock unit 105 via 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 (e.g., 2 seconds), the current network time is written to the real-time clock unit 105, completing the time calibration of the real-time clock unit 105. The baseboard management control unit 104 then enables the alarm function of the real-time clock unit 105 via the first SMBUS interface and sets the preset power-on time as the alarm time. The baseboard management control unit 104 then writes the preset power-on time and preset power-off time to the storage space (e.g., SRAM) of the real-time clock unit 105 via 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, ensuring that the central processing unit 110 can normally obtain the clock time of the real-time clock.

[0067] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus the necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method.

[0068] An embodiment of the present application further provides an electronic device, comprising the timing control system of the server described in any of the above embodiments.

[0069] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the above description has generally described the components and steps of each example according to their functions. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0070] The above is a detailed introduction to a server timing control system and a server timing control method provided by the present application. This article uses specific examples to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core ideas of the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application.

Claims

1. A timing control system for a server, characterized in that: include: Power supply unit, switch unit, level setting unit, baseboard management control unit, real-time clock unit, energy storage unit and 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 the on state when the server is in the off state and the alarm is triggered; The baseboard management control unit is connected to the switch unit, the real-time clock unit, and the logic control unit, respectively, and is used to read the clock time of the real-time clock unit after power-on, control the logic control unit to power on if the clock time of the real-time clock unit is the preset power-on time, and control the switch unit to be disconnected after the logic control unit is powered on; The level setting unit is connected to the energy storage unit, the switch unit and the power supply unit respectively, and is used to enable the power supply unit when the switch unit is in an off state.

2. The server timing control system according to claim 1, characterized in that: The baseboard management control unit is also used to, after reading the clock time of the real-time clock unit, read and clear the alarm status of the real-time clock unit if the clock time of the real-time clock unit is not the preset power-on time, and disable the power supply unit through the switch unit in the on state.

3. The server timing control system according to claim 1, characterized in that: It also includes: a first voltage regulating unit and a second voltage regulating unit; The first voltage regulating unit is connected to the baseboard management control unit and the power supply unit respectively, 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 power on the logic control unit.

4. The server timing control system according to claim 1, characterized in that: The switching unit includes a transistor.

5. The server timing control system according to claim 1, characterized in that: The baseboard management control unit is further configured to disable the logic control unit when the server is in the power-on state and the preset shutdown time has expired, and the logic control unit is configured to perform a shutdown operation after being disabled; The baseboard management control unit is further configured to control the switch unit to be turned on after the logic control unit performs a shutdown operation; The level setting unit is configured to disable the power supply unit by using the switch unit in the on state.

6. The server timing control system according to claim 5, characterized in that: The baseboard management control unit is further configured 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 server timing control system according to claim 5, characterized in that: 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 connected to the second end of the switch unit and the power supply unit respectively, and the second end of the pull-down resistor is grounded.

8. The server timing control system according to claim 5, characterized in that: The baseboard management control unit is also used 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, set the alarm time of 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 server timing control system according to claim 5, characterized in that: Also includes: The switching unit and the 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, and 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, and 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, wherein the first connection state is when the first communication interface is connected to the third communication interface, and the second connection state is when 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: A timing control system for a server according to any one of claims 1 to 9, wherein the method comprises: 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 the on state; The baseboard management control unit is powered on; The baseboard management control unit reads the clock time of the real-time clock unit, and 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 controls the switch unit to be disconnected; The level setting unit enables the power supply unit when the switch unit is in an off state.

11. The timing control method of a server according to claim 10, characterized in that: After the baseboard management control unit reads the clock time of the real-time clock unit, the method further includes: If the clock time of the real-time clock unit is not the preset power-on time, the alarm state of the real-time clock unit is read and cleared, and the power supply unit is disabled by the switch unit in the on state.

12. The server timing control method according to claim 10, characterized in that: Also includes: When the server is in the power-on state and the preset power-off time is expired, the baseboard management control unit calibrates the clock of 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; The logic control unit performs a shutdown operation after being disabled; The baseboard management control unit controls the switch unit to be turned on; The level setting unit disables the power supply unit through the switch unit in the on state.

13. The timing control method of a server according to claim 10, characterized in that: Also includes: 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 calibrates the clock of the real-time clock unit and sets the alarm time of 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 startup 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