CN110597665A - Power-down protection device - Google Patents

Power-down protection device Download PDF

Info

Publication number
CN110597665A
CN110597665A CN201910884993.6A CN201910884993A CN110597665A CN 110597665 A CN110597665 A CN 110597665A CN 201910884993 A CN201910884993 A CN 201910884993A CN 110597665 A CN110597665 A CN 110597665A
Authority
CN
China
Prior art keywords
resistor
triode
latching relay
magnetic latching
power supply
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910884993.6A
Other languages
Chinese (zh)
Inventor
柯俊生
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
TP Link Technologies Co Ltd
Original Assignee
TP Link Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by TP Link Technologies Co Ltd filed Critical TP Link Technologies Co Ltd
Priority to CN201910884993.6A priority Critical patent/CN110597665A/en
Publication of CN110597665A publication Critical patent/CN110597665A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/30Means for acting in the event of power-supply failure or interruption, e.g. power-supply fluctuations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1433Saving, restoring, recovering or retrying at system level during software upgrading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1441Resetting or repowering
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore
    • G06F11/1451Management of the data involved in backup or backup restore by selection of backup contents

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Power Sources (AREA)

Abstract

The invention discloses a power failure protection device, which comprises a power failure detection module, a flag bit circuit and a control module; the control module is used for upgrading and updating the software data; software backup data corresponding to the software data are stored in the backup storage area; the power failure detection module is used for detecting the power supply state of the power supply; generating a first state signal when the power supply abnormality of the power supply is detected; the flag bit circuit is used for setting the flag bit circuit to be in an action state when receiving a first state signal transmitted by the power failure detection module and generating an action flag bit signal; when the control module is normally powered on through the power supply and is in an initialization stage, the control module is also used for controlling the zone bit circuit to be in a reset state and overwriting the software backup data into the storage area of the software data if receiving an action zone bit signal transmitted by the zone bit circuit. The invention can improve the reliability of power failure protection and ensure that the equipment can normally start software after power supply is recovered.

Description

