PSU abnormal power-off diagnosis method based on BMC delay power-off and server

By monitoring the PSU module using the BMC module and obtaining black-box logs using the delayed power supply module, the problem of being unable to diagnose faults after the PSU module loses power is solved, enabling the acquisition and handling of fault causes and reducing hardware modification costs.

CN119882974BActive Publication Date: 2025-11-04ZHUOXIN (TIANJIN) INFORMATION TECHNOLOGY CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202510376353.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-03-27
Publication Date
2025-11-04
Estimated Expiration
2045-03-27

AI Technical Summary

Technical Problem

After the server power failure, the PSU module lost power, making it impossible to determine the cause of the failure. Furthermore, after power was restored, the running data was cleared, making it impossible to analyze the cause of the PSU module failure.

Method used

The BMC module monitors the operating status of the PSU module, identifies abnormal power failure states, and triggers the delayed power supply module to supply power to the BMC module when the PSU module experiences an abnormal power failure, thereby obtaining the black-box logs of the PSU module for diagnosis.

Benefits of technology

It enables the identification of fault causes even after an abnormal power loss in the PSU module, simplifying hardware modifications, reducing costs, and offering strong compatibility and scalability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119882974B_ABST
    Figure CN119882974B_ABST
Patent Text Reader

Abstract

The application provides a BMC delay power-off-based PSU abnormal power-off diagnosis method and server. The method provided by the application comprises the following steps: a BMC module monitors the running state of a PSU module, and identifies an abnormal power-off state based on the running state; if the PSU module is in the abnormal power-off state, a delay power supply module is triggered to supply power to the BMC module, wherein the delay power supply module is in a charging state when the PSU module is in a normal working state, and the delay power supply module is in a discharging state when the PSU module is in the abnormal power-off state; during the power supply of the delay power supply module, the BMC module acquires black box logs of the PSU module, and performs abnormal power-off diagnosis on the PSU module. The BMC delay power-off-based PSU abnormal power-off diagnosis method and server provided by the application can acquire the black box logs of the PSU during the time period of the abnormal power-off of the PSU, and diagnose the reason for the abnormal power-off of the PSU based on the black box logs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of power supply fault analysis technology, and in particular to a PSU abnormal power failure diagnosis method and server based on BMC delayed power failure. Background Technology

[0002] Due to the nature of server power supply and management, a server power failure directly impacts the entire device's operation. Specifically, a server power failure causes a complete system power outage. After a system power outage, both the PSU and BMC modules lose power, making it impossible to determine the cause of the PSU module failure. Furthermore, upon powering back on, all PSU module operational data is erased, further hindering analysis of the PSU module's malfunction.

[0003] Therefore, there is an urgent need for a method to obtain the black-box logs of the PSU during the period of abnormal power failure and to diagnose the cause of the abnormal power failure based on the black-box logs. Summary of the Invention

[0004] In view of this, this application provides a method and server for diagnosing abnormal power outages of PSUs based on BMC delayed power outages, which can be used to obtain the black-box logs of the PSU during the period of abnormal power outage and diagnose the cause of the abnormal power outage based on the black-box logs.

[0005] Specifically, this application is implemented through the following technical solution:

[0006] The first aspect of this application provides a method for diagnosing abnormal power failures in PSUs based on BMC delayed power-down, the method comprising:

[0007] The BMC module monitors the operating status of the PSU module and identifies abnormal power failure states based on the operating status.

[0008] If the PSU module is in an abnormal power failure state, the delayed power supply module is triggered to supply power to the BMC module. The delayed power supply module is in a charging state when the PSU module is in a normal working state, and in a discharging state when the PSU module is in an abnormal power failure state.

[0009] During the power supply period of the delayed power supply module, the BMC module obtains the black-box log of the PSU module and performs abnormal power failure diagnosis on the PSU module.

[0010] A second aspect of this application provides a server, the server comprising a BMC module, a PSU module, and a delayed power supply module; wherein...

[0011] The BMC module is used to monitor the operating status of the PSU module and identify abnormal power failure states based on the operating status.

[0012] The delayed power supply module is used to supply power to the BMC module when the PSU module is in an abnormal power failure state. The delayed power supply module is in a charging state when the PSU module is in a normal working state and in a discharging state when the PSU module is in an abnormal power failure state.

