A flyback power supply and control method, device and storage medium thereof

By introducing a collaborative design of self-locking circuit and driving circuit in the flyback power supply, real-time monitoring and automatic control of battery status are achieved, and the problems of limited start-stop control information, low reliability and high cost in the flyback power supply in the prior art are solved, thereby improving the reliability of the system and reducing costs.

CN119743024APending Publication Date: 2025-04-01GOODWAY POWER TECHNOLOGY (GUANGDE) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411807303.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-10
Publication Date
2025-04-01

AI Technical Summary

Technical Problem

The existing flyback power supply start-stop control information is limited, has low reliability and high cost, especially in battery systems with multi-stage series systems, it is difficult to accurately identify battery loss.

Method used

A flyback power supply is designed, including a flyback main circuit, controller, current limiting power supply circuit, self-locking circuit and driving circuit. Through the coordinated work of the self-locking circuit and the driving circuit, real-time monitoring and feedback of the battery status can be realized, and the battery can be automatically shut down when the battery is powered down or abnormal, and automatically wake up when the battery is powered on again.

Benefits of technology

Improves the accuracy and reliability of battery status monitoring, reduces overall circuit power consumption, and significantly reduces system costs by eliminating the dependence on additional UPS batteries.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119743024A_ABST
    Figure CN119743024A_ABST
Patent Text Reader

Abstract

The present invention relates to the field of power electronics technology, and discloses a flyback power supply and its control method, device and storage medium. The flyback power supply includes: a flyback main circuit, a controller, a current limiting power circuit, a self-locking circuit and a driving circuit, wherein the flyback main circuit draws power from a battery system; the controller is used to obtain and determine the working status of the battery or other systems; the self-locking circuit is used to continuously conduct when the controller determines that the battery system is low on power or other systems are abnormal, or to shut down when the battery system is powered off; the driving circuit is used to stop outputting a driving signal when the self-locking circuit is continuously conducted so that the flyback main circuit stops working, or to output a driving signal when the battery system is powered on again so that the flyback main circuit starts working. The flyback power supply of the present invention can automatically maintain a locked state when the battery system is low on power or other systems are abnormal, without the need for additional UPS battery power supply, reducing circuit power consumption and cost, and at the same time having a flexible battery system power-off and power-on wake-up function and an external wake-up function.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of power electronics, and in particular to a flyback power supply and a control method, device and storage medium thereof. Background Art

[0002] The flyback circuit is an isolated DC / DC circuit. Due to its simple electrical structure and isolated output, it is widely used in low-power power supplies, especially auxiliary power supplies for systems. When an abnormality occurs in the system, especially a flyback power supply directly powered by a battery, it is usually necessary to completely shut down the flyback power supply so that it does not continue to draw power from the battery, to avoid the flyback power supply running at no load for a long time, causing the battery to be discharged and causing irreversible damage to the battery system. Therefore, the flyback circuit needs to be able to shut down and wake up after shutting down. The existing flyback circuit control scheme has the following problems:

[0003] (1) Figure 1 In the process, since the total input voltage is the identification detection signal, only the total voltage abnormality can be identified. However, the battery system is usually a multi-stage series system including a battery cluster, a battery pack, and a three-stage structure of a battery cell. The battery cell and the battery pack cannot be identified when they are discharged, and the reliability is low. After replacing the battery, the comparison threshold may not be applicable.

[0004] (2) Figure 2 The control in the system needs to be equipped with an additional UPS or battery to ensure continuous power supply to the controller. The cost of this part may be several times that of the auxiliary power supply itself, which is very expensive. Summary of the invention

[0005] Therefore, the technical problem to be solved by the present invention is to solve the problems of limited start-stop control information, low reliability and high cost of the flyback power supply in the prior art, thereby providing a flyback power supply and its control method, device and storage medium.

[0006] In order to achieve the above object, the present invention provides the following technical solutions:

[0007] In a first aspect, the present invention provides a flyback power supply, comprising: a flyback main circuit, a controller, a current limiting power circuit, a self-locking circuit and a drive circuit, wherein the flyback main circuit draws power from a battery system; a first input end of the controller inputs an output winding voltage of the flyback main circuit, a second input end of the controller is connected to an output end of the battery system or a BMS of the battery system, a first output end and a second output end of the controller are respectively connected to a first end and a second end of the self-locking circuit, and the controller is used to determine the working state of the battery system; a third end of the self-locking circuit is connected to an enable end of the drive circuit, and the self-locking circuit is used to continuously conduct when the controller determines that the battery system is low on power or other systems are abnormal, or to shut down when the battery system is powered off; a power supply end of the drive circuit is connected to an output end of the current limiting power circuit and a first end of the self-locking circuit, a power supply end of the drive circuit inputs an auxiliary winding voltage of the flyback main circuit, an output end of the drive circuit is connected to a control end of the flyback main circuit, and the drive circuit is used to stop outputting a drive signal when the self-locking circuit is continuously conducted, so that the flyback main circuit stops working, or output a drive signal when the battery system is powered on again, so that the flyback main circuit starts working.

