Power failure monitoring system and method
By using the trigger unit for instant state capture and latching of the latch unit in the power failure monitoring system, the problem of dependence on CPLD is solved, and the power failure monitoring of the unbuilt-in CPLD board is realized, which improves the fault handling efficiency and System reliability.
Patent Information
- Application Number
- CN202411043928.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-11-19
AI Technical Summary
The strong reliance of existing power failure monitoring systems on complex programmable logic devices (CPLDs) has resulted in increased cost and system complexity when CPLDs are not built in on many boards, and slow response and inaccurate fault logging, especially in microseconds Instant locking and accurate recording cannot be achieved when the level of instantaneous voltage fluctuates.
The trigger unit is used to capture the instant state and latch the latch unit, and pass it to the control unit. The control unit responds to the fault state, realizing instant monitoring and fault response to power failures.
It realizes power failure monitoring of unbuilt-in CPLD boards, improves fault handling efficiency and system reliability, and can instantaneous failures be captured and locked, ensuring accurate recording and transmission of fault information.
Smart Images

Figure CN118980962A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of power supplies, and in particular to a power supply fault monitoring system and method. Background Art
[0002] At present, electronic equipment is increasingly used in all walks of life. As the core component of electronic equipment, the stability and reliability of power supply are directly related to the normal operation of electronic equipment. Therefore, power supply fault monitoring technology has become an important means to ensure the stable operation of electronic equipment.
[0003] In the related art, the power supply fault monitoring system uses a complex programmable logic device (CPLD) to perform real-time analysis on the collected power supply voltage, current and other data, and triggers a microprocessor for further processing when an abnormal signal is analyzed. The microprocessor determines whether the power supply is faulty based on the abnormal signal.
[0004] However, in practical applications, many boards do not have built-in CPLD. Therefore, it is urgent to study a power failure monitoring system that does not rely on CPLD. Summary of the invention
[0005] The present application provides a power failure monitoring system and method, which are used to solve the problem that the power failure monitoring system in the prior art is highly dependent on CPLD.
[0006] In a first aspect, the present application provides a power failure monitoring system, comprising: a trigger unit, a latch unit and a control unit;
[0007] The input end of the trigger unit is connected to the power output end, and the trigger unit is used to obtain the state change of the power signal and output a high level when the power signal changes from a high level to a low level;
[0008] The input end of the latch unit is connected to the output end of the trigger unit, and the output end of the latch unit is connected to the input end of the control unit. The latch unit is used to latch the output signal of the trigger unit and transmit it to the control unit when the trigger unit outputs a high level.
[0009] The control unit is used for responding to a fault according to the output signal of the trigger unit.
[0010] In some embodiments, the trigger unit includes a trigger;
[0011] The clock input terminal of the trigger is connected to the power output terminal, and the trigger is used to output a high level when a low level power signal reaches the clock input terminal.
[0012] In some embodiments, the trigger is a falling edge trigger, and the input terminal of the falling edge trigger is connected to the complementary output terminal of the falling edge trigger.
[0013] In some embodiments, the trigger is a rising edge trigger;
[0014] The trigger unit also includes a NOT gate element, the input end of the NOT gate element is connected to the power output end, the output end of the NOT gate element is connected to the clock input end of the rising edge trigger, and the input end of the rising edge trigger is connected to the complement output end of the rising edge trigger.
[0015] In some embodiments, the latch unit includes: a latch and an input-output expansion chip;
[0016] The first input end of the latch is connected to the output end of the trigger unit, the first end of the input-output extension chip is connected to the output end of the latch, and the latch is used to latch the output signal of the trigger unit and transmit it to the input-output extension chip when the trigger unit outputs a high level;
[0017] The second end of the input-output expansion chip is connected to the control unit, and the input-output expansion chip is used to transparently transmit the output signal of the trigger unit to the control unit.
[0018] In some embodiments, the third terminal of the input-output expansion chip is connected to the second input terminal of the latch;
[0019] The input-output expansion chip is also used to unlock the latch according to the unlock instruction of the control unit.
[0020] In some embodiments, the fourth terminal of the input-output expansion chip is connected to the reset terminal of the trigger unit;
[0021] The input and output expansion chip is also used to clear the trigger unit according to the clear instruction of the control unit.
[0022] In some embodiments, the output terminal of the input / output expansion chip is connected to the control unit via I 2 C-bus connection.
[0023] In a second aspect, the present application provides a power failure monitoring method, which is applied to a control unit in a power failure monitoring system in the first aspect and any embodiment of the first aspect, and the power failure monitoring method includes:
[0024] receiving an output signal of the trigger unit transmitted by the latch unit;
[0025] The fault response is carried out according to the output signal of the trigger unit.
[0026] In some embodiments, responding to a fault according to an output signal of the trigger unit includes:
[0027] At least one of recording a fault log, triggering an alarm mechanism, and executing an emergency power management strategy.
[0028] The power supply fault monitoring system and method provided in the present application efficiently and accurately monitor the power supply status through a trigger unit with instant status capture capability and a latch unit with latching function, and communicate with a control unit, which responds to the power supply fault, thereby achieving real-time fault response and fault recording. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] In order to more clearly illustrate the technical solutions in the present application or the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0030] Figure 1 A schematic diagram of the structure of a power failure monitoring system provided in one embodiment of the present application;
[0031] Figure 2 A schematic diagram of the structure of another power failure monitoring system provided in one embodiment of the present application;
[0032] Figure 3 It is a schematic diagram of the internal logic of a D flip-flop;
[0033] Figure 4 A schematic diagram of the structure of another power failure monitoring system provided in an embodiment of the present application;
[0034] Figure 5 A flowchart of a power failure monitoring method provided in one embodiment of the present application. DETAILED DESCRIPTION
[0035] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in this application. Obviously, the described embodiments are part of the embodiments of this application, not all of the embodiments. 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.
[0036] The terms "first", "second", "third", "fourth", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances. For example, without departing from the scope of this document, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as the first information.
[0037] It should be understood that the terms “comprises” and “includes” indicate the existence of features, steps, operations, elements, components, items, types, and / or groups, but do not exclude the existence, occurrence, or addition of one or more other features, steps, operations, elements, components, items, types, and / or groups.
[0038] The terms "or" and "and / or" used herein are interpreted as inclusive, or mean any one or any combination. Thus, "A, B and / or C" means "any of the following: A; B; C; A and B; A and C; B and C; A, B and C". An exception to this definition will only occur when a combination of elements, functions, steps or operations are inherently mutually exclusive in some manner.
[0039] Electronic devices are increasingly used in all walks of life. As the core component of electronic devices, the stability and reliability of power supply are directly related to the overall performance and operation safety of the equipment. Therefore, how to ensure the stable operation of power supply and prevent equipment downtime or data loss caused by power failure has become the focus of common concern in the industry.
[0040] Power failure monitoring technology has become an important means to ensure the stable operation of electronic equipment. In related technologies, the power failure monitoring system collects the voltage, current and other parameters of the power supply through CPLD and performs real-time analysis. Once an abnormal signal is detected, the system will immediately trigger the microprocessor for further processing. The microprocessor determines whether the power supply has failed based on the type and degree of the abnormal signal and takes corresponding protective measures, thereby realizing real-time monitoring of the power supply status.
[0041] But in fact, many boards do not have built-in CPLD. For boards without built-in CPLD, additional CPLD modules need to be added, which not only increases the cost, but also may complicate the system design. In addition, the programming and debugging of CPLD are relatively complex, requiring high technical personnel, which increases the difficulty of system development and maintenance. In addition, the above-mentioned power fault monitoring system has problems such as slow response and inaccurate fault records when dealing with transient faults. Especially when dealing with microsecond-level transient voltage fluctuations or abnormal power supply status, it is impossible to achieve instant locking and accurate recording, which makes troubleshooting difficult and affects the stable operation of the system.
[0042] In response to the above problems, the present application proposes a power supply fault monitoring system and method. The system does not rely on CPLD, uses a trigger unit to capture the power supply fault state in real time, uses a latch unit to latch the fault state and transmit it to the control unit, and the control unit responds to the fault according to the fault state. The power supply fault monitoring system of the present application can be applied to boards without built-in CPLD. Combined with the fast response characteristics of the trigger and the latching function of the latch unit, it can effectively deal with instantaneous faults, realize fault detection, fault locking and fault information upload of multiple Power Good (PG) signals of the power supply, so that the control unit can respond to the fault in real time, thereby improving the fault handling efficiency and the overall reliability of the system.
[0043] The technical solution of the present application is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
[0044] Figure 1 This is a schematic diagram of the structure of a power failure monitoring system provided by an embodiment of the present application. Figure 1 As shown, the power failure monitoring system provided by this embodiment includes: a trigger unit, a latch unit and a control unit.
[0045] The input end of the trigger unit is connected to the power output end. The trigger unit is used to obtain the state change of the power signal and output a high level when the power signal changes from a high level to a low level.
[0046] The input end of the latch unit is connected to the output end of the trigger unit, and the output end of the latch unit is connected to the input end of the control unit. The latch unit is used to latch the output signal of the trigger unit and transmit it to the control unit when the trigger unit outputs a high level.
[0047] The control unit is used for responding to a fault according to the output signal of the trigger unit.
[0048] In this embodiment, the power supply is a server power supply or other device power supply, which is not limited in this application. The power supply includes multiple PG signals, such as an Advanced Technology eXtended (ATX) power supply PG signal, a Central Processing Unit (CPU) power supply PG signal, and the like.
[0049] The trigger unit monitors multiple PG signals of the power supply, and when a certain PG signal changes from a high level to a low level, it indicates that the PG signal fails. At this time, the trigger unit outputs a high-level output signal to the latch unit.
[0050] When a high level signal output by the trigger unit is received, the enable signal of the latch unit is valid, and the latch unit latches the output state of the trigger unit, maintains the state and transmits it to the control unit.
[0051] The control unit may be a baseboard management controller (BMC). The control unit responds to the fault according to the output signal received from the trigger unit, for example, triggering an alarm mechanism, recording a fault log, executing an emergency power management strategy, etc.
[0052] In the power failure monitoring system provided by the present embodiment, the instant state capture capability of the trigger unit is utilized to monitor multiple PG signals of the power supply and respond to the fault state instantaneously. The latch unit latches the output state of the trigger unit, keeps the state unchanged and transmits it to the control unit, and the control unit responds to the fault according to the output state of the trigger unit. The power failure monitoring system of the present embodiment is a pure hardware circuit with a simple circuit structure and convenient implementation. Through the rapid response of the trigger unit, the instantaneous fault is captured instantly, and the fault response speed is improved. The stability and reliability of the monitoring system are improved through real-time monitoring and remote management by the control unit.
[0053] Figure 2 This is a schematic diagram of the structure of another power failure monitoring system provided by an embodiment of the present application. Figure 2 As shown, in Figure 1 On the basis of the illustrated embodiment, in the power failure monitoring system of this embodiment, the trigger unit includes a trigger.
[0054] The clock input terminal (Clock Pulse, CP) of the trigger is connected to the power output terminal. The trigger is used for outputting a high level at the output terminal Q when a low level power signal reaches the clock input terminal CP.
[0055] In this embodiment, the trigger may be a D trigger. The internal logic diagram of the D trigger is as follows: Figure 3 As shown, CP is the clock input terminal of the D flip-flop, and D is the input terminal. SD (Set-D) is the set terminal, which is used to force the output terminal Q of the D flip-flop to be set to a high level, and CD (Clear-D) is the clear terminal, which is used to clear the output terminal Q of the D flip-flop. Q' is the complement output terminal of Q, which is always opposite to the value of Q. Table 1 is a truth table of a D flip-flop. The internal logic of the D flip-flop can be understood by referring to the prior art, and this embodiment will not be repeated here.
[0056] Table 1
[0057]
[0058] Among them, H represents high level, L represents low level, and X represents not considered.
[0059] In this embodiment, the trigger unit may be embedded in the power supply PG signal path to capture each state change of the PG signal.
[0060] The low-level power supply signal refers to a power supply signal that changes from a high level to a low level, that is, a power supply PG signal that fails.
[0061] The low-level power signal reaches the clock input terminal CP. The low-level power signal can directly reach the clock input terminal CP, or the low-level power signal can be processed before reaching the clock input terminal CP. For example, the low-level power signal passes through a NOT gate and reaches the clock input terminal CP after the level is flipped.
[0062] Optionally, the trigger is a falling edge D trigger, and an input terminal D of the falling edge D trigger is connected to a complementary output terminal Q' of the falling edge trigger.
[0063] Specifically, the output terminal Q of the falling edge D flip-flop has an initial output state of 0, that is, Q = 0. The complement output terminal Q' of Q has a value opposite to that of Q, Q' = 1. The input terminal D is connected to the complement output terminal Q', D = 1.
[0064] When the PG signal is abnormal, the falling edge signal generated by the abnormal PG signal enters the falling edge D flip-flop as the clock input, and the falling edge D flip-flop copies the current D value (that is, the value of Q') to Q. That is, when the PG signal is abnormal, the output terminal Q captures the value of D and outputs a high level, Q = 1. Then, the value of Q' is opposite to that of Q, Q' = 0, and the value of D is the same as that of Q', D = 0.
[0065] From this, we can see that by using a falling edge D flip-flop and setting the initial value of its output terminal Q to 0, when an abnormality occurs in the PG signal, the falling edge D flip-flop undergoes a level flip, and the output terminal Q can output a high level.
[0066] Optionally, the trigger is a rising edge D trigger.
[0067] At this time, the trigger unit also includes a NOT gate element (not shown in the figure), the input end of the NOT gate element is connected to the power supply output end, the output end of the NOT gate element is connected to the clock input end CP of the rising edge D trigger, and the input end D of the rising edge D trigger is connected to the complement output end Q' of the rising edge D trigger.
[0068] Specifically, the output terminal Q of the rising edge D flip-flop has an initial output state of 0, that is, Q = 0. The complement output terminal Q' of Q has a value opposite to that of Q, Q' = 1. The input terminal D is connected to the complement output terminal Q', D = 1.
[0069] When the PG signal is abnormal, the falling edge signal generated by the abnormal PG signal is converted into a rising edge signal through the NOT gate element as the clock input to the rising edge D flip-flop, and the rising edge D flip-flop copies the current D value (that is, the value of Q') to Q. That is, when the PG signal is abnormal, the output terminal Q captures the value of D and outputs a high level, Q = 1. Then, the value of Q' is opposite to that of Q, Q' = 0, and the value of D is the same as that of Q', D = 0.
[0070] In the power failure monitoring system provided in this embodiment, the specific structures of two trigger units are introduced. By selecting a suitable trigger and setting the initial output state of the trigger, the trigger can output a high level when a low-level signal reaches the clock input end of the trigger, so that the enable signal of the latch unit is in a valid state and the output state of the latch trigger unit is latched. In this embodiment, the trigger unit can accurately record the fault details, facilitate the control unit to analyze, accelerate the fault location and elimination, and enhance the PG signal fault diagnosis capability.
[0071] Figure 4 This is a schematic diagram of the structure of another power failure monitoring system provided by an embodiment of the present application. Figure 4 As shown, in Figure 1 or Figure 2 On the basis of the illustrated embodiment, in the power failure monitoring system of this embodiment, the latch unit includes: a latch and an input / output (I / O) expansion chip.
[0072] The first input end of the latch is connected to the output end of the trigger unit, and the first end of the I / O expansion chip is connected to the output end of the latch. The latch is used to latch the output signal of the trigger unit and transmit it to the I / O expansion chip when the trigger unit outputs a high level.
[0073] The second end of the I / O expansion chip is connected to the control unit, and the I / O expansion chip is used to transparently transmit the output signal of the trigger unit to the control unit.
[0074] Optionally, the output end of the I / O expansion chip is connected to the control unit via I 2 C-bus connection.
[0075] In this embodiment, the latch is used to receive the abnormal power-off PG signal output by the trigger unit. Since the enable (Latch Enable, LE) signal of the latch is high level effective, when the output signal of the trigger unit is "1", the latch will capture the output state of the trigger unit, keep the state unchanged and output it to the I / O expansion chip.
[0076] After the I / O expansion chip receives the output signal of the trigger unit latched by the latch, it transmits the signal through the corresponding interface or I 2C bus is transparently transmitted to the control unit.
[0077] The control unit is responsible for receiving and parsing the power status data sent by the I / O expansion chip through I2C. When the control unit receives the abnormal power-off signal of the PG, it responds to the fault according to the abnormal signal. The fault response includes but is not limited to recording the fault log, triggering the alarm mechanism, and executing the emergency power management strategy.
[0078] In the power failure monitoring system of this embodiment, the latch function of the latch is used to latch the output state of the trigger unit when the PG signal is abnormal and keep the state and transmit it to the I / O expansion chip. The I / O expansion chip transmits the output state of the trigger unit to the I / O expansion chip through the I 2 The C bus transparently transmits the output status of the trigger unit to the control unit, ensuring the integrity and originality of the data. The fault handling logic integrated in the control unit automatically responds to faults, reducing manual intervention and improving the maintenance efficiency of the power supply system.
[0079] Optionally, the third terminal of the I / O expansion chip is connected to the second input terminal of the latch.
[0080] The I / O expansion chip is also used to unlock the latch according to the unlock instruction of the control unit.
[0081] Specifically, in order to achieve precise control and synchronization of data transmission and ensure the reliability and stability of the system when processing fast or complex I / O data, in this embodiment, the LE signal of the I / O expansion chip can be directly connected to the LE signal in the latch.
[0082] When the control unit receives the PG abnormal power-off signal, it can send an unlock instruction to the I / O expansion chip. The I / O expansion chip unlocks the latch through the LE signal according to the unlock instruction, so that the latch continues to monitor the output signal of the trigger unit and latches the output state of the trigger unit when the output signal of the trigger unit is at a high level.
[0083] Optionally, the fourth terminal of the I / O expansion chip is connected to the clear terminal CD of the trigger unit.
[0084] The I / O expansion chip is also used to clear the trigger unit according to the clear instruction of the control unit.
[0085] Specifically, when the control unit receives a PG abnormal power-off signal, it can send a reset instruction to the I / O expansion chip. The I / O expansion chip clears the trigger unit through the reset end according to the reset instruction, so that the trigger unit continues to monitor the PG signal and captures the abnormal state of the PG signal when the PG signal is abnormal.
[0086] Figure 5FIG. 1 is a flow chart of a power failure monitoring method provided by an embodiment of the present application. Figure 5 As shown, taking the control unit of the power failure monitoring system in the above embodiment as the execution body, the method of this embodiment may include the following steps:
[0087] S101. Receive an output signal of a trigger unit transmitted by a latch unit.
[0088] In this embodiment, the output signal of the trigger unit is the output state of the trigger unit latched by the latch unit when the PG signal is abnormal.
[0089] S102: respond to a fault according to an output signal of the trigger unit.
[0090] Specifically, when the power supply system is powered on normally, the control unit does not report an error. When the PG signal is abnormal during the operation of the power supply system, the control unit can locate the fault point according to the output signal of the trigger unit. For example, the output signal of the trigger unit is transparently transmitted to the control unit through the I / O expansion chip. Each PG signal corresponds to a different I / O port. The control unit can quickly locate the faulty PG signal through the transparent I / O port.
[0091] The control unit can also clear the trigger unit and unlock the latch unit according to the output signal of the trigger unit.
[0092] Optionally, the control unit may also clear the trigger unit and unlock the latch unit before power-off and when power-on.
[0093] Optionally, the fault response made by the control unit also includes at least one of recording a fault log, triggering an alarm mechanism, and executing an emergency power management strategy.
[0094] The power supply fault monitoring method provided in the present application analyzes the output signal of the latched trigger unit, locates the faulty PG signal and responds to the fault, thereby realizing real-time monitoring and remote management of the power supply fault, and improving the stability and reliability of the power supply system.
[0095] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the above embodiments, a person of ordinary skill in the art should understand that the technical solutions described in the above embodiments can still be modified, or some or all of the technical features can be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A power failure monitoring system, characterized in that: include: A trigger unit, a latch unit and a control unit; The input end of the trigger unit is connected to the power output end, and the trigger unit is used to obtain the state change of the power signal and output a high level when the power signal changes from a high level to a low level; The input end of the latch unit is connected to the output end of the trigger unit, the output end of the latch unit is connected to the input end of the control unit, and the latch unit is used to latch the output signal of the trigger unit and transmit it to the control unit when the trigger unit outputs a high level; The control unit is used to make a fault response according to the output signal of the trigger unit.
2. The power failure monitoring system according to claim 1, characterized in that: The trigger unit comprises a trigger; The clock input terminal of the trigger is connected to the power output terminal, and the trigger is used to output a high level when a low level power signal reaches the clock input terminal.
3. The power failure monitoring system according to claim 2, characterized in that: The trigger is a falling edge trigger, and the input end of the falling edge trigger is connected to the complementary code output end of the falling edge trigger.
4. The power failure monitoring system according to claim 2, characterized in that: The trigger is a rising edge trigger; The trigger unit also includes a NOT gate element, the input end of the NOT gate element is connected to the power output end, the output end of the NOT gate element is connected to the clock input end of the rising edge trigger, and the input end of the rising edge trigger is connected to the complement output end of the rising edge trigger.
5. The power failure monitoring system according to any one of claims 1 to 4, characterized in that: The latch unit comprises: a latch and an input-output expansion chip; The first input end of the latch is connected to the output end of the trigger unit, the first end of the input-output extension chip is connected to the output end of the latch, and the latch is used to latch the output signal of the trigger unit and transmit it to the input-output extension chip when the trigger unit outputs a high level; The second end of the input / output expansion chip is connected to the control unit, and the input / output expansion chip is used to transparently transmit the output signal of the trigger unit to the control unit.
6. The power failure monitoring system according to claim 5, characterized in that: The third terminal of the input-output expansion chip is connected to the second input terminal of the latch; The input / output expansion chip is further used to unlock the latch according to an unlock instruction of the control unit.
7. The power failure monitoring system according to claim 5, characterized in that: The fourth terminal of the input / output expansion chip is connected to the reset terminal of the trigger unit; The input-output expansion chip is also used to clear the trigger unit according to the clear instruction of the control unit.
8. The power failure monitoring system according to claim 5, characterized in that: The output end of the input / output expansion chip is connected to the control unit via I 2 C-bus connection.
9. A power failure monitoring method, characterized in that: A control unit applied to a power failure monitoring system according to any one of claims 1 to 8, wherein the power failure monitoring method comprises: receiving an output signal of the trigger unit transmitted by the latch unit; A fault response is made according to the output signal of the trigger unit.
10. The power failure monitoring method according to claim 9, characterized in that: The step of responding to a fault according to the output signal of the trigger unit comprises: At least one of recording a fault log, triggering an alarm mechanism, and executing an emergency power management strategy.