[0013] The BMC module is also used to acquire the black-box log of the PSU module during the power supply period of the delayed power supply module, and to perform abnormal power failure diagnosis on the PSU module.

[0014] This application provides a PSU abnormal power failure diagnosis method and server based on BMC delayed power failure. When the BMC module determines that the PSU module is in an abnormal power failure state based on the PSU module's operating status, it supplies power to the BMC module through a delayed power supply module. This allows the BMC module to still obtain the PSU module's black-box logs even when the PSU module is abnormally powered down, and to perform abnormal power failure diagnosis based on these logs. Firstly, it solves the problem of not being able to obtain the cause of the PSU module failure after a power failure, enabling the determination of the PSU module failure cause after power failure and thus allowing for appropriate fault handling. Secondly, since the black-box logs are stored in the BMC's non-volatile file system, they are not easily lost, and can be reread after the BMC restarts, ensuring strong security. Thirdly, by simply setting up a delayed power supply module, it is possible to obtain the PSU module's black-box logs even when the PSU module is abnormally powered down, without changing the PSU module's internal structure. This simplifies hardware modification by adding an external module, reduces system costs, and has reference value in other fields, exhibiting strong compatibility and scalability. Attached Figure Description

[0015] Figure 1 A flowchart of Embodiment 1 of the PSU abnormal power failure diagnosis method based on BMC delayed power failure provided in this application;

[0016] Figure 2 This is a schematic diagram of the server structure provided in this application. Detailed Implementation

[0017] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application.

[0018] The terminology used in this application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. The singular forms “a,” “the,” and “the” used herein are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used herein refers to and includes any and all possible combinations of one or more of the associated listed items.

[0019] It should be understood that although the terms first, second, third, etc., may be used in this application to describe various information, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, without departing from the scope of this application, first information may also be referred to as second information, and similarly, second information may also be referred to as first information. Depending on the context, the word "if" as used herein may be interpreted as "when," "when," or "in response to determination."

[0020] The following specific embodiments are given to illustrate the technical solution of this application in detail.

[0021] Figure 1 This is a flowchart of Embodiment 1 of the PSU abnormal power failure diagnosis method based on BMC delayed power failure provided in this application. Please refer to... Figure 1 The method provided in this embodiment may include:

[0022] S101, the BMC module monitors the operating status of the PSU module and identifies abnormal power failure states based on the operating status.

[0023] Specifically, the method provided in this embodiment is applied to a server, which includes a BMC (Baseboard Management Controller) module, a PSU (Power Supply Unit) module, and a delayed power supply module. The BMC module is connected to the PSU module, and the PSU module is connected to the delayed power supply module. The BMC module monitors and manages the server, records event logs when an anomaly is detected, and performs troubleshooting and analysis after restarting the server. The PSU module provides the DC power required internally by the server. The delayed power supply module supplies power to the BMC module when the PSU module experiences an abnormal power failure.

[0024] Furthermore, the operating status of the PSU module includes its voltage, current, temperature, fan speed, etc. An abnormal power failure indicates that the PSU module is unable to continue supplying power to the server due to specific reasons (such as external power interruption, internal fault, etc.).

[0025] In specific implementation, the BMC module monitors the operating status of the PSU module, including:

[0026] (1) The monitoring point of the BMC module is determined based on the range of abnormal power failure state parameter changes, wherein the monitoring point is the parameter to be detected by the PSU module.

[0027] Specifically, abnormal power-down status parameters include the voltage, current, and temperature of the PSU module. The monitoring points of the BMC module are the parameters to be monitored by the PSU module, which are the same as the abnormal power-down status parameters; that is, the monitoring points of the BMC module are the voltage, current, and temperature of the PSU module.

[0028] In practice, the voltage monitoring point of the BMC module is determined based on the voltage variation range of the PSU module, the current monitoring point of the BMC module is determined based on the current variation range of the PSU module, and the current monitoring point of the BMC module is determined based on the temperature variation range of the PSU module.

[0029] For example, in one embodiment, the voltage monitoring points of the BMC module are determined to include +12V, +5V and +3V, the current monitoring points include the current of each output port of the PSU module, and the temperature monitoring points include the temperature inside the PSU and the temperature of key components.

[0030] (2) The BMC module is configured with ADC channels for monitoring the monitoring points based on the monitoring points of the PSU module, wherein the number of ADC channels corresponds to the number of monitoring points.