[0008] The flyback power supply provided by the present invention, when the battery is depleted or other system abnormalities occur, the auxiliary winding stops outputting voltage after the self-locking circuit is turned on based on the output signal of the controller; even if the control circuit loses power and cannot provide a continuous input signal to the locking circuit, the self-locking circuit can still maintain the on state, so that the drive circuit locks the output, and the overall circuit power consumption is low; the locking state is maintained by the locking circuit, and no additional UPS battery power is required to maintain the controller to continuously send output signals, which can greatly reduce costs. The flyback power supply provided by the present invention can also directly obtain information such as battery power, can timely and accurately reflect the battery depletion, and has high reliability.

[0009] In an optional embodiment, the self-locking circuit includes: a first switch circuit, a second switch circuit and a voltage divider circuit, wherein the first end of the second switch circuit is connected to the output end of the current limiting power supply circuit, the second end of the second switch circuit is connected to the first end of the first switch circuit and the enable end of the drive circuit, the third end of the second switch circuit is connected to the first end of the voltage divider circuit, and the fourth end of the second switch circuit is connected to the second end of the first switch circuit and then grounded; the second end of the voltage divider circuit is connected to the second output end of the controller, and the third end of the voltage divider circuit is connected to the third end of the first switch circuit; when the controller determines that the battery system is low on power or other systems are abnormal, the controller controls the first switch circuit to turn on, the drive circuit stops outputting the drive signal, and the second switch circuit is turned on, so that the first switch circuit maintains the on state; when the flyback main circuit needs to resume work, the battery system is powered off so that the first switch circuit and the second switch circuit are turned off, and then the battery system is powered on again so that the drive circuit outputs the drive signal.

[0010] In an optional embodiment, the first switch circuit includes: a first controllable switch and a first capacitor, wherein the first end of the first controllable switch is connected to the enable end of the drive circuit, the control end of the first controllable switch is connected to the first end of the first capacitor and the third end of the voltage divider circuit, and the second end of the first controllable switch is connected to the second end of the first capacitor and the fourth end of the second switch circuit and then grounded; when the controller determines that the battery system is low on power or other systems are abnormal, the controller controls the first controllable switch to turn on, the drive circuit stops outputting the drive signal, and the second switch circuit is turned on, so that the first controllable switch maintains the on state; when the flyback main circuit needs to resume work, the battery system is powered off so that the first controllable switch and the second switch circuit are turned off, and then the battery system is powered on again so that the drive circuit outputs the drive signal.

[0011] In an optional embodiment, the second switch circuit includes: a second controllable switch, a first resistor, a second resistor and a third resistor, wherein the first end of the second controllable switch is connected to the first end of the first resistor and the output end of the current limiting power circuit, the control end of the second controllable switch is connected to the second end of the first resistor and the first end of the second resistor, and the second end of the second controllable switch is connected to the first end of the voltage divider circuit and the first end of the third resistor; the second end of the second resistor is connected to the first end of the first switch circuit; the second end of the third resistor is connected to the second end of the first switch circuit and then grounded; when the controller determines that the battery system is low on power or other systems are abnormal, the controller controls the first switch circuit to turn on, the drive circuit stops outputting the drive signal, and the second controllable switch is turned on, so that the first switch circuit maintains the on state; when the flyback main circuit needs to resume work, the battery system is powered off so that the first switch circuit and the second controllable switch are turned off, and then the battery system is powered on again so that the drive circuit outputs the drive signal.

[0012] In an optional embodiment, the flyback power supply also includes: a wake-up circuit, wherein an external wake-up signal is input into an input end of the wake-up circuit, a first output end and a second output end of the wake-up circuit are respectively connected to a fourth end and a fifth end of the self-locking circuit, and the wake-up circuit is used to turn off the self-locking circuit based on the external wake-up signal, thereby causing the driving circuit to output a driving signal.

