A power supply system, control method, and electronic device

By detecting the rate of change of AC power supply, instantaneous fault detection and switching are achieved, solving the problem of power outages in storage servers, ensuring continuous power supply and high reliability of server operation, and avoiding business interruption and data loss.

CN121036309BActive Publication Date: 2026-01-27INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202511573784.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-10-30
Publication Date
2026-01-27
Estimated Expiration
2045-10-30

AI Technical Summary

Technical Problem

The existing power supply system of storage servers cannot provide a continuous and reliable power supply when the external AC power supply is interrupted, and the power failure detection is lagging, which leads to the risk of business interruption and data loss.

Method used

It employs a fuel cell unit, a power supply unit, a power switching device, and a power failure detection unit. It determines a power failure by detecting the rate of change of AC power rather than the voltage amplitude, thereby achieving instantaneous fault detection and switching and ensuring a seamless transition of power from AC mains to fuel cell.

Benefits of technology

It significantly improves the response speed of the power supply system, avoids business interruptions and data loss caused by power outages, provides continuous power assurance, and enhances the reliability of server operation and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121036309B_ABST
    Figure CN121036309B_ABST
Patent Text Reader

Abstract

The application discloses a power supply system, a control method and electronic equipment, and relates to the technical field of power supply. By detecting the voltage change rate of a first alternating current power supply, the power supply source of a server can be switched, and the continuous supply of the direct current power supply of the server is ensured. A power-off detection unit is configured to detect whether the voltage of the first alternating current power supply is within a preset voltage range. Corresponding to two cases of normality and zero crossing, if yes, when the duration of the output voltage is greater than a first preset time, it is determined that the first alternating current power supply is powered off; if no, the voltage change rate of the first alternating current power supply is detected, and when the voltage change rate exceeds a preset threshold, it is determined that the first alternating current power supply is powered off. Meanwhile, the switching of the backup battery can be fast, and the switching speed is much higher than that of a traditional power supply switching mode. The power-off detection unit can identify the abnormality at the moment of power-off, rather than after the voltage decreases to a certain range, and the detection speed is further improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technology, and in particular to a power supply system, control method, and electronic device. Background Technology

[0002] Storage servers require high reliability, meaning they must be able to operate continuously and stably. To achieve this stability, redundancy is necessary across various dimensions. For example, in terms of power supply, a single server is equipped with multiple Power Supply Units (PSUs) to back each other up, ensuring that if one PSU fails, the remaining PSUs can still provide power. Simultaneously, battery backup units (BBUs) are configured so that when the external power supply to the storage server fails, the BBU modules can quickly take over, providing temporary power support to the system and ensuring the server has sufficient time for data processing and saving operations, preventing data loss due to sudden power outages.

[0003] In existing technologies, to prevent power supply failures, storage servers are equipped with PSU redundancy mechanisms to ensure continuous power supply even when a single PSU fails. Simultaneously, BBU modules are used to provide temporary backup power when external AC power fails. However, the PSU redundancy mechanism has an upper limit on the number of PSUs that can fail. The BBU module has two limitations: first, its power is limited, meaning that after an external power outage, the BBU can only support the core components, while other non-essential components still need to be powered down; second, its capacity is limited, only providing power support for a short period and not for long-term operation; furthermore, power outages are delayed, with slow detection speeds, only issuing alarms when the power supply voltage has fallen below a certain value, and failing to issue alarms when the power supply voltage shows a decreasing trend. Summary of the Invention

[0004] This application provides a power supply system, control method, and electronic device to at least solve the problem of ensuring a continuous supply of DC power to the entire server in the event of an interruption of external AC power supply.

[0005] This application provides a power supply system for continuously supplying power to a server. The power supply system includes: a fuel cell unit, a power supply unit, a power switching device, and a power failure detection unit. The input terminal of the power supply unit is electrically connected to a first AC power source. The first input terminal of the power switching device is electrically connected to the fuel cell unit, and the second input terminal is electrically connected to the power supply unit. The output terminal is used to connect to the server. The input terminal of the power failure detection unit is electrically connected to the first AC power source, and the output terminal is electrically connected to the control terminal of the power switching device. The power failure detection unit is configured to detect whether the voltage of the first AC power source is within a preset voltage range. If so, if the duration of the output voltage is greater than a first preset time, it determines that the first AC power source is down and controls the power switching device to connect the first input terminal to the fuel cell unit. Otherwise, it controls the power switching device to connect the second input terminal to the power supply unit. If the voltage of the first AC power source is not within the preset voltage range, it detects the voltage change rate of the first AC power source. If the voltage change rate exceeds a preset threshold, it determines that the first AC power source is down and controls the power switching device to connect the first input terminal to the fuel cell unit. Otherwise, it controls the power switching device to connect the second input terminal to the power supply unit.

[0006] This application also provides a control method for a power supply system, the method comprising: detecting whether the voltage of a first AC power supply is within a preset voltage range; if so, determining that the first AC power supply is de-energized when the duration of the output voltage is greater than a first preset time; controlling a power switching device to connect a first input terminal to a fuel cell unit; otherwise, controlling the power switching device to connect a second input terminal to a power supply unit; if the voltage of the first AC power supply is not within the preset voltage range, detecting the voltage change rate of the first AC power supply, and determining that the first AC power supply is de-energized when the voltage change rate exceeds a preset threshold; controlling the power switching device to connect the first input terminal to the fuel cell unit; otherwise, controlling the power switching device to connect the second input terminal to the power supply unit.

