Switch power source, bleeder method, and storage medium and program product
By introducing intelligent switching bleeder circuit units and non-bleeder circuit units into the switching power supply, the problem of high power consumption of the bleeder resistor during normal operation is solved, achieving efficient energy utilization and safe discharge.
Patent Information
- Application Number
- PCT/CN2026/098629
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2025-05-22
- Filing Date
- 2026-05-22
- Publication Date
- 2026-11-26
AI Technical Summary
The bleeder resistor consumes too much power when the switching power supply is working normally, which leads to a decrease in the overall efficiency of the power supply.
By introducing a bleeder circuit unit and a non-bleeder circuit unit into the switching power supply, the processing unit intelligently switches according to the power supply state, disconnecting or activating the bleeder circuit unit to ensure that the bleeder circuit is shut down under normal power supply conditions and is only activated during abnormal power outages, thus achieving rapid and safe discharge.
It significantly reduces the continuous power consumption of the system, improves the energy utilization efficiency of the switching power supply, ensures safe discharge after power failure, and solves the problem of high power consumption of the bleeder resistor during normal operation.
Smart Images

Figure CN2026098629_26112026_PF_FP_ABST
Abstract
Description
Switching power supplies, discharge methods, storage media and program products
[0001] Cross-references to related applications
[0002] This application claims priority to Chinese Patent Application No. 202510664644.9, filed on May 22, 2025, entitled "Switching Power Supply, Discharge Method, Storage Medium and Program Product", the entire contents of which are incorporated herein by reference. Technical Field
[0003] This application relates to the field of power supply technology, and in particular to a switching power supply, a discharge method, a storage medium, and a program product. Background Technology
[0004] Switching power supplies, as efficient and stable power conversion devices, are widely used in various electronic devices. In the design of switching power supplies, input filter capacitors (such as safety capacitors, also known as X capacitors) are used to suppress electromagnetic interference (EMI). However, these capacitors may store high voltages after power is turned off, posing a potential safety risk to users and equipment. To solve this problem, a bleeder resistor is usually added to the circuit. The function of the bleeder resistor is to quickly release the charge stored in the capacitor after the power is turned off, ensuring that the capacitor can quickly discharge to a safe voltage level after power failure, thus ensuring equipment safety and avoiding the risk of electric shock.
[0005] However, in order to meet safety requirements (such as IEC 62368-1), the resistance value of the bleeder resistor is usually low, which causes it to consume too much power during normal operation and reduce the overall efficiency of the power supply. Summary of the Invention
[0006] This application provides a switching power supply, a bleed method, a storage medium, and a program product to at least solve the problem in the related art where the bleed resistor consumes too much power during normal operation of the power supply, resulting in a decrease in the overall efficiency of the power supply.
[0007] According to a first aspect, this application provides a switching power supply, comprising: an input filter capacitor connected in parallel between the live wire and the neutral wire of an AC source for suppressing electromagnetic interference; a discharge circuit unit connected in parallel across the input filter capacitor for releasing the charge stored in the input filter capacitor when the switching power supply is in an abnormal power-off state, thereby ensuring that the input filter capacitor discharges to a safe voltage level within a specified time range; a non-discharge circuit unit for acquiring the output voltage of the AC source; and a processing unit for disconnecting the discharge circuit unit when the output voltage of the AC source indicates that the switching power supply is in a normal power supply state.
[0008] According to the second aspect, this application also provides a discharge method, comprising: acquiring the output voltage of an AC source through a non-discharge circuit unit; disconnecting the discharge circuit unit when the output voltage of the AC source indicates that the switching power supply is in a normal power supply state; the discharge circuit unit is connected in parallel across the input filter capacitor to release the charge stored in the input filter capacitor when the switching power supply is in an abnormal power-off state, so as to ensure that the input filter capacitor discharges to a safe voltage level within a specified time range; and the input filter capacitor is connected in parallel between the live wire and the neutral wire of the AC source to suppress electromagnetic interference.
[0009] According to a third aspect, this application also provides an electronic device, comprising: a memory for storing a computer program; and a processor for implementing the steps of any of the above-described discharge methods when executing the computer program.
[0010] According to the fourth aspect, this application also provides a computer non-volatile readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the steps of any of the above-described discharge methods.
[0011] According to the fifth aspect, 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 venting methods.
[0012] Through this application, the processing unit intelligently switches between the bleeder circuit unit and the non-bleeder circuit unit according to the state of the switching power supply. When the switching power supply is in normal power supply mode, the bleeder circuit unit is disconnected, so that the loss of the bleeder circuit unit is zero. It also realizes the complete shutdown of the bleeder circuit when the power supply is turned on, and is only activated at the moment of power failure. This greatly reduces the continuous power consumption of the system and solves the problem in related technologies that the bleeder resistor consumes too much power when the power supply is working normally, which leads to a decrease in the overall efficiency of the power supply. At the same time, it ensures safe discharge after power failure and improves the energy utilization efficiency of the switching power supply. Attached Figure Description
[0013] 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.
[0014] Figure 1 is a structural diagram of a discharge circuit in a related art provided in an embodiment of this application.
[0015] Figure 2 is a structural diagram of a switching power supply provided in an embodiment of this application.
[0016] Figure 3 is a structural diagram of another switching power supply provided in an embodiment of this application.
[0017] Figure 4 is a structural diagram of another switching power supply provided in an embodiment of this application.
[0018] Figure 5 is a structural diagram of another switching power supply provided in an embodiment of this application.
[0019] Figure 6 is a structural diagram of the voltage sampling unit and processing unit provided in the embodiments of this application.
[0020] Figure 7 is a circuit diagram of a switching power supply provided in an embodiment of this application.
[0021] Figure 8 is a discharge flowchart provided in an embodiment of this application. Detailed Implementation
[0022] 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.
[0023] 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.
[0024] Glossary: IEC 62368 is a safety standard published by the International Electrotechnical Commission (IEC) for audio, video, information and communication technology equipment, as well as commercial and office machines. This standard aims to provide a unified safety framework for these types of products to ensure their safety during design, manufacturing, and use.
[0025] Switching power supplies, as efficient and stable power conversion devices, are widely used in various electronic devices. In the design of switching power supplies, input filter capacitors (such as safety capacitors, also known as X capacitors) are used to suppress electromagnetic interference (EMI). However, these capacitors may store high voltages after power failure, posing a potential safety risk to users and equipment. Therefore, safety regulations have mandatory requirements for the residual voltage discharge to a safe voltage and the discharge time after power failure of switching power supplies. For example, the international standard (IEC 62368-1:2023Ed.4) requires the following: within 1 second after power failure, the voltage at accessible terminals must drop below 60V (the requirement was shortened from 2 seconds to 1 second after the 2024 update); within 10 seconds after power failure, the voltage must decay to below 30V (medical equipment has stricter requirements, requiring a drop to 30V in <5 seconds); while the Chinese national standard (GB 4943.1-2022) introduces a "dual energy-time judgment": when the stored energy of the capacitor is >0.5J, the energy must be discharged to <0.1J within 5 seconds.
[0026] To solve this problem, a bleeder resistor is usually added to the circuit. The function of the bleeder resistor is to quickly release the charge stored in the capacitor after the power is turned off, so as to ensure that the capacitor can quickly discharge to a safe voltage level after the power is turned off and to ensure the safety of the equipment and avoid the risk of electric shock. Figure 1 is a structural diagram of a bleeder circuit in a related technology provided in an embodiment of this application. As shown in Figure 1, after the switching power supply is turned off, the energy of the X capacitor Cx1 inside the power supply is consumed by bleeder resistors R1', R2', R3', and R4' connected in series across the capacitor. Bleeder resistor R = R1' + R2' + R3' + R4'. Based on the input voltage of the switching power supply, the required safe voltage value to be bleeded, the required bleed time, and the capacitance value of the X capacitor selected for the switching power supply input, the value of the bleeder resistor can be obtained as shown in the following formula (1):
[0027] Where R is the bleeder resistor, t is the required bleed time, C is the capacitance of the input capacitor X of the switching power supply, Vo is the initial voltage, and Vt is the voltage after bleed time t, in accordance with the safety requirements of IEC62328. During normal operation, the bleeder resistor does not need to discharge, but there will be losses. V is the voltage superimposed on capacitor X Cx1 during normal operation; its losses are shown in the following formula (2):
[0028] In summary, in order to meet safety requirements (such as IEC 62368-1), traditional bleeder resistors typically have low resistance values, which leads to excessive power consumption during normal operation and a decrease in the overall efficiency of the power supply.
[0029] To address the problem in related technologies where the bleeder resistor consumes excessive power during normal operation of the power supply, leading to a decrease in the overall efficiency of the power supply, this application provides a switching power supply that monitors the power supply's power-on and power-off states. Based on the different states of the power supply (power-on or power-off), it determines whether to activate the power supply's bleeder circuit unit. Under normal power supply conditions, it switches from the bleeder circuit unit to the non-bleeder circuit unit, achieving device reuse, reducing size, saving efficiency, and reducing losses.
[0030] 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 embodiments.
[0031] According to one aspect of an embodiment of this application, a switching power supply is provided, as shown in FIG2, comprising:
[0032] The input filter capacitor (Cx1) is connected in parallel between the live wire (L line) and the neutral wire (N line) of the AC power source to suppress electromagnetic interference. The input filter capacitor stores energy during normal power supply operation; after power failure, it must be quickly released through a discharge circuit to maintain a safe voltage level.
[0033] A discharge circuit unit, connected in parallel across the input filter capacitor, is used to release the charge stored in the input filter capacitor when the switching power supply is in an abnormal power-off state, ensuring that the input filter capacitor discharges to a safe voltage level within a specified time range. In this embodiment, the discharge circuit unit is a circuit design whose purpose is to quickly dissipate the energy stored in the input filter capacitor (Cx1) through a resistor network or switch connected in parallel across the input filter capacitor (Cx1) after the switching power supply is turned off.
[0034] The non-bleeder circuit unit is configured to acquire the output voltage of the AC source. During normal operation of the switching power supply, the circuit portion of the non-bleeder circuit unit, used to acquire the AC source output voltage (L and N lines), converts the high voltage output by the AC source into a signal that can be processed by the processing unit, without triggering the bleeder circuit unit. It is understood that only one of the bleeder circuit unit and the non-bleeder circuit unit can be on, while the other is off.
[0035] The processing unit is configured to disconnect the bleeder circuit unit when the output voltage of the AC source indicates that the switching power supply is in a normal power supply state. The processing unit is the control core of the entire switching power supply system, determining whether the power supply is in a normal power supply state by monitoring the output voltage of the AC source. To reduce excessive power consumption by the bleeder circuit unit during normal power supply operation, improve the overall efficiency of the power supply, and ensure safe discharge after power failure, the processing unit controls the disconnection of the bleeder circuit unit when it detects normal power supply to avoid power consumption during normal operation. When a power failure is detected, the processing unit controls the disconnection of the non-bleeder circuit unit and activates the bleeder circuit unit to ensure the safe discharge of the input filter capacitor Cx1.
[0036] In this embodiment, the processing unit intelligently switches between the bleeder circuit unit and the non-bleeder circuit unit according to the state of the switching power supply. When the switching power supply is in normal power supply mode, the bleeder circuit unit is disconnected, so that the loss of the bleeder circuit unit is zero. It also achieves complete shutdown of the bleeder circuit when the power supply is turned on, and is only activated at the moment of power failure. This greatly reduces the continuous power consumption of the system and solves the problem in related technologies that the bleeder resistor consumes too much power when the power supply is working normally, resulting in a decrease in the overall efficiency of the power supply. At the same time, it ensures safe discharge after power failure and improves the energy utilization efficiency of the switching power supply.
[0037] In one exemplary embodiment, the processing unit is further configured to disconnect the non-bleeder circuit unit and turn on the bleeder circuit unit when the output voltage of the AC source indicates that the switching power supply is in an abnormal power-off state.
[0038] When the processing unit detects an AC power outage, its primary task is to ensure the safety of the user from electric shock and the safety of the equipment. The processing unit immediately executes an action, disconnecting the non-bleedering circuit unit and connecting the bleedering circuit unit. This switches the non-bleedering circuit unit, which was originally used for voltage sampling, to the bleedering circuit unit, allowing the input filter capacitor to discharge rapidly and quickly reduce the voltage across the capacitor to a safe level. This prevents the user from being electrocuted and protects subsequent circuits from high voltage damage.
[0039] In this embodiment, the processing unit monitors the AC source status and automatically switches from the non-discharge circuit unit to the discharge circuit unit when the switching power supply is detected to be in an abnormal power-off state. This ensures the safe handling of the switching power supply in the event of a power outage without manual intervention.
[0040] In one exemplary embodiment, the bleeder resistor in the related art failed to reduce the voltage of the input filter capacitor to a safe range within a specified time, affecting user experience and safety. Therefore, to solve the above problem, this embodiment sets the bleeder circuit unit to include a first bleeder unit and a second bleeder unit, and the resistance of the first bleeder unit is less than the resistance of the second bleeder unit. By dynamically switching between the first and second bleeder units, the function of using bleeder units with different resistance values to bleed energy according to the voltage across the input filter capacitor is realized, solving the problem of slow response speed of the bleeder resistor in the related art.
[0041] Figure 3 is a structural diagram of another switching power supply provided in an embodiment of this application. As shown in Figure 3, the discharge circuit unit includes:
[0042] The first discharge unit, connected in parallel across the input filter capacitor, is used to release the charge stored in the input filter capacitor when the voltage across the input filter capacitor is greater than or equal to a first voltage threshold. The first voltage threshold is a pre-set high-voltage threshold. A voltage greater than or equal to the first voltage threshold indicates that the input filter capacitor is in a high-voltage phase, requiring rapid discharge to ensure safety and to discharge the input filter capacitor to a safe level within a specified time. A voltage less than the first voltage threshold indicates that the input filter capacitor is in a low-voltage phase, requiring low-power discharge of remaining charge. Therefore, in this embodiment, the first voltage threshold distinguishes between high-voltage and low-voltage phases. When the voltage across the input filter capacitor Cx1 is greater than or equal to the first voltage threshold, the first discharge unit is activated; when the voltage across the input filter capacitor Cx1 is lower than the first voltage threshold, the second discharge unit begins operation. The first voltage threshold is set according to safety standards and performance requirements, such as the requirements for voltage discharge time after power failure in IEC 62368-1. The first bleeder unit is a fast bleedering circuit connected in parallel across the input filter capacitor Cx1, mainly consisting of a low-resistance resistor and a switch. When the voltage across the input filter capacitor Cx1 reaches or exceeds a first voltage threshold, the first bleeder unit is activated, rapidly reducing the capacitor voltage through a large current to meet the rapid bleedering requirements after the switching power supply is powered off. The goal of the first bleeder unit is to quickly and safely dissipate the energy in the capacitor during high-voltage phases.
[0043] The second bleeder unit, connected in parallel across the input filter capacitor, releases the charge stored in the input filter capacitor when the voltage across it is lower than the first voltage threshold. The second bleeder unit partially reuses the first bleeder unit; that is, when the voltage across the input filter capacitor Cx1 is lower than the first voltage threshold, the switching states of the first and second bleeder units are changed, transforming the original first bleeder unit into a high-resistance steady-state bleeder circuit. The main purpose of the second bleeder unit is to reduce power consumption and extend the bleedering time during the low-voltage phase, while ensuring that the residual voltage meets safety standards. The reuse of the first bleeder unit by the second bleeder unit means that after power failure, the second bleeder unit can utilize a portion of the resistor network originally belonging to the first bleeder unit to achieve a transition from fast bleedering to steady-state bleedering at different voltage thresholds by adjusting the switching states of its internal switching components. This saves hardware resources, reduces cost, and minimizes space requirements. The resistance of the first bleeder unit is lower than that of the second bleeder unit because the input filter capacitor Cx1 may carry a considerably high voltage and energy immediately after power failure. To rapidly release this energy to a safe level, meeting the requirements of safety standards regarding voltage discharge time and final voltage after power failure (such as IEC 62368-1), the first discharge unit employs a low-resistance resistor network. Low-resistance resistors can carry larger currents, thus achieving rapid and efficient energy dissipation and accelerating the decrease in capacitor voltage. As the voltage of capacitor Cx1 gradually decreases, continuing to use low-resistance resistors for discharge will lead to excessive power consumption, especially during the steady-state, lower voltage phase. To avoid this unnecessary energy loss and improve the overall efficiency of the power supply, the second discharge unit is designed with a high-resistance resistor network. High-resistance resistors in the network maintain low power consumption even during prolonged discharge, while still meeting the requirements for decay of residual capacitor voltage.
[0044] The processing unit is further configured to select, based on the voltage across the input filter capacitor, to activate either the first or second discharge unit when the output voltage of the AC source indicates an abnormal power-off state of the switching power supply. In this embodiment, the processing unit monitors the AC source status and the voltage across the input filter capacitor Cx1, and intelligently selects to activate either the first or second discharge unit based on the voltage across the input filter capacitor Cx1. When the power supply is off, the processing unit determines whether to use fast high-current discharge (first discharge unit) or low-power steady-state discharge (second discharge unit) by detecting the voltage across the input filter capacitor Cx1, in order to optimally meet various safety and performance indicators.
[0045] In this embodiment, the discharge circuit unit includes a first discharge unit and a second discharge unit, with the resistance of the first discharge unit being less than that of the second discharge unit. Threshold segmented control is performed based on the voltage across the input filter capacitor. Specifically, when the voltage across the input filter capacitor is greater than or equal to a first voltage threshold, the first discharge unit is turned on, and the second discharge unit is turned off. The low resistance design of the first discharge unit allows for rapid reduction of the capacitor voltage during the initial power-off phase, meeting the requirement for rapid discharge. When the voltage across the input filter capacitor is less than the first voltage threshold, the first discharge unit is turned off, and the second discharge unit is turned on. The second discharge unit switches to a high resistance value after the voltage drops to a lower level, reducing power consumption in steady state, improving overall efficiency, and solving the problems of excessive power consumption and slow response speed in related technologies. Furthermore, the second discharge unit reuses part of the resistor network of the first discharge unit, allowing the same circuit components to perform different functional roles at different times. In the high-voltage phase, the first discharge unit forms a low-resistance channel, while in the low-voltage phase, by changing the circuit connection state of the first discharge unit, the same components constitute a high-resistance steady-state discharge circuit. This reuse method reduces the use of hardware resources and lowers costs, while overcoming the cost and size issues caused by the use of high-power resistors in traditional designs. The processing unit intelligently selects to activate either the first or second discharge unit based on the power-off state of the AC source and the real-time voltage of the input filter capacitor Cx1. This intelligent selection mechanism based on voltage thresholds ensures that the most suitable discharge strategy is used at all times, preventing excessive energy consumption while enabling rapid response when necessary, thus guaranteeing safety.
[0046] In one exemplary embodiment, as shown in FIG3, the switching power supply further includes a voltage sampling unit connected in parallel across the input filter capacitor for acquiring the voltage across the input filter capacitor.
[0047] The voltage sampling unit refers to a group of circuit components, mainly including resistors, operational amplifiers, and other signal conditioning elements, which are connected in parallel across the input filter capacitor Cx1. Its function is to accurately measure and monitor the voltage across the input filter capacitor Cx1, converting this voltage signal into a form suitable for the processing unit to read. During normal power supply, the voltage sampling unit monitors the input voltage; after power failure, it assists in detecting the residual voltage of the capacitor to achieve timely control of the discharge circuit unit, ensuring that the capacitor's energy is properly released according to safety standards. Simultaneously, it works in conjunction with the processing unit's decisions to intelligently switch between fast and steady-state discharge circuits.
[0048] Through this embodiment, the close cooperation between the voltage sampling unit and the processing unit enables the switching power supply to automatically adjust the discharge strategy according to the real-time changes in capacitor voltage.
[0049] In an exemplary embodiment, FIG4 is a structural diagram of another switching power supply provided in an embodiment of the present application. As shown in FIG4, the first bleeder unit includes: a first bleeder resistor assembly and a first switch assembly; wherein, the first bleeder resistor assembly and the first switch assembly are connected in series and then connected in parallel across the input filter capacitor.
[0050] In this embodiment, the first discharge unit refers to a circuit module consisting of a first discharge resistor assembly and a first switch assembly connected in series and then in parallel across the input filter capacitor. Its main task is to activate the first switch assembly and use the first discharge resistor assembly to quickly release the energy stored in the capacitor when the voltage across the input filter capacitor reaches a first voltage threshold or higher, thereby ensuring that the capacitor voltage can quickly drop to a safe range after the power is cut off, thus meeting the requirements for rapid discharge.
[0051] The first switching component refers to an electronic switch capable of controlling the on / off state of the first discharge unit, such as an insulated-gate bipolar transistor (IGBT) or a metal-oxide-semiconductor field-effect transistor (MOSFET). When the switching power supply is turned off and the voltage across the input filter capacitor is greater than or equal to a first voltage threshold, the processing unit sends a signal to turn on the first switching component, enabling the first discharge unit to operate. Conversely, when the voltage across the input filter capacitor is less than the first voltage threshold, the first switching component will be turned off, stopping rapid discharge and entering a steady-state discharge mode or completely shutting down the discharge circuit to prevent unnecessary power consumption.
[0052] The first bleeder resistor assembly includes a set of low-resistance resistors to provide a high-current path to accelerate the capacitor's discharge process when the voltage across the input filter capacitor is high. In conjunction with the first switching assembly, the first bleeder resistor assembly can significantly reduce the capacitor voltage in a short time, meeting the rapid discharge time requirements specified in safety standards.
[0053] The processing unit is further configured to turn on the first switching component when the output voltage of the AC source indicates that the switching power supply is in an abnormal power-off state, and the voltage across the input filter capacitor is greater than or equal to a first voltage threshold; and to turn off the first switching component when the output voltage of the AC source indicates that the switching power supply is in an abnormal power-off state, and the voltage across the input filter capacitor is less than the first voltage threshold. In this embodiment, the processing unit is responsible for monitoring and analyzing the power supply status and the voltage of the input filter capacitor. When an abnormal power-off of the switching power supply is detected and the voltage across the input filter capacitor is greater than or equal to the first voltage threshold, the first switching component is automatically turned on to activate the rapid discharge process; once the voltage across the input filter capacitor is less than the first voltage threshold, the first switching component is turned off, entering a steady state or stopping discharge, ensuring both rapid and economical release of capacitor energy.
[0054] In this embodiment, the first discharge unit forms a controllable discharge circuit through a first switch assembly and a first discharge resistor assembly connected in series. The first discharge unit is connected in parallel across the input filter capacitor. When the AC source is de-energized and the voltage across the input filter capacitor is greater than or equal to a first voltage threshold, the processing unit automatically turns on the first switch assembly and connects the low-resistance first discharge resistor assembly to the discharge path of the capacitor to achieve rapid charge release.
[0055] In an exemplary embodiment, when the switching power supply is powered off and the energy stored in the filter capacitor needs to be released quickly to reach a safe voltage level, the first bleeder unit may generate a large amount of heat due to the instantaneous large current passing through it. If the heat accumulates too quickly and cannot be effectively dissipated, the temperature of the circuit components will rise sharply, causing the components in the bleeder circuit unit to melt, the package to crack, or the circuit board to deform, thereby damaging the entire bleeder circuit or even the switching power supply system and increasing the risk of equipment failure. Therefore, to solve the above problem, as shown in FIG4, the first bleeder unit further includes: a temperature sampling unit, connected in series between the first bleeder resistor assembly and the first switch assembly, for collecting the temperature of the bleeder path of the input filter capacitor, and cutting off the first bleeder unit when the temperature exceeds a preset temperature threshold.
[0056] The temperature sampling unit is part of the first discharge unit, and its main function is to monitor the temperature of the capacitor discharge path in real time during the discharge process. Once the temperature exceeds a preset threshold, the temperature sampling unit will immediately disconnect the first discharge unit to prevent circuit damage or safety hazards caused by overheating. The preset temperature threshold is a maximum safe temperature limit set to guide the operation of the temperature sampling unit. When the temperature of the discharge path of the input filter capacitor exceeds this threshold, the temperature sampling unit will trigger a protection mechanism to automatically disconnect the first discharge unit, preventing serious consequences such as circuit damage or fire caused by high temperature. In this embodiment, the temperature sampling unit can be an automatically power-off temperature switch, or it can transmit the collected temperature to a processing unit, which will then shut down the first switch component in the first discharge unit.
[0057] In this embodiment, a temperature sampling unit is installed to monitor the temperature of the discharge path in real time. Once the temperature exceeds a preset threshold, the first discharge unit is immediately cut off to prevent current from continuing to flow, thus preventing the temperature from rising further. This mechanism effectively solves the potential thermal runaway problem caused by rapid discharge, ensuring that the discharge circuit can operate efficiently and stably within a safe temperature range, avoiding component damage and safety hazards, while maintaining the overall performance and lifespan of the switching power supply.
[0058] In an exemplary embodiment, in related technologies, the design of a bleeder circuit often dissipates the energy stored in the capacitor as heat, which not only wastes energy but may also increase the thermal load on the components. Therefore, to solve the above problems, as shown in FIG4, the first bleeder unit further includes an energy feedback unit connected in series between the first bleeder resistor assembly and the first switch assembly, for storing the bleeder voltage of the input filter capacitor and feeding it back to the AC source after the switching power supply is turned on.
[0059] The energy feedback unit is a circuit module used to collect and store the energy discharged from the input filter capacitor when the switching power supply is powered off, rather than simply dissipating it as heat. When the switching power supply restarts, the energy feedback unit can feed the stored energy back to the power system, converting it back into electrical energy for use. This achieves energy recovery and reuse, significantly improving power conversion efficiency and reducing energy consumption. The energy feedback unit typically consists of a flyback transformer, rectifier diodes, current-limiting resistors, and a constant current DC source, which work together to ensure efficient energy collection and safe energy feedback.
[0060] Figure 5 is a structural diagram of another switching power supply provided in an embodiment of this application. As shown in Figure 5, the non-bleedering circuit unit collects the output voltage of the AC source and transmits the output voltage to the processing unit. The processing unit also receives the voltage across the input filter capacitor collected by the voltage sampling unit. If the output voltage of the AC source indicates that the switching power supply is in a normal power supply state, the non-bleedering circuit unit is turned on and the bleedering circuit unit is turned off. Otherwise, the first bleedering unit and the second bleedering unit are selected to be turned on according to the voltage across the input filter capacitor. If the first bleedering unit is selected to be turned on, it can not only be quickly bleed through the low-resistance network, but also the temperature can be collected through the temperature sampling unit. When the temperature exceeds the preset temperature threshold, the first bleedering unit is turned off, and the bleedering voltage of the input filter capacitor is fed back to the system through the energy feedback unit for the next use.
[0061] In this embodiment, the energy feedback unit can effectively collect the energy discharged from the filter capacitor after a power outage and reuse it when the power is turned on again, instead of wasting it entirely as heat. This significantly improves the system's energy efficiency and reduces energy loss.
[0062] In an exemplary embodiment, high-power bleeder resistors are commonly used in related technologies to achieve both rapid and steady-state discharge. However, high-power bleeder resistors are often large and expensive, limiting their application in miniaturized devices. Therefore, to solve this problem, as shown in FIG4, the second bleeder unit includes: a first bleeder resistor assembly, a second bleeder resistor assembly, a first switch assembly, and a second switch assembly; the first bleeder resistor assembly and the first switch assembly are connected in series and then in parallel across the input filter capacitor; the second bleeder resistor assembly and the second switch assembly are connected in series and then in parallel across the first switch assembly.
[0063] In this embodiment, the first bleeder resistor assembly and the first switch assembly constitute the structure of the first bleeder unit. The second bleeder unit reuses the first bleeder resistor assembly within the first bleeder unit, reducing the need for additional purchase and installation of high-resistance steady-state bleeder resistors, thereby lowering circuit costs and avoiding additional space occupation. The first bleeder assembly and the first switch assembly have been explained in the above embodiments and will not be repeated here.
[0064] The second bleeder resistor component refers to a high-resistance steady-state discharge network, used to maintain the continuous stability of the capacitor voltage with low power consumption and avoid unnecessary energy loss after the voltage across the input filter capacitor is lower than the first voltage threshold. The second switch component is connected in series with the second bleeder resistor component and is used to control the on / off state of the high-resistance steady-state discharge path. When the voltage of the input filter capacitor drops below the first voltage threshold, the processing unit activates the second switch component and switches to steady-state discharge mode.
[0065] The processing unit is further configured to, when the output voltage of the AC source indicates that the switching power supply is in an abnormal power-off state and the voltage across the input filter capacitor is greater than or equal to a first voltage threshold, disconnect the non-bleeder circuit unit, turn off the second switching component, and turn on the first switching component to turn on the first bleeder unit for rapid discharge; when the output voltage of the AC source indicates that the switching power supply is in an abnormal power-off state and the voltage across the input filter capacitor is less than the first voltage threshold, disconnect the non-bleeder circuit unit, turn on the second switching component, and turn off the first switching component to turn on the second bleeder unit for steady-state discharge, thereby reducing power consumption and improving efficiency.
[0066] In this embodiment, the discharge circuit unit is dynamically configured to adapt to different stages of the voltage across the input filter capacitor. Specifically, when the voltage across the input filter capacitor is greater than or equal to a first voltage threshold (i.e., in the high-voltage stage), the processing unit disconnects the non-discharge circuit unit, turns off the second switching component, and turns on the first switching component, enabling the first discharge unit to operate. The low-resistance characteristic of the first discharge resistor component facilitates rapid discharge, meeting the requirement for rapid and safe discharge after power failure. When the voltage across the input filter capacitor is less than the first voltage threshold, the second switching component is turned on and the first switching component is turned off, activating the second discharge unit. The high-resistance resistor network formed by the first and second discharge resistor components performs steady-state discharge, effectively resolving the contradiction between rapid response and low power consumption requirements mentioned in related technologies. Furthermore, the second discharge unit reuses the first discharge resistor component and the first switching component from the first discharge unit, avoiding the introduction of additional components with the same function in the second discharge unit. This saves material and manufacturing costs, reduces the number of components on the circuit board, and helps achieve a more compact and smaller design, contributing to the overall miniaturization of the device.
[0067] In one exemplary embodiment, to further reduce cost and size, as shown in FIG4, the non-bleeder circuit unit includes: a first bleeder resistor assembly, a second bleeder resistor assembly, a third switch assembly, a fourth switch assembly, a first voltage sampling assembly, and a second voltage sampling assembly; one end of the second switch assembly is grounded through the third switch assembly and the first voltage sampling assembly connected in series; the other end of the second switch assembly is grounded through the fourth switch assembly and the second voltage sampling assembly connected in series; the first voltage sampling assembly is used to acquire the output voltage of the live wire; the second voltage sampling assembly is used to acquire the output voltage of the neutral wire.
[0068] The first and second bleeder resistor components have been explained in the above embodiments and will not be repeated here. Therefore, the non-bleeder circuit unit reuses the bleeder circuit unit, specifically the first and second bleeder resistor components. When the switching power supply is normally powered, the first and second bleeder resistor components are reused by the non-bleeder circuit unit as sampling components. When the switching power supply is abnormally powered off, the first and second bleeder resistor components act as bleeder resistors, effectively reducing cost and power consumption, and minimizing device size.
[0069] The third switching component is connected in series with the first voltage sampling component and connected to one end of the second switching component, ultimately grounded. When the switching power supply is in normal power supply condition, the third switching component works with the first voltage sampling component to sample the voltage; when the switching power supply is in an abnormal power-off condition, the third switching component is disconnected by the processing unit to support the activation of the bleeder circuit unit.
[0070] The fourth switching component is connected in series with the second voltage sampling component in the non-bleeder circuit unit and is connected to the other end of the second switching component, ultimately grounded. The function of the fourth switching component is similar to that of the third switching component, but it works with a different resistor and sampling component in the circuit. In the event of an abnormal power outage of the switching power supply, the fourth switching component is disconnected by the processing unit to support the activation of the bleeder circuit unit.
[0071] The first voltage sampling component is used to monitor the voltage of the L line when the switching power supply is in normal power supply state. The sampling result is transmitted to the processing unit to determine the power supply state and capacitor voltage level, and then to decide whether the discharge circuit unit needs to be activated.
[0072] The second voltage sampling component is used to monitor the voltage of the neutral (N) line when the switching power supply is in normal operating condition. The sampling results are also transmitted to the processing unit to determine the power supply status and capacitor voltage level, and then to decide whether the bleeder circuit unit needs to be activated.
[0073] In this embodiment, the processing unit is further configured to, when the output voltage of the AC source indicates that the switching power supply is in a normal power supply state, disconnect the first and second switching components to disconnect the bleeder circuit unit, save power consumption and improve power efficiency, and turn on the third and fourth switching components to collect and monitor the voltage of the L and N lines; when the output voltage of the AC source indicates that the switching power supply is in an abnormal power-off state, select to turn on one of the first and second switching components according to the voltage across the input filter capacitor, and disconnect the third and fourth switching components to disconnect the non-bleeder circuit unit, switch the non-bleeder circuit unit to the bleeder circuit unit, and realize the rapid or steady-state release of capacitor energy.
[0074] This embodiment controls the on / off states of the first, second, third, and fourth switching components, enabling dynamic switching between the non-bleedering circuit unit and the bleedering circuit unit. When the switching power supply is in normal operation, the non-bleedering circuit unit reuses the first and second bleedering resistor components from the bleedering circuit unit as sampling resistors, avoiding the need for additional resistors in the non-bleedering circuit unit and reducing hardware costs. When the switching power supply is in an abnormal power-off state, the third and fourth switching components are disconnected to prevent the first and second voltage sampling components from consuming additional energy during the operation of the bleedering circuit unit, thus reducing unnecessary power consumption and improving overall energy efficiency.
[0075] In an exemplary embodiment, FIG6 is a structural diagram of the voltage sampling unit and processing unit provided in the embodiments of this application. As shown in FIG6, the voltage sampling unit includes: a first resistor R1, a second resistor R2, a third resistor R3, a fourth resistor R4, a voltage divider resistor Rx, and an operational amplifier IC1; wherein, the negative terminal of the input filter capacitor is connected to the negative terminal of the operational amplifier IC1 through the second resistor R2, and the positive terminal of the input filter capacitor is connected to the positive terminal of the operational amplifier IC1 through the third resistor R3; the output terminal of the operational amplifier IC1 is connected to the processing unit; one end of the first resistor R1 is connected to the negative terminal of the operational amplifier IC1, and the other end of the first resistor R1 is connected to the output terminal of the operational amplifier IC1; one end of the fourth resistor R4 is connected to the voltage source, and the other end of the fourth resistor is connected to the positive terminal of the operational amplifier IC1; one end of the voltage divider resistor Rx is connected to the positive terminal of the operational amplifier IC1, and the other end of the voltage divider resistor Rx is grounded.
[0076] In this circuit, the first resistor R1 is a feedback resistor. When the output signal of operational amplifier IC1 changes, the first resistor R1 ensures that the signal is correctly fed back to the negative input terminal of operational amplifier IC1, thus forming a closed-loop amplifier circuit. The resistance value of the first resistor R1 directly affects the strength of the feedback, which in turn affects the amplification factor and stability of the voltage sampling voltage.
[0077] The second resistor R2 is connected in series between the negative terminal of the input filter capacitor Cx1 and the negative input terminal of the operational amplifier IC1. Its function is to introduce the voltage signal (VCx-) on the negative terminal of the input filter capacitor Cx1 to the negative input terminal of the operational amplifier IC1, providing a reference voltage for the operational amplifier IC1 to be compared with the signal at the positive input terminal of the operational amplifier IC1.
[0078] The third resistor, R3, is responsible for feeding the voltage signal (VCx+) across the positive terminal of the input filter capacitor Cx1 to the non-inverting input of the operational amplifier IC1. The third resistor, R3, works in conjunction with the second resistor, R2, to perform voltage division and sampling, ensuring that the operational amplifier IC1 can accurately measure the voltage difference across the input filter capacitor Cx1. The voltage sampling accuracy can be adjusted by changing the value of the third resistor, R3.
[0079] The fourth resistor R4 is used to provide a reference voltage for the input filter capacitor Cx1, ensuring that the non-inverting input of the operational amplifier IC1 can still receive a stable and accurate reference voltage even under power fluctuations.
[0080] The voltage divider resistor Rx and the fourth resistor R4 together form a voltage divider network, which further regulates and stabilizes the voltage at the non-inverting input terminal of the operational amplifier IC1.
[0081] Operational amplifier IC1 receives input signals from the second resistor R2 and the third resistor R3. Through feedback from the first resistor R1 and the reference voltage provided by the fourth resistor R4 and the voltage divider resistor Rx, it amplifies and performs preliminary processing on the voltage signal across the input filter capacitor Cx1 to obtain the voltage VCx across the filter capacitor Cx1. Then, the processed VCx signal is output to the processing unit.
[0082] As shown in Figure 6, the processing unit includes a microcontroller unit (MCU) processor. The signal processed by the operational amplifier IC1 is output to the MCU processor. The MCU processor analyzes the signal to obtain the voltage across the input filter capacitor. When the voltage across the input filter capacitor is greater than the first voltage threshold, it controls the first switch component to turn on and the second, third, and fourth switch components to turn off.
[0083] In this embodiment, the voltage across the input filter capacitor Cx1 is divided by the second resistor R2 and the third resistor R3 and then led to the input terminal of the operational amplifier IC1, realizing real-time monitoring of the capacitor voltage. The first resistor R1 forms the feedback loop of the operational amplifier IC1, and by feeding back a portion of the output signal to the negative input terminal of the operational amplifier IC1, a closed-loop control is formed, thereby enhancing the stability of the entire voltage sampling unit. The fourth resistor R4 works together with the voltage divider resistor Rx to provide a stable reference voltage for the positive input terminal of the operational amplifier IC1, ensuring that even under power supply voltage fluctuations, IC1 can still perform voltage comparison and amplification based on an accurate reference, thus improving sampling accuracy.
[0084] In an exemplary embodiment, FIG7 is a circuit diagram of a switching power supply provided in an embodiment of the present application. As shown in FIG7, the first bleeder resistor assembly includes a fifth resistor R5 and a sixth resistor R6, and the first switch assembly includes a first switch S1; one end of the fifth resistor R5 is connected to the neutral wire, the other end of the fifth resistor R5 is connected to one end of the sixth resistor R6 through the first switch S1, and the other end of the sixth resistor R6 is connected to the live wire.
[0085] In the first discharge unit, the first switch S1 plays a crucial role in controlling the opening and closing of the first discharge resistor assembly. When the processing unit detects that the switching power supply is in a power-off state and the voltage across the input filter capacitor is higher than a set first voltage threshold, the first switch S1 is turned on, connecting the series resistor formed by the fifth resistor R5 and the sixth resistor R6 into the circuit, accelerating the capacitor's discharge process. When the voltage across the input filter capacitor is lower than the set first voltage threshold (i.e., entering the low-voltage stage), the first switch S1 is turned off, cutting off the discharge circuit and switching to a steady-state discharge mode to reduce power consumption.
[0086] On an AC power line, the voltage between the live wire and the neutral wire changes periodically, reaching peak and trough values. If only a single bleed resistor is used directly across the live and neutral wires, the resistor will bear the full AC voltage when the power is disconnected, potentially leading to excessive power consumption and heat generation. This not only increases energy consumption but may also cause component overheating and damage. Therefore, in this embodiment, the first bleed resistor assembly includes a fifth resistor R5 and a sixth resistor R6, instead of a single resistor. Furthermore, the fifth resistor R5 and the sixth resistor R6 are respectively placed between the live wire and the neutral wire and the input filter capacitor. This ensures a proper bleed path while distributing voltage and power consumption, preventing a single component from bearing excessive stress, and improving the circuit's thermal stability and safety.
[0087] In this embodiment, the fifth resistor R5 and the sixth resistor R6 together constitute the first bleeder resistor assembly. They are connected in series and form a circuit with the live wire and neutral wire through the first switch S1. This series structure design allows the discharge of charge in the input filter capacitor after power failure, controlling the capacitor's discharge rate. The resistance values of R5 and R6 directly affect the discharge speed and efficiency. Furthermore, the series connection provides more flexible resistance adjustment capabilities, enabling it to function effectively in both rapid and steady-state discharge phases, meeting the discharge requirements under different safety standards.
[0088] The processing unit is further configured to disconnect the non-bleedering circuit unit and turn on the first switch S1 to turn on the first bleedering unit when the output voltage of the AC source indicates that the switching power supply is in an abnormal power-off state and the voltage across the input filter capacitor is greater than or equal to a first voltage threshold. In this embodiment, the processing unit is further configured to disconnect the non-bleedering circuit unit and turn off the first switch S1 to turn off the first bleedering unit when the output voltage of the AC source indicates that the switching power supply is in an abnormal power-off state and the voltage across the input filter capacitor is less than a first voltage threshold. As shown in Figure 6, the processing unit includes an MCU processor. One pin of the MCU processor is used to control the first switch S1. The MCU processor outputs a control signal to the first switch S1 through this pin to control the on / off state of the first switch S1.
[0089] In this embodiment, the combination of the first bleeder resistor assembly (the fifth resistor R5 and the sixth resistor R6) and the first switch S1 enables the function of dynamically adjusting the resistance value according to the input filter capacitor voltage. Compared with the related technologies where the bleeder circuit often uses a fixed low-resistance resistor to meet the requirements of fast bleedering, in this embodiment, when the output voltage of the AC source indicates that the switching power supply is in an abnormal power-off state and the voltage across the input filter capacitor is greater than or equal to the first voltage threshold (i.e., the high-voltage stage), the processing unit controls the first switch S1 to be turned on, and the fifth resistor R5 and the sixth resistor R6 form a low-resistance bleedering network to achieve fast discharge. When the output voltage of the AC source indicates that the switching power supply is in an abnormal power-off state and the voltage across the input filter capacitor is less than the first voltage threshold, the processing unit controls the first switch S1 to be turned off, switching to high-resistance steady-state bleedering, reducing steady-state power consumption and solving the problem of excessive power consumption.
[0090] In an exemplary embodiment, as shown in FIG7, the temperature sampling unit includes a temperature switch T1 connected in series in the link between the fifth resistor R5 and the first switch S1, for detecting the temperature of the discharge path of the input filter capacitor, and disconnecting it when the temperature is greater than a preset temperature threshold to cut off the first discharge unit.
[0091] Temperature switch T1 is the core component of the temperature sampling unit. It is connected in series in the path of the discharge circuit unit, such as between the fifth resistor R5 and the first switch S1. Temperature switch T1 can detect temperature changes caused by large current discharge in the path. Once the temperature exceeds the preset temperature threshold (e.g., 130℃), temperature switch T1 will automatically disconnect, cutting off the first discharge unit to prevent thermal runaway and avoid damage to the first discharge unit from high current and high temperature.
[0092] In this embodiment, the temperature switch T1 is connected in series in the link between the fifth resistor R5 and the first switch S1, located on the critical path of the discharge circuit. This means that when the discharge circuit is working, the temperature switch T1 can directly sense the temperature change of this path. When the temperature exceeds a preset threshold, the temperature switch T1 will automatically disconnect, cutting off the path of the first discharge unit, thereby preventing the large current under overheating conditions from flowing further and providing protection. This design solves the problem of damage to the discharge circuit caused by high temperature due to large current.
[0093] In an exemplary embodiment, the energy feedback unit includes: a transformer T2, a diode D1, a seventh resistor R7, and a constant current source DC; the primary coil of the transformer T2 is connected in series in the link between the first switch S1 and the sixth resistor R6; one end of the secondary coil of the transformer T2 is connected to the positive terminal of the constant current source DC through the diode D1 and the seventh resistor R7 connected in series; the other end of the secondary coil of the transformer T2 is connected to the negative terminal of the constant current source DC; the transformer T2 is used to collect the discharge voltage of the input filter capacitor and store the discharge voltage in the constant current source DC.
[0094] Transformer T2 plays a crucial role in energy transfer within the energy feedback unit. Transformer T2 is connected in series between the first switch S1 and the sixth resistor R6. When the discharge circuit unit operates, the primary coil of transformer T2 receives the discharge voltage, while the secondary coil, through rectification and current limiting, transfers energy to the constant current source DC for storage.
[0095] Diode D1 is used in the rectification stage of the energy feedback unit to ensure that the energy from the secondary coil of transformer T2 can flow unidirectionally into the constant current source DC, preventing energy backflow and protecting the stability of the circuit. D1 and the seventh resistor R7 are connected in series to form part of the energy feedback path.
[0096] The seventh resistor, R7, acts as a current-limiting resistor in the energy feedback unit, limiting the energy current flowing into the constant current source DC to prevent overload. R7 is connected in series with diode D1 to ensure current stability during energy storage, thus protecting the constant current source DC and improving the efficiency of energy feedback.
[0097] The constant current source DC is the energy storage element of the energy feedback unit. It receives energy transmitted through transformer T2 and current-limiting resistor R7, converts it into electrical energy, and stores it. When the power supply restarts normally, the energy in the constant current source DC can be used to assist system startup, saving energy and reducing dependence on external power sources, thus achieving closed-loop energy recycling. The positive terminal of the constant current source DC is connected to one end of the secondary coil of transformer T2 through D1 and R7, while the negative terminal is directly connected to the other end of the secondary coil of T2, forming a closed circuit for energy storage and utilization.
[0098] In this embodiment, diode D1 and the seventh resistor R7 are connected in series between the secondary coil of transformer T2 and the constant current source DC, forming a rectification and current-limiting path. Diode D1 ensures that energy can only flow into the constant current source DC in one direction, preventing energy backflow and protecting the circuit; the seventh resistor R7 acts as a current limiter, preventing the constant current source DC from overloading and ensuring the stability and safety of energy storage.
[0099] In an exemplary embodiment, the second discharge unit includes: a first discharge resistor assembly, a second discharge resistor assembly, a first switch assembly, and a second switch assembly. As shown in FIG7, the first discharge resistor assembly includes a fifth resistor R5 and a sixth resistor R6, and the second discharge resistor assembly includes an eighth resistor R8 and a ninth resistor R9; the first switch assembly includes a first switch S1; the second switch assembly includes a second switch S2; as shown in FIG7, one end of the fifth resistor R5 is connected to the neutral wire, and the other end of the fifth resistor R5 is connected to one end of the sixth resistor R6 through the first switch S1, and the other end of the sixth resistor R6 is connected to the live wire; one end of the eighth resistor R8 is connected to the other end of the fifth resistor R5, and the other end of the eighth resistor R8 is connected to one end of the ninth resistor R9 through the second switch S2, and the other end of the ninth resistor R9 is connected to the other end of the sixth resistor.
[0100] The first bleeder resistor assembly and the first switch assembly have been explained in the above embodiments and will not be repeated here. The second bleeder resistor assembly is a resistor network composed of the eighth resistor R8 and the ninth resistor R9. Its main function is to be activated when the residual voltage of the input filter capacitor Cx1 enters the low-voltage stage, forming a high-resistance steady-state bleeder circuit. This is used to reduce steady-state power consumption while meeting the safety residual voltage requirements, and to avoid unnecessary energy waste.
[0101] In the second discharge unit, the second switch S2, like the first switch S1, is controlled by the processing unit. Its main function is to switch the operating mode of the discharge circuit. During the high-voltage phase, the first switch S1 is on and the second switch S2 is off to avoid interference and ensure rapid discharge. During the low-voltage phase, the first switch S1 is off and the second switch S2 is on, allowing the fifth resistor R5, the sixth resistor R6, the eighth resistor R8, and the ninth resistor R9 to form a high-resistance discharge path for steady-state discharge, reducing continuous power consumption. In this embodiment, the fifth resistor R5, the sixth resistor R6, the eighth resistor R8, and the ninth resistor R9 together form the high-resistance discharge network of the second discharge unit. The reason why the second discharge resistor assembly includes the eighth resistor R8 and the ninth resistor R9, instead of a single resistor, is the same as the reason why the first discharge resistor assembly includes the fifth resistor R5 and the sixth resistor R6, instead of a single resistor, and will not be repeated here.
[0102] In this embodiment, the processing unit is further configured to, when the output voltage of the AC source indicates that the switching power supply is in an abnormal power-off state and the voltage across the input filter capacitor is greater than or equal to the first voltage threshold (high voltage stage), disconnect the non-bleedering circuit unit, turn off the second switch S2, and turn on the first switch S1 to activate the first bleedering unit. At this time, the bleedering voltage of the input filter capacitor starts from the sixth resistor R6, passes through the first switch S1, and then through the fifth resistor R5 to achieve rapid bleedering. When the output voltage of the AC source indicates that the switching power supply is in an abnormal power-off state and the voltage across the input filter capacitor is less than the first voltage threshold (low voltage stage), disconnect the non-bleedering circuit unit, turn off the first switch S1, and turn on the second switch S2 to activate the second bleedering unit. At this time, the bleedering voltage of the input filter capacitor starts from the sixth resistor R6, passes through the ninth resistor R9, the second switch S2, and then through the eighth resistor R8 and the fifth resistor R5 to achieve rapid bleedering. As shown in Figure 6, the processing unit includes an MCU processor. The two pins of the MCU processor are used to control the first switch S1 and the second switch S2, respectively. The MCU processor outputs a control signal to the first switch S1 through one pin to control the opening and closing of the first switch S1, and outputs a control signal to the second switch S2 through the other pin to control the opening and closing of the second switch S2.
[0103] In this embodiment, when the switching power supply is in a normal power supply state, the fifth resistor R5, the sixth resistor R6, the eighth resistor R8, and the ninth resistor R9 serve as part of the high-voltage sampling path. When the switching power supply is in an abnormal power-off state, these resistors can be quickly converted into part of the discharge circuit through the control of the first switch S1 and the second switch S2. This circuit reuse not only reduces the number of hardware components but also saves space and reduces the cost of the equipment.
[0104] In one exemplary embodiment, the non-bleeder circuit unit includes: a first bleeder resistor assembly, a second bleeder resistor assembly, a third switch assembly, a fourth switch assembly, a first voltage sampling assembly, and a second voltage sampling assembly. The first and second bleeder resistor assemblies have been explained in the above embodiments and will not be repeated here. As shown in FIG7, the third switch assembly includes a first power switch Q1, and the fourth switch assembly includes a second power switch Q2; the first voltage sampling assembly includes a tenth resistor R10, and the second voltage sampling assembly includes an eleventh resistor R11.
[0105] As shown in Figure 7, the drain of the first power switch Q1 is connected to one end of the ninth resistor R9, and the source of the first power switch Q1 is grounded through the tenth resistor R10; the gate of the first power switch Q1 is connected to the processing unit; the source of the second power switch Q2 is connected to the other end of the eighth resistor R8, and the drain of the second power switch Q2 is grounded through the tenth resistor R10; the gate of the second power switch Q2 is connected to the processing unit; the source of the first power switch Q1 and the drain of the second power switch Q2 are respectively connected to the processing unit.
[0106] The first power switch Q1 and the second power switch Q2 are control elements. When the switching power supply is in an abnormal power-off state, the processing unit shuts them down to switch from the non-bleeder circuit unit to the bleeder circuit unit; when the switching power supply is in a normal power supply state, the processing unit turns them on to switch from the bleeder circuit unit to the non-bleeder circuit unit. The tenth resistor R10 and the eleventh resistor R11 are both sampling resistors. The tenth resistor R10 is used to collect the voltage on the live wire, and the eleventh resistor R11 is used to collect the voltage on the neutral wire.
[0107] In this embodiment, the processing unit is further configured to acquire the first voltage of the source of the first power switch Q1 and the second voltage of the drain of the second power switch Q2, and determine the output voltage of the AC source based on the first voltage and the second voltage. If the output voltage of the AC source is greater than or equal to the second voltage threshold, the switching power supply is determined to be in a normal power supply state, the first switch S1 and the second switch S2 are turned off, and the first power switch Q1 and the second power switch Q2 are turned on. If the output voltage of the AC source is less than the second voltage threshold, the switching power supply is determined to be in an abnormal power-off state, the first power switch Q1 and the second power switch Q2 are turned off, and one of the first switch S1 and the second switch S2 is turned on based on the voltage across the input filter capacitor.
[0108] Figure 8 is a discharge flowchart provided in an embodiment of this application. As shown in Figure 8, in the initial state, the first power switch Q1 and the second power switch Q2 are in the on state, and the first switch S1 and the second switch S2 are in the off state. Therefore, the non-discharge circuit unit samples the voltage on the live wire through the voltage divider of the fifth resistor R5, the eighth resistor R8, and the eleventh resistor R11, and transmits it to the processing unit. It samples the voltage on the neutral wire through the voltage divider of the sixth resistor R6, the ninth resistor R9, and the tenth resistor R10, and transmits the output voltage Vac of the AC source to the processing unit. As shown in Figures 6 and 7, the processing unit determines whether the switching power supply is de-energized based on the voltage transmitted by the non-discharge circuit unit. If the output voltage Vac of the AC source is greater than or equal to 90V, the switching power supply is considered to be in normal power supply state. It sends a high-level AC normal signal (Alternating Current OK, abbreviated as AC OK) to the first power switch Q1 and the second power switch Q2, continues to maintain the conduction of the first power switch Q1 and the second power switch Q2, and sends two AC fault signals (Alternating Current Failure, abbreviated as AC fail) to the first switch S1 and the second switch S2 respectively, controlling the first switch S1 and the second switch S2 to remain open, so as to disconnect the bleeder circuit unit. At this time, the bleeder circuit unit is switched to the non-bleeder circuit unit. The non-bleeder circuit unit reuses the fifth resistor R5, the sixth resistor R6, the eighth resistor R8 and the ninth resistor R9 in the bleeder circuit unit. When the switching power supply is in normal power supply state, the continuous loss of the bleeder resistor can be saved. The power saving can be calculated according to the following formula (3):
[0109] As shown in Figure 8, if the output voltage Vac (e.g., 80V) of the AC source is less than 90V, the switching power supply is considered to be in an abnormal power-off state. The processing unit sends a low-level AC OK signal to the first power switch Q1 and the second power switch Q2, disconnecting the first power switch Q1 and the second power switch Q2, and switching the non-bleeder circuit unit to the bleeder circuit unit. Simultaneously, the processing unit acquires the voltage VCx (including VCx+ and VCx-) across the input filter capacitor through the voltage sampling unit. The processing unit performs voltage threshold segmentation control based on the voltage VCx across the input filter capacitor, which can include the following two scenarios:
[0110] Scenario 1: When the voltage across the input filter capacitor is greater than the first voltage threshold (i.e., the low-voltage stage), the processing unit sends an AC fail signal (high level) to the first switch S1 to control the first switch S1 to conduct, and sends another AC fail signal (low level) to the second switch S2 to control the second switch S2 to open, enabling the low-resistance discharge channel, i.e., the fifth resistor R5 and the sixth resistor R6 in Figure 7, to quickly discharge with a large current, shortening the duration of the high-energy stage and meeting the discharge time requirements from the start of the safety regulation to the safe voltage. According to the following formula (4), the smaller the discharge resistor, the shorter its discharge time.
[0111] Assuming the initial voltage is 230Vac AC, the initial voltage of the input filter capacitor Cx1 is... With the input filter capacitor Cx1 fixed at 2.5uf, according to the discharge requirements of IEC62368 mentioned above: within 1 second after power failure, the voltage of the accessible terminals must drop below 60V, t1=1s, Vo=325V, Vt1=60V; calculated according to the following formula (5), the maximum calculated discharge resistance of the first discharge unit shall not exceed 236kΩ, that is, the resistance value of the first discharge unit (i.e. the sum of the fifth resistor R5 and the sixth resistor R6) is less than 236kΩ.
[0112] Meanwhile, when the first discharge unit is working, the energy of the rapid discharge of the input filter capacitor Cx1 is fed back to the constant current source DC through the flyback transformer T2 and diode D1 rectification, stored and utilized, so that it can be directly used in the system when the power is turned on.
[0113] Meanwhile, a temperature switch T1 is added to the first discharge unit for temperature detection. For example, when the temperature switch T1 is greater than 130°C, the temperature switch T1 is turned off, the path of the first switch S1 is disconnected, the rapid discharge path is cut off, thermal runaway is prevented, and the discharge circuit unit is avoided from being damaged by high current and high temperature.
[0114] Scenario 2: When the voltage across the input filter capacitor is greater than the first voltage threshold (i.e., the low-voltage stage), the processing unit sends an AC fail signal (low level) to the first switch S1 to control the first switch S1 to open, and sends another AC fail signal (high level) to the second switch S2 to control the second switch S2 to turn on, enabling the high-resistance discharge channel. This allows the fifth resistor R5, the sixth resistor R6, the eighth resistor R8, and the ninth resistor R9 to form a high-resistance discharge network. The second discharge unit is used to reduce steady-state power consumption while meeting the safety residual voltage requirements (such as the 1V / s decay rate specified in UL60950-1).
[0115] Compared with the fixed resistor scheme in related technologies, this embodiment can reduce the overall energy consumption by more than 60%, while ensuring the normal operation of the discharge circuit and avoiding the problem of overheating and burnout during rapid discharge. At the same time, it can reuse the components of the switching power supply, allowing the discharge and sampling lines to share the discharge resistor. Through the judgment and processing switching of the processing unit, it can ensure that the safety performance of each port is not affected, reduce hardware costs and reduce the size of the device.
[0116] In one exemplary embodiment, the required discharge time varies depending on the type of device the switching power supply is used in. For example, general devices require the voltage to drop below 30V within 10 seconds after power-off, while medical devices require it to drop to 30V within 5 seconds. Using a discharge circuit unit with a fixed resistance value and a fixed discharge strategy would not meet the discharge requirements of all types of devices. Therefore, to solve the above problem, this embodiment provides a method for dynamically adjusting the resistance value of the discharge circuit unit. When the power supply starts up or during operation, a trained model analyzes the collected signal data in real time, identifies the connected load type, and automatically adjusts the discharge strategy according to the load type. For example, for highly sensitive medical devices, a faster discharge rate is adopted.
[0117] In this embodiment, the processing unit is further configured to: identify the load type of the device connected to the switching power supply; determine the fastest safe discharge rate required by the device connected to the switching power supply according to the load type; the fastest safe discharge rate represents the voltage of the input filter capacitor being discharged to a safe voltage level within the fastest safe time range; calculate the first discharge resistor required by the first discharge unit and the second discharge resistor required by the second discharge unit according to the fastest safe discharge rate; adjust the resistance value of the first discharge unit to the first discharge resistor, and adjust the resistance value of the second discharge unit to the second discharge resistor.
[0118] Here, load type refers to the category of terminal devices connected to the switching power supply, such as medical devices, servers, and personal computers. Each device has specific requirements for the safe discharge rate of the switching power supply due to differences in application characteristics and safety standards. By identifying the load type, this embodiment can optimize the discharge circuit design to meet the safety requirements of different devices. In this embodiment, the connected load type is identified through a reinforcement learning model. For example, the operating status data of the switching power supply, such as input voltage, current, temperature, and voltage signals of the input filter capacitor, are collected. The operating status data of the switching power supply is input into a pre-trained model, which can be trained using machine learning or pattern recognition techniques, such as Support Vector Machine (SVM), decision trees, and neural networks. The model takes the operating status data of the switching power supply as input and outputs the currently connected load type of the switching power supply. The model predefines different load type characteristics and stores a load type feature library, which includes various load types and their characteristics for comparison with real-time monitoring data. This model processes the operating status data of the switching power supply using techniques such as statistical analysis to determine key indicators such as the load power curve, switching frequency, and required discharge time of the load connected to the switching power supply. By comparing these key indicators with features in the load type feature library, the type of load currently connected to the switching power supply can be obtained.
[0119] The fastest safe discharge rate defines the highest discharge speed within the range required to reduce the voltage across the input filter capacitor (Cx1) to a safe level after power is disconnected. This is set according to the specific safety standards of various loads; for example, medical devices require a faster discharge rate to ensure user safety, and this rate is one of the key parameters when designing discharge circuits.
[0120] The fastest safe time range refers to the time interval within which the input filter capacitor must reach a safe voltage level after the power supply to the device is disconnected. This time range is determined by safety standards, such as IEC 62368 requiring the voltage to drop below 60V within 1 second, or medical equipment requiring the voltage to drop to 30V within 5 seconds after power failure.
[0121] In this embodiment, both the first discharge resistor component in the first discharge unit and the second discharge resistor component in the second discharge unit are adjustable resistors or digital potentiometers to achieve the purpose of adjustable resistance values of the first discharge unit and the second discharge unit.
[0122] For example, assuming the connected device is a medical device, a shorter discharge time is required due to the special nature of such devices. The processing unit uses digital potentiometers to set the resistance values of R5 and R6 to a lower value, while keeping R8 and R9 unchanged or adjusting them appropriately based on calculation results to accelerate the discharge speed. During the discharge process, the voltage VCx across the temperature switch T1 and the input filter capacitor is continuously monitored. Once the temperature exceeds a preset threshold or the voltage reaches a safe range, the system immediately adjusts back to the steady-state discharge mode or completely shuts down the discharge circuit to avoid unnecessary power consumption.
[0123] This embodiment identifies the load type, determines the fastest safe discharge rate required by the device connected to the switching power supply based on the load type, and calculates the first discharge resistor required by the first discharge unit and the second discharge resistor required by the second discharge unit based on the fastest safe discharge rate. The resistance value of the first discharge unit is adjusted to the first discharge resistor, and the resistance value of the second discharge unit is adjusted to the second discharge resistor, so that the resistance value of the discharge circuit unit can be dynamically adjusted according to the load type. This allows the switching power supply to safely discharge within its corresponding discharge time when connected to devices with different load types, improving the adaptability of the switching power supply to devices with different load types.
[0124] According to one aspect of the embodiments of this application, a venting method is provided. In this embodiment, a venting method may be applied to, but is not limited to, the processing unit shown in FIG2. An embodiment of this application provides a venting method comprising the following steps:
[0125] The output voltage of the AC source is acquired through the non-bleeder circuit unit. When the output voltage of the AC source indicates that the switching power supply is in a normal power supply state, the bleeder circuit unit is disconnected. The bleeder circuit unit is connected in parallel across the input filter capacitor to release the charge stored in the input filter capacitor when the switching power supply is in an abnormal power-off state, so as to ensure that the input filter capacitor discharges to a safe voltage level within a specified time range. The input filter capacitor is connected in parallel between the live wire and the neutral wire of the AC source to suppress electromagnetic interference.
[0126] Since the above method has been described in the embodiments of the switching power supply, it will not be repeated here.
[0127] In one exemplary embodiment, the method further includes: disconnecting the non-bleeder circuit unit and turning on the bleeder circuit unit when the output voltage of the AC source indicates that the switching power supply is in an abnormal power-off state.
[0128] In an exemplary embodiment, the bleeder circuit unit includes a first bleeder unit and a second bleeder unit; the second bleeder unit reuses the first bleeder unit; the resistance of the first bleeder unit is less than the resistance of the second bleeder unit; turning on the bleeder circuit unit includes: turning on the first bleeder unit and turning off the second bleeder unit when the voltage across the input filter capacitor is greater than or equal to a first voltage threshold; and turning off the first bleeder unit and turning on the second bleeder unit when the voltage across the input filter capacitor is less than the first voltage threshold.
[0129] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method.
[0130] 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 leakage method embodiments.
[0131] Embodiments of this application also provide a computer non-volatile readable storage medium storing a computer program, wherein the computer program is configured to execute the steps in any of the above-described leakage method embodiments when running.
[0132] In one exemplary embodiment, the aforementioned non-volatile readable storage medium may include, but is not limited to, various media capable of storing computer programs, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.
[0133] 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 leakage method embodiments.
[0134] Embodiments of this application also provide another computer program product, including a computer non-volatile readable storage medium storing a computer program, which, when executed by a processor, implements the steps in any of the above-described leakage method embodiments.
[0135] 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.
[0136] The foregoing has provided a detailed description of the switching power supply, discharge method, storage medium, and program product provided in this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the embodiments above are merely for the purpose of helping to understand the method 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 switching power supply, characterized by comprising: include: An input filter capacitor is connected in parallel between the live wire and the neutral wire of the AC source to suppress electromagnetic interference. A discharge circuit unit is connected in parallel across the input filter capacitor to release the charge stored in the input filter capacitor when the switching power supply is in an abnormal power failure state, so as to ensure that the input filter capacitor discharges to a safe voltage level within a specified time range. A non-bleedering circuit unit is used to acquire the output voltage of the AC source; The processing unit is configured to disconnect the discharge circuit unit when the output voltage of the AC source indicates that the switching power supply is in a normal power supply state.
2. The switching power supply according to claim 1, characterized in that, The processing unit is further configured to disconnect the non-bleeder circuit unit and turn on the bleeder circuit unit when the output voltage of the AC source indicates that the switching power supply is in an abnormal power-off state.
3. The switching power supply of claim 1, wherein The discharge circuit unit includes: The first discharge unit is connected in parallel across the input filter capacitor and is used to release the charge stored in the input filter capacitor when the voltage across the input filter capacitor is greater than or equal to a first voltage threshold. The second discharge unit is connected in parallel across the input filter capacitor and is used to release the charge stored in the input filter capacitor when the voltage across the input filter capacitor is less than the first voltage threshold. The second discharge unit reuses the first discharge unit. The resistance of the first discharge unit is less than the resistance of the second discharge unit. The processing unit is further configured to, when the output voltage of the AC source indicates that the switching power supply is in an abnormal power-off state, select to turn on one of the first discharge unit and the second discharge unit based on the voltage across the input filter capacitor.
4. The switching power supply according to claim 3, characterized in that, The switching power supply also includes: A voltage sampling unit is connected in parallel across the input filter capacitor to collect the voltage across the input filter capacitor.
5. The switching power supply of claim 3, wherein The first discharge unit includes: a first discharge resistor assembly and a first switch assembly; The first bleeder resistor assembly is connected in series with the first switch assembly and then connected in parallel across the input filter capacitor. The processing unit is further configured to: turn on the first switching component when the output voltage of the AC source indicates that the switching power supply is in an abnormal power-off state and the voltage across the input filter capacitor is greater than or equal to the first voltage threshold; and turn off the first switching component when the output voltage of the AC source indicates that the switching power supply is in an abnormal power-off state and the voltage across the input filter capacitor is less than the first voltage threshold.
6. The switching power supply of claim 5, wherein The first discharge unit further includes: A temperature sampling unit is connected in series between the first bleeder resistor assembly and the first switch assembly to collect the temperature of the bleeder path of the input filter capacitor, and to cut off the first bleeder unit when the temperature is greater than a preset temperature threshold.
7. The switching power supply of claim 6, wherein The first discharge unit further includes: An energy feedback unit is connected in series between the first bleeder resistor assembly and the first switch assembly. It is used to store the bleeder voltage of the input filter capacitor and feed it back to the AC source after the switching power supply is turned on.
8. The switching power supply according to any one of claims 3 to 7, characterized in that, The second discharge unit includes: a first discharge resistor assembly, a second discharge resistor assembly, a first switch assembly, and a second switch assembly; The first bleeder resistor assembly is connected in series with the first switch assembly and then connected in parallel across the input filter capacitor; the second bleeder resistor assembly is connected in series with the second switch assembly and then connected in parallel across the first switch assembly. The processing unit is further configured to, when the output voltage of the AC source indicates that the switching power supply is in an abnormal power-off state and the voltage across the input filter capacitor is greater than or equal to the first voltage threshold, disconnect the non-bleedering circuit unit, turn off the second switching component, and turn on the first switching component to turn on the first bleedering unit; and when the output voltage of the AC source indicates that the switching power supply is in an abnormal power-off state and the voltage across the input filter capacitor is less than the first voltage threshold, disconnect the non-bleedering circuit unit, turn on the second switching component, and turn off the first switching component to turn on the second bleedering unit.
9. The switching power supply according to claim 8, characterized in that, The non-bleeder circuit unit reuses the first bleeder resistor component and the second bleeder resistor component in the bleeder circuit unit; when the switching power supply is normally powered, the first bleeder resistor component and the second bleeder resistor component are reused by the non-bleeder circuit unit as sampling components; when the switching power supply is abnormally powered off, the first bleeder resistor component and the second bleeder resistor component serve as bleeder resistors.
10. The switching power supply according to claim 8, characterized in that, The non-bleeder circuit unit includes: a first bleeder resistor assembly, a second bleeder resistor assembly, a third switch assembly, a fourth switch assembly, a first voltage sampling assembly, and a second voltage sampling assembly; One end of the second switching component is grounded through the third switching component and the first voltage sampling component connected in series; the other end of the second switching component is grounded through the fourth switching component and the second voltage sampling component connected in series. The first voltage sampling component is used to acquire the output voltage of the live wire; the second voltage sampling component is used to acquire the output voltage of the neutral wire. The processing unit is further configured to, when the output voltage of the AC source indicates that the switching power supply is in a normal power supply state, disconnect the first switching component and the second switching component to disconnect the bleeder circuit unit, and turn on the third switching component and the fourth switching component; when the output voltage of the AC source indicates that the switching power supply is in an abnormal power-off state, select to turn on one of the first switching component and the second switching component according to the voltage across the input filter capacitor, and disconnect the third switching component and the fourth switching component to disconnect the non-bleeder circuit unit.
11. The switching power supply of claim 4, wherein The voltage sampling unit includes: a first resistor R1, a second resistor R2, a third resistor R3, a fourth resistor R4, a voltage divider resistor Rx, and an operational amplifier IC1; The negative terminal of the input filter capacitor is connected to the negative terminal of the operational amplifier IC1 through the second resistor R2, and the positive terminal of the input filter capacitor is connected to the positive terminal of the operational amplifier IC1 through the third resistor R3; the output terminal of the operational amplifier IC1 is connected to the processing unit; one end of the first resistor R1 is connected to the negative terminal of the operational amplifier IC1, and the other end of the first resistor R1 is connected to the output terminal of the operational amplifier IC1; one end of the fourth resistor R4 is connected to the voltage source, and the other end of the fourth resistor is connected to the positive terminal of the operational amplifier IC1; one end of the voltage divider resistor Rx is connected to the positive terminal of the operational amplifier IC1, and the other end of the voltage divider resistor Rx is grounded.
12. The switching power supply of claim 7, wherein The first bleeder resistor assembly includes a fifth resistor R5 and a sixth resistor R6, and the first switch assembly includes a first switch S1; One end of the fifth resistor R5 is connected to the neutral wire, and the other end of the fifth resistor R5 is connected to one end of the sixth resistor R6 through the first switch S1. The other end of the sixth resistor R6 is connected to the live wire. The processing unit is further configured to disconnect the non-bleeder circuit unit and turn on the first switch S1 to turn on the first bleeder unit when the output voltage of the AC source indicates that the switching power supply is in an abnormal power-off state and the voltage across the input filter capacitor is greater than or equal to a first voltage threshold.
13. The switching power supply of claim 12, wherein The temperature sampling unit includes: Temperature switch T1 is connected in series in the link between the fifth resistor R5 and the first switch S1. It is used to detect the temperature of the discharge path of the input filter capacitor and disconnect it when the temperature is greater than a preset temperature threshold to cut off the first discharge unit.
14. The switching power supply of claim 12, wherein, The energy feedback unit includes: transformer T2, diode D1, seventh resistor R7, and constant current source DC; The primary coil of the transformer T2 is connected in series in the link between the first switch S1 and the sixth resistor R6; one end of the secondary coil of the transformer T2 is connected to the positive terminal of the constant current source DC through the diode D1 and the seventh resistor R7 connected in series; the other end of the secondary coil of the transformer T2 is connected to the negative terminal of the constant current source DC. The transformer T2 is used to collect the discharge voltage of the input filter capacitor and store the discharge voltage in the constant current source DC.
15. The switching power supply of claim 10, wherein, The first bleeder resistor assembly includes a fifth resistor R5 and a sixth resistor R6; the second bleeder resistor assembly includes an eighth resistor R8 and a ninth resistor R9; the first switch assembly includes a first switch S1; the second switch assembly includes a second switch S2. One end of the fifth resistor R5 is connected to the neutral wire, and the other end of the fifth resistor R5 is connected to one end of the sixth resistor R6 through the first switch S1. The other end of the sixth resistor R6 is connected to the live wire. One end of the eighth resistor R8 is connected to the other end of the fifth resistor R5, and the other end of the eighth resistor R8 is connected to one end of the ninth resistor R9 through the second switch S2. The other end of the ninth resistor R9 is connected to the other end of the sixth resistor. The processing unit is further configured to disconnect the non-bleedering circuit unit and turn off the second switch S2 and turn on the first switch S1 when the output voltage of the AC source indicates that the switching power supply is in an abnormal power-off state and the voltage across the input filter capacitor is greater than or equal to the first voltage threshold, so as to turn on the first bleedering unit. When the output voltage of the AC source indicates that the switching power supply is in an abnormal power-off state, and the voltage across the input filter capacitor is less than the first voltage threshold, the non-bleeder circuit unit is disconnected, the first switch S1 is turned off, and the second switch S2 is turned on to turn on the second bleeder unit.
16. The switching power supply according to claim 15, characterized in that, The third switching component includes a first power switch Q1, and the fourth switching component includes a second power switch Q2; the first voltage sampling component includes a tenth resistor R10, and the second voltage sampling component includes an eleventh resistor R11; The drain of the first power switch Q1 is connected to one end of the ninth resistor R9, and the source of the first power switch Q1 is grounded through the tenth resistor R10; the gate of the first power switch Q1 is connected to the processing unit; the source of the second power switch Q2 is connected to the other end of the eighth resistor R8, and the drain of the second power switch Q2 is grounded through the tenth resistor R10; the gate of the second power switch Q2 is connected to the processing unit; the source of the first power switch Q1 and the drain of the second power switch Q2 are respectively connected to the processing unit. The processing unit is further configured to acquire a first voltage at the source of the first power switch Q1 and a second voltage at the drain of the second power switch Q2; determine the output voltage of the AC source based on the first voltage and the second voltage; determine that the switching power supply is in a normal power supply state when the output voltage of the AC source is greater than or equal to a second voltage threshold, turn off the first switch S1 and the second switch S2, and turn on the first power switch Q1 and the second power switch Q2; determine that the switching power supply is in an abnormal power-off state when the output voltage of the AC source is less than the second voltage threshold, turn off the first power switch Q1 and the second power switch Q2, and select to turn on one of the first switch S1 and the second switch S2 based on the voltage across the input filter capacitor.
17. A method for releasing water, characterized in that, include: The output voltage of the AC source is acquired through a non-bleedering circuit unit. When the output voltage of the AC source indicates that the switching power supply is in a normal power supply state, the bleedering circuit unit is disconnected. The bleedering circuit unit is connected in parallel across the input filter capacitor to release the charge stored in the input filter capacitor when the switching power supply is in an abnormal power-off state, so as to ensure that the input filter capacitor discharges to a safe voltage level within a specified time range. The input filter capacitor is connected in parallel between the live wire and the neutral wire of the AC source to suppress electromagnetic interference.
18. The method according to claim 17, characterized in that, The method further includes: When the output voltage of the AC source indicates that the switching power supply is in an abnormal power-off state, the non-bleeder circuit unit is disconnected and the bleeder circuit unit is turned on.
19. The method according to claim 18, characterized in that, The discharge circuit unit includes a first discharge unit and a second discharge unit; the second discharge unit reuses the first discharge unit; the resistance of the first discharge unit is less than the resistance of the second discharge unit; The unit that enables the discharge circuit includes: When the voltage across the input filter capacitor is greater than or equal to the first voltage threshold, the first discharge unit is turned on and the second discharge unit is turned off. When the voltage across the input filter capacitor is less than the first voltage threshold, the first discharge unit is turned off and the second discharge unit is turned on.
20. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements the steps of the venting method as described in any one of claims 17 to 19.
21. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the venting method as described in any one of claims 17 to 19.