Power-down protection device
Technical Field
The invention relates to the technical field of power failure protection, in particular to a power failure protection device.
Background
When a user sets software of a device for updating, for example, when the software of a router is updated, the device may be abnormally powered down due to sudden insufficient power supply, poor connection of power supply wires, or misoperation of the user, which may result in unexpected interruption of software updating. Because the software data is erased and rewritten during software updating, the data can be lost after the updating is interrupted unexpectedly, and further the software starting abnormality of the equipment is caused.
At present, the scheme of performing power failure protection on software update usually adopts a pure software means to perform data protection when power failure occurs, for example, to perform software update cancellation and restore original data.
However, because a power failure event often occurs suddenly and a process from power failure to complete failure of a power supply is short, an uncontrollable factor exists when data protection is performed in the power failure by a pure software means and there is a possibility that sufficient time is not available for data protection, so that the existing power failure protection scheme has poor reliability.
Disclosure of Invention
The technical problem to be solved by the embodiments of the present invention is to provide a power failure protection device, which can improve the reliability of power failure protection and ensure that the device can normally start software after power supply is restored.
In order to solve the technical problem, an embodiment of the present invention provides a power-down protection device, which includes a power-down detection module, a flag bit circuit and a control module, wherein the control module and the power-down detection module are both connected to a power supply, the power-down detection module is connected to the flag bit circuit, and the control module is connected to the flag bit circuit; wherein,
the control module is used for upgrading and updating software data; software backup data corresponding to the software data are stored in a preset backup storage area;
when the control module updates the software data, the power failure detection module is used for detecting the power supply state of the power supply; when the power supply abnormality of the power supply is detected, a first state signal is generated;
the zone bit circuit is used for setting the zone bit circuit to be in an action state when receiving the first state signal transmitted by the power failure detection module and generating an action zone bit signal;
when the control module is normally powered on through the power supply and is in an initialization stage, the control module is further configured to control the flag bit circuit to be in a reset state and write the software backup data into the storage area of the software data in a covering manner if the control module receives the action flag bit signal transmitted by the flag bit circuit.
Further, the power failure detection module is further configured to generate a second state signal when detecting that the power supply of the power supply is normal;
the zone bit circuit is also used for setting the zone bit circuit to be in a reset state when receiving the second state signal transmitted by the power failure detection module and generating a reset zone bit signal;
when the control module is just updating the software data, the control module is further configured to continue updating the software data if the reset flag bit signal transmitted by the flag bit circuit is received.
Further, the zone bit circuit comprises a magnetic latching relay and a first power supply;
the first end of the magnetic latching relay is connected with the output end of the power failure detection module, the second end of the magnetic latching relay is connected with the control end of the control module, the third end of the magnetic latching relay is connected with the first power supply, and the fourth end of the magnetic latching relay is grounded;
and the zone bit signal output end of the magnetic latching relay is connected with the zone bit signal detection end of the control module.
Further, the magnetic latching relay is a single-coil magnetic latching relay, and the single-coil magnetic latching relay comprises a first coil and a first switching device; wherein,
the first end of the first coil is the first end of the magnetic latching relay, and the second end of the first coil is the second end of the magnetic latching relay;
the fixed end of the first switching switch device is a zone bit signal output end of the magnetic latching relay, the first switching end of the first switching switch device is a third end of the magnetic latching relay, and the second switching end of the first switching switch device is a fourth end of the magnetic latching relay.
Furthermore, the magnetic latching relay is a double-coil magnetic latching relay, and the double-coil magnetic latching relay comprises an action coil, a reset coil and a second change-over switch device; wherein,
the first end of the action coil is the first end of the magnetic latching relay, the first end of the reset coil is the second end of the magnetic latching relay, and the second end of the action coil and the second end of the reset coil are both grounded;
the fixed end of the second switching switch device is a zone bit signal output end of the magnetic latching relay, the first switching end of the second switching switch device is a third end of the magnetic latching relay, and the second switching end of the second switching switch device is a fourth end of the magnetic latching relay.
Further, the flag bit circuit further comprises a first resistor and a second resistor; wherein,
the first end of the first resistor is connected with the third end of the magnetic latching relay, and the second end of the first resistor is connected with the first power supply;
and the first end of the second resistor is connected with the fourth end of the magnetic latching relay, and the second end of the second resistor is grounded.
Furthermore, the power failure detection module comprises a first triode, a second triode, a first diode, a first capacitor, a second capacitor, a third resistor, a fourth resistor and a fifth resistor; wherein,
the first end of the first triode is connected with the first end of the third resistor, the second end of the first triode is connected with the first end of the first capacitor, and the third end of the first triode is grounded; the second end of the third resistor is used for connecting the power supply, and the second end of the first capacitor is grounded;
a first end of the first diode is connected with a first end of the first capacitor, and a second end of the first diode is used for connecting the power supply;
the first end of the second triode is connected with the first end of the fourth resistor, the second end of the second triode is connected with the first end of the fifth resistor, and the third end of the second triode is grounded;
a second end of the fourth resistor is connected with a third end of the first triode, and a second end of the fifth resistor is used for connecting a second power supply;
the first end of the second capacitor is connected with the second end of the fifth resistor, and the second end of the second capacitor is grounded;
and the second end of the second triode is the output end of the power failure detection module.
Further, the power failure detection module comprises a second diode, a sixth resistor and a seventh resistor; wherein,
the first end of the second diode is connected with the first end of the third resistor, and the second end of the second diode is grounded;
a first end of the sixth resistor is connected with a first end of the first triode, and a second end of the sixth resistor is connected with a first end of the third resistor;
and the first end of the seventh resistor is connected with the third end of the first triode, and the second end of the seventh resistor is grounded.
Further, the first triode is a first PNP type triode, and the second triode is a second PNP type triode; wherein,
the base electrode of the first PNP type triode is the first end of the first triode, the emitter electrode of the first PNP type triode is the second end of the first triode, and the collector electrode of the first PNP type triode is the third end of the first triode;
the base electrode of the second PNP type triode is the first end of the second triode, the emitting electrode of the second PNP type triode is the second end of the second triode, and the collector electrode of the second PNP type triode is the third end of the second triode.
Furthermore, the first end of the first diode is the cathode of the first diode, and the second end of the first diode is the anode of the first diode.
According to the power failure detection device, the power supply state of the power supply is detected through the power failure detection module, the flag bit circuit is set to be in the action state and maintained when the power supply of the power supply is abnormal, so that the action flag bit signal is continuously generated, and the control module can be guaranteed to know a power failure event and rewrite software backup data to perform power failure protection when being powered on again. Because the flag bit circuit is set through the state of the flag bit circuit, the action flag bit signal is continuous and stable, the control module executes the power-down protection action in the initialization stage when restarting, the software backup data is written into the corresponding storage area, the control module can be triggered to perform the power-down protection without time limitation, the power-down protection is not required to be performed in the short time period from the power failure to the power failure when the power-down occurs, the reliability of the power-down protection is improved, and the equipment can normally start the software after power supply is restored.
Drawings
Fig. 1 is a schematic structural diagram of a first preferred embodiment of a power down protection apparatus provided in the present invention;
fig. 2 is a schematic structural diagram of a second preferred embodiment of a power down protection apparatus provided in the present invention;
fig. 3 is a schematic structural diagram of a third preferred embodiment of a power down protection device provided by the present invention;
fig. 4 is a schematic structural diagram of a fourth preferred embodiment of a power down protection device provided by the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention discloses a power failure protection device, please refer to fig. 1, fig. 1 is a schematic structural diagram of a first preferred embodiment of the power failure protection device provided by the invention; specifically, the device comprises a power failure detection module 1, a flag bit circuit 2 and a control module 3, wherein the control module 3 and the power failure detection module 1 are both connected with a power supply 4, the power failure detection module 1 is connected with the flag bit circuit 2, and the control module 3 is connected with the flag bit circuit 2; wherein,
the control module 3 is used for updating software data; software backup data corresponding to the software data are stored in a preset backup storage area;
when the control module 3 updates the software data, the power failure detection module 1 is used for detecting the power supply state of the power supply 4; when the power supply abnormality of the power supply source 4 is detected, a first state signal is generated;
the flag bit circuit 2 is configured to set itself in an action state and generate an action flag bit signal when receiving the first state signal transmitted by the power failure detection module 1;
when the control module 3 is normally powered on through the power supply 4 and is in an initialization stage, the control module is further configured to control the flag bit circuit 2 to be in a reset state and write the software backup data into the storage area of the software data in an overwriting manner if the control module receives the action flag bit signal transmitted by the flag bit circuit 2.
The software data refers to data of a current version of software that is being used before updating, and is located in a storage area where software is read and written, and the software backup data may be data of the same version and content as the software data, or data of the version when the system is factory set.
It should be noted that the flag bit circuit has a reset state and an action state, and when the flag bit circuit is in the action state, because the state is not changed, the action flag bit signal transmitted to the control module is continuous, and the action flag bit signal does not disappear if a signal generated on pure software is transmitted to the control module, but the action flag bit signal in the action state is continuously transmitted through the circuit, and the action flag bit signal disappears only when the state of the flag bit circuit is changed into the reset state, which is an important technical means for ensuring that the control module can know whether power down occurs during updating and cannot trigger the control module to perform power down protection due to time limitation. The flag bit circuit is set to be in a reset state by default, is set to be in an action state when the power supply of the power supply is abnormal, and is set to be in the reset state after being controlled by the control module.
Specifically, according to the power failure detection device provided by the invention, the control module can respond to an update instruction of a user or automatic update of background setting, and update software data; in the process of upgrading and updating software, a power failure detection module continuously detects the power supply state of a power supply, and when the power supply abnormality of the power supply is detected, a first state signal is generated and transmitted to a flag bit circuit; after receiving the first state signal transmitted by the power failure detection module, the zone bit circuit sets the zone bit circuit to be in an action state so as to continuously output an action zone bit signal to the control module through the circuit; when the power supply of the power supply source is abnormal and the power failure occurs, the power failure detection device is powered on again, the control module is normally powered on through the power supply source and enters an initialization stage after the power supply and the startup, if the control module receives an action zone bit signal, the control module can know that the power failure event occurs during the software updating period after the last system or equipment is started, the control module controls the zone bit circuit to be restored to a reset state, and the software backup data is extracted and written into a storage area where the software data is located during the updating in the initialization stage, so that the system or the equipment can normally start corresponding software functions.
It should be noted that, if the data set by the user is not stored in the software backup data, the software backup data can be used normally through the configuration of the user after being written into the storage area where the software data is located during updating. The power failure detection device provided by the invention can be arranged in any suitable equipment, such as gateway equipment such as a router. The corresponding function of the power failure detection module can be realized by software, hardware or software and hardware, preferably, in order to make the corresponding function of the power failure detection module more reliable, the power failure detection module is preferably realized by hardware.
According to the power failure detection device provided by the invention, the power supply state of the power supply is detected through the power failure detection module, and the flag bit circuit is used for setting the power supply state as the action state and maintaining the action state when the power supply of the power supply is abnormal so as to continuously generate the action flag bit signal, so that the control module can be ensured to acquire a power failure event and rewrite software backup data to carry out power failure protection when being electrified again. Because the zone bit circuit is set through the self state, the action zone bit signal is continuous and stable, and the control module executes the power-down protection action in the initialization stage when restarting, the software backup data is written into the corresponding storage area, the control module can be triggered to carry out the power-down protection without being limited by time, the power-down protection is not required to be carried out in the short time period from the power failure when the power-down happens, the reliability of the power-down protection is improved, and the equipment can be normally started after the power supply is restored.
Preferably, the power failure detection module 1 is further configured to generate a second state signal when it is detected that the power supply of the power supply 4 is normal;
the zone bit circuit 2 is further configured to set itself in a reset state and generate a reset zone bit signal when receiving the second state signal transmitted by the power failure detection module 1;
when the control module is just updating the software data, the control module is further configured to continue updating the software data if the reset flag bit signal transmitted by the flag bit circuit is received.
Specifically, when the control module starts the device or the system, if a reset flag bit signal transmitted by the flag bit circuit is received, the control module can know to continue a normal starting process; when the control module finishes starting and updates software data, the zone bit circuit is in a default reset state, the power failure detection module detects that the power supply of the power supply is normal, a second state signal is transmitted to the zone bit circuit, the zone bit circuit continuously keeps setting itself in the reset state according to the second state signal, and the reset zone bit signal is transmitted to the control module; if the control module is upgrading and updating the software data, the control module receives the reset flag bit signal to know that the software data updating process is continued.
When a power failure event occurs in the updating process, the power failure detection module detects that the power supply of the power supply is abnormal, a first state signal is generated, the zone bit circuit sets the zone bit circuit to be in an action state according to the received first state signal, the action zone bit signal is continuously output, and the control module stops the updating process of the software data due to the abnormal power supply. After the power failure fault is eliminated, the control module is electrified again, the system or the equipment is started again, the control module enters an initialization stage first to initialize the system or the equipment, at the moment, if an action zone bit signal of the zone bit circuit is received, the control module knows that the previous updating process is interrupted, the control module writes the software backup data into a storage area where the previous software data are located, and controls the zone bit circuit to be restored to a reset state. After the software backup data is written, the software can be normally started according to the newly written software backup data, and the software upgrading and updating process can be carried out again. And the flag bit circuit is recovered to a reset state, and continues to receive the first state signal or the second state signal transmitted by the power failure detection module.
It should be noted that, after the control module is normally powered on by the power supply, the control module is continuously started again, and the control flag bit circuit is restored to the reset state, so that the above process is performed in a corresponding cycle when software data needs to be updated.
Preferably, referring to fig. 2, fig. 2 is a schematic structural diagram of a second preferred embodiment of a power down protection device provided in the present invention; specifically, the flag bit circuit 2 includes a magnetic latching relay 201 and a first power supply 202;
a first end of the magnetic latching relay 201 is connected with an output end of the power failure detection module 1, a second end of the magnetic latching relay 201 is connected with a control end of the control module 3, a third end of the magnetic latching relay 201 is connected with the first power supply 202, and a fourth end of the magnetic latching relay 201 is grounded;
and the flag bit signal output end of the magnetic latching relay 201 is connected with the flag bit signal detection end of the control module 3.
Specifically, the invention can realize the maintenance process of the reset state and the action state of the zone bit circuit through the magnetic latching relay, and can realize the output of an action zone bit signal or a reset zone bit signal at the zone bit output end through the first power supply and the grounding voltage.
Preferably, referring to fig. 3, fig. 3 is a schematic structural diagram of a power down protection apparatus according to a third preferred embodiment of the present invention; specifically, the magnetic latching relay 201 is a single-coil magnetic latching relay, which includes a first coil K1 and a first switching device SW 1; wherein,
a first end of the first coil K1 is a first end of the magnetic latching relay 201, and a second end of the first coil K1 is a second end of the magnetic latching relay 201;
the fixed terminal of the first switching device SW1 is the flag signal output terminal of the magnetic latching relay 201, the first switching terminal of the first switching device SW1 is the third terminal of the magnetic latching relay 201, and the second switching terminal of the first switching device SW1 is the fourth terminal of the magnetic latching relay 201.
Specifically, the magnetic latching relay is a single-coil magnetic latching relay, the state of the flag circuit is set through the voltage at two ends of a first coil K1, and when the magnetic latching relay is set to be in an action state, a first switching switch device is switched to be communicated with a first power supply, and a high level is output to the control module through a flag signal output end; when the reset state is set, the first switching switch device is switched to be communicated with the ground wire, and the ground level is output to the control module through the flag bit signal output end.
Preferably, referring to fig. 4, fig. 4 is a schematic structural diagram of a fourth preferred embodiment of a power down protection device provided in the present invention; specifically, the magnetic latching relay 201 is a double-coil magnetic latching relay, and the double-coil magnetic latching relay includes an operating coil K2, a reset coil K3, and a second switching device SW 2; wherein,
a first end of the operating coil K2 is a first end of the magnetic latching relay 201, a first end of the reset coil K3 is a second end of the magnetic latching relay 201, and a second end of the operating coil K2 and a second end of the reset coil K3 are both grounded;
the fixed terminal of the second switching device SW2 is the flag signal output terminal of the magnetic latching relay 201, the first switching terminal of the second switching device SW2 is the third terminal of the magnetic latching relay 201, and the second switching terminal of the second switching device SW2 is the fourth terminal of the magnetic latching relay 201.
Specifically, the magnetic latching relay is a double-coil magnetic latching relay, the state of the zone bit circuit is set by controlling the voltage of the first end of the second coil K2 and the first end of the third coil K3, and when the zone bit circuit is set to be in an action state, the second switching switch device is switched to be communicated with the first power supply, and a high level is output to the control module through a zone bit signal output end; when the reset state is set, the second change-over switch device is switched to be communicated with the ground wire, and the ground level is output to the control module through the zone bit signal output end.
Preferably, as shown in fig. 3 to 4, the flag circuit 2 further includes a first resistor R1 and a second resistor R2; wherein,
a first end of the first resistor R1 is connected to the third end of the magnetic latching relay 201, and a second end of the first resistor R1 is connected to the first power VCC 1;
a first end of the second resistor R2 is connected to the fourth end of the magnetic latching relay 201, and a second end of the second resistor R2 is grounded.
Specifically, corresponding voltage division is performed through the first resistor and the second resistor, and a signal of corresponding voltage is provided for the control module.
Preferably, as shown in fig. 3 to 4, the power down detection module 1 includes a first transistor Q1, a second transistor Q2, a first diode D1, a first capacitor C1, a second capacitor C2, a third resistor R3, a fourth resistor R4, and a fifth resistor R5; wherein,
a first terminal of the first transistor Q1 is connected to a first terminal of the third resistor R3, a second terminal of the first transistor Q1 is connected to a first terminal of the first capacitor C1, and a third terminal of the first transistor Q1 is grounded; the second end of the third resistor R3 is used for connecting the power supply VCC, and the second end of the first capacitor C1 is grounded;
a first end of the first diode D1 is connected with a first end of the first capacitor C1, and a second end of the first diode D1 is used for connecting the power supply VCC;
a first terminal of the second transistor Q2 is connected to a first terminal of the fourth resistor R4, a second terminal of the second transistor Q2 is connected to a first terminal of the fifth resistor R5, and a third terminal of the second transistor Q2 is grounded;
a second end of the fourth resistor R4 is connected to a third end of the first transistor Q1, and a second end of the fifth resistor R5 is connected to a second power source VCC 2;
a first end of the second capacitor C2 is connected with a second end of the fifth resistor R5, and a second end of the second capacitor C2 is grounded;
the second end of the second triode Q2 is the output end of the power down detection module 1.
Specifically, when the power supply VCC is normally powered, a high voltage is input, the first capacitor is charged, the first triode is cut off, the second triode is conducted, the second capacitor is charged through the second power supply, at the moment, the second end of the second triode is used as the output end of the power failure detection module to output a low level to the flag bit circuit, and at the moment, the magnetic latching relay maintains a reset state; when power supply VCC supplies power when unusual, no high level input, and first electric capacity and second electric capacity discharge this moment, provide voltage to first triode and second triode in a certain time, first triode switches on this moment, and the second triode ends, and the second power provides the high level to the second end of second triode after fifth resistance partial pressure, falls electric detection module's output and exports the high level to the flag bit circuit promptly, and magnetism keeps the relay switch to set up to the action state this moment.
It should be noted that the first diode D1 is used to isolate the first capacitor C1 from the power supply, so as to prevent the power supply from affecting the discharge of the first capacitor to the first triode during power failure; the third resistor R3, the fourth resistor R4 and the fifth resistor R5 have the functions of providing bias voltage for the first triode and the second triode and limiting current. It should be noted that the first triode and the second triode may be NPN type or PNP type, as long as the ends of the triodes are connected to implement the functions of the present invention according to the characteristics of the triodes of various types, and the types of the components in fig. 3 to 4 are only schematic and do not limit the types of the components used in the present invention.
Preferably, as shown in fig. 3 to 4, the power down detection module 1 includes a second diode D2, a sixth resistor R6 and a seventh resistor R7; wherein,
a first end of the second diode D2 is connected with a first end of the third resistor R3, and a second end of the second diode D2 is grounded;
a first end of the sixth resistor R6 is connected to a first end of the first transistor Q1, and a second end of the sixth resistor R6 is connected to a first end of the third resistor R3;
a first terminal of the seventh resistor R7 is connected to the third terminal of the first transistor Q1, and a second terminal of the seventh resistor R7 is grounded.
Specifically, the second diode is used as a voltage stabilizing diode to provide a detection threshold value of the power failure detection module, wherein the detection threshold value is the sum of the nominal voltage stabilizing value of the second diode and 0.7V. The sixth resistor and the seventh resistor also provide bias voltage and current limiting function for the circuit.
Preferably, the first transistor Q1 is a first PNP transistor, and the second transistor Q2 is a second PNP transistor; wherein,
the base electrode of the first PNP type triode is the first end of the first triode, the emitter electrode of the first PNP type triode is the second end of the first triode, and the collector electrode of the first PNP type triode is the third end of the first triode;
the base electrode of the second PNP type triode is the first end of the second triode, the emitting electrode of the second PNP type triode is the second end of the second triode, and the collector electrode of the second PNP type triode is the third end of the second triode.
Specifically, when the first triode and the second triode are PNP triodes, the first end to the third end of the first triode are respectively a base, an emitter and a collector, and the first end to the third end of the second triode are respectively a base, an emitter and a collector, so as to realize the corresponding functions of the power failure detection module.
Preferably, a first terminal of the first diode D1 is a cathode of the first diode D1, and a second terminal of the first diode D1 is an anode of the first diode D1.
Specifically, when the first end and the second end of the first diode are the cathode and the anode respectively, the first capacitor and the power supply can be isolated.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention.