[0007] This application also provides an electronic device, including: a memory for storing a computer program; and a processor for executing the computer program to implement the control method of any of the above-described power supply systems.

[0008] This application also provides a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, it implements the steps of the control method of any of the above-described power supply systems.

[0009] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of any of the above-described power supply system control methods.

[0010] This application determines power failure by detecting the rate of change of the first AC power supply, rather than the traditional voltage amplitude, thereby achieving an instantaneous fault detection and switching mechanism. First, the power failure detection unit detects whether the voltage of the first AC power supply is close to zero-crossing. If so, the duration of the output voltage determines whether a power failure has occurred; otherwise, the rate of change (slope) of the first AC power supply determines whether a power failure has occurred. Specifically, at the initial moment of a fault in the AC mains power, the voltage waveform changes from a smooth sine wave to a sharply dropping shape. This dramatic change is manifested as a sudden increase in the rate of change (slope). The power supply system of this application can sensitively capture this slope change, which is far beyond the normal range, before the voltage drops significantly to the danger threshold, and immediately trigger the power switching device to switch the server load from the mains power side to the fuel cell unit. This makes the response speed of the entire detection and switching process far exceed that of traditional solutions, thereby completely avoiding business interruption, data loss, or hardware damage that may occur due to power outages, and providing continuous power protection for the operation of highly reliable servers. Attached Figure Description

[0011] To more clearly illustrate the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0012] Figure 1 This is a schematic diagram of a power supply system provided in an embodiment of this application;

[0013] Figure 2 This is a schematic diagram of another power supply system provided in an embodiment of this application;

[0014] Figure 3 A waveform diagram for power-off detection provided in an embodiment of this application;

[0015] Figure 4 Another waveform diagram for power-down detection provided in an embodiment of this application;

[0016] Figure 5 This is a schematic diagram of another power supply system provided in an embodiment of this application;

[0017] Figure 6 This is a schematic diagram of a power switching device provided in an embodiment of this application.

[0018] Explanation of reference numerals in the attached figures: 1. Fuel cell unit; 11. Fuel cell; 12. Hydrogen tank; 13. Oxygen tank; 14. Hydrogen valve; 15. Oxygen valve; 2. Power supply unit; 21. Power supply module; 22. Second AND gate logic circuit; 3. Power switching device; 4. Power failure detection unit; 41. Transformer; 42. Rectifier circuit; 43. First detection circuit; 44. Second detection circuit; 45. First AND gate logic circuit; 46. First voltage comparator; 47. Second voltage comparator; 48. Third voltage comparator; 5. Controller; R1. First resistor; R2. Second resistor; R3. Third resistor; C1. First capacitor; C2. Second capacitor; 100. Power supply system; 200. Server. Detailed Implementation

[0019] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the protection scope of this application.

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

[0021] To enable those skilled in the art to better understand the present application, the present application will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0022] In order to prevent power supply failures, existing technologies have equipped storage servers with PSU redundancy mechanisms to ensure continuous power supply when a single PSU fails; at the same time, BBU modules are set up to provide short-term backup power support when external AC power fails.

[0023] Although the server's PSU has a redundancy mechanism and the BBU provides backup power support, there are still limitations. The PSU redundancy mechanism has an upper limit on the number of PSUs that can fail.

[0024] For example, if a single server consumes 6000 watts and uses two 1200-watt PSUs, the maximum number of PSUs that can fail is 1. If more PSUs (e.g., 2) fail, the power supply of the remaining normal PSUs will not be sufficient to meet the overall power consumption requirements of the system.

[0025] For BBU modules, firstly, their power is limited; after an external power failure, the BBU can only support the core components (CPU, M.2 hard drive, etc.) to work, while other non-essential components still need to be powered down. Secondly, their capacity is limited; they can only provide power support for a short period of time and cannot operate for extended periods.

[0026] Meanwhile, existing power-down detection technologies suffer from lag. Traditional designs rely on AC failure signals from the PSU module. When the external AC power input drops below a certain range, the PSU indicates an abnormality in the external power supply to the board management controller via this pin. After a power outage, due to the presence of line energy storage components, the PSU's supply voltage gradually decreases rather than instantly dropping to zero. The system cannot detect the abnormality immediately after the power outage; instead, it waits until the external power supply voltage drops to a certain value before detecting the power failure and taking appropriate measures. Therefore, this detection method is slow, only issuing an alarm when the power supply voltage has already fallen below a certain value, and failing to issue an alarm when the power supply voltage shows a decreasing trend. Furthermore, the time from a power outage to the detection of the power supply voltage falling below a certain value often requires multiple power cycle times.

[0027] Based on this, this application provides a power supply system 100, such as Figure 1 As shown, the power supply system 100, used to continuously power the server 200, includes: a fuel cell unit 1, a power supply unit 2, a power switching device 3, and a power failure detection unit 4.

