Closing method used after power failure alarm storage
By designing a shutdown method for power-off alarm storage in a high-reliability system, the combination of voltage conversion module, voltage detection module, energy storage module, on-off module and function/control module is used to solve the problem of system startup abnormality caused by external power-on when the voltage of the energy storage element is not discharged to below a certain normal voltage value after power-off, and the system is achieved normally power-on in time and high reliability.
Patent Information
- Application Number
- CN202411793383.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-09
- Publication Date
- 2025-02-28
AI Technical Summary
In a high-reliability system, the energy storage element is powered on externally when the voltage is not discharged below a certain normal voltage value after power failure, resulting in errors in the system voltage and MCU supply voltage timing, causing the risk of abnormal system startup.
A shutdown method is designed for power-off alarm storage. By setting up a voltage conversion module, a voltage detection module, an energy storage module, an on-off module and a function/control module in the system, it is necessary to ensure that the energy storage module supplies power to the function/control module after the power input disappears. After processing the alarm and data storage, the power supply of the energy storage module is cut off through the on-off module to instantly reset the system voltage to zero.
Regardless of the voltage of the energy storage component when the call is in, the system can power up normally according to the design timing, avoiding the risks and hidden dangers of abnormal system startup and improving the reliability of the system.
Smart Images

Figure CN119543403A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a method for closing a power-off alarm after it is saved. Background Art
[0002] At present, most of the conventional system products use supercapacitors or other capacitors as energy storage elements to charge and discharge. The charging and discharging paths usually use power switches or diodes and transistors. Generally, the MCU is informed after the power failure is detected. At this time, the power supply for the MCU to save data or issue an alarm is provided by the energy storage element, which is completed before the energy storage element is exhausted. The MCU completes the saving and alarm process.
[0003] For some system products with high reliability requirements, such as ARM chips, DSP chips, and main chip applications running Linux operating systems or other high-frequency main chips, the required power supply may have several voltage values. At the same time, the system also has other power supply voltages VCC in addition to the MCU, and the VCC and MCU power supplies have timing requirements; since the system power supply and the MCU power supply have timing requirements, if the timing is wrong, it will cause failure to start normally, and after the conventional power-off alarm, the voltage of the energy storage element is allowed to discharge by itself, and then wait for normal external power supply, but when the voltage of the energy storage element is not discharged to a value lower than a normal voltage, the external power supply will be powered on, which will cause the system voltage and MCU power supply voltage timing errors, making the system have the risk of abnormal startup. Therefore, the art is in urgent need of a shutdown method for system products with high reliability requirements and power-off alarm function requirements after power-off alarm preservation. Summary of the invention
[0004] The purpose of the present invention is to overcome the above-mentioned shortcomings and provide a shutdown method for power-off alarm preservation. After power failure, the system starts alarm and preservation processing. No matter what voltage value the energy storage element is currently at when a call comes, the system can be powered on according to the designed timing, avoiding the risks and hidden dangers of abnormal system startup.
[0005] The object of the present invention is achieved in that: A method for closing a power failure alarm after saving, comprising the following contents: S1. A voltage conversion module, a voltage detection module, an energy storage module, an on-off module and a function / control module are arranged in the application system. The power input of the system is connected to the function / control module through the voltage conversion module. The voltage conversion module is also provided with a path connected to the voltage detection module. The voltage detection module is connected to the function / control module. The energy storage module is connected to the function / control module. An on-off module is arranged on the connection path between the energy storage module and the function / control module. The function / control module is connected to the on-off module. S2, when the power supply is normal, the power is input and supplied to the function / control module through the voltage conversion module, and the system starts. At the same time, because the on / off module is in the on state by default, the energy storage module is also charged; S3, when the power input power supply disappears, because the on-off module is in the on state by default, the energy storage module supplies power to the function / control module; S4, when the power input is lost, the voltage detection module detects that the power input is lost, and then transmits a signal to the function / control module, which then generates an alarm action and saves the data to be recorded; S5. After the function / control module handles power failure, a signal is sent to the on-off module to control the on-off module to shut down, so that the external power supply path of the energy storage module is disconnected, the function / control module has no power supply voltage, the power supply voltage is zero, the function / control module stops working without power supply, and the remaining power of the energy storage module is retained; S6. When the power input returns to normal, the voltage conversion module supplies power to the function / control module, and the system starts normally according to the timing. At the same time, because the on / off module is in the on state by default, the energy storage module is also charged.
[0006] Furthermore, the energy storage module uses a capacitor C2, the function / control module includes a switch Q1, Q1 is a PMOS tube, and the on-off module uses a control device Q2.
[0007] Furthermore, the voltage of the power input after voltage conversion is provided to the system voltage through the diode D2, and at the same time charges the capacitor C2 after passing through the current limiting resistor R1 and the switch Q1.
[0008] Furthermore, the capacitor C2 is connected to the resistor R5 and the capacitor C3 in parallel, and the resistor R5 is connected to the control device Q2 via the resistor R6.
[0009] Furthermore, the control device Q2 is connected to the resistor R7 and the resistor R8 respectively, the resistor R7 is connected to the control signal SC_EN, the control signal SC_EN is controlled by the system MCU, and is high level by default after power-on, the control device Q2 is turned on, so that the PMOS tube Q1 is always in the on state.
[0010] Furthermore, the resistor R1 and the diode D3 are connected in parallel, and the PMOS tube Q1 and the diode D4 are connected in parallel.
[0011] Furthermore, the VD5V voltage after voltage conversion is also connected to resistor R3, which is respectively connected to capacitor C1 and resistor R4, and capacitor C1 and diode D5 are connected in parallel; the voltage is divided by resistors R3 and R4 to generate a sampling voltage value, and the signal value POW_ADC is provided to the system's MCU, so that the MCU can detect the voltage value of the power supply voltage at all times.
[0012] Furthermore, when the voltage after voltage conversion drops due to power failure, the energy storage component capacitor C2 immediately provides the system voltage, and the energy storage voltage generates the required voltage through the PMOS tubes Q1 and D3, and the system maintains power supply; at the same time, the voltage sampling POW_ADC signal value also becomes low. After the MCU detects that it is lower than the set threshold, it determines that the input power supply is off, starts the internal data saving work, and completes the system saving and alarm work within the designed time of the energy storage component capacitor C2.
[0013] Furthermore, after the system completes the saving and other matters required for power off, the system MCU controls the SC_EN signal value to a low level, the control device Q2 is turned off, and then the PMOS tube Q1 is turned off, the path from the energy storage power supply to the system voltage is disconnected, the system voltage becomes 0, and the system is powered off and shut down.
[0014] Furthermore, after normal power supply, a normal voltage is generated to power the system, while continuing to charge the energy storage element capacitor C2.
[0015] Compared with the prior art, the present invention has the following beneficial effects: The present invention provides a shutdown method after power failure alarm is saved. Based on a shutdown system after power failure alarm is saved, when the power is normally supplied, the system does not use the voltage on the energy storage element, but only charges the energy storage element. When the normal power supply disappears, the energy storage element supplies power to the system. After the system detects the disappearance of the normal power supply, it performs alarm and storage processing. After the processing, a control signal is given to cut off the power supply of the energy storage element, so that the power supply voltages of various channels of the system are instantly returned to zero. Therefore, no matter what voltage value the energy storage element is currently at when a call comes in, the system can be powered on normally according to the designed timing, thereby avoiding the risks and hidden dangers of abnormal system startup.
[0016] The present invention has high reliability for products that require a power-off saving function and have timing requirements, has no risk of abnormal startup during system power off and normal power on, has low cost, and has a relatively broad application prospect. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 The figure is a flow chart of a method for shutting down power failure alarm storage according to the present invention.
[0018] Figure 2 A schematic diagram of the principle of the shutdown system for power failure alarm storage of the present invention.
[0019] Figure 3 A circuit diagram of a shutdown system for power failure alarm storage according to the present invention. DETAILED DESCRIPTION
[0020] In order to better understand the technical solution of the present invention, the following will be described in detail in conjunction with the relevant illustrations. It should be understood that the following specific embodiments are not intended to limit the specific implementation of the technical solution of the present invention, and are only implementations that can be adopted by the technical solution of the present invention. It should be noted that the description of the positional relationship of each component in this article, such as component A being located above component B, is based on the description of the relative positions of the components in the illustration, and is not intended to limit the actual positional relationship of the components.
[0021] See also Figure 1-3 , Figure 1 A schematic diagram of the relationship between the component life cycle and the data agent of the shutdown method after power-off alarm preservation of the present invention is drawn. As shown in the figure, a shutdown method after power-off alarm preservation involved in this embodiment 1 is based on a shutdown system for power-off alarm preservation, including a voltage conversion module, a voltage detection module, an energy storage module, a switch module and a function / control module, the power input is connected to the function / control module through the voltage conversion module, the voltage conversion module is also provided with a connection to the voltage detection module, the voltage detection module is connected to the function / control module, the energy storage module is connected to the function / control module, the switch module is provided on the connection path between the energy storage module and the function / control module, and the function / control module is connected to the switch module.
[0022] The voltage detection module is used to detect normal power input; the energy storage voltage of the energy storage module can provide power to the function / control module in a short period of time.
[0023] Based on the above-mentioned shutdown system for saving power-off alarm, the present invention relates to a shutdown method for saving power-off alarm, including the following contents: S1: Normal power supply to the function / control module and charge the energy storage module at the same time; When the power supply is normal, the power is input and supplied to the function / control module through the voltage conversion module, and the system starts. At the same time, because the on / off module is in the on state by default, the energy storage module is also charged. S2: When there is no power input, the function / control module automatically starts to be powered by the energy storage module; When the power input power supply disappears, because the on / off module is in the on state by default, the energy storage module supplies power to the function / control module; S3, the voltage detection module detects the power failure of the power input and notifies the function / control module, and the function / control module starts to process the power failure saving process; At the same time, the voltage detection module detects that the power input disappears, and then transmits a signal to the function / control module, which then generates an alarm action, and the function / control module saves the data that needs to be recorded; S4, the on / off module turns off the signal, the energy storage module is powered off, and the function / control module stops working without power supply; After the function / control module handles the matters that need to be handled after power failure, it sends a signal to the on-off module to control the shutdown, so that the external power supply path of the energy storage module is disconnected, the function / control module has no power supply voltage, the power supply voltage is zero, the function / control module directly stops working without power supply, and the remaining power of the energy storage module is retained; S5. The power input is restored to normal, the system starts normally according to the timing, and the energy storage module is also charged; When the power input returns to normal, the voltage conversion module supplies power to the function / control module, and the system starts normally according to the timing. At the same time, because the on-off module is in the on state by default, the energy storage module is also charged.
[0024] In this embodiment, the energy storage module uses a capacitor C2, the function / control module includes a switch Q1, Q1 is a PMOS tube, and the on-off module uses a control device Q2; After voltage conversion, the VD5V voltage passes through the diode D2 and is provided to the system voltage VDD_5V. At the same time, it passes through the current limiting resistor R1 and the switch Q1 to charge the capacitor C2. The resistor R1 and the diode D3 are connected in parallel, and the PMOS tube Q1 and the diode D4 are connected in parallel. Capacitor C2 is connected to resistor R5 and capacitor C3 in parallel, respectively, for slow charging, resistor R5 is connected to control device Q2 through resistor R6; control device Q2 is connected to resistor R7 and resistor R8, respectively, resistor R7 is connected to control signal SC_EN, control signal SC_EN is controlled by system MCU, system MCU is the control chip of function / control module; The VD5V voltage after voltage conversion is also connected to the resistor R3, the resistor R3 is respectively connected to the capacitor C1 and the resistor R4, the capacitor C1 and the diode D5 are connected in parallel, and the capacitor C1 and the resistor R4 are both grounded.
[0025] S1, after power-on, the voltage VD5V after voltage conversion passes through the diode D2 and is provided to the system voltage VDD_5V. At the same time, it passes through the current limiting resistor R1 and the switch Q1 to charge the energy storage element capacitor C2; Q1 is a PMOS tube, and the control signal SC_EN is controlled by the system MCU. The default is high level after power-on, and the control device Q2 is turned on, so that the PMOS tube Q1 is always in the on state; The voltages S2 and VD5V are divided by resistors R3 and R4 to generate a sampled voltage value. The signal value POW_ADC is provided to the system's MCU (i.e., the control chip in the function / control module), so that the MCU can always detect the voltage value of the power supply voltage VD5V. S3, when the voltage of VD5V drops due to power failure, the energy storage component capacitor C2 immediately provides the system voltage, and the energy storage voltage generates the voltage required for VDD_5V through the PMOS tube Q1 and D3, and the system maintains power supply; at the same time, the voltage sampling POW_ADC signal value also becomes low. After the MCU detects that it is lower than the set threshold, it determines that the input power supply is off, starts the internal data saving work, and completes the system saving and alarm work within the designed time of the energy storage component capacitor C2; S4, after the system completes the required saving and other matters for power off, the system MCU controls the SC_EN signal value to be low level, the control device Q2 is turned off, and then the PMOS tube Q1 is turned off, the path from the energy storage power supply to VDD_5V is disconnected, the VDD_5V voltage becomes 0, and the system is completely powered off and shut down; S5. The voltage of the energy storage element is disconnected as the supply path to the system, so that the voltage of the system immediately drops to 0, and will not slowly decrease as the power of the energy storage element capacitor C2 is consumed, thus avoiding abnormal startup sequence caused by low voltage inside the system when the system is powered normally again; S6, after normal power supply, generates normal VD5V voltage to power the system, while continuing to charge the energy storage element capacitor C2.
[0026] Working principle: Conventional equipment power supply mode, after the power input, the voltage is converted to supply power to the function / control module to work. It is necessary to realize a system with power failure alarm and save function. The system needs to alarm when the power fails. At the same time, the system can also save the settings to be saved during this period, so that the data before the power failure can be restored when the call comes back later. The process of conventional equipment power supply with power failure alarm and save is as follows: When the power supply is normal, the power input is converted to supply power to the function / control module through voltage conversion, and the energy storage module is also charged; When the normal power supply disappears, the energy storage module supplies power to the function / control module; at the same time, the voltage detection module detects that the power input disappears and sends a signal to the function / control module, which generates an alarm action and saves the data that needs to be recorded; The power of the energy storage module is slowly consumed as the power is supplied. When the voltage generated by the module is lower than the normal working voltage threshold of the function / control module, the function / control module stops working due to insufficient power supply. However, because the power supply of the function / control module is slowly decreasing during this period, the small modules with different voltage level requirements in the function / control module will produce different normal or abnormal phenomena. Some small modules are still in the normal voltage value range, and some small modules are already below the normal voltage range. At this time, if the power input is normally supplied and the function / control module inputs normal working voltage, it will cause abnormal startup timing of various small modules in the function / control module, resulting in system abnormality.
[0027] The present invention provides a shutdown method after power-off alarm preservation, which is based on a shutdown system for power-off alarm preservation. An on-off module is added to the path of the energy storage module. The path of the energy storage module is defaulted to be always on. No matter the power input is charged to the energy storage module after voltage conversion, or the energy storage module starts to supply power after the power input is powered off, it does not affect the function / control module output signal to shut down the on-off module. Therefore, no matter what voltage value the energy storage element is currently at when a call comes in, the system can be powered on normally according to the designed timing, thereby avoiding the risks and hidden dangers of abnormal system startup.
[0028] The above are only specific application examples of the present invention and do not constitute any limitation on the protection scope of the present invention. Any technical solution formed by equivalent transformation or equivalent replacement shall fall within the protection scope of the present invention.
Claims
1. A method for closing a power failure alarm after saving, characterized in that: Includes the following: S1. A voltage conversion module, a voltage detection module, an energy storage module, an on-off module and a function / control module are arranged in the application system. The power input of the system is connected to the function / control module through the voltage conversion module. The voltage conversion module is also provided with a path connected to the voltage detection module. The voltage detection module is connected to the function / control module. The energy storage module is connected to the function / control module. An on-off module is arranged on the connection path between the energy storage module and the function / control module. The function / control module is connected to the on-off module. S2, when the power supply is normal, the power is input and supplied to the function / control module through the voltage conversion module, and the system starts. At the same time, because the on / off module is in the on state by default, the energy storage module is also charged; S3, when the power input power supply disappears, because the on-off module is in the on state by default, the energy storage module supplies power to the function / control module; S4, when the power input is lost, the voltage detection module detects that the power input is lost, and then transmits a signal to the function / control module, which then generates an alarm action and saves the data to be recorded; S5. After the function / control module handles power failure, a signal is sent to the on-off module to control the on-off module to shut down, so that the external power supply path of the energy storage module is disconnected, the function / control module has no power supply voltage, the power supply voltage is zero, the function / control module stops working without power supply, and the remaining power of the energy storage module is retained; S6. When the power input returns to normal, the voltage conversion module supplies power to the function / control module, and the system starts normally according to the timing. At the same time, because the on / off module is in the on state by default, the energy storage module is also charged.
2. A method for shutting down after saving a power failure alarm according to claim 1, characterized in that: The energy storage module uses capacitor C2, the function / control module includes switch Q1, Q1 is a PMOS tube, and the on-off module uses control device Q2.
3. A method for shutting down after saving a power failure alarm according to claim 2, characterized in that: The voltage of the power input after voltage conversion passes through the diode D2 and is provided to the system voltage. At the same time, it charges the capacitor C2 after passing through the current limiting resistor R1 and the switch Q1.
4. A method for shutting down after saving a power failure alarm according to claim 2, characterized in that: The capacitor C2 is connected to the resistor R5 and the capacitor C3 in parallel, and the resistor R5 is connected to the control device Q2 via the resistor R6.
5. A method for shutting down after saving a power failure alarm according to claim 4, characterized in that: The control device Q2 is connected to the resistor R7 and the resistor R8 respectively. The resistor R7 is connected to the control signal SC_EN. The control signal SC_EN is controlled by the system MCU. By default, it is a high level after power-on. The control device Q2 is turned on, so that the PMOS tube Q1 is always in the on state.
6. A method for shutting down after saving a power failure alarm according to claim 3, characterized in that: The resistor R1 and the diode D3 are connected in parallel, and the PMOS tube Q1 and the diode D4 are connected in parallel.
7. A method for shutting down after saving a power failure alarm according to claim 2, characterized in that: The VD5V voltage after voltage conversion is also connected to resistor R3, which is respectively connected to capacitor C1 and resistor R4, and capacitor C1 and diode D5 are connected in parallel; the voltage is divided by resistors R3 and R4 to generate a sampling voltage value, and the signal value POW_ADC is provided to the system's MCU, so that the MCU can detect the voltage value of the power supply voltage at all times.
8. The method for shutting down after saving the power failure alarm according to claim 5, characterized in that: When the voltage after voltage conversion drops due to power failure, the energy storage component capacitor C2 immediately provides the system voltage, and the energy storage voltage generates the required voltage through the PMOS tubes Q1 and D3, and the system maintains power supply; at the same time, the voltage sampling POW_ADC signal value also becomes low. After the MCU detects that it is lower than the set threshold, it determines that the input power supply is off, starts the internal data saving work, and completes the system saving and alarm work within the designed time of the energy storage component capacitor C2.
9. A method for shutting down after saving a power failure alarm according to claim 8, characterized in that: After the system completes the required saving and other matters before power off, the system MCU controls the SC_EN signal value to a low level, the control device Q2 is turned off, and then the PMOS tube Q1 is turned off, the path from the energy storage power supply to the system voltage is disconnected, the system voltage becomes 0, and the system is powered off and shut down.
10. A method for shutting down after saving a power failure alarm according to claim 9, characterized in that: After normal power supply, normal voltage is generated to power the system, and at the same time, the energy storage element capacitor C2 continues to be charged.