[0031] Specifically, the ADC channels are used to monitor analog signals such as voltage, current, and temperature of the PSU module and convert these analog signals into digital signals for processing and analysis by the BMC module. The number of ADC channels corresponds to the number of monitoring points, with each ADC channel monitoring one monitoring point.

[0032] In practice, the BMC module assigns each monitoring point to the corresponding ADC channel, that is, assigns voltage monitoring points to the corresponding ADC channel, current monitoring points to the corresponding ADC channel, and temperature monitoring points to the corresponding ADC channel.

[0033] For example, in one embodiment, combining the above example, if the monitoring points include 3 voltage points, 2 current points and 1 temperature point, in this step, 6 ADC channels need to be configured, with each ADC channel monitoring one monitoring point.

[0034] (3) Based on the ADC channel, periodically acquire the status information of the PSU module.

[0035] In practice, a suitable sampling period is set (e.g., once per second) to ensure timely capture of the PSU module's state changes. At the arrival of each sampling period, the PSU module's state information is acquired through the ADC channel and converted into a digital signal.

[0036] Furthermore, after obtaining the operating status of the PSU module, a comparison is made between the operating status and a specific threshold to determine whether the PSU module is in an abnormal power-down state. In this embodiment, the specific value of the threshold is not limited. For example, in one embodiment, when the voltage of the PSU module is less than 9V, the PSU module is determined to be in an abnormal power-down state. When the current of the PSU module is greater than 20A, the PSU module is determined to be in an abnormal state. When the temperature of the PSU module exceeds 70°C, the PSU module is determined to be in an abnormal state.

[0037] Optionally, after identifying the abnormal power failure state based on the operating state, the method further includes:

[0038] (1) If the PSU module is in a normal power supply state, the BMC module monitors the status register field of the PSU module.

[0039] Specifically, a normal power supply status indicates that the PSU module can continue to supply power to the server. The status register fields of the PSU module are used to store and reflect various information about the current operating status of the PSU module, including parameters such as voltage, current, temperature, and fault status.

[0040] In practice, the BMC module reads and parses each field in the status register of the PSU module to monitor the operation of the PSU module in real time.

[0041] (2) If the status register field of the PSU module is abnormal, the BMC module obtains the black-box log of the PSU module.

[0042] Specifically, the black-box log of the PSU module records important events and status information of the PSU module, such as voltage abnormality, overcurrent protection triggering, and overtemperature protection triggering.

[0043] In practice, if the fault status parameters recorded in the status register field of the PSU module are abnormal (e.g., abnormal voltage, abnormal current, abnormal temperature, overvoltage protection status, overcurrent protection status, overtemperature protection status, etc.), the BMC module communicates with the PSU module via I2C. The BMC module sends a specific command to the PSU module to obtain the PSU module's black-box log. After receiving the specific command, the PSU module sends the black-box log to the BMC, and the BMC saves the received black-box log to the BMC non-volatile file system.

[0044] (3) Rename the black-box log corresponding to the abnormal status register field based on the abnormal power failure identifier. The renamed log name indicates that the black-box log corresponding to the abnormal status register field is not used for abnormal power failure diagnosis.

[0045] Specifically, the abnormal power failure flag indicates an abnormal power failure state of the PSU module. The abnormal power failure flag has a first initial value: a value of 1 indicates that the PSU module is in an abnormal power failure state; a value other than 1 indicates that the PSU module is in a normal power supply state.

[0046] In practice, based on the above description, if the PSU module is in a normal power supply state, the abnormal power failure flag will not be 1. In this step, the black-box log is renamed based on the abnormal power failure flag with a value of non-1. Since this black-box log corresponds to the PSU module in a normal power supply state, it will not be used for abnormal power failure diagnosis in the future.

[0047] For example, in one embodiment, the renamed black-box log is named PSUx_BlackBoxPre.dat.

[0048] As an optional embodiment, before the BMC module monitors the operating status of the PSU module, the method includes: calculating an estimated read time based on the size of the PSU module's black-box log file; determining a discharge time based on the estimated read time; determining parameter values ​​for the delayed power supply module based on the discharge time, wherein the delayed power supply module includes at least a delayed power-off capacitor, and the parameter values ​​include at least the capacitance value of the delayed power-off capacitor; establishing the delayed power supply module based on the parameter values, and keeping the delayed power supply module fully charged when the PSU module is in a normal power supply state.