[0028] The input terminal of the power supply unit 2 is electrically connected to the first AC power source; the first input terminal of the power switching device 3 is electrically connected to the fuel cell unit 1, and the second input terminal is electrically connected to the power supply unit 2; the output terminal is used to electrically connect to the server 200.

[0029] The input terminal of the power failure detection unit 4 is electrically connected to the first AC power supply, and the output terminal is electrically connected to the control terminal of the power switching device 3.

[0030] The power failure detection unit 4 is configured to detect whether the voltage of the first AC power supply is within a preset voltage range. If so, when the duration of the output voltage is greater than the first preset time, it is determined that the first AC power supply is powered off; and the power switching device 3 is controlled to connect the first input terminal to the fuel cell unit 1; otherwise, the power switching device 3 is controlled to connect the second input terminal to the power supply unit 2.

[0031] If the voltage of the first AC power supply is not within the preset voltage range, the power failure detection unit 4 detects the voltage change rate of the first AC power supply, and when the voltage change rate exceeds the preset threshold, it determines that the first AC power supply is out of power, and controls the power switching device 3 to connect the first input terminal to the fuel cell unit 1; otherwise, it controls the power switching device 3 to connect the second input terminal to the power supply unit 2.

[0032] Traditional power failure detection may only determine a power failure when the voltage drops to 80% of the rated value, for example, from 220V to 176V, a process that can take several milliseconds. This solution, however, detects the rate of voltage drop.

[0033] For example, when the mains power drops from 220V to 180V within 100 microseconds due to a fault, the rate of voltage change (slope) will far exceed the maximum slope of a normal sine wave. This system can detect a power outage and issue a switching command as soon as the voltage drops to 210V, reducing the entire detection, judgment, and switching time from milliseconds to microseconds, thus ensuring that the server 200 terminals experience virtually no voltage fluctuations.

[0034] In some special cases, such as at zero crossings, the slope change is not obvious, making it impossible to determine whether there is a power outage. Therefore, a time range can be defined. For example, if the voltage signal of the first AC power supply is a sine wave signal, a signal with one cycle can be divided into a positive half-cycle and a negative half-cycle. The voltage change rate can be detected when the voltage peak value is greater than half of the positive half-cycle and less than half of the negative half-cycle. The voltage peak value is close to zero and can be used to detect zero crossings. The time corresponding to the voltage peak value is less than half of the positive half-cycle and greater than half of the negative half-cycle is the first preset time. If the voltage output by the power outage detection unit 4 is greater than the first preset time, it indicates that the power supply system has experienced a power outage; otherwise, the power supply system is working normally.

[0035] This application determines power failure by detecting the rate of change of the first AC power supply, rather than the traditional voltage amplitude, thereby achieving an instantaneous fault detection and switching mechanism. First, the power failure detection unit detects whether the voltage of the first AC power supply is close to zero-crossing. If so, the duration of the output voltage determines whether a power failure has occurred; otherwise, the rate of change (slope) of the first AC power supply determines whether a power failure has occurred. Specifically, at the initial moment of a fault in the AC mains power, the voltage waveform changes from a smooth sine wave to a sharply dropping shape. This dramatic change is manifested as a sudden increase in the rate of change (slope). The power supply system of this application can sensitively capture this slope change, which is far beyond the normal range, before the voltage drops significantly to the danger threshold, and immediately trigger the power switching device to switch the server load from the mains power side to the fuel cell unit. This makes the response speed of the entire detection and switching process far exceed that of traditional solutions, thereby completely avoiding business interruption, data loss, or hardware damage that may occur due to power outages, and providing continuous power protection for the operation of highly reliable servers.

[0036] like Figure 2 As shown, the power failure detection unit 4 includes: a transformer 41, a rectifier circuit 42, and a first detection circuit 43.

[0037] The input terminal of transformer 41 is electrically connected to the first AC power supply, and the output terminal of transformer 41 is electrically connected to the input terminal of rectifier circuit 42; the first output terminal of rectifier circuit 42 is electrically connected to the first terminal of first detection circuit 43; the second terminal of first detection circuit 43 is connected to the output terminal of power failure detection unit 4.

[0038] The transformer 41 is configured to step down the first AC signal output from the first AC power supply and convert it into a second AC signal; the rectifier circuit 42 is configured to convert the second AC signal into a first DC signal.

[0039] The first detection circuit 43 is configured to convert the first DC signal into a second DC signal and detect whether the voltage value of the second DC signal is greater than the voltage value of the first reference voltage; if yes, it outputs the first voltage signal; if no, it outputs the second voltage signal; wherein the voltage value of the first voltage signal is less than the voltage value of the second voltage signal.

[0040] The power switching device 3 is configured to connect its first input terminal to the fuel cell unit 1 when it receives a first voltage signal, and to connect its second input terminal to the power supply unit 2 when it receives a second voltage signal.

[0041] For example, the first AC power supply is 220V AC mains power, and the step-down ratio of transformer 41 is 94:1, which converts the 220V first AC signal into a second AC signal with an effective value of 3.3V.

[0042] The rectifier circuit 42 is configured to convert a second AC signal with an effective value of 3.3V into a first DC signal. That is, the sine wave signal is converted into pulsating DC after passing through the rectifier bridge.