[0013] The flyback power supply provided by the present invention also has an external wake-up function. The operator can actively wake up when the battery is powered on again, or the operator can recognize external input information to change the active wake-up through the wake-up circuit. The wake-up methods are diverse and highly automated, which improves the reliability of the wake-up and makes the use of the flyback power supply more flexible.

[0014] In a second aspect, the present invention provides a flyback power supply control method, which is applied to the controller of the first aspect, and the method includes: acquiring the working status of a battery system or other systems in real time; when it is determined that the battery system is low on power or other systems are abnormal, controlling the self-locking circuit to continue to be turned on, so that after the voltage at the enable end of the drive circuit is reduced to a first threshold voltage, the drive circuit stops outputting the drive signal so that the flyback main circuit stops working; when the flyback main circuit needs to resume working, controlling the battery system to power off so that the self-locking circuit is turned off, controlling the battery system to power on again, and then the voltage at the enable end of the drive circuit is increased to a second threshold voltage, so that the drive circuit outputs the drive signal again; the first threshold voltage is less than the second threshold voltage.

[0015] The flyback power supply control method provided by the present invention, when the battery fails to power or other abnormal conditions occur, the auxiliary winding stops outputting voltage after the self-locking circuit is turned on based on the output signal of the controller; even if the control circuit loses power and cannot send a continuous output signal, the self-locking circuit can still maintain the on state, so that the drive circuit locks the output, and the overall circuit power consumption is low; the state is locked by the locking circuit, and no additional UPS battery power is required to maintain the controller to continuously send output signals, which can greatly reduce costs. The flyback power supply provided by the present invention can also directly obtain information such as battery power, can timely and accurately reflect the battery power loss situation, has high reliability, and can actively wake up when the battery is powered on again, and can also actively wake up by identifying external input information changes when the battery is not powered on again, and has various wake-up methods and a high degree of automation.

[0016] In an optional implementation, the process of controlling the self-locking circuit to be continuously turned on includes: after controlling the first switch circuit to be turned on, the second switch circuit is turned on, and the auxiliary winding of the flyback main circuit stops supplying power to the drive circuit.

[0017] In an optional embodiment, the flyback power supply control method also includes: when the battery system is powered on again or the state of the external wake-up signal changes, controlling the wake-up circuit to turn on, so that after the first switch circuit and the second switch circuit are turned off, the voltage at the enable end of the drive circuit rises to the second threshold voltage, and then the drive circuit outputs a drive signal.

[0018] In a third aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the flyback power supply control method of the second aspect by executing the computer instructions.

[0019] In a fourth aspect, the present invention provides a computer-readable storage medium, on which computer instructions are stored, and the computer instructions are used to enable a computer to execute the flyback power supply control method of the second aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0021] Figure 1 It is a structural schematic diagram of a flyback power supply in the related art;

[0022] Figure 2 is another structural schematic diagram of a flyback power supply in the related art;

[0023] Figure 3 is a structural schematic diagram of a flyback power supply according to an embodiment of the present invention;

[0024] Figure 4 is a structural schematic diagram of a self-locking circuit according to an embodiment of the present invention;

[0025] Figure 5 is a specific circuit diagram of a flyback power supply according to an embodiment of the present invention;

[0026] Figure 6 is a specific circuit diagram of a wake-up circuit according to an embodiment of the present invention;

[0027] Figure 7 is a schematic diagram of a specific flow chart of a flyback power supply control method according to an embodiment of the present invention;

[0028] Figure 8 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0029] The technical solution of the present invention will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0030] In the description of the present invention, it should be noted that the terms “first”, “second” and “third” are only used for descriptive purposes and cannot be understood as indicating or implying relative importance.

[0031] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "connected" and "connection" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, it can also be the internal connection of two elements, it can be a wireless connection, or it can be a wired connection. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0032] In addition, the technical features involved in the different embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0033] In the related technology, the flyback circuit needs to be able to shut down and wake up after shutting down. The existing technical solutions are:

[0034] Plan A: If Figure 1 As shown, the auxiliary power supply identifies the battery DC input voltage information through the input sampling circuit, and identifies the DC input signal through the analog threshold comparator. When the input signal deviates from the normal value, a shutdown signal is sent to the PWM controller, and the controller stops waving to realize the shutdown of the flyback power supply when the DC input voltage is abnormal. However, since the total input voltage is the detection signal to be identified, only the total voltage abnormality can be identified, but the battery system is usually a multi-stage series system including a battery cluster, a battery pack, and a three-level structure of a battery cell. The battery cell and the battery pack cannot be identified when they are discharged; in addition, the voltage value does not directly reflect the low SOC information of the battery, the judgment condition itself is not accurate enough, and it is easy to misjudge, and the comparison threshold is usually a fixed value, and the value for identifying battery abnormalities is also fixed. This circuit can only be applied to specific batteries, and the threshold may not be applicable after the battery is replaced.