Claims (10)

1. A power failure protection device is characterized by comprising a power failure detection module, a flag bit circuit and a control module, wherein the control module and the power failure detection module are connected with a power supply, the power failure detection module is connected with the flag bit circuit, and the control module is connected with the flag bit circuit; wherein,
the control module is used for upgrading and updating software data; software backup data corresponding to the software data are stored in a preset backup storage area;
when the control module updates the software data, the power failure detection module is used for detecting the power supply state of the power supply; when the power supply abnormality of the power supply is detected, a first state signal is generated;
the zone bit circuit is used for setting the zone bit circuit to be in an action state when receiving the first state signal transmitted by the power failure detection module and generating an action zone bit signal;
when the control module is normally powered on through the power supply and is in an initialization stage, the control module is further configured to control the flag bit circuit to be in a reset state and write the software backup data into the storage area of the software data in a covering manner if the control module receives the action flag bit signal transmitted by the flag bit circuit.
2. The power fail safe apparatus of claim 1, wherein the power fail detect module is further configured to generate a second status signal when detecting that the power supply of the power supply is normal;
the zone bit circuit is also used for setting the zone bit circuit to be in a reset state when receiving the second state signal transmitted by the power failure detection module and generating a reset zone bit signal;
when the control module is just updating the software data, the control module is further configured to continue updating the software data if the reset flag bit signal transmitted by the flag bit circuit is received.
3. The power fail safe apparatus of claim 1, wherein the flag circuit comprises a magnetic latching relay and a first power supply;
the first end of the magnetic latching relay is connected with the output end of the power failure detection module, the second end of the magnetic latching relay is connected with the control end of the control module, the third end of the magnetic latching relay is connected with the first power supply, and the fourth end of the magnetic latching relay is grounded;
and the zone bit signal output end of the magnetic latching relay is connected with the zone bit signal detection end of the control module.
4. The power fail safe apparatus of claim 3, wherein the magnetic latching relay is a single coil magnetic latching relay comprising a first coil and a first switching device; wherein,
the first end of the first coil is the first end of the magnetic latching relay, and the second end of the first coil is the second end of the magnetic latching relay;
the fixed end of the first switching switch device is a zone bit signal output end of the magnetic latching relay, the first switching end of the first switching switch device is a third end of the magnetic latching relay, and the second switching end of the first switching switch device is a fourth end of the magnetic latching relay.
5. The power fail safe apparatus of claim 3, wherein the magnetic latching relay is a dual coil magnetic latching relay comprising an action coil, a reset coil and a second switching device; wherein,
the first end of the action coil is the first end of the magnetic latching relay, the first end of the reset coil is the second end of the magnetic latching relay, and the second end of the action coil and the second end of the reset coil are both grounded;
the fixed end of the second switching switch device is a zone bit signal output end of the magnetic latching relay, the first switching end of the second switching switch device is a third end of the magnetic latching relay, and the second switching end of the second switching switch device is a fourth end of the magnetic latching relay.
6. The power fail safe apparatus of any of claims 3 to 5, wherein the flag bit circuit further comprises a first resistor and a second resistor; wherein,
the first end of the first resistor is connected with the third end of the magnetic latching relay, and the second end of the first resistor is connected with the first power supply;
and the first end of the second resistor is connected with the fourth end of the magnetic latching relay, and the second end of the second resistor is grounded.
7. The power fail safe apparatus of claim 3, wherein the power fail detect module comprises a first transistor, a second transistor, a first diode, a first capacitor, a second capacitor, a third resistor, a fourth resistor, and a fifth resistor; wherein,
the first end of the first triode is connected with the first end of the third resistor, the second end of the first triode is connected with the first end of the first capacitor, and the third end of the first triode is grounded; the second end of the third resistor is used for connecting the power supply, and the second end of the first capacitor is grounded;
a first end of the first diode is connected with a first end of the first capacitor, and a second end of the first diode is used for connecting the power supply;
the first end of the second triode is connected with the first end of the fourth resistor, the second end of the second triode is connected with the first end of the fifth resistor, and the third end of the second triode is grounded;
a second end of the fourth resistor is connected with a third end of the first triode, and a second end of the fifth resistor is used for connecting a second power supply;
the first end of the second capacitor is connected with the second end of the fifth resistor, and the second end of the second capacitor is grounded;
and the second end of the second triode is the output end of the power failure detection module.
8. The power fail protection device of claim 7, wherein the power fail detection module comprises a second diode, a sixth resistor, and a seventh resistor; wherein,
the first end of the second diode is connected with the first end of the third resistor, and the second end of the second diode is grounded;
a first end of the sixth resistor is connected with a first end of the first triode, and a second end of the sixth resistor is connected with a first end of the third resistor;
and the first end of the seventh resistor is connected with the third end of the first triode, and the second end of the seventh resistor is grounded.
9. The power fail safe apparatus of claim 7, wherein the first transistor is a first PNP transistor and the second transistor is a second PNP transistor; wherein,
the base electrode of the first PNP type triode is the first end of the first triode, the emitter electrode of the first PNP type triode is the second end of the first triode, and the collector electrode of the first PNP type triode is the third end of the first triode;
the base electrode of the second PNP type triode is the first end of the second triode, the emitting electrode of the second PNP type triode is the second end of the second triode, and the collector electrode of the second PNP type triode is the third end of the second triode.
10. The power fail safe apparatus of claim 7, wherein the first terminal of the first diode is a cathode of the first diode and the second terminal of the first diode is an anode of the first diode.
CN201910884993.6A 2019-09-18 2019-09-18 Power-down protection device Pending CN110597665A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910884993.6A CN110597665A (en) 2019-09-18 2019-09-18 Power-down protection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910884993.6A CN110597665A (en) 2019-09-18 2019-09-18 Power-down protection device