[0043] When the mains voltage is normal, the output voltage of the rectifier circuit 42 exhibits a sinusoidal (absolute value) pattern. Since the slope (derivative) of a sinusoidal signal is a cosine signal, the slope of the signal will not exceed a certain value, the maximum value of which is denoted as k. Figure 3 As shown, if a power outage suddenly occurs at time td, compared to the normal waveform (the sine dashed line in the figure), the voltage change rate of the signal will increase sharply due to the rapid voltage drop after the power outage, making the corresponding second DC signal greater than the voltage value of the first reference voltage; thus, the first voltage signal, i.e., a low level, is output. When the power switching device 3 receives the low level, it controls the first input terminal of the power switching device 3 to connect with the fuel cell unit 1; if there is no power outage, the voltage change rate will remain unchanged, making the corresponding second DC signal less than the voltage value of the first reference voltage; thus, the second voltage signal, i.e., a high level, is output; when the power switching device 3 receives the high level, it controls the second input terminal of the power switching device 3 to connect with the power supply unit 2.

[0044] The power failure detection unit 4 performs safe voltage reduction and electrical isolation through transformer 41, and then converts the AC signal into a pulsating DC signal representing the mains power status through rectifier circuit 42. Then, the first detection circuit 43 converts the pulsating DC signal into a second DC signal proportional to the voltage change rate (slope) through a specific signal processing method, and realizes the instantaneous judgment of the mains power status by comparing it with the first reference voltage. In this way, the power supply system 100 can sensitively capture the sharp drop in voltage waveform within the first few milliseconds or even microseconds of the power failure and immediately output the first voltage signal to trigger the switch. Its response speed is far superior to the AC invalid detection mechanism based on voltage amplitude drop in the traditional PSU, thus realizing a truly seamless power switch from mains power to fuel cell 11 for server 200, completely avoiding the risk of business interruption and data loss.

[0045] In some embodiments, such as Figure 2 As shown, the first detection circuit 43 includes: a first voltage comparator 46, a first resistor R1, and a first capacitor C1.

[0046] The first end of the first resistor R1 is the first end of the first detection circuit 43. The second end of the first resistor R1 is electrically connected to the first end of the first capacitor C1 and is also electrically connected to the input end of the first voltage comparator 46.

[0047] The second terminal of the first capacitor C1 is electrically connected to the second output terminal of the rectifier circuit 42, and is also electrically connected to the ground terminal.

[0048] The first resistor R1 and the first capacitor C1 are configured to convert the first DC signal into a second DC signal.

[0049] The reference terminal of the first voltage comparator 46 is used to receive the first reference voltage; the output terminal of the first voltage comparator 46 is the second terminal of the first detection circuit 43.

[0050] In some embodiments, the slope corresponding to the first reference voltage is 1.1 times the maximum value of the slope corresponding to the first DC signal.

[0051] Reference Figure 2 and Figure 3 It can be seen that at time td, due to the power outage, the rate of voltage change suddenly increases. Since the voltage across the first capacitor C1 cannot change abruptly, according to Kirchhoff's voltage law, this sudden change is entirely superimposed across the first resistor R1, meaning the voltage across the first resistor R1 changes abruptly. According to Ohm's law, the voltage across the first resistor R1 is proportional to the current; therefore, the current across the first resistor R1 will change abruptly, i.e., the abrupt voltage produces abrupt current.

[0052] Since the first resistor R1 and the first capacitor C1 are connected in series and both have the same current, the current in the first capacitor C1 will change abruptly. According to the characteristics of a capacitor, the capacitor voltage is proportional to the integral of the current over time. At this time, the sudden current flowing through the first capacitor C1 will generate a large voltage across its terminals. If this voltage exceeds the reference voltage of the first voltage comparator 46, i.e., the first reference voltage, the first voltage comparator 46 will output a low level, indicating that the external power supply has been lost.

[0053] By properly setting the reference voltage value of the first voltage comparator 46 to approximately 1.1kΩ, an anomaly can be detected at the moment of power failure.

[0054] In some embodiments, such as Figure 2 As shown, the power-down detection unit 4 also includes a second detection circuit 44 and a first AND gate logic circuit 45.

[0055] The first output terminal of the rectifier circuit 42 is also electrically connected to the first terminal of the second detection circuit 44.

[0056] The second terminal of the first detection circuit 43 is electrically connected to the second input terminal of the first AND gate logic circuit 45, and the second terminal of the second detection circuit 44 is electrically connected to the first input terminal of the first AND gate logic circuit 45; the output terminal of the first AND gate logic circuit 45 is the output terminal of the power-down detection unit 4.

[0057] The second detection circuit 44 is configured to output a third voltage signal when the voltage value of the first DC signal is less than the voltage value of the second reference voltage, and the duration is less than or equal to the first preset time; and convert the third voltage signal into a third DC signal, and output the third voltage signal to the first input terminal of the first AND gate logic circuit 45 when the voltage value of the third DC signal is less than the third reference voltage value.

[0058] The second detection circuit 44 is configured to output a fourth voltage signal when the voltage value of the first DC signal is greater than the voltage value of the second reference voltage, and the duration is greater than the first preset time; and to convert the fourth voltage signal into a fourth DC signal. When the voltage value of the fourth DC signal is greater than the voltage value of the third reference voltage, the fourth voltage signal is output to the first input terminal of the first AND gate logic circuit 45.