[0035] and, Figure 1 The comparator circuit inside the circuit, whether it is built with TL431 or the comparator, is an active circuit with its own losses. In addition to the power consumption of the PWM chip itself, the current limiting power circuit needs to provide a large current (several mA or even more than 10 mA) to start the auxiliary power supply. This part of the current will continue to discharge the battery with a small current; for the final stage of battery depletion, the 1Ah terminal power can be discharged in 5-10 days (120-240h). For on-site maintenance in remote areas, the power consumption is still large, and the probability of emptying the battery before arriving at the site is still high; and the circuit has no wake-up capability. The system can only be powered on for maintenance by external battery replenishment.

[0036] Plan B: If Figure 2As shown, an additional UPS or battery system is used to power the system controller (such as BMS). The controller detects that the battery cluster, battery pack, or battery cell is low in power (undervoltage or low SOC) and sends a shutdown signal. After passing through the isolation circuit, the shutdown command is sent to the PWM controller, and the controller stops waving, thereby temporarily shutting down the flyback power supply under any system abnormality.

[0037] Compared with Solution A, Solution B can accurately determine the power shortage of the entire battery system (cells, battery packs, and battery clusters); and the controller has programmable settings, which is applicable to various types of batteries and is more flexible; and there is no additional active comparison circuit, and the current of the current-limiting power supply circuit can reach the uA level; but Solution B needs to be equipped with an additional UPS or battery to ensure continuous power supply to the controller, and the cost of this part may be several times that of the auxiliary power supply itself, so a more reliable and economical flyback power supply is needed.

[0038] This embodiment provides a flyback power supply, such as Figure 3 As shown, it includes: a flyback main circuit 1, a controller 2, a current limiting power circuit 3, a self-locking circuit 4 and a driving circuit 5.

[0039] Figure 3 In the figure, the flyback main circuit 1 draws power from the battery system; the first input terminal of the controller 2 inputs the output winding voltage of the flyback main circuit 1, the second input terminal of the controller 2 is connected to the battery system (such as the output terminal of the BMS of the battery system) or other systems, and the first output terminal and the second output terminal of the controller 2 are respectively connected to the first terminal and the second terminal of the self-locking circuit 4.

[0040] Specifically, Figure 3 In the embodiment, the flyback main circuit 1 is directly powered by the battery system, and the controller 2 is powered by the output winding of the flyback main circuit 1 itself. The controller 2 is used to collect the working parameters of the battery system and the working status of other systems, and can identify the power information of the battery system, the output voltage status of the battery system, and other system information. When the controller 2 identifies that the battery system is low on power or the system is abnormal, it outputs a high-level signal to the self-locking circuit 4.

[0041] Optionally, the above-mentioned other systems include but are not limited to auxiliary power supply system, PCS system, EMS system, APP or Internet of Things controller, etc. Technical personnel in this field can control the controller 2 to collect output instructions or status of the above-mentioned systems according to actual needs.

[0042] Optionally, the controller 2 has two ways to obtain battery status information:

[0043] (1) If the controller 2 itself has BMS capabilities, it can directly collect battery parameters in the battery system for processing and calculation to obtain battery status information;

[0044] (2) If the controller 2 does not have BMS capability, it can communicate with the battery system BMS to indirectly obtain battery status information.

[0045] Figure 3 In the figure, the third end of the self-locking circuit 4 is connected to the enable end of the driving circuit 5. The self-locking circuit 4 is used to continue to conduct when the controller 2 determines that the battery system is low on power or other systems are abnormal, or to shut down when the battery system is powered off.

[0046] Specifically, Figure 3 In the figure, the self-locking circuit 4 is used to conduct based on a high-level signal when the controller 2 determines that the battery system is low on power or other systems are abnormal, so that after the voltage at the enable end of the drive circuit 5 is reduced, the auxiliary power supply in the flyback main circuit 1 is turned off, and the auxiliary winding in the flyback main circuit 1 will have no output. The self-locking circuit 4 adjusts the voltage VDD at the output end of the current limiting power supply circuit 3 to make it lower than the starting working voltage of the drive circuit 5; at the same time, positive feedback is formed inside the self-locking circuit 4 to form a locked state, so that even if the controller 2 no longer outputs a high-level signal, the self-locking circuit 4 can continue to conduct, thereby reducing the overall power consumption of the flyback power supply.

