A system and method for switching dual backup power supplies and waking up offline
By designing a dual backup power supply switching and offline wake-up system, the logical switching and wake-up of supercapacitor and battery power are realized, which solves the problem of unreasonable power input after mains power failure in the existing technology and improves the reliability of the equipment. and scalability.
Patent Information
- Application Number
- CN202111453563.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-01
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2041-12-01
AI Technical Summary
In the existing technology, dual backup power supplies are put into the system at the same time after the mains power fails, and the logic control is unreasonable, resulting in the problem of repeated restarts of the equipment, and it cannot meet the dual backup power supply demand scenarios of supercapacitors and batteries.
A dual backup power supply switching and offline wake-up system is designed, including a power monitoring unit, a supercapacitor switching control unit, a central processing unit, a controllable voltage stabilizing unit, a battery power supply, a battery switching logic unit, and an offline wake-up control unit. And the battery switching control unit, through the collaborative work of these units, the logical switching and offline wake-up of the supercapacitor and battery power are realized, ensuring that the device can switch and wake up in an orderly manner after the main system power is lost.
It realizes the logical switching control of dual backup power supplies of supercapacitor and battery, solves the problem of repeated restarts of the backup power supply when the capacity is insufficient, simplifies the circuit design, and improves the reliability and scalability of the system.
Smart Images