[0049] The method provided by this invention utilizes the PSU module to power the BMC module when the PSU module is in normal working condition to maintain normal monitoring. In the event of an abnormal power failure of the PSU, the peripheral delayed power supply module continuously provides a brief power supply to the BMC module to ensure that it can obtain log files related to the PSU abnormality. Furthermore, in order to ensure that the brief power supply can guarantee the acquisition of complete log information, the module parameter values ​​are determined in reverse based on the time requirement for reading the logs to ensure that the delayed power supply module can still read the log files completely when it is in a discharged state.

[0050] Furthermore, the discharge time is the time it takes for the delayed power supply module to discharge from a fully charged state to a de-charged state. Preferably, the discharge time is N times the estimated reading time, where N is a positive number and can be equal to 1, meaning the complete discharge time is exactly equal to the estimated reading time. As an optional embodiment, the discharge time is determined based on the discharge curve of the delayed capacitor and the estimated reading time, and N is greater than 1. This invention considers that the time of PSU module failure is arbitrary, the delayed capacitor may not be able to maintain a fully charged state in all scenarios, and the discharge amount is not constant. Therefore, a larger discharge time is determined based on the changes in the discharge curve and the power requirements of the BMC module, thereby improving the applicability of the delayed power supply module of this invention to various scenarios.

[0051] S102. If the PSU module is in an abnormal power failure state, the delayed power supply module is triggered to supply power to the BMC module. The delayed power supply module is in a charging state when the PSU module is in a normal working state, and in a discharging state when the PSU module is in an abnormal power failure state.

[0052] Specifically, based on the above description, the delayed power supply module is used to supply power to the BMC module when the PSU module experiences an abnormal power failure. The delayed power supply module includes a delayed power-off capacitor. When the PSU module is in normal operating condition, the delayed power-off capacitor is charged by the power supplied by the PSU module. After the delayed power-off capacitor is fully charged, the charging circuit is disconnected. When the PSU module experiences an abnormal power failure, the delayed power-off capacitor is connected to the BMC module, and the charge stored in the delayed power-off capacitor is released.

[0053] Optionally, if the PSU module is in an abnormal power-down state, the method further includes:

[0054] (1) Modify the value of the abnormal power failure flag, wherein the abnormal power failure flag has a first initial value, and the value of the abnormal power failure flag under abnormal power failure state is different from the first initial value.

[0055] Specifically, based on the above description, the abnormal power failure indicator represents the abnormal power failure state of the PSU module. A value of 1 indicates that the PSU module is in an abnormal power failure state; a value other than 1 indicates that the PSU module is in a normal power supply state.

[0056] In practice, this step involves modifying the value of the abnormal power failure flag to 1, indicating that the PSU module is in an abnormal power failure state.

[0057] (2) Rename the read black-box log based on the abnormal power failure identifier. The renamed log name indicates that the black-box log corresponding to the abnormal power failure state is used for abnormal power failure diagnosis.

[0058] Specifically, based on the above description, the abnormal power failure flag is 1. In this step, the read black-box log is renamed based on the abnormal power failure flag with a value of 1. Since this black-box log corresponds to the PSU module in the abnormal power failure state, it will be used for abnormal power failure diagnosis later. It should be noted that the log name of the black-box log corresponding to the abnormal power failure state is different from the log name of the black-box log corresponding to the normal power supply state, and their uses are also different.

[0059] For example, in one embodiment, the renamed black-box log is named PSUx_BlackBoxCur.dat.

[0060] S103. During the power supply period of the delayed power supply module, the BMC module obtains the black-box log of the PSU module and performs abnormal power failure diagnosis on the PSU module.

[0061] Optionally, before the BMC module obtains the black-box log of the PSU module, the method further includes:

[0062] (1) After the BMC module has been running for a preset time based on the power supplied by the delayed power supply module, the BMC module will power off.

[0063] Specifically, the preset duration is set according to actual needs. In this embodiment, the specific value of the preset duration is not limited. For example, in one embodiment, the preset duration is 2 seconds.

[0064] In practice, the delayed power supply module supplies power to the BMC module after the PSU module fails to power down. The BMC module runs for a preset time during the power supply period of the delayed power supply module before powering down.

[0065] (2) After the BMC module restarts, it reads the black-box log of the PSU module from the BMC non-volatile file system.

