Time management method, device, electronic device and storage medium
By real-time calibration of the time of the switch system and switching power supply under abnormal system conditions, the problem of inaccurate fault logs in switch time management is solved, and the reliability of the equipment and the stability of the system are improved.
Patent Information
- Application Number
- CN202211111111.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-13
- Publication Date
- 2025-06-06
- Estimated Expiration
- 2042-09-13
AI Technical Summary
In the process of switching time management, the prior art is susceptible to abnormal situations such as external environmental factors and system power outage, resulting in inaccurate system time, which in turn affects the accuracy of the fault log and the reliability of the equipment.
The time information generated by the real-time clock generation unit is obtained in real time through the substrate management controller, and the system time is calibrated in real time. At the same time, when the system is detected to have an abnormal working state, switch to the backup circuit to supply power to the real-time clock generation unit to ensure its normal operation.
Strictly ensure the accuracy of system time and ensure the time accuracy of fault logs, so that faults can be handled in a timely and effective manner, and improve the reliability of equipment and the stability of the system.
Smart Images

Figure CN115454204B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of switch time management, and in particular to a time management method, device, electronic device and storage medium. Background Art
[0002] With the development of computer technology, the application of centralized monitoring and management technology of switches is becoming more and more widespread in practice. One of the important functions of BMC (Baseboard Management Controller) is to monitor the health status of switch hardware devices and various events that occur in real time (such as operation events of maintenance personnel, such as plugging and unplugging nodes, plugging and unplugging fans, and turning off power, etc.). Once a hardware device fails or the operator performs certain operations, the switch will record it in real time through logs.
[0003] At present, logging is a function that most intelligent products need to have, and system time management is a must for this function. The time management system can provide stable time for the switch system. Development and maintenance personnel need to know the status of the system at any time, so as to analyze the system status later, which is conducive to the analysis and location of system problems and their resolution. The log records contain the events that occurred and the time when the events occurred. The equipment room operation and maintenance managers can use the logs to quickly determine the damaged hardware equipment and time, so as to carry out necessary processing and ensure the safe and stable operation of the entire system. When the switch system is in normal operation or failure state, the system has the function of monitoring and recording various operating parameters of the entire switch, and the timestamp needs to be bound to the system status, which helps the development and maintenance personnel to better analyze.
[0004] If the system time is inaccurate, the recorded fault time and event occurrence time will also be incorrect, and it will be difficult for the operation and maintenance personnel to accurately determine the exact time when the fault occurred and to carry out necessary processing in a targeted manner. In the process of switch time management in the prior art, the accuracy of the system time is often affected by abnormal conditions such as external environmental factors and system power outages. If the BMC time is incorrect, the fault time and event occurrence time recorded in the log will also be incorrect, and it will be difficult for the operation and maintenance personnel to accurately determine the exact time when the fault occurred and to carry out necessary processing in a targeted manner, thereby affecting the reliability of the equipment. Therefore, how to ensure the correctness of the BMC time and ensure that the fault log time is accurate so that the fault can be handled promptly and effectively is an urgent problem to be solved. Summary of the invention
[0005] In order to solve at least one of the problems mentioned in the above background technology, the present application provides a time management method, device, electronic device and storage medium, which can ensure the correctness of BMC time and ensure the accuracy of fault log time so that faults can be handled promptly and effectively.
[0006] The specific technical solutions provided by the embodiments of this application are as follows:
[0007] In a first aspect, a time management method is provided, comprising:
[0008] In response to the system being powered on, the baseboard management controller acquires time information generated by the real-time clock generation unit in real time;
[0009] The baseboard management controller calibrates the time of the system in real time according to the time information;
[0010] In response to detecting that the system working state is abnormal, switching to a backup power circuit to supply power to the real-time clock generation unit to maintain normal operation of the real-time clock generation unit;
[0011] The system comprises a main power supply unit, a backup power supply unit, a field effect transistor switch unit and a complex programmable logic device control unit, wherein the output end of the main power supply unit is connected to the first power supply end of the real-time clock generation unit, the output end of the backup power supply unit is connected to the second power supply end of the real-time clock generation unit, the field effect transistor switch unit further comprises a first field effect transistor switch unit and a second field effect transistor switch unit, the output end of the main power supply unit is connected to the input end of the first field effect transistor switch unit, the output end of the backup power supply unit is connected to the input end of the second field effect transistor switch unit, the output end of the first field effect transistor switch unit, the output end of the second field effect transistor switch unit and the output end of the real-time clock generation unit are connected to the baseboard management controller;
[0012] Among them, the first field effect transistor switch unit is used for switching control of the main power supply unit, the second field effect transistor switch unit is used for switching control of the backup power supply unit, and the field effect transistor switch unit is used to receive instructions from the complex programmable logic device control unit so that the baseboard management controller can read the main power supply voltage of the main power supply unit and the backup power supply voltage of the backup power supply unit.
[0013] Further, the system further comprises a diode dual-path gating unit, the output end of the main power supply unit is connected to the first input end of the diode dual-path gating unit, the output end of the backup power supply unit is connected to the second input end of the diode dual-path gating unit, and the output end of the diode dual-path gating unit is connected to the baseboard management controller;
[0014] The diode dual-path gating unit is used to perform diode gating according to the main power supply voltage and the backup power supply voltage, so that the baseboard management controller obtains the working information of the main power supply unit and the backup power supply unit in real time.
[0015] Further, in response to detecting that the system working state is abnormal, switching to a backup power circuit to power the real-time clock generation unit to maintain normal operation of the real-time clock generation unit includes:
[0016] In response to the baseboard management controller detecting that the main power supply voltage of the main power supply unit is less than a first voltage threshold, the baseboard management controller switches to a backup power circuit to supply power to the real-time clock generation unit through the backup power supply unit to maintain normal operation of the real-time clock generation unit.
[0017] Furthermore, after the baseboard management controller switches to the backup power circuit to supply power to the real-time clock generation unit through the backup power supply unit, the method further includes:
[0018] In response to the baseboard management controller detecting that the main power supply voltage of the main power supply unit remains within the main voltage operating range within a first preset time, the baseboard management controller cuts off the backup power circuit and supplies power to the real-time clock generation unit through the main power supply unit.
[0019] Further, in response to detecting that the system working state is abnormal, switching to a backup power circuit to power the real-time clock generation unit to maintain normal operation of the real-time clock generation unit also includes:
[0020] In response to the baseboard management controller detecting that the main power supply voltage of the main power supply unit is greater than the first voltage threshold and less than the second voltage threshold within a second preset time, the baseboard management controller pre-opens the backup power circuit and supplies power to the real-time clock generation unit through the main power supply unit and the backup power supply unit.
[0021] Furthermore, after the baseboard management controller opens the backup power circuit in advance and supplies power to the real-time clock generation unit through the main power supply unit and the backup power supply unit, the method further includes:
[0022] In response to the baseboard management controller detecting that the main power supply voltage of the main power supply unit is greater than the second voltage threshold within a third preset time, the baseboard management controller turns off the backup power circuit and supplies power to the real-time clock generation unit through the main power supply unit.
[0023] Furthermore, the method further comprises:
[0024] The baseboard management controller obtains the working information of the main power supply unit and the backup power supply unit in real time;
[0025] The baseboard management controller generates a log record according to the working information, and the log record includes at least one of the record information of the main power supply voltage, the record information of the backup power supply voltage, the fault information of the main power supply unit, and the operation information of the backup power supply unit.
[0026] In a second aspect, a time management device is provided, the device comprising:
[0027] A clock generation module, used for, in response to the system being powered on, the baseboard management controller to obtain in real time the time information generated by the real-time clock generation unit;
[0028] A time calibration module, used for the baseboard management controller to calibrate the time of the system in real time according to the time information;
[0029] The power supply management module is used to switch to the backup power circuit to supply power to the real-time clock generation unit in response to detecting that the system working state is abnormal, so as to maintain the normal operation of the real-time clock generation unit.
[0030] According to a third aspect, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the time management method is implemented when the processor executes the computer program.
[0031] According to a fourth aspect, a computer-readable storage medium is provided, storing computer-executable instructions, wherein the computer-executable instructions are used to execute the time management method.
[0032] The embodiments of the present application have the following beneficial effects:
[0033] The embodiment of the present application provides a time management method, device, electronic device and storage medium, which can read the time information generated by the real-time clock generation unit in real time through the baseboard management controller and calibrate the system time in real time, and cooperate with the main power supply circuit and the backup power circuit to provide uninterrupted power supply to maintain the normal operation of the real-time clock generation unit, strictly guarantee the accuracy of the system time, ensure the correctness of the hardware equipment failure and operation log recording time of the entire clock management system, so that the development or operation and maintenance operators can effectively handle the failure in time. It is also possible to monitor the main power supply voltage of the main power supply unit in real time through the baseboard management controller, and execute different power supply strategies according to whether the main power supply voltage is maintained within the normal voltage range, so as to meet the requirements that the time information of the switch equipment can be normal and stable in both normal and abnormal system states, making the system more reliable and having strong scalability. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. 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 creative work.
[0035] Figure 1 The overall flow chart of the time management method provided by the embodiment of the present application is shown;
[0036] Figure 2 A system architecture diagram showing a time management method according to an embodiment of the present application;
[0037] Figure 3 A schematic diagram showing the structure of a time management device provided in an embodiment of the present application is shown;
[0038] Figure 4 An exemplary system is shown that can be used to implement the various embodiments described in this application. DETAILED DESCRIPTION
[0039] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments 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 creative work are within the scope of protection of this application.
[0040] It should be understood that in the description of the present application, unless the context clearly requires otherwise, words such as "include", "comprises", and the like in the entire specification and claims should be interpreted as inclusive rather than exclusive or exhaustive; that is, the meaning of "including but not limited to".
[0041] It should also be understood that the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In addition, in the description of this application, unless otherwise specified, "plurality" means two or more.
[0042] Embodiment 1
[0043] This application provides a time management method, referring to Figure 1 ,include:
[0044] S1, in response to the system being powered on, the baseboard management controller acquires time information generated by the real-time clock generation unit in real time;
[0045] S2, the baseboard management controller calibrates the system time in real time according to the time information;
[0046] S3. In response to detecting that the system operating state is abnormal, switching to the backup power circuit to supply power to the real-time clock generation unit to maintain normal operation of the real-time clock generation unit.
[0047] Specifically, refer to Figure 2 The system includes a main power supply unit, a backup power supply unit, a field effect transistor switch unit and a complex programmable logic device control unit. Among them, the field effect transistor (Metal-Oxide-Semiconductor Field-EffectTransistor, MOSFET) switch unit is used for switch control of the main power supply unit and the backup power supply unit. The field effect transistor switch unit is also used to receive instructions from the complex programmable logic device control unit so that the baseboard management controller can read the main power supply voltage of the main power supply unit and the backup power supply voltage of the backup power supply unit. The output end of the main power supply unit is connected to the first power supply end of the real-time clock generation unit, and the output end of the backup power supply unit is connected to the second power supply end of the real-time clock generation unit. The field effect transistor switch unit also includes a first field effect transistor switch unit and a second field effect transistor switch unit. The first field effect transistor switch unit is used for switch control of the main power supply unit, and the second field effect transistor switch unit is used for switch control of the backup power supply unit. The output end of the main power supply unit is connected to the input end of the first field effect transistor switch unit, the output end of the backup power supply unit is connected to the input end of the second field effect transistor switch unit, and the output end of the first field effect transistor switch unit, the output end of the second field effect transistor switch unit and the output end of the real-time clock generation unit are connected to the baseboard management controller.
[0048] In some embodiments, the system further includes a diode dual-path gating unit, the output end of the main power supply unit is connected to the first input end of the diode dual-path gating unit, the output end of the standby power supply unit is connected to the second input end of the diode dual-path gating unit, and the output end of the diode dual-path gating unit is connected to the baseboard management controller. The diode dual-path gating unit is used to perform diode gating according to the main power supply voltage and the standby power supply voltage, so that the baseboard management controller obtains the working information of the main power supply unit and the standby power supply unit in real time.
[0049] Specifically, the main power supply unit includes an AC-DC conversion module and a DC-DC conversion module, which provide stable and reliable power for modules such as a complex programmable logic device control unit, a field effect transistor MOS switch unit, a baseboard management controller, and a diode dual-path gating unit. The built-in AD module measurement function of the baseboard management controller can realize real-time monitoring of the main power supply voltage of the main power supply unit and the backup power supply voltage of the backup power supply unit. The complex programmable logic device control unit (Complex Programmable Logic Device, CPLD) is used by the user to operate the serial port tool to input instructions. The CPLD control unit communicates with the baseboard management controller through UART (Universal Asynchronous Receiver / Transmitter, Universal Asynchronous Receiver / Transmitter), and the baseboard management controller controls the stable operation of the entire clock management system. CPLD is widely used in control circuits to achieve the purpose of controlling multiple CPLD online upgrades. CPLD has the advantages of high speed, flexible debugging, and short development cycle. Using CPLD to control devices such as MOS can reduce the operating burden of the BMC unit. Each CPLD device has sufficient input and output pins, which can generally meet the design requirements of the switch system. The system has strong scalability, and the CPLD program development is convenient. It can effectively reduce the hardware development cycle and development cost, and has strong universality. The field effect tube MOS switch unit mainly plays the role of switch control and voltage isolation. It receives the instructions of the CPLD control unit and executes the switch action of the corresponding instructions. At the same time, it enables the baseboard management controller to read the main power supply voltage and the backup power supply voltage. The backup power supply unit is used to provide a stable backup power supply to the RTC generation unit to ensure that after the system main power supply unit is powered off, it can also provide uninterrupted power supply to the system to ensure the stability of the system time. The diode dual-path gating unit is used to perform diode gating according to the size of the input 3.3VDC main and backup voltages. This enables the BMC to obtain the current working power supply information of the system and generate log records of the main power supply voltage and the backup power supply voltage inside the BMC, including the corresponding voltage information and time information. This is different from the AD module built into the BMC. The AD module reads the average main power supply voltage and the backup power supply voltage over a period of time through the field effect transistor MOS switch unit; the specific information of the main power supply voltage and the backup power supply voltage at each time point is transmitted to the BAT log module inside the BMC through the diode dual-path selection unit, which can reflect the real-time working power supply status of the main power supply unit and the backup power supply unit for subsequent tracing of information.
[0050] Specifically, the system includes a clock management system for a server or a switch, which controls a real-time clock (RTC) generation unit through a baseboard management controller of the system to generate continuous and accurate time to ensure the correctness of the internal time of the server or the switch, and ensures that the time is accurate and effective for a long time through an uninterrupted power supply mode of a main power supply circuit of a 3.3VDC (Direct Current) main power supply unit or a backup power supply circuit of a backup power supply unit.
[0051] Specifically, when the above-mentioned clock management system is powered on, that is, the clock management system is in normal operation, the baseboard management controller can obtain the time information generated by the RTC generation unit in real time through the I2C bus (Inter-Integrated Circuit, two-wire serial bus), and the time information can be used as the standard time of the system, which can be used for system logging, accurate time display, etc. In addition, the baseboard management controller can read and write the RTC generation unit (RTC clock chip) through the I2C bus to achieve time calibration between systems. In particular, when the system of the server or switch is in a fault or abnormal working state, the real-time clock generation unit can be powered by switching the main power supply circuit and the backup power circuit to maintain the normal operation of the real-time clock generation unit and provide accurate time for the system.
[0052] In some embodiments, S3 includes:
[0053] S31. In response to the baseboard management controller detecting that the main power supply voltage of the main power supply unit is less than a first voltage threshold, the baseboard management controller switches to the backup power circuit to supply power to the real-time clock generation unit through the backup power supply unit to maintain normal operation of the real-time clock generation unit.
[0054] In some embodiments, after S31, the method further comprises:
[0055] S32: In response to the baseboard management controller detecting that the main power supply voltage of the main power supply unit is maintained within the main voltage operating range within the first preset time, the baseboard management controller cuts off the backup power circuit and supplies power to the real-time clock generation unit through the main power supply unit.
[0056] Exemplarily, when the BMC detects that the main power supply voltage is less than the first voltage threshold, for example, the main power supply voltage that should be maintained at 3.3V is less than 3.0V, it can be determined that the main power supply is abnormal. At this time, the baseboard management controller opens the backup power circuit through the field effect transistor MOS switch unit and supplies power to the real-time clock generation unit through the backup power supply unit. In particular, in order to reduce the battery loss of the backup power supply unit, the main power supply voltage can also be monitored within a certain time range. If the main power supply voltage is less than 3.0V for more than a certain frequency, it is determined that the main power supply is abnormal, and the backup power circuit is switched. If the main voltage is subsequently maintained within the operating range within the first preset time (for example, 30 seconds, one minute, etc.), for example, it exceeds 3.0V, the baseboard management controller can cut off the backup power circuit and supply power to the real-time clock generation unit through the main power supply unit.
[0057] In some embodiments, S3 further includes:
[0058] S33. In response to the baseboard management controller detecting that the main power supply voltage of the main power supply unit is greater than the first voltage threshold and less than the second voltage threshold within the second preset time, the baseboard management controller opens the backup power circuit in advance and supplies power to the real-time clock generation unit through the main power supply unit and the backup power supply unit.
[0059] In some embodiments, after S33, the method further includes:
[0060] S34. In response to the baseboard management controller detecting that the main power supply voltage of the main power supply unit is greater than the second voltage threshold within a third preset time, the baseboard management controller turns off the backup power circuit and supplies power to the real-time clock generation unit through the main power supply unit.
[0061] Exemplarily, the clock management system can also perform backup power to reduce clock errors and maintain stable operation of the RTC generation unit. If the baseboard management controller detects that the main power supply voltage of the main power supply unit is greater than the first voltage threshold and less than the second voltage threshold within the second preset time, for example, the main power supply voltage is greater than 3.0V but less than 3.1V within the second preset time, the baseboard management controller can open the backup power circuit in advance to prevent the main power supply unit from suddenly failing and stopping working, and unable to smoothly transition to the backup power circuit for power supply, thereby causing errors. If the main power supply voltage exceeds 3.1V again within the third preset time, the backup power circuit can be turned off through the BMC to reduce battery loss. The above-mentioned first preset time, second preset time and third preset time can be preset with an empirical value, or can be set by the user according to actual business needs or business conditions.
[0062] In some embodiments, the method further comprises:
[0063] 101. The baseboard management controller obtains working information of the main power supply unit and the backup power supply unit in real time;
[0064] 102. The baseboard management controller generates a log record according to the working information, where the log record includes at least one of the record information of the main power supply voltage, the record information of the backup power supply voltage, the fault information of the main power supply unit, and the operation information of the backup power supply unit.
[0065] Specifically, referring to the above description, the diode dual-path gating unit is used to perform diode gating according to the magnitude of the input 3.3VDC main and backup voltages. Thus, the BMC can obtain the working information of the main power supply unit and the backup power supply unit; generate log records of the main power supply voltage and the backup power supply voltage inside the BMC, including the corresponding voltage information and time information, which is different from the AD module built into the BMC. The AD module reads the average main power supply voltage and the backup power supply voltage over a period of time through the field effect tube MOS switch unit; and the specific information of the main power supply voltage and the backup power supply voltage at each time point is transmitted to the BAT log module inside the BMC through the diode dual-path gating unit, which can reflect the real-time working power supply status of the main power supply unit and the backup power supply unit for subsequent tracing of information. The log record includes the recording information of the main power supply voltage, the recording information of the backup power supply voltage, the fault information of the main power supply unit, and the operation information of the backup power supply unit, including the voltage information corresponding to each time point of the main power supply voltage and the backup power supply voltage, the time point information of the backup power circuit opening and closing, etc., which can be used for operation and maintenance operators to trace back later or deal with the fault in time.
[0066] In this embodiment, the baseboard management controller can read the time information generated by the real-time clock generation unit in real time and calibrate the system time in real time. At the same time, the main power supply circuit and the backup power circuit can provide uninterrupted power supply to maintain the normal operation of the real-time clock generation unit, strictly guarantee the accuracy of the system time, ensure the correctness of the hardware equipment failure and operation log recording time of the entire clock management system, so that the development or operation and maintenance operators can effectively handle the failure in time. The baseboard management controller can also monitor the main power supply voltage of the main power supply unit in real time, and execute different power supply strategies according to whether the main power supply voltage is maintained within the normal voltage range, so as to meet the requirements that the time information of the switch equipment can be normal and stable in both normal and abnormal system states, making the system more reliable and highly scalable.
[0067] It should be noted that the terms "S1", "S2", etc. are only used for the purpose of describing the steps, and do not specifically refer to the order or sequence, nor are they used to limit the present application. They are only for the convenience of describing the method of the present application, and cannot be understood as indicating the order of the steps. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in this field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection required by the present application.
[0068] Embodiment 2
[0069] Corresponding to the above embodiment, the present application also provides a time management device, referring to Figure 3 , including a clock generation module, a time calibration module and a power supply management module.
[0070] Among them, the clock generation module is used for the baseboard management controller to obtain the time information generated by the real-time clock generation unit in real time in response to the system power-on; the time calibration module is used for the baseboard management controller to calibrate the time of the system in real time according to the time information; the power supply management module is used for switching to the backup power circuit to power the real-time clock generation unit in response to detecting an abnormal working state of the system, so as to maintain the normal operation of the real-time clock generation unit.
[0071] The system includes a main power supply unit, a backup power supply unit, a field effect transistor switch unit and a complex programmable logic device control unit, wherein the output end of the main power supply unit is connected to the first power supply end of the real-time clock generation unit, the output end of the backup power supply unit is connected to the second power supply end of the real-time clock generation unit, the field effect transistor switch unit also includes a first field effect transistor switch unit and a second field effect transistor switch unit, the output end of the main power supply unit is connected to the input end of the first field effect transistor switch unit, the output end of the backup power supply unit is connected to the input end of the second field effect transistor switch unit, the output end of the first field effect transistor switch unit, the output end of the second field effect transistor switch unit and the output end of the real-time clock generation unit are connected to the baseboard management controller; wherein the first field effect transistor switch unit is used for switch control of the main power supply unit, the second field effect transistor switch unit is used for switch control of the backup power supply unit, and the field effect transistor switch unit is used to receive instructions from the complex programmable logic device control unit so that the baseboard management controller can read the main power supply voltage of the main power supply unit and the backup power supply voltage of the backup power supply unit.
[0072] Furthermore, the system also includes a diode dual-path gating unit, the output end of the main power supply unit is connected to the first input end of the diode dual-path gating unit, the output end of the backup power supply unit is connected to the second input end of the diode dual-path gating unit, and the output end of the diode dual-path gating unit is connected to the baseboard management controller; the diode dual-path gating unit is used to perform diode gating according to the main power supply voltage and the backup power supply voltage, so that the baseboard management controller obtains the working information of the main power supply unit and the backup power supply unit in real time.
[0073] Furthermore, the power supply management module is also used to, in response to the baseboard management controller detecting that the main power supply voltage of the main power supply unit is less than a first voltage threshold, the baseboard management controller switches to the backup power circuit to power the real-time clock generation unit through the backup power supply unit to maintain normal operation of the real-time clock generation unit.
[0074] Furthermore, the power supply management module is also used to respond to the baseboard management controller detecting that the main power supply voltage of the main power supply unit remains within the main voltage operating range within a first preset time, and the baseboard management controller cuts off the backup power circuit and supplies power to the real-time clock generation unit through the main power supply unit.
[0075] Furthermore, the power supply management module is also used to, in response to the baseboard management controller detecting that the main power supply voltage of the main power supply unit is greater than the first voltage threshold and less than the second voltage threshold within a second preset time, the baseboard management controller pre-opens the backup power circuit and supplies power to the real-time clock generation unit through the main power supply unit and the backup power supply unit.
[0076] Furthermore, the power supply management module is also used to respond to the baseboard management controller detecting that the main power supply voltage of the main power supply unit is greater than the second voltage threshold within a third preset time, and the baseboard management controller shuts down the backup power circuit and supplies power to the real-time clock generation unit through the main power supply unit.
[0077] Furthermore, the device also includes a log recording module, which is used by the baseboard management controller to obtain the working information of the main power supply unit and the backup power supply unit in real time; and is used by the baseboard management controller to generate log records based on the working information, and the log records include at least one of the recording information of the main power supply voltage, the recording information of the backup power supply voltage, the fault information of the main power supply unit and the operation information of the backup power supply unit.
[0078] For the specific definition of the time management device, please refer to the relevant definition of the time management method above, so it will not be repeated here. Each module in the above-mentioned time management device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0079] Embodiment 3
[0080] Corresponding to the above embodiment, the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the above time management method can be implemented.
[0081] like Figure 4 As shown, in some embodiments, the system can be used as any of the above-mentioned electronic devices for time management methods in each of the embodiments. In some embodiments, the system may include one or more computer-readable media (e.g., system memory or NVM / storage device) with instructions and one or more processors (e.g., (one or more) processors) coupled to the one or more computer-readable media and configured to execute instructions to implement modules to perform the actions described in this application.
[0082] For one embodiment, the system control module may include any suitable interface controller to provide any suitable interface to at least one of the processor(s) and / or any suitable device or component in communication with the system control module.
[0083] The system control module may include a memory controller module to provide an interface to the system memory. The memory controller module may be a hardware module, a software module, and / or a firmware module.
[0084] The system memory may be used, for example, to load and store data and / or instructions for the system. For one embodiment, the system memory may include any suitable volatile memory, such as a suitable DRAM. In some embodiments, the system memory may include double data rate type four synchronous dynamic random access memory (DDR4 SDRAM).
[0085] For one embodiment, the system control module may include one or more input / output (I / O) controllers to provide interfaces to the NVM / storage devices and communication interface(s).
[0086] For example, the NVM / storage device may be used to store data and / or instructions. The NVM / storage device may include any suitable non-volatile memory (e.g., flash memory) and / or may include any suitable non-volatile storage device(s) (e.g., one or more hard disk drives (HDDs), one or more compact disk (CD) drives, and / or one or more digital versatile disk (DVD) drives).
[0087] The NVM / storage device may include storage resources that are physically part of the device on which the system is installed, or it may be accessible to the device without being part of the device. For example, the NVM / storage device may be accessed over a network via (one or more) communication interfaces.
[0088] The communication interface(s) may provide an interface for the system to communicate over one or more networks and / or with any other suitable device. The system may wirelessly communicate with one or more components of a wireless network in accordance with any of one or more wireless network standards and / or protocols.
[0089] For one embodiment, at least one of the processor(s) may be packaged together with the logic of one or more controllers of a system control module (e.g., a memory controller module). For one embodiment, at least one of the processor(s) may be packaged together with the logic of one or more controllers of a system control module to form a system-in-package (SiP). For one embodiment, at least one of the processor(s) may be integrated on the same die with the logic of one or more controllers of a system control module. For one embodiment, at least one of the processor(s) may be integrated on the same die with the logic of one or more controllers of a system control module to form a system on chip (SoC).
[0090] In various embodiments, the system may be, but is not limited to: a server, a workstation, a desktop computing device, or a mobile computing device (e.g., a laptop computing device, a handheld computing device, a tablet computer, a netbook, etc.). In various embodiments, the system may have more or fewer components and / or a different architecture. For example, in some embodiments, the system includes one or more cameras, a keyboard, a liquid crystal display (LCD) screen (including a touch screen display), a non-volatile memory port, multiple antennas, a graphics chip, an application specific integrated circuit (ASIC), and a speaker.
[0091] It should be noted that the present application can be implemented in software and / or a combination of software and hardware, for example, can be implemented using an application specific integrated circuit (ASIC), a general purpose computer or any other similar hardware device. In one embodiment, the software program of the present application can be executed by a processor to implement the steps or functions described above. Similarly, the software program of the present application (including relevant data structures) can be stored in a computer-readable recording medium, for example, a RAM memory, a magnetic or optical drive or a floppy disk and similar devices. In addition, some steps or functions of the present application can be implemented using hardware, for example, as a circuit that cooperates with a processor to perform each step or function.
[0092] In addition, a part of the present application may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present application through the operation of the computer. Those skilled in the art should understand that the existence of computer program instructions in computer-readable media includes but is not limited to source files, executable files, installation package files, etc., and accordingly, the way in which computer program instructions are executed by a computer includes but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to the computer.
[0093] Communication media include media by which communication signals containing, for example, computer readable instructions, data structures, program modules, or other data are transmitted from one system to another. Communication media may include guided transmission media such as cables and wires (e.g., fiber optic, coaxial, etc.) and wireless (unguided transmission) media that can propagate energy waves, such as acoustic, electromagnetic, RF, microwave, and infrared. Computer readable instructions, data structures, program modules, or other data may be embodied as a modulated data signal in, for example, a wireless medium such as a carrier wave or similar mechanism such as embodied as part of spread spectrum technology. The term "modulated data signal" refers to a signal whose one or more characteristics are changed or set in such a manner as to encode information in the signal. Modulation may be analog, digital, or a hybrid modulation technique.
[0094] Here, according to an embodiment of the present application, a device is included, which includes a memory for storing computer program instructions and a processor for executing the program instructions, wherein, when the computer program instructions are executed by the processor, the device is triggered to run the methods and / or technical solutions based on the aforementioned multiple embodiments of the present application.
[0095] Embodiment 4
[0096] Corresponding to the above embodiment, the present application also provides a computer-readable storage medium storing computer-executable instructions, and the computer-executable instructions are used to execute the time management method.
[0097] In this embodiment, the computer-readable storage medium may include volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information such as computer-readable instructions, data structures, program modules or other data. For example, computer-readable storage media include, but are not limited to, volatile memory, such as random access memory (RAM, DRAM, SRAM); and non-volatile memory, such as flash memory, various read-only memories (ROM, PROM, EPROM, EEPROM), magnetic and ferromagnetic / ferroelectric memories (MRAM, FeRAM); and magnetic and optical storage devices (hard disks, magnetic tapes, CDs, DVDs); or other media now known or developed in the future that can store computer-readable information / data for use by computer systems.
[0098] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the embodiments of the present application.
[0099] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A time management method, It is characterized in that include: In response to the system being powered on, the baseboard management controller acquires time information generated by the real-time clock generation unit in real time; The baseboard management controller calibrates the time of the system in real time according to the time information; In response to detecting that the system working state is abnormal, switching to a backup power circuit to supply power to the real-time clock generation unit to maintain normal operation of the real-time clock generation unit; The system comprises a main power supply unit, a backup power supply unit, a field effect transistor switch unit and a complex programmable logic device control unit, wherein the output end of the main power supply unit is connected to the first power supply end of the real-time clock generation unit, the output end of the backup power supply unit is connected to the second power supply end of the real-time clock generation unit, the field effect transistor switch unit further comprises a first field effect transistor switch unit and a second field effect transistor switch unit, the output end of the main power supply unit is connected to the input end of the first field effect transistor switch unit, the output end of the backup power supply unit is connected to the input end of the second field effect transistor switch unit, the output end of the first field effect transistor switch unit, the output end of the second field effect transistor switch unit and the output end of the real-time clock generation unit are connected to the baseboard management controller; Among them, the first field effect transistor switch unit is used for switching control of the main power supply unit, the second field effect transistor switch unit is used for switching control of the backup power supply unit, and the field effect transistor switch unit is used to receive instructions from the complex programmable logic device control unit so that the baseboard management controller can read the main power supply voltage of the main power supply unit and the backup power supply voltage of the backup power supply unit.
2. The time management method according to claim 1, It is characterized in that The system further comprises a diode dual-path gating unit, the output end of the main power supply unit is connected to the first input end of the diode dual-path gating unit, the output end of the backup power supply unit is connected to the second input end of the diode dual-path gating unit, and the output end of the diode dual-path gating unit is connected to the baseboard management controller; The diode dual-path gating unit is used to perform diode gating according to the main power supply voltage and the backup power supply voltage, so that the baseboard management controller obtains the working information of the main power supply unit and the backup power supply unit in real time.
3. The time management method according to claim 1, It is characterized in that In response to detecting that the system working state is abnormal, switching to a backup power circuit to supply power to the real-time clock generation unit to maintain the normal operation of the real-time clock generation unit includes: In response to the baseboard management controller detecting that the main power supply voltage of the main power supply unit is less than a first voltage threshold, the baseboard management controller switches to a backup power circuit to supply power to the real-time clock generation unit through the backup power supply unit to maintain normal operation of the real-time clock generation unit.
4. The time management method according to claim 3, It is characterized in that After the baseboard management controller switches to the backup power circuit to supply power to the real-time clock generation unit through the backup power supply unit, the method further includes: In response to the baseboard management controller detecting that the main power supply voltage of the main power supply unit remains within the main voltage operating range within a first preset time, the baseboard management controller cuts off the backup power circuit and supplies power to the real-time clock generation unit through the main power supply unit.
5. The time management method according to claim 3, It is characterized in that In response to detecting that the system working state is abnormal, switching to the backup power circuit to power the real-time clock generation unit to maintain the normal operation of the real-time clock generation unit, further comprising: In response to the baseboard management controller detecting that the main power supply voltage of the main power supply unit is greater than the first voltage threshold and less than the second voltage threshold within a second preset time, the baseboard management controller pre-opens the backup power circuit and supplies power to the real-time clock generation unit through the main power supply unit and the backup power supply unit.
6. The time management method according to claim 5, It is characterized in that After the baseboard management controller opens the backup power circuit in advance and supplies power to the real-time clock generation unit through the main power supply unit and the backup power supply unit, the method further includes: In response to the baseboard management controller detecting that the main power supply voltage of the main power supply unit is greater than the second voltage threshold within a third preset time, the baseboard management controller turns off the backup power circuit and supplies power to the real-time clock generation unit through the main power supply unit.
7. The time management method according to claim 2, It is characterized in that The method further comprises: The baseboard management controller obtains the working information of the main power supply unit and the backup power supply unit in real time; The baseboard management controller generates a log record according to the working information, and the log record includes at least one of the record information of the main power supply voltage, the record information of the backup power supply voltage, the fault information of the main power supply unit, and the operation information of the backup power supply unit.
8. A time management device for implementing the time management method according to any one of claims 1 to 7, It is characterized in that The device comprises: A clock generation module, used for, in response to the system being powered on, the baseboard management controller to obtain in real time the time information generated by the real-time clock generation unit; A time calibration module, used for the baseboard management controller to calibrate the time of the system in real time according to the time information; The power supply management module is used to switch to the backup power circuit to supply power to the real-time clock generation unit in response to detecting that the system working state is abnormal, so as to maintain the normal operation of the real-time clock generation unit.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the time management method according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium storing computer-executable instructions, It is characterized in that The computer executable instructions are used to execute the time management method described in any one of claims 1 to 7.
Citation Information
Patent Citations
I2C monitoring function test method and system of BMC,, terminal and storage medium
CN114003445A
Baseboard management controller fault detection device
CN114691408A