Publications (1)

Publication Number Publication Date
CN110597665A true CN110597665A (en) 2019-12-20

Family

ID=68861031

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910884993.6A Pending CN110597665A (en) 2019-09-18 2019-09-18 Power-down protection device

Country Status (1)

Country Link
CN (1) CN110597665A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111399620A (en) * 2020-04-24 2020-07-10 西安紫光国芯半导体有限公司 Backup power supply and backup method
CN111880638A (en) * 2020-08-06 2020-11-03 欧姆龙(上海)有限公司 Electronic device and method of controlling data update of electronic device
CN112134349A (en) * 2020-11-26 2020-12-25 苏州伟创电气科技股份有限公司 Power failure control method, controller and system
CN112564264A (en) * 2020-12-02 2021-03-26 浙江凯耀照明有限责任公司 Circuit with function memory before power failure
CN113760333A (en) * 2021-09-16 2021-12-07 海宁奕斯伟集成电路设计有限公司 Software upgrading method and device, electronic equipment and computer readable storage medium
CN113808655A (en) * 2021-09-23 2021-12-17 长江存储科技有限责任公司 Method, device and system for power failure test
CN114446458A (en) * 2020-10-30 2022-05-06 深圳市瑞图生物技术有限公司 Medical equipment, control terminal, power-off protection method and storage medium
CN115118151A (en) * 2022-07-19 2022-09-27 西安军陶科技有限公司 Soft and hard double control circuit and power supply starting control method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160154597A1 (en) * 2013-05-13 2016-06-02 Amazon Technologies, Inc. Backup of volatile memory to persistent storage
CN106776381A (en) * 2016-12-23 2017-05-31 郑州云海信息技术有限公司 A kind of storage system power-off protection method and system
CN206321756U (en) * 2016-12-14 2017-07-11 广州视源电子科技股份有限公司 Power failure detection circuit and switching power supply circuit
CN107608828A (en) * 2017-09-21 2018-01-19 郑州云海信息技术有限公司 Method, system, device and the storage medium that data center's power down recovers automatically
CN108649939A (en) * 2018-04-16 2018-10-12 芯原微电子(上海)有限公司 Power sense circuit and method
CN109685190A (en) * 2018-12-28 2019-04-26 江苏恒宝智能系统技术有限公司 A kind of IC card power-off protection method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160154597A1 (en) * 2013-05-13 2016-06-02 Amazon Technologies, Inc. Backup of volatile memory to persistent storage
CN206321756U (en) * 2016-12-14 2017-07-11 广州视源电子科技股份有限公司 Power failure detection circuit and switching power supply circuit
CN106776381A (en) * 2016-12-23 2017-05-31 郑州云海信息技术有限公司 A kind of storage system power-off protection method and system
CN107608828A (en) * 2017-09-21 2018-01-19 郑州云海信息技术有限公司 Method, system, device and the storage medium that data center's power down recovers automatically
CN108649939A (en) * 2018-04-16 2018-10-12 芯原微电子(上海)有限公司 Power sense circuit and method
CN109685190A (en) * 2018-12-28 2019-04-26 江苏恒宝智能系统技术有限公司 A kind of IC card power-off protection method and device

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111399620A (en) * 2020-04-24 2020-07-10 西安紫光国芯半导体有限公司 Backup power supply and backup method
CN111880638A (en) * 2020-08-06 2020-11-03 欧姆龙(上海)有限公司 Electronic device and method of controlling data update of electronic device
WO2022028350A1 (en) * 2020-08-06 2022-02-10 欧姆龙株式会社 Electronic device and method for controlling update of data in electronic device
CN114446458A (en) * 2020-10-30 2022-05-06 深圳市瑞图生物技术有限公司 Medical equipment, control terminal, power-off protection method and storage medium
CN114446458B (en) * 2020-10-30 2024-10-11 深圳市瑞图生物技术有限公司 Medical equipment, control terminal, power-off protection method and storage medium
CN112134349A (en) * 2020-11-26 2020-12-25 苏州伟创电气科技股份有限公司 Power failure control method, controller and system
CN112564264A (en) * 2020-12-02 2021-03-26 浙江凯耀照明有限责任公司 Circuit with function memory before power failure
CN113760333A (en) * 2021-09-16 2021-12-07 海宁奕斯伟集成电路设计有限公司 Software upgrading method and device, electronic equipment and computer readable storage medium
CN113808655A (en) * 2021-09-23 2021-12-17 长江存储科技有限责任公司 Method, device and system for power failure test
CN113808655B (en) * 2021-09-23 2023-10-03 长江存储科技有限责任公司 Method, device and system for performing power down test
CN115118151A (en) * 2022-07-19 2022-09-27 西安军陶科技有限公司 Soft and hard double control circuit and power supply starting control method
CN115118151B (en) * 2022-07-19 2024-02-06 西安军陶科技有限公司 Soft and hard double-control circuit and power supply starting control method