[0066] Specifically, the BMC non-volatile file system is used to store important information, including storage logs, configuration files, firmware updates, and other data, so that it remains available after the BMC restarts or loses power. The BMC non-volatile file system typically runs on the BMC's embedded storage device, such as flash memory or EEPROM.

[0067] In its implementation, the BMC module has remote control capabilities, allowing it to restart the server. When the server restarts, the BMC module also reboots. Furthermore, the BMC module reads previously stored black-box logs of the PSU module from the BMC non-volatile file system, including reading specific files or directories to obtain event and status information about the PSU module.

[0068] Specifically, the BMC module obtains the black-box logs of the PSU module and performs abnormal power-down diagnosis on the PSU module, including:

[0069] (1) Read the black-box log of the PSU module from the BMC non-volatile file system.

[0070] In practice, the BMC module reads the black-box logs of the PSU module previously stored in the BMC non-volatile file system, including reading specific files or directories, to obtain the PSU module's event and status information.

[0071] (2) Filter target black-box logs based on the nouns of the black-box logs.

[0072] Specifically, the target black-box log refers to the black-box log related to abnormal power outages.

[0073] In practice, based on keywords such as "power outage", "power failure", and "abnormal voltage", target black-box logs that may be related to abnormal power outages are filtered out from the black-box logs.

[0074] (3) Parse the target black-box log and extract event data.

[0075] Specifically, event data includes information such as timestamps, voltage values, current values, and temperature values.

[0076] In practice, the target black-box logs are parsed to identify and extract event data related to abnormal power outages.

[0077] (4) Convert the event data into a log file in the target format.

[0078] Specifically, the target format is set according to actual needs; in this embodiment, the specific value of the target format is not limited. For example, in one embodiment, the target format is JSON format or a specific structured text.

[0079] In practice, a script or program can be written using a programming language (such as Python) based on actual needs and data structures. This program receives event data as input and formats the event data into a log file of the target format.

[0080] (5) Analyze the converted log file to determine the cause of the abnormal power outage.

[0081] Specifically, the analysis of the converted log files to determine the cause of the abnormal power outage includes:

[0082] (i) Extract the event data recorded in the transformed log file and associate the event data with time to determine the time of the abnormal power outage and the sequence of events before and after it.

[0083] Specifically, based on the above description, event data includes information such as timestamps, voltage values, current values, and temperature values.

[0084] In practice, the event data recorded in the transformed log file is extracted, the extracted event data is traversed, all abnormal power outage events are identified, and their timestamps are recorded. Then, based on these timestamps, the event sequence before and after each abnormal power outage event is determined. These sequences can be used to determine the state and behavior of the system before and after the power outage event.

[0085] (ii) Identify the abnormal events recorded in the transformed log file and associate the abnormal events with the relevant data.

[0086] In practice, the extracted event data is examined to identify all abnormal events that do not belong to the normal situation. These abnormal events may be due to excessively high or low voltage, abnormal current, or other abnormal conditions.

[0087] (iii) Based on the associated event data and associated abnormal events, perform fault diagnosis to determine the cause of abnormal power outage.

[0088] In practice, for each abnormal power outage event, fault diagnosis is performed by combining the abnormal event and the sequence of events preceding and following it. By analyzing the abnormal event and changes in system state, the root cause of the abnormal power outage is determined. This may involve checking factors such as the stability of the power supply, system load, ambient temperature, and circuit faults.

[0089] This embodiment provides a PSU abnormal power failure diagnosis method based on BMC delayed power failure. When the BMC module determines that the PSU module is in an abnormal power failure state based on the PSU module's operating status, it supplies power to the BMC module through a delayed power supply module. This allows the BMC module to still obtain the PSU module's black-box log even when the PSU module is abnormally powered down, and to perform abnormal power failure diagnosis based on the black-box log. Firstly, it solves the problem of not being able to obtain the cause of the PSU module failure after a power failure, enabling the acquisition of the PSU module failure cause after power failure, thus allowing for appropriate fault handling. Secondly, since the black-box log is stored in the BMC's non-volatile file system, it is not easily lost, and can be reread after the BMC restarts, ensuring strong security. Thirdly, by simply setting up a delayed power supply module, it is possible to obtain the PSU module's black-box log even when the PSU module is abnormally powered down, without changing the PSU module's internal structure. This simplifies hardware modification by adding an external module, reduces system costs, and has reference value in other fields, demonstrating strong compatibility and scalability.