[0047] Exemplarily, the controller 2 can simultaneously implement the following three functions:

[0048] (1) Controller 2 stops outputting, turning off the auxiliary power supply.

[0049] (2) The auxiliary winding has no output, the self-locking circuit 4 is locked, the voltage VDD decreases, and the controller 2 does not start.

[0050] (3) The positive feedback inside the self-locking circuit 4 is triggered, so that the self-locking circuit maintains the locked state.

[0051] Specifically, Figure 3 In the embodiment, after a certain period of time after the battery system is powered off, the voltage at the first terminal of the self-locking circuit 4 gradually decreases, and its internal switch is turned off to exit the locked state. When the battery system is powered on again, the voltage at the enabling terminal of the driving circuit 5 gradually increases.

[0052] Figure 3 In the figure, the power supply end of the driving circuit 5 is connected to the output end of the current limiting power taking circuit 3 and the first end of the self-locking circuit 4, the power supply end of the driving circuit 5 inputs the auxiliary winding voltage of the flyback main circuit 1, and the output end of the driving circuit 5 is connected to the control end of the flyback main circuit 1.

[0053] Specifically, Figure 3In the embodiment, when the voltage at the enable terminal of the drive circuit 5 decreases, the drive circuit 5 stops outputting the drive signal. Since the self-locking circuit 4 is continuously turned on, the auxiliary power supply remains locked and stops working, thereby reducing the overall power consumption. When the battery system is powered on again after a certain period of time, the voltage at the enable terminal of the drive circuit 5 increases, and the battery system drive circuit 5 starts to output the drive signal, thereby completing the wake-up of the flyback main circuit 1 and starting the machine.

[0054] The flyback power supply provided in this embodiment, when the battery system is out of power or other system abnormalities occur, after the self-locking circuit is turned on based on the output signal of the controller, the self-locking circuit can still maintain the on state without the need for the controller to provide a continuous input signal, so that the drive circuit locks the output, and the overall circuit power consumption is low; the state is locked by the locking circuit, and no additional UPS battery power is required to maintain the controller to continuously send output signals, which can greatly reduce costs. The flyback power supply provided by the present invention can also directly obtain information such as the battery system power, and can timely and accurately reflect the battery system power shortage situation, with high reliability, and can actively wake up when the battery system is powered on again, and can also actively wake up by identifying changes in external input information through the wake-up circuit, with various wake-up methods and high automation.

[0055] In some optional embodiments, such as Figure 4 As shown, the self-locking circuit 4 includes: a first switch circuit 41, a second switch circuit 42 and a voltage divider circuit 43, wherein the first end of the second switch circuit 42 is connected to the output end of the current limiting power circuit 3, the second end of the second switch circuit 42 is connected to the first end of the first switch circuit 41 and the enable end of the drive circuit 5, the third end of the second switch circuit 42 is connected to the first end of the voltage divider circuit 43, and the fourth end of the second switch circuit 42 is connected to the second end of the first switch circuit 41 and then grounded; the second end of the voltage divider circuit 43 is connected to the second output end of the controller 2, and the third end of the voltage divider circuit 43 is connected to the third end of the first switch circuit 41.

[0056] Specifically, Figure 4 In the embodiment, when the controller 2 determines that the battery system is low on power or other systems are abnormal, the high-level signal output by the controller 2 causes the first switch circuit 41 to be turned on through the voltage divider circuit, and the level of the enable terminal of the drive circuit 5 is pulled down to the ground, thereby stopping the output of the drive signal; after the first switch circuit 41 is turned on, the second switch circuit 42 is turned on, and the output voltage of the current limiting power circuit 3 continues to supply power to the first switch circuit 41 through the voltage divider circuit, forming positive feedback, so that the first switch circuit 41 maintains the on state, and continues to stop the drive circuit 5 from outputting the drive signal, ensuring that the flyback main circuit 1 is locked in a stopped working state and no longer draws power from the battery system.

[0057] Specifically, Figure 4When the flyback main circuit 1 needs to resume working, the operator powers off the battery system for a certain period of time, and the voltage VDD at the output end of the current limiting power circuit 3 gradually decreases, so that the first switch circuit 41 and the second switch circuit 42 are turned off, and then exits the locked state. At this time, when the operator controls the battery system to power on again, the enable terminal voltage increases, and the drive circuit 5 outputs a drive signal based on the high-level signal of the enable terminal to drive the flyback main circuit 1 to work, thereby completing the wake-up of the flyback main circuit 1.