[0059] The voltage value of the third voltage signal is greater than the voltage value of the fourth voltage signal.

[0060] It should be noted that the second detection circuit 44 is suitable for zero-crossing detection, see reference. Figure 3 and Figure 4 It can be seen that if the power failure occurs at the zero-crossing point of the voltage, such as t0, t1, t2, t4, t5, the first detection circuit 43 mentioned above will fail, because after the power failure, the voltage slope quickly returns to zero, and the output signal of the differentiating circuit is difficult to reach 1.1k.

[0061] Specifically, the first detection circuit 43, based on the voltage change rate, can instantaneously respond to any drastic voltage drop; while the second detection circuit 44 operates in the special case of zero crossing. It determines whether a power outage has occurred by monitoring the duration for which the voltage amplitude is lower than the second reference voltage, and then by monitoring the duration for which the voltage amplitude is higher than the third reference voltage. Thus, it can determine whether the first AC power supply has failed under the special condition of zero crossing. If a power outage occurs, the first input terminal of the power switching device 3 is connected to the fuel cell unit 1; if no power outage occurs, the second input terminal of the power switching device 3 is connected to the power supply unit 2. This ensures a continuous DC power supply to the server 200 system even when the external AC power supply is interrupted. Furthermore, there is no need to worry about insufficient current or insufficient power supply time; it can provide high current and long-term power supply without the user noticing, further enhancing the user experience.

[0062] In some embodiments, such as Figure 2 As shown, the second detection circuit 44 includes: a second voltage comparator 47, a third voltage comparator 48, a second resistor R2, and a second capacitor C2.

[0063] The input terminal of the second voltage comparator 47 is the first terminal of the second detection circuit 44, and the reference terminal of the second voltage comparator 47 is used to receive the second reference voltage; the output terminal of the second voltage comparator 47 is electrically connected to the first terminal of the second resistor R2.

[0064] The second end of the second resistor R2 is electrically connected to the first end of the second capacitor C2, and is also electrically connected to the input end of the third voltage comparator 48. The second end of the second capacitor C2 is electrically connected to the ground terminal.

[0065] The reference terminal of the third voltage comparator 48 is used to receive the third reference voltage; the output terminal of the third voltage comparator 48 is the second terminal of the second detection circuit 44.

[0066] In some embodiments, the voltage value of the second reference voltage is 1 / 2 of the maximum value of the first DC signal; the voltage value of the third reference voltage is 1.1 times the voltage across the second capacitor C2.

[0067] For example, the input signal of the second detection circuit 44 also comes from the first DC signal, and the reference voltage of the second voltage comparator 47 is set to 1.65V, which is half of the effective value of the input voltage.

[0068] The specific calculation method is as follows: the effective value of the mains power is 220V. After being stepped down by transformer 41 at a ratio of 94:1, the effective value is 2.34V, the peak value is 3.31V, and half of the peak value is about 1.65V.

[0069] If the AC power supply is normal, let the time for the second voltage comparator 47 to output a high level be the first preset time t. Then, the first preset time t will not exceed twice arcsin0.5, that is, t = 10 / 3 ms = 3.33 ms. 20 ms is the cycle of the power frequency AC current. Figure 4 The time when the voltage reaches half of the peak value (10ms) is 1.67ms. When the second voltage comparator 47 outputs a high level, it will charge the second capacitor C2 through the second resistor R2. The formula for calculating the voltage Uc across the second capacitor C2 during charging in the zero initial state is:

[0070] (1)

[0071] Substituting t=6.67ms into formula (1), the voltage of the second capacitor C2 is calculated and denoted as Uc2. The reference voltage of the third voltage comparator 48 is set to 1.1Uc2. Thus, when the AC power supply is normal, because the capacitor voltage can only reach Uc2 but cannot reach 1.1Uc2, the third voltage comparator 48 will not output a low level (when the input voltage of the third voltage comparator 48 is greater than the third reference voltage, it will output a low level), that is, it will output the third voltage signal. However, when the AC power supply fails abnormally at the zero-crossing point, the input voltage of the second voltage comparator 47, that is, the first DC signal, will be lower than its second reference voltage, and the duration will inevitably exceed 6.67ms. Once this time is exceeded, the voltage across the second capacitor C2, that is, the fourth DC signal (the input voltage of the third voltage comparator 48), will exceed the third reference voltage of the third voltage comparator 48, and the third voltage comparator 48 will output a low level, that is, the fourth voltage signal.

[0072] It should be noted that the reference voltage of the second voltage comparator 47 mentioned above is set to 1.65V, which is half of the effective value of the input voltage. This is variable and can be set according to specific circumstances. It can also be 1 / 3 of the effective value of the input voltage. This is only an illustration of one embodiment.

[0073] In summary, this application provides the output logic state of a dual judgment circuit based on voltage slope anomaly detection and zero-crossing detection. When a power failure occurs near the voltage zero-crossing point, regardless of whether the slope detection is valid, a low level (logic 0) can be output through the first AND gate logic circuit, thereby indicating a power failure. Under normal conditions without power failure, the outputs of each detection circuit change alternately, and finally the first AND gate logic circuit 45 outputs a stable high level (logic 1), indicating that the power supply is normal. The power supply system 100 effectively avoids misjudgment through the dual verification mechanism.