[0090] Corresponding to the aforementioned embodiment of a PSU abnormal power failure diagnosis method based on BMC delayed power failure, this application also provides a server.

[0091] Figure 2 This is a schematic diagram of the server structure provided in this application. Please refer to it. Figure 2 The server provided in this embodiment includes a BMC module, a PSU module, and a delayed power supply module; wherein,

[0092] The BMC module is used to monitor the operating status of the PSU module and identify abnormal power failure states based on the operating status.

[0093] The delayed power supply module is used to supply power to the BMC module when the PSU module is in an abnormal power failure state. The delayed power supply module is in a charging state when the PSU module is in a normal working state and in a discharging state when the PSU module is in an abnormal power failure state.

[0094] The BMC module is also used to acquire the black-box log of the PSU module during the power supply period of the delayed power supply module, and to perform abnormal power failure diagnosis on the PSU module.

[0095] The server provided in this application, when the BMC module determines that the PSU module is in an abnormal power-down state based on the PSU module's operating status, supplies power to the BMC module through a delayed power supply module. This allows the BMC module to still obtain the PSU module's black-box logs even when the PSU module is abnormally powered down, and to perform abnormal power-down diagnosis based on these logs. Firstly, this solves the problem of not being able to obtain the cause of the PSU module failure after a power-down, enabling the determination of the PSU module failure cause after a power-down, thus facilitating appropriate fault handling. Secondly, since the black-box logs are stored in the BMC's non-volatile file system, they are not easily lost, and can be reread after the BMC restarts, ensuring strong security. Thirdly, by simply setting up a delayed power supply module, the black-box logs of the PSU module can still be obtained even when the PSU module is abnormally powered down, without changing the PSU module's internal structure. This simplifies hardware modification through an external module, reduces system costs, and has reference value in other fields, demonstrating strong compatibility and scalability.

[0096] The server provided in this application can be used to execute... Figure 1 The steps of the method embodiment shown are similar in principle and process, and will not be repeated here.

[0097] The specific implementation process of the functions and roles of each unit in the above device can be found in the implementation process of the corresponding steps in the above method, and will not be repeated here.

[0098] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can be referred to in the description of the method embodiments. The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this application according to actual needs. Those skilled in the art can understand and implement this without creative effort.

[0099] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of protection of this application.

Claims

1. A method for diagnosing abnormal power failure in PSUs based on BMC-delayed power failure, characterized in that, The method includes: The BMC module monitors the operating status of the PSU module and identifies abnormal power failure states based on the operating status. The monitoring points of the BMC module are determined based on the range of changes in the abnormal power failure state parameters; the monitoring points are the same as the abnormal power failure state parameters. If the PSU module is in an abnormal power failure state, the delayed power supply module is triggered to supply power to the BMC module. The delayed power supply module is in a charging state when the PSU module is in a normal working state, and in a discharging state when the PSU module is in an abnormal power failure state. During the power supply period of the delayed power supply module, the BMC module acquires the black-box log of the PSU module and performs abnormal power failure diagnosis on the PSU module. Before the BMC module monitors the operating status of the PSU module, the method includes: The estimated reading time is calculated based on the size of the PSU module's black-box log file. The discharge time is determined based on the estimated reading time. The parameter values ​​of the delayed power supply module are determined based on the discharge time, wherein the delayed power supply module includes at least a delayed power-off capacitor, and the parameter values ​​include at least the capacitance value of the delayed power-off capacitor. The delayed power supply module is established based on the parameter values. When the PSU module is in normal power supply state, the delayed power supply module is kept in full power state. After identifying the abnormal power failure state based on the operating status, if the PSU module is in a normal power supply state, the BMC module monitors the status register field of the PSU module; if the status register field of the PSU module is abnormal, the BMC module obtains the black-box log of the PSU module; it renames the black-box log corresponding to the abnormal status register field based on the abnormal power failure identifier, and the renamed log name indicates that the black-box log corresponding to the abnormal status register field is not used for abnormal power failure diagnosis; if the PSU module is in an abnormal power failure state, it modifies the value of the abnormal power failure identifier; an abnormal power failure identifier of 1 indicates that the PSU module is in an abnormal power failure state. The black-box log read based on the abnormal power failure identifier is renamed, and the renamed log name indicates the black-box log corresponding to the abnormal power failure state for abnormal power failure diagnosis.