Figure CN114336930B
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of digital signal processing, and in particular relates to a system and method for dual backup power supply switching and offline awakening. Background Art
[0002] With the application of big data concepts in power grids, power grid data management platforms have increasingly stringent requirements on the reliability of data collection terminals, especially on the communication functions of data collection terminals. In the technical specifications for power collection terminals, it is clearly required that when the mains power is off, the power collection terminal must continue to work for at least three minutes and have the ability to communicate with the master station at least three times. At the same time, the terminal backup power supply must be able to ensure reliable operation for at least eight years.
[0003] In view of the high technical requirements, the existing technology manages the supercapacitor charging and discharging unit and the battery charging and discharging unit independently, without a method for system management, and mostly adopts dual backup power supply hot standby, without the distinction between main and auxiliary power supply, that is, after the main power is off, the dual backup power supply is put into the system at the same time, and the logic control is unreasonable. The patent with publication number CN106774604A provides a key wake-up circuit, a wake-up method and a meter reading terminal made thereof. The method uses a large number of crystal switch tubes and resistors and capacitors, has a complex circuit, cumbersome logic, and poor scalability. In addition, the method provided by the patent is only applicable to the scenario where the battery is the backup power supply, and cannot meet the current supercapacitor and battery dual backup power supply demand scenarios.
[0004] Therefore, how to achieve the goal of logically supplying the product power system with the dual backup power supplies of supercapacitor and battery in turn when the main system power is off, and waking up the product power system when the product is in the off-line state is an urgent task for people in this technical field. Summary of the invention
[0005] In view of the deficiencies in the prior art, the present invention provides a system for switching on and off-line waking up a dual backup power supply, so as to solve the problems in the prior art of repeated restarts of the equipment caused by the dual backup power supplies being simultaneously put into the system after the city power is cut off, unreasonable logic control, and the backup battery entering a false shutdown state due to insufficient energy; in addition, the present invention also provides a method for switching on and off-line waking up a dual backup power supply.
[0006] In order to solve the above technical problems, the present invention adopts the following technical solutions:
[0007] In a first aspect, the present invention provides a dual backup power supply switching and offline wake-up system, comprising: a power monitoring unit, a supercapacitor switching control unit, a central processing unit, a supercapacitor power supply, a controllable voltage stabilizing unit, a battery power supply, a battery switching logic unit, an offline wake-up control unit and a battery switching control unit; the power monitoring unit, the central processing unit and the supercapacitor power supply are respectively connected to the supercapacitor switching control unit, the power monitoring unit, the controllable voltage stabilizing unit, the central processing unit, the battery switching control unit and the offline wake-up control unit are respectively connected to the battery switching logic unit, the supercapacitor switching control unit and the battery power supply are respectively connected to the controllable voltage stabilizing unit, and the battery power supply is also connected to the battery switching control unit; the power monitoring unit is used to monitor the power of the main system The working state of the source, when the main system power is powered off, the power monitoring unit outputs a low level to the supercapacitor switching control unit, the central processing unit outputs a high level to the supercapacitor switching control unit, and the supercapacitor power is put into the main system; when the energy of the supercapacitor power is insufficient, the controllable voltage stabilizing unit outputs a high level to the battery switching logic unit to control the battery switching logic unit to enter the working state, the battery switching logic control unit outputs a high level to the battery switching control unit, and the battery switching control unit controls the battery power to be put into the main system; when the main system is in the shutdown state, the offline wake-up control unit is used to output a high level to the battery switching logic unit, and the battery switching logic unit controls the battery switching control unit to put the battery power into the power system.
[0008] Further, the supercapacitor switching control unit includes a resistor R2, a resistor R3, a resistor R4, a resistor R7, a resistor R8, a crystal PNP transistor V3, a crystal NPN transistor V5, a crystal diode V1, a crystal diode V4, a PMOS tube V2 and a capacitor C1, the first pin of the resistor R7 is connected to the PWR_EN pin of the central processing unit and to the first pin of the resistor R8, the second pin of R8 is grounded, the second pin of the resistor R7 is connected to the crystal NPN transistor V5, the second pin of the crystal PNP transistor V3 is connected to the first pin of the resistor R3 and the cathode of the second pin of the crystal diode V1, the second pin of the resistor R3 is connected to the first pin of the PMOS tube V2, the anode of the first pin of the crystal diode V1 is connected to the first pin of the resistor R4, the second pin of the resistor R4 is connected to the gate of the first pin of the PMOS tube V2, the source of the third pin of the PMOS tube V2 is connected to the supercapacitor power supply VCAP, and the drain of the second pin of the PMOS tube V2 is connected to the anode of the first pin of the crystal diode V4.
[0009] Further, the controllable voltage stabilizing unit includes a resistor R9, a resistor R11, a resistor R12, a resistor R13, a resistor R14, a crystal NPN transistor V7, a transistor NPN transistor V10, a PMOS tube V6, a voltage stabilizing diode V8, a crystal diode V9, a crystal diode V16 and a capacitor C2, a first pin of the resistor R9 is connected to a second pin of the crystal diode V4, a second pin of R9 is connected to a first pin of the crystal diode V9, a first pin of the resistor R14 is connected to a main system power state VMAIN_STA, a second pin of the resistor R14 is connected to an anode of a first pin of the crystal diode V16, a cathode of a second pin of the crystal diode V16 is connected to a cathode of a second pin of the crystal diode V9 and is connected to the crystal NPN transistor together. The first pin of the crystal NPN transistor V10 is connected to the base, the third pin of the crystal NPN transistor V10 is connected to the battery power supply VBAT and the source of the third pin of the PMOS tube V6, the second pin of the crystal NPN transistor V10 is connected to the emitter of the first pin of the resistor R11 and the first pin of the resistor R13, the second pin of the resistor R11 is grounded, the second pin of the resistor R13 is connected to the gate of the first pin of the PMOS tube V6, the second pin of the PMOS tube V6 is connected to the drain of the first pin of the resistor R12 and the collector of the third pin of the crystal NPN transistor V7, the first pin of the crystal NPN transistor V7 is connected to the second pin of the resistor R12 and the cathode of the second pin of the voltage regulator diode V8, and the first pin of the voltage regulator diode V8 is grounded.
[0010] Furthermore, the offline wake-up control unit includes a resistor R15, a resistor R18, a resistor R22, a key switch K1, a crystal PNP transistor V11 and a capacitor C4, the first pin of the resistor R15 is connected to the battery power supply VBAT, the second pin of the resistor R15 is connected to the second pin and the fourth pin of the key switch K1, and is also connected to the first pin of the capacitor C4 and the first pin of the resistor R18, the first pin and the third pin of the key switch K1 are grounded, the second pin of the capacitor C4 is grounded, the second pin of the resistor R18 is connected to the base of the first pin of the crystal PNP transistor V11, the second pin of the crystal PNP transistor V11 is connected to the controllable regulated voltage output VCC, and the collector of the third pin of the crystal PNP transistor V11 is connected to the first pin of the resistor R22.
[0011] Furthermore, the battery switching control unit includes a resistor R16, a resistor R17, a resistor R19, a resistor R20, a resistor R21, a crystal NPN transistor V13, a PMOS tube V12, a crystal diode V14, a crystal diode V15 and a capacitor C3, the second pin of the resistor R19 is connected to the first pin of the resistor R21 and the base of the first pin of the crystal NPN transistor V13, the second pin of the resistor R21 is grounded, the emitter of the second pin of the crystal NPN transistor V13 is grounded, and the collector of the third pin of the crystal NPN transistor V13 is connected to the first pin of the resistor R17, The cathode of the second pin of the crystal diode V14 is connected, the anode of the first pin of the crystal diode V14 is connected to the first pin of the resistor R20, the second pin of the resistor R20 is connected to the second pin of the resistor R17, and both are connected to the gate of the first pin of the PMOS tube V12, the source of the third pin of the PMOS tube V12 is connected to the battery power supply VBAT, the drain of the second pin of the PMOS tube V12 is connected to the anode of the first pin of the crystal diode V15, and the cathode of the second pin of the crystal diode V15 is the output power supply VBAT_PWR of the battery switching control unit.
[0012] Furthermore, the power monitoring unit includes a resistor R1, a resistor R5, a resistor R6 and a power detection chip D1, the first pin of the resistor R5 is connected to the main system power supply, the second pin of the resistor R5 is respectively connected to the first pin of the resistor R6 and the second pin of the power monitoring chip D1, the second pin of R6 is grounded, the second pin of the power monitoring chip D1 is grounded, and the first pin of the power monitoring chip D1 is connected to the base of the first pin of the PNP transistor V3.
[0013] Furthermore, the battery switching logic unit includes a resistor R23 and a logic OR gate chip D2, the first pin of the OR gate chip D2 is connected to the central processing unit and the first pin of the resistor R23, the second pin of the resistor R23 is grounded, the second pin of the OR gate chip D2 is connected to the offline wake-up unit, the third pin of the OR gate chip D2 is grounded, the fourth pin of the OR gate chip D2 is connected to the first pin of the resistor R19 of the battery switching control unit, and the fifth pin of the OR gate chip D2 is connected to the second pin emitter of the crystal NPN transistor V7 of the controllable voltage stabilizing unit.
[0014] In a second aspect, the present invention further provides a method for switching and waking up a dual backup power supply offline, comprising the following steps:
[0015] S10, determine whether the mains power is normal, if so, the product power system is powered by the main system power supply; if not, execute S20;
[0016] S20, the power monitoring unit outputs a low level, the central processing unit outputs a high level, the supercapacitor switching control unit puts the supercapacitor power into the product power system to provide working power for the product, and the battery power is isolated from the product power system;
[0017] S30, determining whether the energy of the supercapacitor power supply is sufficient, if yes, continue to execute S20, if no, execute S40;
[0018] S40, the controllable voltage stabilizing unit outputs a high level, the battery switching logic unit is in an effective state, the central processing unit inputs a high level, and the battery switching logic unit controls the battery switching control unit to input the battery power into the product power system to provide working power for the product;
[0019] S50, when the product is in the off-line state, the battery switching logic unit is in the effective state, and the key switch K1 of the offline wake-up control unit is long pressed, the offline wake-up control unit inputs a high level, and the battery power is input into the product power system to provide working power for the product to enter the on state.
[0020] Furthermore, in step S10, the power monitoring unit is responsible for determining whether the mains power is normal. A high level output by the power monitoring unit indicates that the mains power is normal, and a low level output by the power monitoring unit indicates that the mains power is in a power-off state.
[0021] Furthermore, in step S50, after releasing the key switch K1, the battery power continues to be input into the product power system to provide working power for the product until the offline wake-up control unit outputs a low level and the product enters the shutdown state.
[0022] Compared with the prior art, the dual backup power supply switching and offline wake-up system and method provided by the present invention have at least the following beneficial effects:
[0023] The circuit designed by the present invention is simple and clear, and uses simple resistor-capacitor elements, transistor sources and logic gates to realize the switching control of the supercapacitor and battery dual backup power supplies, so that the supercapacitor and battery dual backup power supplies can be logically switched back and forth to provide power to the product power system after the main system power supply is powered off, and an offline wake-up function is realized, solving the problem of repeated restarting of the backup power supply when the power supply is insufficient and shut down. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the scheme of the present invention, a brief introduction is given below to the figures required for use in the description of the embodiments. Obviously, the figures described below are some embodiments of the present invention. For ordinary technicians in this field, other figures can be obtained based on these figures without paying any creative work.
[0025] Figure 1 A system composition diagram of dual backup power supply switching and offline wake-up provided by an embodiment of the present invention;
[0026] Figure 2 A circuit diagram of a supercapacitor switching control unit of a dual backup power supply switching and offline wake-up system provided by an embodiment of the present invention;
[0027] Figure 3 A circuit diagram of a controllable voltage stabilizing unit of a dual backup power supply switching and offline wake-up system provided by an embodiment of the present invention;
[0028] Figure 4 A circuit diagram of an offline wake-up control unit of a dual backup power supply switching and offline wake-up system provided by an embodiment of the present invention;
[0029] Figure 5 A circuit diagram of a battery switching control unit of a dual backup power switching and offline wake-up system provided by an embodiment of the present invention;
[0030] Figure 6 A circuit diagram of a power supply monitoring unit of a system for switching dual backup power supplies and awakening offline provided by an embodiment of the present invention;
[0031] Figure 7 A circuit diagram of a battery switching logic unit of a dual backup power supply switching and offline wake-up system provided by an embodiment of the present invention;
[0032] Figure 8 A timing diagram of a power detection chip in a power monitoring unit of a system for switching dual backup power supplies and awakening offline provided by an embodiment of the present invention;
[0033] Fig. 9 A dual backup power supply switching timing diagram of a dual backup power supply switching and offline wake-up system provided by an embodiment of the present invention;
[0034] Fig.10 An offline wake-up timing diagram of a dual backup power supply switching and offline wake-up system provided by an embodiment of the present invention;
[0035] Fig.11 The present invention provides a flow chart of a dual backup power supply switching and offline wake-up method. DETAILED DESCRIPTION
[0036] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by technicians in the technical field of the present invention; the terms used in this specification are only for the purpose of describing specific embodiments and are not intended to limit the present invention. For example, the directions or positions indicated by the terms "length", "width", "up", "down", "left", "right", "front", "back", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc. are based on the directions or positions shown in the drawings, which are only for the convenience of description and should not be understood as limitations on the present technical solution.
[0037] The terms "including" and "having" and any variations thereof in the specification and claims of the present invention and the above-mentioned drawings are intended to cover non-exclusive inclusions; the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish different objects rather than to describe a specific order. In the specification and claims of the present invention and the above-mentioned drawings, when an element is referred to as being "fixed to" or "mounted on" or "disposed on" or "connected to" another element, it may be directly or indirectly located on the other element. For example, when an element is referred to as being "connected to" another element, it may be directly or indirectly connected to the other element.
[0038] In addition, reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0039] The present invention provides a dual backup power supply switching and offline awakening system, which is used in equipment using a super capacitor and a battery as a dual backup power supply. The dual backup power supply switching and offline awakening system comprises: a power monitoring unit, a super capacitor switching control unit, a central processing unit, a super capacitor power supply, a controllable voltage stabilizing unit, a battery power supply, a battery switching logic unit, an offline awakening control unit and a battery switching control unit; the power monitoring unit, the central processing unit and the super capacitor power supply are respectively connected to the super capacitor switching control unit, the power monitoring unit, the controllable voltage stabilizing unit, the central processing unit, the battery switching control unit and the offline awakening control unit are respectively connected to the battery switching logic unit, the super capacitor switching control unit and the battery power supply are respectively connected to the controllable voltage stabilizing unit, and the battery power supply is also connected to the battery The switching control unit is connected; the power monitoring unit is used to monitor the working status of the main system power supply. When the main system power supply is powered off, the power monitoring unit outputs a low level to the supercapacitor switching control unit, and the central processing unit outputs a high level to the supercapacitor switching control unit, and the supercapacitor power is put into the main system; when the supercapacitor power supply energy is insufficient, the controllable voltage stabilizing unit outputs a high level to the battery switching logic unit to control the battery switching logic unit to enter the working state, the battery switching logic control unit outputs a high level to the battery switching control unit, and the battery switching control unit controls the battery power to be put into the main system; when the main system is in the shutdown state, the offline wake-up control unit is used to output a high level to the battery switching logic unit, and the battery switching logic unit controls the battery switching control unit to put the battery power into the power supply system.
[0040] The present invention realizes the switching control of the super capacitor and the battery dual backup power supply, and realizes the offline wake-up function.
[0041] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings.
[0042] The present invention provides a dual backup power supply switching and offline wake-up system for use in equipment using super capacitors and batteries as dual backup power supplies, such as Figure 1As shown, the dual backup power supply switching and offline wake-up system includes: a power monitoring unit, a supercapacitor switching control unit, a central processing unit, a supercapacitor power supply, a controllable voltage stabilizing unit, a battery power supply, a battery switching logic unit, an offline wake-up control unit and a battery switching control unit; the power monitoring unit, the central processing unit and the supercapacitor power supply are respectively connected to the supercapacitor switching control unit, the power monitoring unit controllable voltage stabilizing unit, the central processing unit, the battery switching control unit and the offline wake-up control unit are respectively connected to the battery switching logic unit, the supercapacitor switching control unit and the battery power supply are respectively connected to the controllable voltage stabilizing unit, and the battery power supply is also connected to the battery switching control unit; the power monitoring unit is used to monitor the working state of the main system power supply. When the main system power supply is powered on, the power monitoring unit outputs a high level to the supercapacitor switching control unit, and the central processing unit outputs a high level to the supercapacitor switching control unit. The unit outputs a low level, and the supercapacitor power supply is isolated from the main system. When the main system power is off, the power monitoring unit outputs a low level to the supercapacitor switching control unit, and the central processing unit outputs a high level to the supercapacitor switching control unit, and the supercapacitor power supply is put into the main system; when the supercapacitor power supply has sufficient energy, the controllable voltage stabilizing unit outputs a low level to the battery switching logic unit, and the battery power supply is isolated from the main system; when the supercapacitor power supply has insufficient energy, the controllable voltage stabilizing unit outputs a high level to the battery switching logic unit to control the battery switching logic unit to enter the working state, the battery switching logic control unit outputs a high level to the battery switching control unit, and the battery switching control unit controls the battery power supply to be put into the main system; when the main system is in the shutdown state, the offline wake-up control unit is used to output a high level to the battery switching logic unit, and the battery switching logic unit controls the battery switching control unit to put the battery power into the power supply system.
[0043] Further, in this embodiment, if Figure 2As shown, the supercapacitor switching control unit includes a resistor R2, a resistor R3, a resistor R4, a resistor R7, a resistor R8, a crystal PNP transistor V3, a crystal NPN transistor V5, a crystal diode V1, a crystal diode V4, a PMOS tube V2 and a capacitor C1. The first pin of the resistor R7 is connected to the PWR_EN pin of the central processing unit and to the first pin of the resistor R8. The second pin of R8 is grounded. The second pin of the resistor R7 is connected to the crystal NPN transistor V5. When PWR_EN is at a high level, the crystal NPN transistor V5 is turned on. When PWR_EN is at a low level, the crystal NPN transistor V5 is turned off. The first pin of the crystal PNP transistor V3 is connected to the PWR_EN pin of the central processing unit and to the first pin of the resistor R8. The second pin of R8 is grounded. The second pin of the resistor R7 is connected to the crystal NPN transistor V5. When PWR_EN is at a high level, the crystal NPN transistor V5 is turned on. When PWR_EN is at a low level, the crystal NPN transistor V5 is turned off. The second pin is connected to the first pin of the resistor R3 and the cathode of the second pin of the crystal diode V1, the second pin of the resistor R3 is connected to the first pin of the PMOS tube V2, the anode of the first pin of the crystal diode V1 is connected to the first pin of the resistor R4, the second pin of the resistor R4 is connected to the gate of the first pin of the PMOS tube V2, the source of the third pin of the PMOS tube V2 is connected to the super capacitor power supply VCAP, the drain of the second pin of the PMOS tube V2 is connected to the anode of the first pin of the crystal diode V4, when the transistor PNP triode V3 and the crystal NPN triode V5 are all turned on, the PMOS tube V2 is turned on, and the super capacitor is put into the power system, otherwise the super capacitor is disconnected from the power system.
[0044] Further, in this embodiment, if Figure 3As shown, the controllable voltage stabilizing unit includes a resistor R9, a resistor R11, a resistor R12, a resistor R13, a resistor R14, a crystal NPN transistor V7, a transistor NPN transistor V10, a PMOS tube V6, a voltage stabilizing diode V8, a crystal diode V9, a crystal diode V16 and a capacitor C2. The first pin of the resistor R9 is connected to the second pin of the crystal diode V4, the second pin of R9 is connected to the first pin of the crystal diode V9, the first pin of the resistor R14 is connected to the main system power state VMAIN_STA, the second pin of the resistor R14 is connected to the anode of the first pin of the crystal diode V16, the cathode of the second pin of the crystal diode V16 is connected to the cathode of the second pin of the crystal diode V9 and is connected to the base of the first pin of the crystal NPN transistor V10. The crystal diode V9, the crystal diode V16 and the crystal NPN transistor V10 together form an OR logic circuit, that is, when one of VCAP_PWR or VMAIN_STA is at a high level, the crystal NPN transistor V10 is turned on, and only when both are at a low level, the crystal NPN The transistor V10 is turned off, the collector of the third pin of the crystal NPN transistor V10 is connected to the battery power supply VBAT and the source of the third pin of the PMOS tube V6, the emitter of the second pin of the crystal NPN transistor V10 is connected to the first pin of the resistor R11 and the first pin of the resistor R13, the second pin of the resistor R11 is grounded, and the second pin of the resistor R13 is connected to the gate of the first pin of the PMOS tube V6. When the crystal NPN transistor V10 is turned on, the PMOS tube V6 is turned off. When the crystal NPN transistor V10 is turned off, The PMOS tube V6 is turned on, the drain of the second pin of the PMOS tube V6 is connected to the first pin of the resistor R12 and the collector of the third pin of the crystal NPN transistor V7, the first pin of the crystal NPN transistor V7 is connected to the second pin of the resistor R12 and the cathode of the second pin of the voltage stabilizing diode V8, the first pin of the voltage stabilizing diode V8 is grounded, and the emitter of the second pin of the crystal NPN transistor V7 is the controllable voltage stabilizing unit output VCC. When the PMOS tube V6 is turned on, the crystal NPN transistor V7 is turned on, and VCC outputs a stable power supply.
[0045] Specifically, the controllable voltage stabilization unit is composed of a crystal diode V9, V16 and a crystal transistor V10 to form an OR gate logic circuit. When the supercapacitor output power supply VCAP_PWR is at a low level and the main system power supply is in a power-off state and VMAIN_STA is at a low level, the crystal NPN transistor V10 is cut off, the gate of the PMOS tube V6 is low-conducting, the drain and source are equipotential to the battery voltage, and the base level of the crystal NPN transistor V7 is V8 regulated voltage level 3.9V through the current limiting resistor R12 and the voltage stabilizing diode V8. At this time, the crystal NPN transistor V7 is turned on, and the emitter level is V V8 -V BE, that is, 3.9V-0.3V=3.6V, at this time VCC is a stable 3.6V DC power supply, providing a stable working power supply for the battery switching logic unit. When the super capacitor output power supply VCAP_PWR or the main system power supply power-off state VMAIN_STA is at a level, the crystal NPN transistor V10 is turned on, the PMOS tube V6 is turned off, the VCC output is low, and the battery switching logic unit stops working.
[0046] Further, in this embodiment, if Figure 4 As shown, the offline wake-up control unit includes a resistor R15, a resistor R18, a resistor R22, a key switch K1, a crystal PNP transistor V11 and a capacitor C4, the first pin of the resistor R15 is connected to the battery power supply VBAT, the second pin of the resistor R15 is connected to the second pin and the fourth pin of the key switch K1, and is also connected to the first pin of the capacitor C4 and the first pin of the resistor R18, the first pin and the third pin of the key switch K1 are grounded, the second pin of the capacitor C4 is grounded, the second pin of the resistor R18 is connected to the base of the first pin of the crystal PNP transistor V11, the second pin of the crystal PNP transistor V11 is connected to the controllable voltage output VCC, the collector of the third pin of the crystal PNP transistor V11 is connected to the first pin of the resistor R22, and the pin is the offline wake-up unit output signal KET_STA. When the key switch K1 is pressed, the crystal PNP transistor V11 is turned on, and the KEY_STA signal level is equal to VCC. When the key switch K1 is released, the crystal PNP transistor V11 is turned off, and KEY_STA is equal to the ground level.
[0047] Specifically, the offline wake-up control unit is when the system is in the shutdown state. At this time, the battery switching logic control unit is in the working state. When the button switch K1 is long pressed, the battery will be put into the power supply system, and then the system enters the startup state. The programmable control signal outputs a high level. After releasing the button switch K1, the battery continues to be put into the power supply system until the programmable control signal outputs a low level and enters the shutdown state.
[0048] Further, in this embodiment, if Figure 5As shown, the battery switching control unit includes a resistor R16, a resistor R17, a resistor R19, a resistor R20, a resistor R21, a crystal NPN transistor V13, a PMOS tube V12, a crystal diode V14, a crystal diode V15 and a capacitor C3. The second pin of the resistor R19 is connected to the first pin of the resistor R21 and the base of the first pin of the crystal NPN transistor V13. The second pin of the resistor R21 is grounded, the emitter of the second pin of the crystal NPN transistor V13 is grounded, the collector of the third pin of the crystal NPN transistor V13 is connected to the first pin of the resistor R17 and the cathode of the second pin of the crystal diode V14, and the anode of the first pin of the crystal diode V14 is connected to the resistor R2 The first pin of the resistor R20 is connected to the second pin of the resistor R17, and the two pins are connected to the gate of the first pin of the PMOS tube V12. The source of the third pin of the PMOS tube V12 is connected to the battery power supply VBAT. The drain of the second pin of the PMOS tube V12 is connected to the anode of the first pin of the crystal diode V15. The cathode of the second pin of the crystal diode V15 is the output power supply VBAT_PWR of the battery switching control unit. When BAT_CTRL is at a high level, the PMOS tube V12 is turned on, the battery power supply VBAT is output to VBAT_PWR through the anti-backflow diode V15, and the battery power supply is put into the power supply system. Otherwise, the battery power supply is disconnected from the power supply system.
[0049] Further, in this embodiment, if Figure 6 As shown, the power monitoring unit includes a resistor R1, a resistor R5, a resistor R6 and a power detection chip D1. The first pin of the resistor R5 is connected to the main system power supply, the second pin of the resistor R5 is connected to the first pin of the resistor R6 and the second pin of the power monitoring chip D1 respectively, the second pin of R6 is grounded, the second pin of the power monitoring chip D1 is grounded, the first pin of the power monitoring chip D1 is connected to the base of the first pin of the PNP crystal transistor V3, when the first pin of the power monitoring chip D1 outputs a high level, the PNP crystal transistor V3 is turned off, and when the first pin of the power monitoring chip D1 outputs a low level, the PNP crystal transistor V3 is turned on.
[0050] Further, in this embodiment, if Figure 7As shown, the battery switching logic unit includes a resistor R23 and a logic OR gate chip D2, the first pin of the OR gate chip D2 is connected to the central processing unit and the first pin of the resistor R23, the second pin of the resistor R23 is grounded, the second pin of the OR gate chip D2 is connected to the offline wake-up unit, the third pin of the OR gate chip D2 is grounded, and the fourth pin outputs a BAT_CTRL signal, the fourth pin of the OR gate chip D2 is connected to the first pin of the resistor R19 of the battery switching control unit, and the fifth pin of the OR gate chip D2 is connected to the emitter of the second pin of the crystal NPN transistor V7 of the controllable voltage stabilizing unit. When VCC outputs a stable power supply, the battery switching logic unit is powered on and enters a working state. When KEY_STA or PWR_EN has a high level, the BAT_CTRL signal is a high level, and only when both are low levels, the BAT_CTRL signal is a low level.
[0051] Specifically, the battery switching logic control unit D2 uses an integrated OR gate model 74AHC1G32, and its working power supply is provided by a controllable voltage stabilizing unit. When the main system power is off and the supercapacitor power supply has no output, the battery switching logic control unit enters the working state. When the programmable control signal PWR_EN outputs a high level, or the offline wake-up control unit KEY_STA output is high, D2 outputs a high level, and through the battery switching control unit current limiting resistor R19, drives the crystal NPN transistor V13 to turn on, and its collector is low, driving the PMOS tube V12 to turn on, so that the battery is put into the system power supply, and VBAT_PWR is the battery voltage.
[0052] Table 1 Schematic diagram network description
[0053]
[0054]
[0055] Further, in this embodiment, if Figure 8 As shown in the figure, the power detection chip of D1 in the power monitoring unit uses the R3111H421A model. When VDD drops to -V DET , that is, 4.2V, OUT outputs low level; when VDD rises to +VDET, that is, 4.315V, OUT outputs high level. Combined with the network description of the schematic diagram in Table 1, it can be seen that when VMAIN is in normal working state, VMAIN_STA is high level. When VMAIN is powered off, it satisfies When VMAIN_STA is high, the emitter junction of the crystal PNP transistor V3 in the supercapacitor switching control unit is reverse biased and enters the cut-off state, the PMOS tube V2 is cut off, and VCAP_PWR has no power output. When VMAIN_STA is low, the emitter junction of the crystal PNP transistor V3 in the supercapacitor switching control unit is forward biased and enters the saturated conduction state. At this time, the programmable control signal PWR_EN is high, the emitter junction of the crystal NPN transistor V5 is forward biased and enters the saturated conduction state, the gate electrode of the PMOS tube V2 is turned on, and VCAP_PWR outputs power.
[0056] Further, in this embodiment, if Fig. 9 As shown, combined with the network description of the schematic diagram in Table 1, when VMAIN_STA is high, VCAP_PWR and VBAT_PWAR output low, the main system power supply is powered, and the main system power supply status is normal. When VMAIN_STA outputs low, VCAP_PWR outputs high, VBAT_PWAR outputs low, and the supercapacitor starts to supply power. When VMAIN_STA outputs low, VCAP_PWR outputs low, VBAT_PWAR outputs high, and the battery starts to supply power.
[0057] Further, in this embodiment, if Fig.10 As shown, combined with the network description of the schematic diagram in Table 1, it can be seen that when the key switch K1 is pressed, KEY_STA outputs a high level, and VBAT_PWR outputs a high level to indicate that the battery is plugged into the power supply. Therefore, V3P3 outputs a high level, which means that the battery is plugged into the power supply system, and the system re-enters the power-on state. After the key switch K1 is released, VBAT_PWR and V3P3 will continue to be high for a period of time. At this time, the battery is still plugged into the power supply system, and the system remains in the power-on state. Finally, after PWR_EN outputs a low level, the battery is no longer plugged into the power supply system, and the system enters the shutdown state.
[0058] The dual backup power supply switching and offline wake-up system circuit described in the above embodiment is simple and clear, and uses simple resistor-capacitor elements, transistor sources and logic gates to realize the switching control of the supercapacitor and battery dual backup power supplies, so that the supercapacitor and battery dual backup power supplies can be logically switched back and forth to provide power to the product power system after the main system power is cut off, and an offline wake-up function is realized. When the system is shut down, the system can still be woken up to keep the system in a powered-on state for a period of time, which solves the problem of repeated restarting of the backup power supply when it is shut down due to insufficient capacity.
[0059] The embodiment of the present invention also provides a method for switching and waking up a dual backup power supply offline, comprising the following steps:
[0060] S10, determine whether the mains power is normal, if so, the product power system is powered by the main system power supply; if not, execute S20;
[0061] Specifically, the power monitoring unit is responsible for judging whether the mains power is normal. Its status output is connected to the supercapacitor switching control unit and is a control signal of the supercapacitor switching control unit. The power monitoring unit outputs a high level to indicate that the mains power is normal, and the power monitoring unit outputs a low level to indicate that the mains power is in a power-off state.
[0062] S20, the power monitoring unit outputs a low level, the central processing unit outputs a high level, the supercapacitor switching control unit puts the supercapacitor power into the product power system to provide working power for the product, and the battery power is isolated from the product power system;
[0063] Specifically, another control signal of the supercapacitor switching control unit is a programmable control signal, which is output by a programmable control pin of the central processing unit. A high level of the programmable control signal indicates that the backup power supply is allowed to be switched, and a low level indicates that the backup power supply is prohibited to be switched;
[0064] S30, determining whether the energy of the supercapacitor power supply is sufficient, if yes, continue to execute S20, if no, execute S40;
[0065] S40, the controllable voltage stabilizing unit outputs a high level, the battery switching logic unit is in an effective state, the central processing unit inputs a high level, and the battery switching logic unit controls the battery switching control unit to input the battery power into the product power system to provide working power for the product;
[0066] Specifically, the controllable voltage stabilizing unit is controlled by the supercapacitor switching control unit, and its voltage stabilizing input is the battery power supply, that is, when the supercapacitor switching control unit is in the on state and the supercapacitor power supply has sufficient energy, the controllable voltage stabilizing unit outputs a low level, and the battery switching logic unit does not work; when the supercapacitor switching control unit is disconnected or the supercapacitor energy is insufficient, the controllable voltage stabilizing unit outputs a stable high level, and the battery switching logic unit enters the working state;
[0067] S50, when the product is in the off-line state, the battery switching logic unit is in the effective state, and the key switch K1 of the offline wake-up control unit is long pressed, the offline wake-up control unit inputs a high level, and the battery power is input into the product power system to provide the product with working power so that the product enters the on state;
[0068] Specifically, the input signal of the battery switching logic unit is input by the central processing unit and the offline wake-up control unit, and the output is used to control the battery switching control unit. When it is in working state, when the programmable control signal is high level or the offline wake-up control unit is high level, it controls the battery switching control unit to input the battery power into the power system, otherwise the battery power is isolated from the power system. After releasing the key switch K1, the battery power continues to be input into the product power system to provide working power for the product until the offline wake-up control unit outputs a low level and the product enters the shutdown state.
[0069] The method for switching the dual backup power supply and offline wake-up described in the above embodiment has simple steps and clear logic, so that the dual backup power supplies of the supercapacitor and the battery can be logically switched back and forth to provide power to the product power system after the main system power is powered off, and an offline wake-up function is realized. When the system is shut down, the system can still be woken up to keep the system in a powered-on state for a period of time, solving the problem of repeated restarting of the backup power supply when it is shut down due to insufficient capacity.
[0070] Obviously, the embodiments described above are only preferred embodiments of the present invention, rather than all embodiments. The preferred embodiments of the present invention are shown in the accompanying drawings, but they do not limit the patent scope of the present invention. The present invention can be implemented in many different forms. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present invention more thorough and comprehensive. Although the present invention has been described in detail with reference to the aforementioned embodiments, for those skilled in the art, it is still possible to modify the technical solutions recorded in the aforementioned specific embodiments, or to perform equivalent replacements for some of the technical features therein. Any equivalent structure made using the contents of the specification and drawings of the present invention, directly or indirectly used in other related technical fields, is also within the scope of patent protection of the present invention.
Claims
1. A method for switching dual backup power supplies and waking up offline, characterized in that: The following steps are involved: S10, determine whether the mains power is normal, if so, the product power system is powered by the main system power supply; if not, execute S20; S20, the power monitoring unit outputs a low level, the central processing unit outputs a high level, the supercapacitor switching control unit puts the supercapacitor power into the product power system to provide working power for the product, and the battery power is isolated from the product power system; S30, determining whether the energy of the supercapacitor power supply is sufficient, if yes, continue to execute S20, if no, execute S40; S40, the controllable voltage stabilizing unit outputs a high level, the battery switching logic unit is in an effective state, the central processing unit inputs a high level, and the battery switching logic unit controls the battery switching control unit to input the battery power into the product power system to provide working power for the product; S50, when the product is in the off-line state, the battery switching logic unit is in the effective state, and the key switch K1 of the offline wake-up control unit is long pressed, the offline wake-up control unit inputs a high level, and the battery power is input into the product power system to provide the product with working power so that the product enters the on state; The power monitoring unit, the central processing unit, and the supercapacitor power supply are respectively connected to the supercapacitor switching control unit, the power monitoring unit, the controllable voltage stabilizing unit, the central processing unit, the battery switching control unit, and the offline wake-up control unit are respectively connected to the battery switching logic unit, the supercapacitor switching control unit and the battery power supply are respectively connected to the controllable voltage stabilizing unit, and the battery power supply is also connected to the battery switching control unit; The supercapacitor switching control unit includes a resistor R2, a resistor R3, a resistor R4, a resistor R7, a resistor R8, a crystal PNP transistor V3, a crystal NPN transistor V5, a crystal diode V1, a crystal diode V4, a PMOS tube V2 and a capacitor C1, wherein a first pin of the resistor R7 is connected to a PWR_EN pin of the central processing unit and to a first pin of the resistor R8, a second pin of R8 is grounded, a second pin of the resistor R7 is connected to the crystal NPN transistor V5, a second pin of the crystal PNP transistor V3 is connected to a first pin of the resistor R3 and a cathode of a second pin of the crystal diode V1, a second pin of the resistor R3 is connected to a first pin of the PMOS tube V2, an anode of a first pin of the crystal diode V1 is connected to a first pin of the resistor R4, a second pin of the resistor R4 is connected to a gate of a first pin of the PMOS tube V2, a source of a third pin of the PMOS tube V2 is connected to a supercapacitor power supply VCAP, and a drain of a second pin of the PMOS tube V2 is connected to an anode of a first pin of the crystal diode V4; The controllable voltage stabilizing unit includes a resistor R9, a resistor R11, a resistor R12, a resistor R13, a resistor R14, a crystal NPN transistor V7, a transistor NPN transistor V10, a PMOS tube V6, a voltage stabilizing diode V8, a crystal diode V9, a crystal diode V16 and a capacitor C2, a first pin of the resistor R9 is connected to a second pin of the crystal diode V4, a second pin of R9 is connected to a first pin of the crystal diode V9, a first pin of the resistor R14 is connected to a main system power state VMAIN_STA, a second pin of the resistor R14 is connected to an anode of a first pin of the crystal diode V16, a cathode of a second pin of the crystal diode V16 is connected to a cathode of a second pin of the crystal diode V9 and both are connected to the crystal NPN transistor V1 0 is connected to the base of the first pin of the crystal NPN transistor V10, the collector of the third pin of the crystal NPN transistor V10 is connected to the battery power supply VBAT and the source of the third pin of the PMOS tube V6, the emitter of the second pin of the crystal NPN transistor V10 is connected to the first pin of the resistor R11 and the first pin of the resistor R13, the second pin of the resistor R11 is grounded, the second pin of the resistor R13 is connected to the gate of the first pin of the PMOS tube V6, the drain of the second pin of the PMOS tube V6 is connected to the first pin of the resistor R12 and the collector of the third pin of the crystal NPN transistor V7, the first pin of the crystal NPN transistor V7 is connected to the second pin of the resistor R12 and the cathode of the second pin of the voltage regulator diode V8, and the first pin of the voltage regulator diode V8 is grounded; The offline wake-up control unit includes a resistor R15, a resistor R18, a resistor R22, a key switch K1, a crystal PNP transistor V11 and a capacitor C4, wherein a first pin of the resistor R15 is connected to the battery power supply VBAT, a second pin of the resistor R15 is connected to the second pin and the fourth pin of the key switch K1, and is also connected to the first pin of the capacitor C4 and the first pin of the resistor R18, the first pin and the third pin of the key switch K1 are grounded, the second pin of the capacitor C4 is grounded, the second pin of the resistor R18 is connected to the base of the first pin of the crystal PNP transistor V11, the second pin of the crystal PNP transistor V11 is connected to the controllable regulated voltage output VCC, and the collector of the third pin of the crystal PNP transistor V11 is connected to the first pin of the resistor R22; The battery switching control unit comprises a resistor R16, a resistor R17, a resistor R19, a resistor R20, a resistor R21, a crystal NPN transistor V13, a PMOS tube V12, a crystal diode V14, a crystal diode V15 and a capacitor C3, the second pin of the resistor R19 is connected to the first pin of the resistor R21 and the base of the first pin of the crystal NPN transistor V13, the second pin of the resistor R21 is grounded, the emitter of the second pin of the crystal NPN transistor V13 is grounded, the collector of the third pin of the crystal NPN transistor V13 is connected to the first pin of the resistor R17 and the base of the first pin of the crystal diode V13, the second pin of the resistor R21 is grounded, the emitter of the second pin of the crystal NPN transistor V13 is grounded, and the collector of the third pin of the crystal NPN transistor V13 is connected to the first pin of the resistor R17 and the base of the first pin of the crystal diode V13. The cathode of the second pin of the diode V14 is connected to the cathode of the first pin of the crystal diode V14, the anode of the first pin of the crystal diode V14 is connected to the first pin of the resistor R20, the second pin of the resistor R20 is connected to the second pin of the resistor R17, and both are connected to the gate of the first pin of the PMOS tube V12, the source of the third pin of the PMOS tube V12 is connected to the battery power supply VBAT, the drain of the second pin of the PMOS tube V12 is connected to the anode of the first pin of the crystal diode V15, and the cathode of the second pin of the crystal diode V15 is the output power supply VBAT_PWR of the battery switching control unit; The power monitoring unit includes a resistor R1, a resistor R5, a resistor R6 and a power detection chip D1, wherein the first pin of the resistor R5 is connected to the main system power supply, the second pin of the resistor R5 is connected to the first pin of the resistor R6 and the second pin of the power monitoring chip D1 respectively, the second pin of R6 is grounded, the second pin of the power monitoring chip D1 is grounded, and the first pin of the power monitoring chip D1 is connected to the base of the first pin of the crystal PNP transistor V3; The battery switching logic unit includes a resistor R23 and a logic OR gate chip D2, wherein a first pin of the OR gate chip D2 is connected to the central processing unit and a first pin of the resistor R23, a second pin of the resistor R23 is grounded, a second pin of the OR gate chip D2 is connected to the offline wake-up unit, a third pin of the OR gate chip D2 is grounded, a fourth pin of the OR gate chip D2 is connected to a first pin of the resistor R19 of the battery switching control unit, and a fifth pin of the OR gate chip D2 is connected to the emitter of the second pin of the crystal NPN transistor V7 of the controllable voltage stabilizing unit; The power monitoring unit is used to monitor the working state of the main system power supply. When the main system power supply is powered off, the power monitoring unit outputs a low level to the supercapacitor switching control unit, and the central processing unit outputs a high level to the supercapacitor switching control unit, and the supercapacitor power supply is put into the main system; When the energy of the supercapacitor power supply is insufficient, the controllable voltage stabilizing unit outputs a high level to the battery switching logic unit to control the battery switching logic unit to enter a working state, and the battery switching logic control unit outputs a high level to the battery switching control unit, and the battery switching control unit controls the battery power supply to be put into the main system; When the main system is in shutdown state, the offline wake-up control unit is used to output a high level to the battery switching logic unit, and the battery switching logic unit controls the battery switching control unit to put the battery power into the power system.
2. A method according to claim 1, characterized in that In step S10, the power monitoring unit is responsible for determining whether the mains power is normal. A high level output by the power monitoring unit indicates that the mains power is normal, and a low level output by the power monitoring unit indicates that the mains power is in a power-off state.
3. A method according to claim 2, characterized in that In step S50, after releasing the key switch K1, the battery power continues to be input into the product power system to provide working power for the product until the offline wake-up control unit outputs a low level and the product enters the shutdown state.
Citation Information
Cited By
Control circuit and method for a dual backup power supply shared voltage regulation circuit
CN123184293A
