CN105468127B - A kind of real-time data acquisition system and its power failure data storage circuit, method - Google Patents
A kind of real-time data acquisition system and its power failure data storage circuit, method Download PDFInfo
- Publication number
- CN105468127B CN105468127B CN201510826978.8A CN201510826978A CN105468127B CN 105468127 B CN105468127 B CN 105468127B CN 201510826978 A CN201510826978 A CN 201510826978A CN 105468127 B CN105468127 B CN 105468127B
- Authority
- CN
- China
- Prior art keywords
- real
- module
- time
- power
- data
- 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.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/30—Means for acting in the event of power-supply failure or interruption, e.g. power-supply fluctuations
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03K—PULSE TECHNIQUE
- H03K17/00—Electronic switching or gating, i.e. not by contact-making and –breaking
- H03K17/28—Modifications for introducing a time delay before switching
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Health & Medical Sciences (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- Software Systems (AREA)
- Health & Medical Sciences (AREA)
- Bioethics (AREA)
- Stand-By Power Supply Arrangements (AREA)
- Charge And Discharge Circuits For Batteries Or The Like (AREA)
Abstract
The invention discloses a kind of real-time data acquisition system and its power failure data storage circuit, methods, and when not having power down, the real time data that the acquisition module of real-time data acquisition system acquires is stored in mobile storage means by system control module;It is preserved convenient for duplication, the backup of real time data.In power down, system control module is powered the power switching of real-time data acquisition system to the energy-storage module for being built-in with storage capacitor by power supply handover module, at low cost, applied widely using storage capacitor as stand-by electric energy.And, real-time time when system control module reads power down in real-time clock module, during the real-time time is stored mobile storage means together as the breakpoint data that power down down times data and the acquisition module are acquired in power down, the power supply of the acquisition module is cut off;Hereby it is achieved that the power-off of data preserves, data can be taken out by mobile storage means without being powered, improve the stability and convenience of data.
Description
Technical field
The present invention relates to the Real-time Data Acquisition Technology field of production field, more particularly to a kind of real-time data acquisition system
And its power failure data storage circuit, method.
Background technology
The data storage of available data acquisition system is mostly stored with operating system and application program together, and storage medium uses
The features such as equipment such as Flash, hard disk are fixedly mounted and as storage device there are bad block, and power down is fragile.Moreover, being not easy to
Collected data it will replicate in real time, back up preservation, especially after data collecting system power down, due to equipment such as Flash, hard disks
It is not powered, the data wherein stored can not be taken out, it is very inconvenient.
For existing data collecting system in power down, common practice is all to maintain uninterrupted power supply using ups power,
Such method is of high cost, and after UPS power consumptions are complete, and the data of instant power-down still cannot preserve well;Also there is system
It is to be delayed and power supply is provided as stand-by power supply using lithium battery, ensures the data storage problem of power down moment, but lithium battery temperature
Range is relatively narrow, is not suitable for industrial circle, and cycle charge-discharge number is limited, is unable to the security risks such as air transport.Moreover, existing
Data collecting system for power down moment data storage lack safeguard measure.
As it can be seen that the prior art could be improved and improve.
Invention content
Place in view of above-mentioned deficiencies of the prior art, the purpose of the present invention is to provide a kind of real-time data acquisition system and
Its power failure data storage circuit, method, convenient for the duplication of breakpoint data that is acquired when real-time collected data and power down and standby
Part preserves, at low cost, applied widely using storage capacitor as stand-by electric energy.
In order to achieve the above object, this invention takes following technical schemes:
A kind of power failure data storage circuit of real-time data acquisition system, including:
AC-DC Switching Power Supplies, the alternating current for inputting AC input is converted into direct current, and exports to power supply
Handover module and energy-storage module;
The energy-storage module, for storing electric energy by built-in storage capacitor;
The power supply handover module makes AC-DC switch electricity for switching between AC-DC Switching Power Supplies and energy-storage module
Source or energy-storage module are powered for real-time data acquisition system;
AC dump detection module, in real time detect AC input whether power down, and by testing result export to
System control module;
Real-time clock module, for providing real-time time;
Mobile storage means, for storing data;
The system control module, for when AC input does not have power down, by adopting for real-time data acquisition system
The real time data of collection module acquisition is stored in mobile storage means;In AC input power down, switched by power supply
Module powers the power switching of real-time data acquisition system to by energy-storage module, and when reading power down in real-time clock module
Real-time time, the breakpoint data which is acquired as power down down times data and the acquisition module in power down
It stores in mobile storage means together, cuts off the power supply of the acquisition module.
In the power failure data storage circuit of the real-time data acquisition system, the system control module is additionally operable to fall
It, will be in power down down times data and breakpoint data after electric down times data and the storage to mobile storage means of breakpoint data
Background server is passed to, and closes the application program of real-time data acquisition system, after closing application program, deenergization switching
Module realizes the power-off shutdown of real-time data acquisition system.
In the power failure data storage circuit of the real-time data acquisition system, the power failure data storage circuit further includes
Timer module, the timer module export control for starting timing in AC input power down after the predetermined time
Signal processed makes power supply handover module disconnect, and realizes the power-off shutdown of real-time data acquisition system.
In the power failure data storage circuit of the real-time data acquisition system, the energy-storage module further includes:
Charhing unit, the direct current for being exported to AC-DC Switching Power Supplies carry out decompression and voltage stabilizing, and export and give energy storage electricity
Hold;
Adaptive voltage regulation unit, the electric energy for being discharged to storage capacitor carries out voltage stabilizing, and exports and give power supply handover module.
In the power failure data storage circuit of the real-time data acquisition system, the storage capacitor is farad capacitor.
In the power failure data storage circuit of the real-time data acquisition system, the power failure data storage circuit further includes
LDO modules are depressured, for being depressured to the output of adaptive voltage regulation unit, and are exported to real-time clock module.
In the power failure data storage circuit of the real-time data acquisition system, the AC dump detection module includes the
One diode, the first chip, the second chip, first resistor, second resistance, 3rd resistor, the 4th resistance, the first capacitance, second
Capacitance and the first metal-oxide-semiconductor;First ac input end of first chip and the second ac input end connect AC input,
The cathode output end of first chip connects one end of second resistance, the cathode of the first diode, first by first resistor
The other end at the ends V+ of one end of capacitance and the second chip, the second resistance connects the cathode output end of the first chip, first
The ends V- of the anode of diode, the other end of the first capacitance and the second chip;The ends the VCC connection external first of second chip
Feeder ear, one end of the second capacitance and 3rd resistor one end;The other end of second capacitance connects the GND of the second chip
End, the grid of the other end and the first metal-oxide-semiconductor of the ends the VO connection 3rd resistor of second chip;The source of first metal-oxide-semiconductor
Pole is grounded, and the drain electrode of first metal-oxide-semiconductor is the output end of the AC dump detection module, connection timer module, system
Control module also passes through external second feeder ear of the 4th resistance connection.
A kind of method for storing power-fail data of real-time data acquisition system, includes the following steps:
A, AC dump detection module detect in real time AC input whether power down, and testing result is exported to system
Control module;
B, the system control module is not when AC input has power down, by the acquisition mould of real-time data acquisition system
The real time data of block acquisition is stored in mobile storage means;In AC input power down, pass through power supply handover module
It is real-time in real-time clock module when the power switching of real-time data acquisition system being powered to by energy-storage module, and reading power down
Time, the breakpoint data acquired in power down using the real-time time as power down down times data and the acquisition module are together
It stores in mobile storage means, cuts off the power supply of the acquisition module.
Further include step after the step B in the method for storing power-fail data of the real-time data acquisition system:
C, power down down times data and breakpoint data are uploaded to background server by the system control module, and close real time data
The application program of acquisition system, after closing application program, deenergization handover module realizes the disconnected of real-time data acquisition system
Electricity shutdown.
A kind of real-time data acquisition system, including power failure data storage circuit as described above.
Compared to the prior art, a kind of real-time data acquisition system and its power failure data storage circuit provided by the invention,
Method adopts the acquisition module of real-time data acquisition system by system control module when AC input does not have power down
The real time data of collection is stored in mobile storage means;It is preserved convenient for duplication, the backup of real time data.The system controls mould
Block in AC input power down, by power supply handover module by the power switching of real-time data acquisition system to be built-in with storage
The energy-storage module power supply of energy capacitance, it is at low cost, applied widely using storage capacitor as stand-by electric energy.Moreover, the system
Real-time time when control module reads power down in real-time clock module, using the real-time time as power down down times data and
During the breakpoint data that the acquisition module is acquired in power down store mobile storage means together, the acquisition module is cut off
Power supply;Hereby it is achieved that the power-off of data preserves, data can be taken out by mobile storage means without being powered, improved
The stability and convenience of data.
Description of the drawings
Fig. 1 is the structure diagram of the power failure data storage circuit of real-time data acquisition system provided by the invention.
Fig. 2 is in the power failure data storage circuit of real-time data acquisition system provided by the invention, and AC dump detects mould
The circuit diagram of block.
Fig. 3 is the structure of energy-storage module in the power failure data storage circuit of real-time data acquisition system provided by the invention
Block diagram.
Fig. 4 is the circuit of charhing unit in the power failure data storage circuit of real-time data acquisition system provided by the invention
Figure.
Fig. 5 is adaptive voltage regulation unit in the power failure data storage circuit of real-time data acquisition system provided by the invention
Circuit diagram.
Fig. 6 be real-time data acquisition system provided by the invention power failure data storage circuit in, power supply handover module
Structure diagram.
Fig. 7 is the method flow diagram of the method for storing power-fail data of real-time data acquisition system provided by the invention.
Specific implementation mode
A kind of real-time data acquisition system of present invention offer and its power failure data storage circuit, method, to make the present invention's
Purpose, technical solution and effect are clearer, clear, the embodiment that develops simultaneously referring to the drawings to the present invention further specifically
It is bright.It should be appreciated that described herein, specific examples are only used to explain the present invention, is not intended to limit the present invention.
The real-time data acquisition be current every field relate generally to the problem of, especially monitoring trade, Internet of Things,
Industry spot etc. acquires the various data of site environment in real time, and carries out analyzing processing for collected data,
It is the link that information technology field is indispensable instantly.
Referring to Fig. 1, the power failure data storage circuit of real-time data acquisition system provided by the invention, including AC-DC are opened
Powered-down source 10, energy-storage module 20, AC dump detection module 30, power supply handover module 40, timer module 50, system control mould
Block 60, mobile storage means 70 and real-time clock module 80.
The AC-DC Switching Power Supplies 10, the alternating current for inputting AC input J are converted into direct current, and defeated
Go out to power supply handover module 40 and energy-storage module 20.The AC input J connections alternating current, carries to AC-DC Switching Power Supplies 10
For the alternating current of 220V.10 exportable two-way voltage of the AC-DC Switching Power Supplies, the first of the AC-DC Switching Power Supplies 10 are defeated
Outlet exports the direct current of 5V, the direct current of the second output terminal output 12V of the AC-DC Switching Power Supplies 10.
The energy-storage module 20, for storing electric energy by built-in storage capacitor.The storage capacitor can be polarity
Capacitance, farad capacitor etc., in the present embodiment, preferably farad capacitor.
The power supply handover module 40 makes AC-DC for switching between AC-DC Switching Power Supplies 10 and energy-storage module 20
Switching Power Supply 10 or energy-storage module 20 are powered for real-time data acquisition system.
The AC dump detection module 30, for detect in real time AC input J whether power down, and by testing result
It exports to system control module 60.The 220V AC signals of detection of power loss front end, accurate quickly detection power down information, are different from city
The way of common detection DC input voitage on field can timely enter emergency data storage stream with quick response power loss event
Journey processing.
The real-time clock module 80, for providing real-time time.In the present embodiment, the real-time clock module 80 is
RTC, i.e. clock chip.
The mobile storage means 70, for storing data.The mobile storage means 70 include SD card, TF card
(Flash memory cards), USB flash disk, solid state disk etc., be TF card in the present embodiment.The present invention is stored separately using program with data
Mode, the data of real-time data acquisition system are stored in TF card, and operating system and application program still use tradition
Chip Flash or hard disk and other media storage.Such benefit is to facilitate protection real time data, and real time data is constantly to be deposited past
The data of storage media read-write, and if storage medium power down during writing, be very easy to cause loss of data, or even damage
The traditional mechanical hard disk of evil, therefore be most preferably to select using the independent TF card storage real time data with bad block management function
It selects.
The system control module 60, for when AC input J does not have power down, by real-time data acquisition system
The real time data that acquisition module 90 acquires is stored in mobile storage means 70;In AC input J power down, pass through electricity
Source handover module 40 powers the power switching of real-time data acquisition system to by energy-storage module 20, and when reading real-time when power down
Real-time time in clock module 80, using the real-time time as power down down times data and the acquisition module 30 in power down
The breakpoint data of acquisition are stored together in mobile storage means 70, cut off the power supply of the acquisition module 90;Only retain system
System control module 60, mobile storage means 70 and real-time clock module 80(The minimum that real-time data acquisition system can be run
System)Power supply, to ensure.The breakpoint data refer to generating incomplete since unexpected power down causes acquisition to be interrupted
Real time data.The system control module 60 is preferably the processor of real-time data acquisition system.
The input terminals of the AC input J connection AC-DC Switching Power Supplies 10 and AC dump detection module 30 it is defeated
Enter end, the first input end of the first output end connection power supply handover module 40 of the AC-DC Switching Power Supplies 10;The AC-DC
The second output terminal of Switching Power Supply 10 connects the second input terminal of power supply handover module 40 by the energy-storage module 20;The friendship
The power-off signal input terminal 1 of the output end connection system control module 60 of electro-detection of pouring off module 30, the power supply handover module
40 output ends connect the power input 2 of system control module 60, and the power control terminal 3 of the system control module 60 connects electricity
The control terminal of source handover module 40;The data input pin 4 of the system control module 60 connects acquisition module 90;The system control
Molding block 60 is also connected with mobile storage means 70 and real-time clock module 80.
It follows that the power failure data storage circuit of real-time data acquisition system provided by the invention, convenient for acquisition in real time
To the duplication of breakpoint data that acquires of data and when power down and backup preserve, using storage capacitor as stand-by electric energy, cost
It is low, applied widely.
The system control module 60, acquisition module 90 and energy supply control module 910 belong in real-time data acquisition system
Module, that is, the power failure data storage circuit and real-time data acquisition system common processor, without increasing extra cost.
The acquisition module 90 is used for real-time data collection.The energy supply control module 910, for providing power supply to acquisition module 90,
The energy supply control module 910 is built-in with MOS switch(Metal-oxide-semiconductor), the system control module 60 controlled by the MOS switch
Energy supply control module 910, to realize the control powered to acquisition module 90.In order to reduce when farad capacitor is powered, entirely
The power consumption of real-time data acquisition system, the system control module 60 cut off external Acquisition Circuit when farad capacitor is powered(It adopts
Collect module 90 and energy supply control module 910)Power supply, achieve the effect that reduce farad capacitor load, only retain gathered data system
The function of the minimum system and TF card storage section of system;It is closed until completing data storage after the completion of power loss event and data upload
Close power supply.This way reduces the load of farad capacitor to the greatest extent, can select the capacity of farad capacitor also smaller, i.e.,
Cost is reduced, the delay time of augmented data acquisition system power down is more favorable to, the invention adapts to wider data
Acquisition system.
Further, the system control module 60 is additionally operable to power down down times data and the storage of breakpoint data to can
After flash memory device 70, power down down times data and breakpoint data are uploaded into background server, and close real time data
The application program of acquisition system, after closing application program, deenergization handover module 40 realizes real-time data acquisition system
Power-off shutdown.In other words, the system control module 60 saves the data acquired before power down, and by power down time
After storing away, the software in the system control module 60 is set and starts startup power supply closing flow path, in this flow, system
Control module 60 will complete the upload of the breakpoint data of power down first, for real-time acquisition system, need to transfer data to remote
The background server at end goes analyzing processing;System control module 60 disposably uploads to power failure data, the information such as power down time
Distally, it informs background server, initially enters breakpoint status;Then system control module 60 begins to shut off application program, later
The GPIO mouths cut off the power are controlled, stand-by power supply power switch is cut off(That is, disconnecting the company of energy-storage module and power supply handover module
It connects), realize power-off shutdown.
Further, the system control module 60 is additionally operable to after AC input J sends a telegram here again, continues point automatically
Time when preserving data, and acquiring incoming call in real-time clock module 80 preserves the time as the incoming call time with continuous point
Data are saved in TF card, can ensure all data complete documentations before power down in this way, while can accurately record power down
Time point and the time point sent a telegram here again, it is ensured that accurate, the safety of data.
It follows that power failure data storage circuit provided by the invention, collects the processing scheme one of software, hardware, solution
A series of problems, such as power down moment real time data of having determined preservation, processing report, and closing application program and power supply control, whole process is certainly
Dynamicization controls, and without human intervention, avoids damage of the unexpected power down to real-time data acquisition system, is not in loss of data
The case where.
The timer module 50 exports control for starting timing in AC input J power down after the predetermined time
Signal processed makes power supply handover module 40 disconnect, and realizes the power-off shutdown of real-time data acquisition system.The AC dump detects mould
The output end of block 30 also connects the control terminal of power supply handover module 40 by timer module 50.The present invention uses software and hardware
Two ways is shut down(The control of system control module 60 shutdown, the control shutdown of timer module 50), that is, software(System controls mould
Block 60)It is preferential to judge whether to complete data storage, energy-storage module 20 is automatically closed by software if completing, if because software
The problem of operation itself and exceed the predetermined time, then by timer module 50 export shutdown signal, deenergization handover module 40,
Realize shutdown.In this way, two kinds of shutdown modes, it is ensured that real-time data acquisition system shuts down before farad capacitor depleted of energy.This
In embodiment, the predetermined time is no more than 2 minutes, it is preferred that is 2 minutes.The timer module 50 is preferably 555 timings
Device.
Referring to Fig. 2, the AC dump detection module 30 includes the first diode D1, the first chip U1, the second chip
U2, first resistor R1, second resistance R2,3rd resistor R3, the 4th resistance R4, the first capacitance C1, the second capacitance C2 and the first MOS
Pipe Q1;The the first ac input end 1AC and the second ac input end 2AC of the first chip U1 is AC dump detection module 30
Input terminal, connection AC input J, the first chip U1 cathode output end+3 pass through first resistor R1 connections second
One end of resistance R2, the cathode of the first diode D1, one end of the first capacitance C1 and the second chip U2 the ends V+, it is described second electricity
Hinder R2 the other end connection cathode output end -4 of the first chip U1, the anode of the first diode D1, the first capacitance C1 it is another
The ends V- at end and the second chip U2;The external first feeder ear VSS of the ends VCC connection of the second chip U2, the second capacitance C2
One end of one end and 3rd resistor R3;The other end of the second capacitance C2 connects the ends GND of the second chip U2, second core
The ends VO of piece U2(That is Vout output ends)Connect the grid of the other end and the first metal-oxide-semiconductor Q1 of 3rd resistor R3;First MOS
The source electrode of pipe Q1 is grounded, the drain electrode of the first metal-oxide-semiconductor Q1 be the output end PAUX_DE of the AC dump detection module 30,
Connect timer module 50, system control module 60, also by the external second feeder ear VDD of the 4th resistance R4 connections.Described
One chip U1 is bridge heap chip, model MB6S.Second chip is opto-coupler chip.The first diode D1 is voltage stabilizing two
Pole pipe.
Alternating current 220V voltage is converted to DC voltage by the AC dump detection module 30 by bridge heap chip U1, straight
Voltage output end is flowed by first resistor R1, second resistance R2 and zener diode D1, and the sampled voltage of one 5.6V of output arrives
The ends V+ of opto-coupler chip U2 drive optocoupler.The isolation and conversion of signal are realized by opto-coupler chip and the first metal-oxide-semiconductor Q1.When
When AC input J does not have power down, that is, when alternating current persistently inputs, the output end of the AC dump detection module 30
The level of PAUX_DE outputs is high level;Conversely, when AC input J power down, the level of output end PAUX_DE outputs
For low level.This low level signal will be imparted to 555 timers in system, the work of opening timing device;This signal simultaneously
It is input to system control module 60, as the trigger signal for entering emergency data preservation action.Why the present invention will be to before most
The 220V signals at end are sampled, rather than are directly detected to the DC voltage output end of Switching Power Supply, and reason is to adopt
The 220V of sample front end has detection of power loss real-time best, with most fast velocity measuring to power-down state, notifies system in time
System.And the DC voltage output end of rear end, because of the influence of the storage capacitor in circuit, reflection power down shape that can not be most fast
State.
The present invention mostly uses actual conditions of the DC 5V as system power supply according to general real-time data acquisition system, choosing
The farad capacitor of 5.5V is selected as system reserve power supply, it is wide that farad capacitor has temperature range(-40~85℃), cycle make
It, in the present invention can be according to the practical work(of acquisition system with long lifespan, the characteristics such as charging rate is fast, large current discharging capability is strong
Consumption, selects the farad capacitor of different capabilities, and the range of capacity of farad capacitor is in 0.01F ~ 1000F on open market;In view of capacitance
Volume and the actual power consumption of data collecting system(General System power consumption is between 5V, 100mA ~ 500mA);Preferably, institute
The range for stating farad capacitor is arranged between 0.1F ~ 50F.It is used according to actual test when system power dissipation is 5V/300mA
The farad capacitor of 10F can maintain system to work 2 minutes or so, and enough systems complete entire preservation operating process, therefore, this implementation
In example, the farad capacitor is 10F.
Referring to Fig. 3, the energy-storage module 20 further includes charhing unit 210 and adaptive voltage regulation unit 220.
The charhing unit 210 is used to carry out decompression and voltage stabilizing to the direct current that AC-DC Switching Power Supplies 10 export, and exports
Give storage capacitor C.It is supplied to farad capacitor C to charge using the input of independent Switching Power Supply all the way, is exported with Switching Power Supply to being
The 5V power supplys of system separate, and the circuit to charge in this way does not interfere with main power supply circuit.
The adaptive voltage regulation unit 220 is used to carry out voltage stabilizing to the electric energy of storage capacitor C releases, and exports and cut to power supply
Change the mold block 40.The voltage range of farad capacitor C is 0V ~ 5.5V;Since the characteristic of farad capacitor C is the voltage in discharge process
Can it gradually be reduced to 0V from 5.5V, until all electricity discharge;Therefore, exportable steady using adaptive voltage regulation unit 220
Fixed 5V direct currents.
The charhing unit 210 passes through the adaptive voltage regulation unit of storage capacitor C connections 220.
Further, referring to Fig. 4, the charhing unit 210 includes third chip U3, the second diode D2, the three or two
Pole pipe D3, third capacitance C3, the 4th capacitance C4, the 5th resistance R5 and the 6th resistance R6;The second diode D2 just extremely
The input terminal of charhing unit 210, the second output terminal for connecting AC-DC Switching Power Supplies, the cathode connection of the second diode D2
The cathode of third diode D3, the ends Vin of third chip U3 are simultaneously grounded by third capacitance C3;The third chip U3's
The ends Vout are the output end of charhing unit 210, one end of the anode for connecting third diode, the 5th resistance R5, also pass through the 4th
Capacitance C4 and farad capacitor C ground connection;The other end of the 5th resistance R5 passes through the 6th resistance R6 ground connection.The 6th resistance R6
For adjustable resistance.The second diode D2 plays anti-reverse access, and the third chip U3 is linear stabilized power supply core
Piece, model LM117.
The charhing unit 210 adjusts voltage output by the 5th resistance R5 and adjustable resistance R6, and calculation formula is:
Vout=1.25V(1+R6/R5)+Iadj(R6);Can be 5.5V voltages by output adjustment by adjusting adjustable resistance R6;It is supplied to
Farad capacitor C chargings, wherein third diode D3 are after preventing AC dump, and the voltage of farad capacitor C, which is played a reversed role, returns to LM117
Chip interior causes wafer damage.The 4th capacitance C4 is polar capacitor, cathode ground connection.
Referring to Fig. 5, the adaptive voltage regulation unit 220 include the 5th capacitance C5, the 6th capacitance C6, the 7th capacitance C7,
7th resistance R7, the 8th resistance R8, inductance L and fourth chip U4;One end of the 5th capacitance C5 is the adaptive voltage stabilizing
The input terminal of unit 220, one end of connection farad capacitor C, the ends VIN of fourth chip U4, the ends EN of fourth chip U4, the 4th core
The ends PS of piece U4, the ends UVLO of fourth chip U4, also by the ends L of inductance L connection fourth chips U4, the 5th capacitance C5's
The other end of the other end and farad capacitor is grounded;The ends GND of the fourth chip U4 are grounded, the VAUX of the fourth chip U4
End passes through the 6th capacitance C6 ground connection;The ends VOUT of the fourth chip U4 are the output end of the adaptive voltage regulation unit 220, connect
Connect one end, one end of the 7th capacitance C7 and the second input terminal of power supply handover module 40 of the 7th resistance R7;7th capacitance
The other end of C7 is grounded, and the ends FB of the other end connection fourth chip U4 of the 7th resistance R7 are simultaneously connect by the 8th resistance R8
Ground.The model TPS61200 of the fourth chip U4, the adaptive voltage regulation unit 220 is using TPS61200 chips as electricity
Source processing chip, voltage of the input between 0.3V ~ 5.5V can be adjusted after voltage stabilizing by this chip exports fixed 5V electricity
Pressure.
The power failure data storage circuit further includes decompression LDO modules(It is not shown in figure), the decompression LDO modules are used for
The output of adaptive voltage regulation unit is depressured, and is exported to real-time clock module.The power supply of real-time clock module 80 is supplied
Ranging from 1.8V ~ 3V voltages, therefore farad capacitor C is needed by level-one reduction voltage circuit(It is depressured LDO modules), export 1.8V and be given to
Real-time clock module 80.
Referring to Fig. 6, the power supply handover module 40 includes the 4th diode D4 and power change-over switch 410.Described
Four diode D4 just extremely the first input end of the power supply handover module 40, connection AC-DC Switching Power Supplies 10 it is first defeated
Outlet;The input terminal of the power change-over switch 410 is the second input terminal of the power supply handover module 40, connection is adaptive steady
Unit 220 is pressed, the control terminal of the power change-over switch 410 is the control terminal of the power supply handover module 40, connection timer
The output end of the power control terminal 3 of module 50 and system control module 60, the power change-over switch 410 switches for the power supply
The power input 2 of the output end of module 40, the cathode and system control module 60 of the 4th diode D4 of connection.
When the first output end of AC-DC Switching Power Supplies 10 has output, system control module 60 is by power change-over switch 410
It disconnects, system is powered by AC-DC Switching Power Supplies 10.In AC input J power down, system control module 60 switches power supply
Switch 410 is closed, and system is powered by energy-storage module 20, and the voltage that the 4th diode D4 can prevent energy-storage module 20 from exporting falls
It is poured into AC-DC Switching Power Supplies 10.
Further, the power change-over switch 410 is metal-oxide-semiconductor.The grid of the metal-oxide-semiconductor is power change-over switch 410
Control terminal.When the first output end of AC-DC Switching Power Supplies 10 has output, then metal-oxide-semiconductor is closed in the output of system control module 60
Signal, system by AC-DC Switching Power Supplies 10 by after the 4th diode D4 to power supply.After 10 power down of AC-DC Switching Power Supplies,
System control module 60 then exports the signal of conducting metal-oxide-semiconductor, and system is switched to the power supply of the circuit after farad capacitor voltage stabilizing;And into
Enter to preserve the flow of data, control signal-off power supply is then exported after the completion of flow;If software not yet closes in the given time
Power supply is closed, then exports control signal-off power supply by 555 timers.The present invention can be realized using a diode and metal-oxide-semiconductor
Power supply switches, and simple in structure, at low cost and stability is good.
In conclusion the power failure data storage circuit of real-time data acquisition system provided by the invention, using TF card conduct
Real-time acquired data storage medium, and requirement of the system to real-time data is solved, can be delayed preservation under power blackout situation
The data of power-off time point, and the time before being easy to act as is identified in the data of storage, the time synchronizes with data and preserves, in system weight
After new incoming call, automatic continuous point preserves data, and the new time of incoming call is synchronized with data and is saved in TF card, can protect in this way
Hinder all data complete documentations before power down, while the time point that the time point of power down can accurately be recorded and sent a telegram here again, and
It can guarantee that the data acquired when power down can be preserved smoothly, and recorded the time of power down, acquisition system has abundance
Time close acquisition applications program, carry out data and programmed protection;In terms of power down is delayed preservation, using farad capacitor pair
System is powered into line delay, after having preserved data system and having closed, the RTC of system is persistently given to power, continual offer is accurate
Real-time clock power supply, with meets incoming call when in time preservation resume time point data the needs of.The present invention collects hardware, software one
The data for solving the problems, such as real-time acquisition system that the method for body is comprehensive preserve, breakpoint identifies;Using farad capacitor as spare
Power supply is supplied to system delay to handle data, and continual is supplied to RTC circuit, exact timing.
Based on the power failure data storage circuit that above-described embodiment provides, the present invention also provides a kind of real-time data acquisition systems
Method for storing power-fail data, referring to Fig. 7, described method includes following steps:
S10, AC dump detection module detect in real time AC input whether power down, and testing result is exported to being
System control module;
S20, the system control module be not when AC input has power down, by the acquisition of real-time data acquisition system
The real time data of module acquisition is stored in mobile storage means;In AC input power down, mould is switched by power supply
Block powers the power switching of real-time data acquisition system to by energy-storage module, and reality when reading power down in real-time clock module
When the time, the breakpoint data one which is acquired as power down down times data and the acquisition module in power down
And store into mobile storage means, cut off the power supply of the acquisition module.
The step B further includes:Timer module starts timing in AC input power down, defeated after the predetermined time
Going out to control signal makes power change-over switch power supply handover module disconnect, and realizes the power-off shutdown of real-time data acquisition system.
Power down down times data and breakpoint data are uploaded to background server, and closed by S30, the system control module
The application program for closing real-time data acquisition system, after closing application program, deenergization handover module realizes that real time data is adopted
The power-off shutdown of collecting system.
After AC input is sent a telegram here again, automatic continuous point preserves data, and acquires for S40, the system control module
The data that the time preserves as the incoming call time with continuous point are saved in TF card by time when incoming call in real-time clock module.
It is no longer superfluous herein since the operation principle of the method for storing power-fail data has elaborated in the above-described embodiments
It states.
The present invention also provides a kind of real-time data acquisition system, the real-time data acquisition system includes above-mentioned power down number
According to preservation circuit and background server.The data that the background server is used to analyze and processing system control module uploads.By
It has been elaborated in the above-described embodiments in the operation principle of the real-time data acquisition system, details are not described herein.
It, can according to the technique and scheme of the present invention and its hair it is understood that for those of ordinary skills
Bright design is subject to equivalent substitution or change, and all these changes or replacement should all belong to the guarantor of appended claims of the invention
Protect range.
Claims (6)
1. a kind of power failure data storage circuit of real-time data acquisition system, which is characterized in that including:
AC-DC Switching Power Supplies, the alternating current for inputting AC input is converted into direct current, and exports and switch to power supply
Module and energy-storage module;
The energy-storage module, for storing electric energy by built-in storage capacitor;
The power supply handover module, for switching between AC-DC Switching Power Supplies and energy-storage module, make AC-DC Switching Power Supplies or
Energy-storage module is powered for real-time data acquisition system;
AC dump detection module, for detect in real time AC input whether power down, and testing result is exported to system
Control module;
Real-time clock module, for providing real-time time;
Mobile storage means, for storing data;
The system control module, for when AC input does not have power down, by the acquisition mould of real-time data acquisition system
The real time data of block acquisition is stored in mobile storage means;In AC input power down, pass through power supply handover module
It is real-time in real-time clock module when the power switching of real-time data acquisition system being powered to by energy-storage module, and reading power down
Time, the breakpoint data acquired in power down using the real-time time as power down down times data and the acquisition module are together
It stores in mobile storage means, cuts off the power supply of the acquisition module;
The system control module is additionally operable to store power down down times data and breakpoint data to after mobile storage means,
Power down down times data and breakpoint data are uploaded into background server, and close the application journey of real-time data acquisition system
Sequence, after closing application program, deenergization handover module realizes the power-off shutdown of real-time data acquisition system;
The power failure data storage circuit further includes timer module, and the timer module is used in AC input power down
When start timing, after the predetermined time output control signal makes power supply handover module disconnect, realize real-time data acquisition system
Power-off shutdown;
The system control module is additionally operable to after AC input is sent a telegram here again, and automatic continuous point preserves data, and acquires and
Time when electric in real-time clock module preserves the data that the time preserves as the incoming call time with continuous point;
The energy-storage module further includes:
Charhing unit, the direct current for being exported to AC-DC Switching Power Supplies carries out decompression and voltage stabilizing, and exports to storage capacitor;
Adaptive voltage regulation unit, the electric energy for being discharged to storage capacitor carries out voltage stabilizing, and exports and give power supply handover module;
The AC dump detection module includes the first diode, the first chip, the second chip, first resistor, second resistance, the
Three resistance, the 4th resistance, the first capacitance, the second capacitance and the first metal-oxide-semiconductor;First ac input end of first chip and
Two ac input ends connect AC input, and the cathode output end of first chip connects second resistance by first resistor
One end, the cathode of the first diode, one end of the first capacitance and the second chip the ends V+, the other end of the second resistance connects
Connect the ends V- of the cathode output end of the first chip, the anode of the first diode, the other end of the first capacitance and the second chip;It is described
External first feeder ear of the ends VCC connection, one end of the second capacitance and one end of 3rd resistor of second chip;Second capacitance
The other end connect the second chip the ends GND, second chip the ends VO connection 3rd resistor the other end and the first metal-oxide-semiconductor
Grid;The source electrode of first metal-oxide-semiconductor is grounded, and the drain electrode of first metal-oxide-semiconductor is the defeated of the AC dump detection module
Outlet, system control module, also passes through external second feeder ear of the 4th resistance connection at connection timer module;
The breakpoint data is by leading to acquisition to interrupt the incomplete real time data generated in unexpected power down.
2. the power failure data storage circuit of real-time data acquisition system according to claim 1, which is characterized in that the storage
Energy capacitance is farad capacitor.
3. the power failure data storage circuit of real-time data acquisition system according to claim 1, which is characterized in that it is described fall
Electric data storage circuit further includes decompression LDO modules, for being depressured to the output of adaptive voltage regulation unit, and is exported to real
When clock module.
4. a kind of power failure data of real-time data acquisition system based on power failure data storage circuit described in claim 1 preserves
Method, which is characterized in that include the following steps:
A, AC dump detection module detect in real time AC input whether power down, and by testing result export give system control
Module;
B, the system control module adopts the acquisition module of real-time data acquisition system when AC input does not have power down
The real time data of collection is stored in mobile storage means;It, will be real by power supply handover module in AC input power down
When data collecting system power switching power to by energy-storage module, and when reading power down when real-time in real-time clock module
Between, the breakpoint data which acquires with the acquisition module in power down as power down down times data are deposited together
It stores up in mobile storage means, cuts off the power supply of the acquisition module.
5. the method for storing power-fail data of real-time data acquisition system according to claim 4, which is characterized in that the step
Further include step after rapid B:C, power down down times data and breakpoint data are uploaded to backstage and taken by the system control module
Business device, and the application program of real-time data acquisition system is closed, after closing application program, deenergization handover module is realized
The power-off shutdown of real-time data acquisition system.
6. a kind of real-time data acquisition system, which is characterized in that include the power failure data as described in claim 1-3 any one
Preserve circuit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510826978.8A CN105468127B (en) | 2015-11-24 | 2015-11-24 | A kind of real-time data acquisition system and its power failure data storage circuit, method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510826978.8A CN105468127B (en) | 2015-11-24 | 2015-11-24 | A kind of real-time data acquisition system and its power failure data storage circuit, method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105468127A CN105468127A (en) | 2016-04-06 |
CN105468127B true CN105468127B (en) | 2018-11-13 |
Family
ID=55605917
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510826978.8A Active CN105468127B (en) | 2015-11-24 | 2015-11-24 | A kind of real-time data acquisition system and its power failure data storage circuit, method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105468127B (en) |
Families Citing this family (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106354119B (en) * | 2016-08-26 | 2020-04-21 | 华自科技股份有限公司 | Power-down time recording method, system and device for microcomputer relay protection device |
CN106300638B (en) * | 2016-08-30 | 2019-11-12 | 株洲中车时代电气股份有限公司 | A kind of low-voltage power down overrun control and control method |
CN106655465B (en) * | 2016-11-07 | 2023-09-29 | 珠海格力电器股份有限公司 | System clock power supply device, method and electric appliance |
CN107608493A (en) * | 2017-09-11 | 2018-01-19 | 郑州云海信息技术有限公司 | A kind of electric supply installation and method by the use of super capacitor as storage card stand-by power supply |
CN107918569B (en) * | 2017-11-22 | 2021-05-18 | 北京深思数盾科技股份有限公司 | Method and device for monitoring RTC chip power-down and crystal oscillator vibration-stopping |
CN108225166B (en) * | 2017-12-18 | 2020-02-18 | 凯达威尔创新科技(深圳)有限公司 | Modulus height indicator capable of realizing seamless sampling and seamless sampling method thereof |
CN108565962A (en) * | 2018-06-15 | 2018-09-21 | 福州智程信息科技有限公司 | A kind of controller that intelligent power supply failure automatically switches |
CN109388549B (en) * | 2018-10-31 | 2022-02-08 | 北京羽扇智信息科技有限公司 | Storage method, storage system, electronic device, and storage medium |
CN109523691B (en) * | 2018-12-10 | 2024-03-26 | 深圳市思拓通信系统有限公司 | Unmanned supermarket shelf monitoring device |
CN110138380B (en) * | 2019-04-01 | 2023-08-04 | 山东华翼微电子技术股份有限公司 | Power-down time monitoring circuit and method |
CN110568784A (en) * | 2019-05-17 | 2019-12-13 | 上海繁易信息科技股份有限公司 | Rural sewage treatment controller with remote monitoring function and control method |
CN110955319A (en) * | 2019-08-06 | 2020-04-03 | 汉腾汽车有限公司 | Power-off protection system and method for vehicle-mounted server of intelligent police car |
CN110588688B (en) * | 2019-09-23 | 2020-08-18 | 珠海格力电器股份有限公司 | Clock control device, air conditioning system and clock control method thereof |
CN111124962B (en) * | 2019-11-13 | 2021-06-29 | 苏州浪潮智能科技有限公司 | TF (Transflash) card slot multiplexing method and system based on server PCH (physical channel) and BMC (baseboard management controller) |
CN113452131A (en) * | 2020-03-25 | 2021-09-28 | 上海铼钠克数控科技股份有限公司 | Power supply management device and method of numerical control equipment |
CN112929013B (en) * | 2021-02-01 | 2023-07-25 | 四川爱创科技有限公司 | Circuit for realizing power-down self-recovery memory function and control method thereof |
CN112882656A (en) * | 2021-02-03 | 2021-06-01 | 深圳市麦格米特控制技术有限公司 | Power failure data storage method and power failure data storage circuit |
CN113765183B (en) * | 2021-09-01 | 2024-09-24 | 长春捷翼汽车科技股份有限公司 | Charging device capable of automatically memorizing power failure, working method, device, medium and vehicle |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101038315A (en) * | 2006-03-16 | 2007-09-19 | 统宝光电股份有限公司 | Scanning tester and method for plane display device |
CN102520783A (en) * | 2011-11-04 | 2012-06-27 | 浪潮电子信息产业股份有限公司 | Method capable of realizing energy saving of smart rack and rack system |
CN102999146A (en) * | 2012-11-22 | 2013-03-27 | 辽宁省电力有限公司电力科学研究院 | Low-cost data security system and control method |
CN104834369A (en) * | 2015-05-11 | 2015-08-12 | 北方信息控制集团有限公司 | Power failure data protection device of real-time control system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4398281B2 (en) * | 2004-02-27 | 2010-01-13 | 富士重工業株式会社 | Data recording apparatus and method for shutting down data recording apparatus |
-
2015
- 2015-11-24 CN CN201510826978.8A patent/CN105468127B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101038315A (en) * | 2006-03-16 | 2007-09-19 | 统宝光电股份有限公司 | Scanning tester and method for plane display device |
CN102520783A (en) * | 2011-11-04 | 2012-06-27 | 浪潮电子信息产业股份有限公司 | Method capable of realizing energy saving of smart rack and rack system |
CN102999146A (en) * | 2012-11-22 | 2013-03-27 | 辽宁省电力有限公司电力科学研究院 | Low-cost data security system and control method |
CN104834369A (en) * | 2015-05-11 | 2015-08-12 | 北方信息控制集团有限公司 | Power failure data protection device of real-time control system |
Also Published As
Publication number | Publication date |
---|---|
CN105468127A (en) | 2016-04-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105468127B (en) | A kind of real-time data acquisition system and its power failure data storage circuit, method | |
CN103607037B (en) | A kind of switching device shifter of ups power | |
CN201230199Y (en) | Power-down protection circuit | |
CN102156679A (en) | PCIE interface-based solid state disk power-down protection method and device | |
CN106410946B (en) | Power supply circuit for distribution line fault positioning device and power supply method thereof | |
CN202013570U (en) | Power down protecting device for solid state disk based on PCIE (Peripheral Component Interface Express) interface | |
CN102148529B (en) | Control device and control method thereof for intelligently supplying power to circuit breaker control unit | |
CN106410960A (en) | Power supply circuit, power supply method and power-consumption information acquisition terminal manufactured thereby | |
CN102541238A (en) | Outage protector used for embedded computer and realization method thereof | |
CN104701942A (en) | Low-power-consumption terminal for controlling power-off discharge and control method of terminal | |
CN110768362A (en) | Backup power supply control system based on super capacitor | |
CN103064497A (en) | Power source delayed power supply device, network main board and network host | |
CN103124097A (en) | Intelligent lithium ion charger | |
CN205983670U (en) | Electric intelligent valve accuse water gauge is prevented falling in low -power consumption | |
CN203352229U (en) | Lead-acid battery intelligent activation device | |
CN103311590A (en) | Intelligent maintenance device for lead-acid batteries | |
CN206850518U (en) | Programmable double-input uninterrupted switch power supply | |
CN207398829U (en) | A kind of intelligent power system based on DSP | |
CN204947662U (en) | A kind of charging circuit | |
CN208890474U (en) | A kind of power-off protection apparatus based on farad capacitor for industrial gateway | |
CN205141801U (en) | Intelligent power generation system | |
CN204706353U (en) | A kind of data memory protection circuit | |
WO2021103098A1 (en) | Power consumption control device and intelligent device | |
CN202383597U (en) | Power-off protector for embedded-type computer | |
CN102832680A (en) | Thing machine adopting supercapacitor as energy storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 518057 Nanshan District City, Guangdong Province, high tech in the middle of the road No. 2 Shenzhen Software Park, a phase of the seven floor of the four floor of the three Applicant after: Shenzhen Polytron Technologies Inc Address before: 518057 Nanshan District City, Guangdong Province, high tech in the middle of the road No. 2 Shenzhen Software Park, a phase of the seven floor of the four floor of the three Applicant before: Shenzhen Xbrother Technology Co., Ltd. |
|
COR | Change of bibliographic data | ||
GR01 | Patent grant | ||
GR01 | Patent grant |