2. The method according to claim 1, characterized in that, The BMC module monitors the operating status of the PSU module, including: The BMC module is configured with ADC channels for monitoring the monitoring points based on the monitoring points of the PSU module, wherein the number of ADC channels corresponds to the number of monitoring points; Based on the ADC channel, the status information of the PSU module is periodically acquired.

3. The method according to claim 1, characterized in that, The delayed power supply module includes a delayed power-off capacitor; When the PSU module is in normal working condition, the delayed-energizing capacitor is charged by the power provided by the PSU module, and the charging circuit is disconnected after the delayed-energizing capacitor is fully charged. When the PSU module is in an abnormal power-down state, the delayed-down capacitor is connected to the BMC module, and the charge stored in the delayed-down capacitor is released.

4. The method according to claim 1, characterized in that, The BMC module acquires the black-box logs of the PSU module and performs abnormal power-down diagnosis on the PSU module, including: Read the black-box log of the PSU module from the BMC non-volatile file system; Target black-box logs are filtered based on the terms in the black-box logs. The target black-box logs are parsed to extract event data; Convert the event data into a log file in the target format; Analyze the converted log files to determine the cause of the abnormal power outage.

5. The method according to claim 4, characterized in that, The analysis of the converted log files determines the cause of the abnormal power outage, including: Extract the event data recorded in the transformed log file, and correlate the event data with time to determine the time of the abnormal power outage and the sequence of events before and after it; Identify the abnormal events recorded in the transformed log file and associate the abnormal events with relevant data; Based on the correlated event data and the correlated abnormal events, fault diagnosis is performed to determine the cause of the abnormal power outage.

6. The method according to claim 1, characterized in that, Before the BMC module obtains the black-box log of the PSU module, the method further includes: After the BMC module operates for a preset time based on the power supplied by the delayed power supply module, the BMC module shuts down by power-off. After the BMC module restarts, it reads the black-box log of the PSU module from the BMC non-volatile file system.

7. A server, characterized in that, The server includes a BMC module, a PSU module, and a delayed power supply module; wherein... The BMC module is used to monitor the operating status of the PSU module and identify abnormal power failure states based on the operating status. The monitoring points of the BMC module are determined based on the range of changes in the abnormal power failure state parameters; the monitoring points are the same as the abnormal power failure state parameters. The delayed power supply module is used to supply power to the BMC module when the PSU module is in an abnormal power failure state. The delayed power supply module is in a charging state when the PSU module is in a normal working state and in a discharging state when the PSU module is in an abnormal power failure state. The BMC module is also used to acquire the black-box log of the PSU module during the power supply period of the delayed power supply module, and to perform abnormal power failure diagnosis on the PSU module. Before monitoring the operating status of the PSU module, the BMC module is also used for: The estimated reading time is calculated based on the size of the PSU module's black-box log file. The discharge time is determined based on the estimated reading time. The parameter values ​​of the delayed power supply module are determined based on the discharge time, wherein the delayed power supply module includes at least a delayed power-off capacitor, and the parameter values ​​include at least the capacitance value of the delayed power-off capacitor. The delayed power supply module is established based on the parameter values. When the PSU module is in normal power supply state, the delayed power supply module is kept in full power state. After identifying the abnormal power failure state based on the operating status, if the PSU module is in a normal power supply state, the BMC module monitors the status register field of the PSU module; if the status register field of the PSU module is abnormal, the BMC module obtains the black-box log of the PSU module; and renames the black-box log corresponding to the abnormal status register field based on the abnormal power failure identifier. The renamed log name indicates that the black-box log corresponding to the abnormal status register field is not used for abnormal power failure diagnosis. If the PSU module is in an abnormal power failure state, modify the value of the abnormal power failure flag; an abnormal power failure flag of 1 indicates that the PSU module is in an abnormal power failure state. The black-box log read based on the abnormal power failure identifier is renamed, and the renamed log name indicates the black-box log corresponding to the abnormal power failure state for abnormal power failure diagnosis.

Citation Information

Patent Citations

  • Server switching power supply protecting device and method

    CN107315675A

  • Design method and system for realizing BMC independent power supply

    CN112272098A

  • Method and device for recording PSU AC loss event after equipment power failure

    CN117093402A