Similar Documents

Publication Publication Date Title
CN110597665A (en) Power-down protection device
CA1228908A (en) Apparatus for controlling power supply to electronic circuitry
US10654428B2 (en) Power supply control device
CN102388679B (en) Message controllable lamp, lighting system and method for controlling the lamp
CN112636732A (en) Power-off delay protection circuit and device
JPH08153012A (en) Electronic apparatus and method for initialization of peripheral equipment at its inside
CN108983940B (en) Double-control storage power-down protection system
CN108683217B (en) Power supply voltage monitoring circuit capable of being turned off
CN106374899B (en) Anti-misoperation switching circuit for home service robot and control method thereof
CN110708051A (en) Switch control logic circuit
CN216357774U (en) Computer room monitoring system based on micro-service architecture
US20150346808A1 (en) Start-up architecture of redundant power supply system
CN115076932A (en) Single signal line control method and device of air conditioner and air conditioner
KR100287613B1 (en) Control system with switching circuitry to maintain required operation when power is removed
CN112491027A (en) Direct-current power supply error-proofing control circuit and method and household appliance
WO1997023820A1 (en) A reset circuit for ensuring proper reset when used with decaying power supplies
CN220511091U (en) Startup and shutdown protection circuit
EP1339168B1 (en) Control apparatus
JP3792455B2 (en) Power supply switching circuit for disaster prevention monitoring panel
KR20020033434A (en) Information processing apparatus and memory cartridge system
CN214255716U (en) DC power supply error-proofing control circuit and household electrical appliance
CN113141287B (en) Node load short circuit self-isolation circuit and method and multi-connected circuit
CN114253381A (en) Electronic equipment and abnormal reset circuit thereof
US10637426B2 (en) Audio device and control method for an audio device
CN118191633A (en) Battery voltage detection circuit, device and vehicle

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20191220