[0074] In some embodiments, such as Figure 5 As shown, the power supply unit 2 includes multiple power supply modules 21 and a second AND gate logic circuit 22.

[0075] The control terminals of the multiple power supply modules 21 are electrically connected to the second AND gate logic circuit 22; the input terminals of the multiple power supply modules 21 are electrically connected to the first AC power supply.

[0076] The power supply module 21 is configured to transmit a fifth voltage signal to the second AND gate logic circuit 22 during normal power supply.

[0077] When multiple power supply modules 21 are all supplying power normally, the second AND gate logic circuit 22 is configured to output a sixth voltage signal to the power switching device 3 or the server 200.

[0078] The power switching device 3 is configured to receive a sixth voltage signal and control the second input terminal of the power switching device 3 to connect with the power supply unit 2.

[0079] By using multiple power supply modules 21 and a second AND gate logic circuit 22, the power supply system 100 prioritizes using mains power only when all power supply modules 21 are functioning normally. This greatly improves the reliability of the front-end power supply and avoids the problem of the server 200 failing to work due to the failure of a single power supply module 21.

[0080] In some embodiments, such as Figure 5 As shown, it also includes: controller 5, which is installed on server 200 and connected to power switching device 3.

[0081] The controller 5 is configured to receive control signals and connect the first input terminal of the power switching device 3 to the fuel cell unit 1, or connect the second input terminal to the power supply unit 2.

[0082] An external controller 5 was introduced, which enables the power switching device 3 to not only respond automatically to power outages, but also to perform manual or programmed intelligent switching based on server load and operation and maintenance policies.

[0083] In some embodiments, such as Figure 5 As shown, fuel cell unit 1 includes: fuel cell 11, hydrogen tank 12 and oxygen tank 13.

[0084] The hydrogen tank 12 is connected to the first input terminal of the fuel cell 11 through the hydrogen valve 14, and the oxygen tank 13 is connected to the second input terminal of the fuel cell 11 through the oxygen valve 15.

[0085] The controller 5 is connected to the control terminal of the hydrogen valve 14 and the control terminal of the oxygen valve 15, and is used to control the amount of hydrogen and oxygen input.

[0086] By extending control to the fuel supply valve of fuel cell 11, on-demand energy supply is achieved, fuel utilization efficiency is improved, and rapid and stable start-up of fuel cell 11 is ensured.

[0087] For example, during off-peak hours at night, maintenance personnel can send instructions through the backend software to actively switch to fuel cell 11 for power supply testing while simultaneously cutting off the mains power, so that the server 200's operations are unaffected; or, when the system automatically switches to fuel cell 11, controller 5 precisely controls the input of hydrogen and oxygen based on the real-time power of server 200 to avoid fuel waste and ensure that the output of fuel cell 11 matches the load and operates stably.

[0088] In some embodiments, such as Figure 6As shown, the power supply system 100 also includes a third resistor R3.

[0089] The first end of the third resistor R3 is electrically connected to the control terminal of the power switching device 3, and the second end of the third resistor R3 is electrically connected to the ground terminal.

[0090] The third resistor R3 is a pull-down resistor, which ensures that the control terminal of the power switching device 3 is in a defined low-level state, preventing the power switching device 3 from malfunctioning and enhancing the electrical stability and anti-interference capability of the power supply system 100.

[0091] This application also provides a control method for a power supply system, the control method including:

[0092] S1. Detect whether the voltage of the first AC power supply is within the preset voltage range.

[0093] S2. If so, if the duration of the output voltage is greater than the first preset time, it is determined that the first AC power supply is de-energized.

[0094] S3. Control the power switching device 3 to connect the first input terminal to the fuel cell unit 1; otherwise, control the power switching device 3 to connect the second input terminal to the power supply unit 2.

[0095] S4. If the voltage of the first AC power supply is not within the preset voltage range, the voltage change rate of the first AC power supply is detected, and when the voltage change rate exceeds the preset threshold, it is determined that the first AC power supply is de-energized.

[0096] S5. Control the power switching device 3 to connect the first input terminal to the fuel cell unit 1; otherwise, control the power switching device 3 to connect the second input terminal to the power supply unit 2.

[0097] The control method provided in this application uses the voltage change rate of the first AC power supply in real time as the power failure criterion. It can identify the abnormality and immediately trigger the switching action when the voltage amplitude has not dropped significantly at the moment the mains power failure occurs, so that the power supply system can seamlessly switch from mains power supply to fuel cell power supply. Compared with the traditional detection scheme that relies on voltage amplitude drop, this method further shortens the detection response time and avoids business interruption, data loss or hardware damage to the server due to power interruption. It provides a key method to ensure that the server can operate without interruption.

[0098] Control methods also include:

[0099] S11. Step down the first AC signal output from the first AC power supply and convert it into a second AC signal.

[0100] S12. Convert the second AC signal into the first DC signal.