[0058] Specifically, Figure 5 In the embodiment, the first switch circuit 41 includes: a first controllable switch Q1 and a first capacitor C2, wherein the first end of the first controllable switch Q1 is connected to the enable end of the drive circuit 5, the control end of the first controllable switch Q1 is connected to the first end of the first capacitor C2 and the third end of the voltage divider circuit 43, and the second end of the first controllable switch Q1 is connected to the second end of the first capacitor C2 and the fourth end of the second switch circuit 42 and then grounded.

[0059] Specifically, Figure 5 In the embodiment, the second switch circuit 42 includes: a second controllable switch Q2, a first resistor R2, a second resistor R3 and a third resistor R6, wherein the first end of the second controllable switch Q2 is connected to the first end of the first resistor R2 and the output end of the current limiting power taking circuit 3, the control end of the second controllable switch Q2 is connected to the second end of the first resistor R2 and the first end of the second resistor R3, the second end of the second controllable switch Q2 is connected to the first end of the voltage divider circuit 43 and the first end of the third resistor R6; the second end of the second resistor R3 is connected to the first end of the first switch circuit 41; the second end of the third resistor R6 is connected to the second end of the first switch circuit 41 and then grounded.

[0060] Specifically, Figure 5 In the embodiment, when the controller 2 determines that the battery system is low in power or other systems are abnormal, the controller 2 outputs a high-level signal, and after the first controllable switch Q1 is turned on through the resistor R4, the enable terminal of the drive circuit 5 is grounded to a low level, and the drive circuit 5 stops outputting the PWM drive signal. After the first controllable switch Q1 is turned on, the control terminal level of the second controllable switch Q2 is pulled down to turn on, and the voltage at the second terminal of the second controllable switch Q2 changes from low to high. Therefore, the output voltage of the current-limiting power circuit 3 continues to drive the first controllable switch Q1 through Q2 and R5, so that the first controllable switch Q1 remains in the on state, and the drive circuit 5 remains in the locked state, and stops outputting the PWM drive signal.

[0061] Specifically, Figure 5In the embodiment, after locking, the first controllable switch Q1 and the second controllable switch Q2 continue to be turned on, which is equivalent to adding a load resistor on the output side of the current limiting power circuit 3, and its resistance value is (R2+R3) / / R6, which consumes the output current provided by the current limiting power circuit 3. The voltage VDD at the output end of the current limiting power circuit 3 will be lower than the shutdown threshold voltage V2 of the drive circuit 5, and cannot reach the startup threshold voltage V1 of the drive circuit 5. The current limiting power is only at the uA level, achieving micro power consumption.

[0062] Specifically, Figure 5 In the embodiment, when the flyback main circuit 1 needs to resume working, after the battery system is powered off for a certain period of time, the flyback main circuit 1 no longer draws power from the battery system, causing the voltage VDD at the output end of the current limiting power taking circuit 3 to gradually decrease, and the voltage at the control end of the first controllable switch Q1 will also decrease. When it is lower than the limit voltage, Q1 will be turned off. After Q1 is disconnected, the second controllable switch Q2 is also disconnected, and the level of the enable end of the drive circuit 5 is pulled high. At this time, when the operator controls the battery system to power on again, the drive circuit 5 outputs a PWM drive signal based on the high-level signal of the enable end, drives the flyback main circuit 1 to work, and completes the wake-up of the flyback main circuit 1.

[0063] In some optional embodiments, such as Figure 6 As shown, the flyback power supply further includes: a wake-up circuit 6, wherein an external wake-up signal is input to an input end of the wake-up circuit 6, and a first output end and a second output end of the wake-up circuit 6 are respectively connected to a fourth end and a fifth end of the self-locking circuit 4.

[0064] Specifically, Figure 6 In the embodiment, when the flyback main circuit 1 needs to resume operation, it can also be powered on and awakened by an external power supply (which can be AC ​​or DC) as a wake-up signal; when the external wake-up signal arrives, the capacitor C1 will be charged through the resistor R7, and the charging current will flow through the primary side of the isolation optocoupler U2 to turn on the secondary side, so that the voltage of the first capacitor C2 is less than the limit voltage required for the first controllable switch Q1 to turn on. After the first controllable switch Q1 and the second controllable switch Q2 are turned off, the drive circuit 5 exits the locked state, and the enable end is no longer pulled low; at the same time, (R2+R3) / / R6 will no longer be connected to the output end of the current limiting power circuit 3, and the voltage VDD at the output end of the current limiting power circuit 3 will rise to the start threshold voltage V1 of the drive circuit 5, and the drive circuit 5 will output a PWM drive signal to drive the flyback main circuit 1 to work, completing the awakening of the flyback main circuit 1.