[0101] S13. Convert the first DC signal into a second DC signal and detect whether the voltage value of the second DC signal is greater than the voltage value of the first reference voltage.

[0102] S14. If so, output the first voltage signal.

[0103] S15. If not, output the second voltage signal.

[0104] Wherein, the voltage value of the first voltage signal is less than the voltage value of the second voltage signal;

[0105] S16. When the first voltage signal is received, the first input terminal of the control power switching device 3 is connected to the fuel cell unit 1.

[0106] S17. When the second voltage signal is received, the second input terminal of the control power switching device 3 is connected to the power supply unit 2.

[0107] Control methods also include:

[0108] S21. When the voltage value of the first DC signal is less than the voltage value of the second reference voltage, output a third voltage signal, and the duration is less than or equal to the first preset time.

[0109] S22. Convert the third voltage signal into a third DC signal. When the voltage value of the third DC signal is less than the third reference voltage value, output the third voltage signal to the first input terminal of the first AND gate logic circuit 45.

[0110] S23. When the voltage value of the first DC signal is detected to be greater than the voltage value of the second reference voltage, a fourth voltage signal is output, and the duration is greater than the first preset time.

[0111] S24. Convert the fourth voltage signal into a fourth DC signal. When the voltage value of the fourth DC signal is greater than the voltage value of the third reference voltage, output the fourth voltage signal to the first input terminal of the first AND gate logic circuit 45.

[0112] In summary, steps S11 to S17 achieve rapid power failure detection and switching based on voltage change rate. At the same time, the zero-crossing duration verification mechanism introduced in steps S21 to S24 not only retains the speed advantage of slope detection but also detects power failures in special cases. Thus, while ensuring seamless switching of server power supply, it significantly reduces the risk of system malfunction and improves the intelligence and reliability of overall power supply control.

[0113] Embodiments of this application also provide an electronic device, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the steps in any of the above-described embodiments of the control method for a power supply system.

[0114] Embodiments of this application also provide a computer-readable storage medium storing a computer program, wherein the computer program is configured to execute the steps in any of the above-described embodiments of the control method for a power supply system.

[0115] In one exemplary embodiment, the aforementioned computer-readable storage medium may include, but is not limited to, various media capable of storing computer programs, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard disk, magnetic disk, or optical disk.

[0116] Embodiments of this application also provide a computer program product, which includes a computer program that, when executed by a processor, implements the steps in any of the above-described power supply system control method embodiments.

[0117] Embodiments of this application also provide another computer program product, including a non-volatile computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps in any of the above embodiments of the control method for accessing a solid-state drive based on an improved integrated circuit bus.

[0118] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0119] The power supply system, control method, electronic device, storage medium, and computer program product provided in this application have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the embodiments above are only intended to help understand the methods and core ideas of this application. It should be noted that those skilled in the art can make various improvements and modifications to this application without departing from its principles, and these improvements and modifications also fall within the protection scope of the claims of this application.

Claims

1. A power supply system, characterized in that, Used to continuously power the server, including: Fuel cell unit; The power supply unit has its input terminal electrically connected to the first AC power source. The power switching device has a first input terminal electrically connected to the fuel cell unit, a second input terminal electrically connected to the power supply unit, and an output terminal for electrically connecting to the server. The power failure detection unit has its input terminal electrically connected to the first AC power supply and its output terminal electrically connected to the control terminal of the power switching device. The power failure detection unit is configured to detect whether the voltage of the first AC power supply is within a preset voltage range. If so, when the duration of the output voltage is greater than a first preset time, it determines that the first AC power supply is powered off; and controls the power switching device to connect the first input terminal to the fuel cell unit; otherwise, it controls the power switching device to connect the second input terminal to the power supply unit. If the voltage of the first AC power supply is not within the preset voltage range, the voltage change rate of the first AC power supply is detected, and when the voltage change rate exceeds a preset threshold, it is determined that the first AC power supply is de-energized, and the power switching device is controlled to connect the first input terminal to the fuel cell unit; otherwise, the power switching device is controlled to connect the second input terminal to the power supply unit. The power failure detection unit includes: a transformer, a rectifier circuit, and a first detection circuit; The input terminal of the transformer is electrically connected to the first AC power supply, and the output terminal of the transformer is electrically connected to the input terminal of the rectifier circuit; the first output terminal of the rectifier circuit is electrically connected to the first terminal of the first detection circuit; the second terminal of the first detection circuit is the output terminal of the power failure detection unit. The transformer is configured to step down the first AC signal output from the first AC power supply and convert it into a second AC signal; the rectifier circuit is configured to convert the second AC signal into a first DC signal; The first detection circuit is configured to convert the first DC signal into a second DC signal and detect whether the voltage value of the second DC signal is greater than the voltage value of the first reference voltage; if yes, then output the first voltage signal; if no, then output the second voltage signal; wherein the voltage value of the first voltage signal is less than the voltage value of the second voltage signal. The power switching device is configured to connect its first input terminal to the fuel cell unit when it receives the first voltage signal, and to connect its second input terminal to the power supply unit when it receives the second voltage signal. The power supply unit includes multiple power supply modules and a second AND gate logic circuit; The control terminals of the plurality of power supply modules are electrically connected to the second AND gate logic circuit; the input terminals of the plurality of power supply modules are electrically connected to the first AC power supply. The power supply module is configured to transmit a fifth voltage signal to the second AND gate logic circuit during normal power supply. When all of the power supply modules are supplying power normally, the second AND gate logic circuit is configured to output a sixth voltage signal to the power switching device or the server; The power switching device is configured to receive the sixth voltage signal and control the second input terminal of the power switching device to connect to the power supply unit.