[0065] This embodiment provides a flyback power supply control method, which is applied to the controller of the above embodiment and any optional implementation manner thereof, such as Figure 7 As shown, the method includes:

[0066] Step S1: Acquire the working status of the battery system in real time.

[0067] Step S2: When it is determined that the battery system is low on power or other systems are abnormal, the self-locking circuit is controlled to remain on, so that after the voltage at the enable end of the drive circuit drops to a first threshold voltage, the drive circuit stops outputting the drive signal to stop the flyback main circuit from working.

[0068] Optionally, when it is believed that the system has other faults causing a risk of power failure, the self-locking circuit may be controlled to remain on.

[0069] Step S3: When the flyback main circuit needs to resume operation, the battery system is controlled to be powered off so that the self-locking circuit is turned off, and then the battery system is controlled to be powered on again. After that, the voltage at the enable end of the drive circuit increases to the second threshold voltage, so that the drive circuit outputs the drive signal again; the first threshold voltage is less than the second threshold voltage.

[0070] Specifically, the first threshold voltage is the shutdown threshold voltage of the drive circuit, and the second threshold voltage is the startup threshold voltage. When there is no operator on site and it is inconvenient to power off and on the battery, if there is an external wake-up signal, the wake-up circuit is automatically turned on, so that after the first switch circuit and the second switch circuit are turned off, the voltage at the enable end of the drive circuit rises to the second value voltage, and the drive circuit outputs a drive signal after the lock state is unlocked.

[0071] It should be noted that the flyback power supply control method involved in this embodiment is consistent with the content of the above embodiment and any optional implementation manner thereof, and will not be repeated here.

[0072] The flyback power supply control method provided in this embodiment, when the battery system has an abnormal situation such as power failure, the auxiliary power supply is shut down after the self-locking circuit is turned on based on the output signal of the controller; even if the control circuit loses power and cannot send a continuous output signal, the self-locking circuit can still maintain the on state, so that the drive circuit locks the output, and the overall circuit power consumption is low; the state is locked by the locking circuit, and no additional UPS battery power is required to maintain the controller to continuously send output signals, which can greatly reduce costs. The flyback power supply provided by the present invention can also directly obtain information such as the battery system power, can timely and accurately reflect the battery system power loss situation, has high reliability, and can actively wake up when the battery system is powered on again, and can also actively wake up by identifying the external input change signal through the wake-up circuit, and the wake-up method is diverse and highly automated.

[0073] An embodiment of the present invention further provides a computer device having the control device of the flyback power supply.

[0074] See also Figure 8 , Figure 8 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Figure 8As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 8 A processor 10 is taken as an example.

[0075] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.

[0076] The memory 20 stores instructions executable by at least one processor 10, so that at least one processor 10 executes the method shown in the above embodiment.

[0077] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created by the use of a computer device based on the presentation of a small program landing page, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0078] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.

[0079] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.

[0080] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.

[0081] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A flyback power supply, characterized in that: include: Flyback main circuit, controller, current limiting power circuit, self-locking circuit and drive circuit, among which, The flyback main circuit draws power from the battery system; The first input terminal of the controller inputs the output winding voltage of the flyback main circuit, the second input terminal of the controller is connected to the battery system or other systems, the first output terminal and the second output terminal of the controller are respectively connected to the first terminal and the second terminal of the self-locking circuit, and the controller is used to determine the working state of the battery system or other systems; The third terminal of the self-locking circuit is connected to the enabling terminal of the driving circuit, and the self-locking circuit is used to be continuously turned on when the controller determines that the battery system is low on power or other system abnormalities occur, or to be turned off when the battery system is powered off; The power supply end of the drive circuit is connected to the output end of the current limiting power supply circuit and the first end of the self-locking circuit. The power supply end of the drive circuit inputs the auxiliary winding voltage of the flyback main circuit. The output end of the drive circuit is connected to the control end of the flyback main circuit. The drive circuit is used to stop outputting the drive signal when the self-locking circuit is continuously turned on, so that the flyback main circuit stops working, or output the drive signal when the battery system is powered on again or other systems return to normal, so that the flyback main circuit starts working.

2. The flyback power supply according to claim 1, characterized in that: The self-locking circuit includes: a first switch circuit, a second switch circuit and a voltage divider circuit, wherein: The first end of the second switch circuit is connected to the output end of the current limiting power taking circuit, the second end of the second switch circuit is connected to the first end of the first switch circuit and the enable end of the drive circuit, the third end of the second switch circuit is connected to the first end of the voltage divider circuit, and the fourth end of the second switch circuit is connected to the second end of the first switch circuit and then grounded; The second end of the voltage divider circuit is connected to the second output end of the controller, and the third end of the voltage divider circuit is connected to the third end of the first switch circuit; when the controller determines that the battery system is low on power or other systems are abnormal, the controller controls the first switch circuit to be turned on, the drive circuit stops outputting the drive signal, and the second switch circuit is turned on, so that the first switch circuit remains in the on state; When the flyback main circuit needs to resume operation, the battery system is powered off so that the first switch circuit and the second switch circuit are turned off, and then the battery system is powered on again so that the drive circuit outputs a drive signal.

3. The flyback power supply according to claim 2, characterized in that: The first switch circuit includes: a first controllable switch and a first capacitor, wherein: The first end of the first controllable switch is connected to the enable end of the drive circuit, the control end of the first controllable switch is connected to the first end of the first capacitor and the third end of the voltage divider circuit, and the second end of the first controllable switch is connected to the second end of the first capacitor and the fourth end of the second switch circuit and then grounded; When the controller determines that the battery system is low on power or has other system abnormalities, the controller controls the first controllable switch to be turned on, the drive circuit stops outputting the drive signal, and the second switch circuit is turned on, so that the first controllable switch remains in the turned-on state; When the flyback main circuit needs to resume operation, the battery system is powered off so that the first controllable switch and the second switch circuit are turned off, and then the battery system is powered on again so that the drive circuit outputs a drive signal.

4. The flyback power supply according to claim 2, characterized in that: The second switch circuit includes: a second controllable switch, a first resistor, a second resistor and a third resistor, wherein: The first end of the second controllable switch is connected to the first end of the first resistor and the output end of the current limiting power taking circuit, the control end of the second controllable switch is connected to the second end of the first resistor and the first end of the second resistor, and the second end of the second controllable switch is connected to the first end of the voltage divider circuit and the first end of the third resistor; The second end of the second resistor is connected to the first end of the first switch circuit; The second end of the third resistor is connected to the second end of the first switch circuit and then grounded; When the controller determines that the battery system is low on power or has other system abnormalities, the controller controls the first switch circuit to be turned on, the drive circuit stops outputting the drive signal, and the second controllable switch is turned on, so that the first switch circuit remains in the on state; When the flyback main circuit needs to resume operation, the battery system is powered off so that the first switch circuit and the second controllable switch are turned off, and then the battery system is powered on again so that the drive circuit outputs a drive signal.

5. The flyback power supply according to claim 1, characterized in that: Also includes: Wake-up circuit, where An external wake-up signal is input to the input end of the wake-up circuit, and a first output end and a second output end of the wake-up circuit are respectively connected to a fourth end and a fifth end of the self-locking circuit. The wake-up circuit is used to turn off the self-locking circuit based on the external wake-up signal, so that the driving circuit outputs a driving signal.

6. A flyback power supply control method, characterized in that: Applied to the controller according to any one of claims 1 to 5, the method comprises: Obtain the working status of the battery system in real time; When it is determined that the battery system is low on power or other systems are abnormal, the self-locking circuit is controlled to be continuously turned on, so that after the voltage at the enable end of the drive circuit drops to a first threshold voltage, the drive circuit stops outputting the drive signal so that the flyback main circuit stops working; When the flyback main circuit needs to resume operation, the battery system is powered off to turn off the self-locking circuit, and then the battery system is powered on again, and then the voltage at the enable end of the drive circuit increases to the second threshold voltage, so that the drive circuit outputs the drive signal again; The first threshold voltage is lower than the second threshold voltage.

7. The flyback power supply control method according to claim 6, characterized in that: The process of controlling the self-locking circuit to be continuously turned on includes: After the first switch circuit is controlled to be turned on, the second switch circuit is turned on, and the auxiliary winding of the flyback main circuit stops supplying power to the drive circuit.

8. The flyback power supply control method according to claim 6, characterized in that: Also includes: When the battery system is powered on again or the external wake-up signal state changes, the wake-up circuit is controlled to be turned on, so that after the first switch circuit and the second switch circuit are turned off, the voltage at the enable end of the drive circuit rises to the second threshold voltage, and then the drive circuit outputs a drive signal.

9. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the flyback power supply control method according to any one of claims 6 to 8 by executing the computer instructions.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the flyback power supply control method according to any one of claims 6 to 8.