2. The power supply system according to claim 1, characterized in that, The power failure detection unit further includes: a second detection circuit and a first AND gate logic circuit; The first output terminal of the rectifier circuit is also electrically connected to the first terminal of the second detection circuit. The second terminal of the first detection circuit is electrically connected to the second input terminal of the first AND gate logic circuit, and the second terminal of the second detection circuit is electrically connected to the first input terminal of the first AND gate logic circuit; the output terminal of the first AND gate logic circuit is the output terminal of the power failure detection unit. The second detection circuit is configured to output a third voltage signal when the voltage value of the first DC signal is less than the voltage value of the second reference voltage, and the duration is less than or equal to the first preset time; and to convert the third voltage signal into a third DC signal, and when the voltage value of the third DC signal is less than the third reference voltage value, to output the third voltage signal to the first input terminal of the first AND gate logic circuit. The second detection circuit is configured to output a fourth voltage signal when the voltage value of the first DC signal is greater than the voltage value of the second reference voltage, and the duration of the fourth voltage signal is greater than the first preset time; and to convert the fourth voltage signal into a fourth DC signal, and to output the fourth voltage signal to the first input terminal of the first AND gate logic circuit when the voltage value of the fourth DC signal is greater than the voltage value of the third reference voltage. The voltage value of the third voltage signal is greater than the voltage value of the fourth voltage signal.

3. The power supply system according to claim 2, characterized in that, The first detection circuit includes: a first voltage comparator, a first resistor, and a first capacitor; The first end of the first resistor is the first end of the first detection circuit, and the second end of the first resistor is electrically connected to the first end of the first capacitor and also electrically connected to the input end of the first voltage comparator. The second terminal of the first capacitor is electrically connected to the second output terminal of the rectifier circuit and also electrically connected to the ground terminal; The first resistor and the first capacitor are configured to convert the first DC signal into the second DC signal; The reference terminal of the first voltage comparator is used to receive the first reference voltage; the output terminal of the first voltage comparator is the second terminal of the first detection circuit.

4. The power supply system according to claim 3, characterized in that, The second detection circuit includes: a second voltage comparator, a third voltage comparator, a second resistor, and a second capacitor; The input terminal of the second voltage comparator is the first terminal of the second detection circuit, and the reference terminal of the second voltage comparator is used to receive the second reference voltage; the output terminal of the second voltage comparator is electrically connected to the first terminal of the second resistor. The second end of the second resistor is electrically connected to the first end of the second capacitor and also electrically connected to the input end of the third voltage comparator; the second end of the second capacitor is electrically connected to the ground terminal. The reference terminal of the third voltage comparator is used to receive the third reference voltage; the output terminal of the third voltage comparator is the second terminal of the second detection circuit.

5. The power supply system according to claim 1, characterized in that, Also includes: A controller is mounted on the server and connected to the power switching device; The controller is configured to receive control signals and control the first input terminal of the power switching device to be connected to the fuel cell unit, or the second input terminal to be connected to the power supply unit. The fuel cell unit includes: a fuel cell, a hydrogen tank, and an oxygen tank; The hydrogen tank is connected to the first input terminal of the fuel cell via a hydrogen valve, and the oxygen tank is connected to the second input terminal of the fuel cell via an oxygen valve. The controller is connected to the control terminal of the hydrogen valve and the control terminal of the oxygen valve, and is used to control the hydrogen input and oxygen input.

6. The power supply system according to claim 1, characterized in that, Also includes: Third resistor; The first end of the third resistor is electrically connected to the control terminal of the power switching device, and the second end of the third resistor is electrically connected to the ground terminal.

7. A control method for a power supply system, characterized in that, Applied to a power supply system as described in any one of claims 1 to 6, the method comprises: Detect whether the voltage of the first AC power supply is within the preset voltage range; If the duration of the output voltage is greater than the first preset time, it is determined that the first AC power supply is de-energized; The power switching device is controlled to connect the first input terminal to the fuel cell unit; otherwise, the power switching device is controlled to connect the second input terminal to the power supply unit. If the voltage of the first AC power supply is not within the preset voltage range, the voltage change rate of the first AC power supply is detected, and when the voltage change rate exceeds a preset threshold, it is determined that the first AC power supply is de-energized. The power switching device is controlled to connect the first input terminal to the fuel cell unit; otherwise, the power switching device is controlled to connect the second input terminal to the power supply unit.

8. An electronic device, characterized in that, include: Memory, used to store computer programs; A processor, configured to implement the steps of the control method for the power supply system as described in claim 7 when executing the computer program.

Citation Information

Patent Citations

  • Ac power supply apparatus and methods providing variable voltage waveforms for load transient conditions

    CN103843226A

  • Energy storage system grid-connected and off-grid switching system and switching method

    CN112713645A