(3) summary of the invention:
The present invention relates to warehouse environment information gathering warning system, it comprises multiple humiture collection
Instrument, multiple smoke detector, Fire extinguisher and a main controller, in warehouse, each position sets
Put a humiture collector, and install at top, room, warehouse multiple smoke detectors (according to
Environmental characteristic or use photosensitive or heat detector), each humiture collector comprise one or number
Individual Temperature Humidity Sensor, humiture collector and smoke detector all configure toggle switch, all set
Putting unique number, at ordinary times, the temperature-humidity signal of recording synchronism time and collection thereof sends master control to
Device processes, if smoke detector detects that smokescope transfinites, and according to fire alarm intensity, time
Classification, to main controller report to the police, main controller or select open Fire extinguisher start fire-extinguishing apparatus
With send chimes of doom, and reported to the police to owner and relevant department with short message mode by GSM net.Go out
Fire controller output controls through Phototube Coupling, bidirectional triode thyristor, or contact relay circuit controls,
Fire-extinguishing apparatus is connected on the civil power outside system.
Each humiture collector, each smoke detector and main controller are all connected on same electric power netting twine
And main switch is set, diode is installed after main switch, and at main controller, Fire extinguisher
Each installation cycle discriminator circuit, is used for producing with in each humiture collector, each smoke detector
Raw lock in time keeps system acting consistent, one communication of each installation in its telecommunication circuit simultaneously
Electrical switch, switch drive module.During communication, through half wave communication of electric lines of force, connect communication
Electrical switch;Otherwise, master controller first sends sign off instruction to each electric quantity monitoring instrument,
Shutoff communications electronics switchs.
Communication is that main controller, fire extinguishing control by controlling lock in time to keep communication operation consistent
The switch drive module of communications electronics switch in device and each humiture collector, each smoke detector
Be from electric power netting twine through resistance blood pressure lowering, just connect diode and isolate after cycle bears half-wave further, connect
In comparator input terminal, its reference voltage is 100Mv to 200Mv, available diode drop
Obtaining through electric resistance partial pressure, therefore the outfan of comparator is square-wave signal, its two pole through just connecing
Create corresponding power network cycle after pipe rectification and bear the positive square-wave signal of half-wave, be connected to the I of single-chip microcomputer
/ O mouth, single-chip microcomputer performs traffic operation when scanning positive square-wave signal, and this positive square-wave signal is also
For driving communications electronics to switch, therefore communications electronics switch turns off when cycle positive half-wave, week
Ripple is connected when bearing half-wave.Communications electronics switch is connected to single-chip microcomputer respective end according to used communication mode
Mouthful, and carry out signal condition, during sign off under main controller control, make drive circuit turn off
Communications electronics switchs.
System is provided with SMS R-T unit, utilizes GSM network, to receive and dispatch note side
Formula communicates, and the SMS messaging service of current GSM remains the one that domestic popularity rate is the highest
The SMS of short message service GSM itself possesses data transport functions, and the transmission of a message is just constituted
Once communicating, the transmission of message is by the SMS service center (SMSC) being in outside GSM
Relay, the SMS service SMS of GSM it need not dial and can set up connection, user is wanting
The information sent out is sent to short message service center plus stay of two nights data, completes through short message service center
The final stay of two nights it is then forwarded to after storage.So information will not be lost when the no start of GSM terminal.
The present invention utilizes the positive half cycle ascent stage of power network cycle, takes three and screens some realization to cycle
The identification decision of signal, the recycling cycle time sets up lock in time, it is achieved main controller in system,
Fire extinguisher and each humiture collector, the synchronous operation of each smoke detector.
Main controller, Fire extinguisher and each humiture collector, the cycle of each smoke detector are discriminated
Other electrical block diagram as in figure 2 it is shown, by three use hysteresis loop comparators voltage comparators
Composition, all comprises filter circuit, the reference voltage of its voltage comparator in each voltage comparator
Thered is provided by mu balanced circuit.System arranges clock timer and synchrotimer.If be detected that phase
Two the cycle signals faced are very, then take out between these two adjacent cycle signal zero passages
Clock timer timing time, is sequentially stored in cycle time memory cell, and this cycle time deposits
Storage unit can deposit 100 cycle times, is often stored in a cycle time, the most first moves when being filled with
Except the cycle time being stored at first, and calculate meansigma methods Tz of the cycle time being stored in and protect
Deposit, utilize Tz value to differentiate cycle signal to be identified, to reduce the impact of power network frequency fluctuation,
Use three to screen point simultaneously and reduce erroneous judgement probability.
Three comparators are respectively used to three and screen point, i.e. screen point 0, examination point 1, screen point 2,
As shown in Figure 1.At the cycle zero passage of cycle positive half cycle ascent stage, i.e. screen point 0 and electricity is set
Press through zero comparator, owing to power network cycle negative half period is rectified diode-isolated, in order to improve
Accuracy of detection, at the signal input part series diode again isolation negative half period of voltage zero-crossing comparator,
Its reference voltage brings up to 10mv to 100mv from zero, depending on the offset voltage of comparator, and should
Reference voltage may utilize diode drop and obtains through electric resistance partial pressure.Remaining two comparator sets respectively
Put in the cycle positive half cycle ascent stage, the examination point 1 and 50% at 35% to 50% place of crest voltage
Examination point 2 at 70%.
Cycle signal determining: single-chip microcomputer is had no progeny in the setting time opens, and clock timer resets and opens
Beginning timing, when cycle voltage zero-cross, is arranged on voltage zero-crossing comparator V0 screening point 0
Output voltage upset, its voltage trailing edge produce interrupt, record its zero crossing break period
Th0 also closes interruption;Hereafter, voltage comparator V1 defeated at point 1 is screened in single-chip microcomputer scanning
Going out voltage, when week, wave voltage reached the threshold voltage of V1, output voltage turns over from high to low
Turning, scanning records its flip-flop transition of Th1;Voltage comparator at point 2 screened in same scanning record
V2 output voltage Th2 flip-flop transition, defeated by Th0 and voltage zero-crossing comparator V0
Go out voltage setting value Ts0 flip-flop transition to make comparisons;The output of Th1 and voltage comparator V1
The output voltage of voltage setting value Ts1 flip-flop transition and Th2 and voltage comparator V2 turns over
Turn time setting value Ts2 to make comparisons respectively, if in the range of allowable error, then detect
This discriminator signal is true, is otherwise false.Above-mentioned judge that discriminator signal, as true time, calculates this week
Clock meter between ripple signal zero passage with the cycle signal zero passage that an adjacent front discriminator signal is true time
Time device timing time Tzu, it is made comparisons with meansigma methods Tz of cycle time, if be less than
Set cycle time error Tzv then cycle signal as true, at this moment preserve Tzu and take 20ms with
Synchrotimer timing time is added, and the value that will add up is stored in synchrotimer.
When clock timer starts timing with cycle voltage zero-cross, then timing is to 16ms to 18.5ms
Between open interruption, clock timer timing to 25ms to 27ms when opening break period setting value Tk
Between pass break period setting value Tn time close interrupt.
After system boot, clock timer starts timing, when first all wave voltage mistake being detected
When zero, it is arranged on the output voltage upset of voltage zero-crossing comparator V0 screening point 0, from
And producing interruption, the time T0 taking out cycle voltage over zero preserves, and is reset by clock timer
And start timing, at this moment cycle time voltage crosses zero Th0 is 0, and single-chip microcomputer is as stated above simultaneously
Scan and judge discriminator signal.Due to detection is first cycle, and clock timer is in week
Starting timing during wave voltage zero passage, the value of its Th0, Th1 and Th2 must add the cycle time
20ms deducts out the difference of break period setting value Tk, if three discriminator signals are true, takes
The time T0 of the cycle voltage over zero gone out is stored in synchrotimer as initial time, next
Secondary i.e. for the first time open the break period and take Tk.Being otherwise fictitious time, now the clock timer time must add
Upper T0, continues detection.
When detecting first and during adjacent second cycle voltage zero-cross, owing to not preserving inspection
Survey the cycle time, therefore the clock timer timing time between twice cycle signal zero passage be with
The cycle time, 20ms made comparisons, it is determined that cycle signal is true time, then be to take 20ms to subtract Th0
Difference be added with synchrotimer timing time, preserve the standard cycle time 20 i.e. for the first time
Ms, need to deduct its Th0 value, this is because detect that cycle signal is true time, all the most every time
Restart timing after being reset by clock timer when opening interruption, and be will when opening interruption
The standard cycle time counts in synchrotimer, and clock timer of having no progeny in opening resets, and otherwise judges
Cycle signal is fictitious time, and now the clock timer time must continue by upper plus T1=T0+Tk
Method of stating detects first cycle again.After first cycle signal of detection is very, recover with
Upper described cycle signal determining.
As it is shown in figure 1, if be detected that cycle signal is false, open the break period all exists next time
After this opens the break period, when meansigma methods Tz of time delay cycle time, open interruption, and in opening
Have no progeny time delay Tns time close interrupt, arrange pass the break period be when cycle signal screen point 0 time
Do not produce interruption, at this moment must start to sweep more than the setting time point of Ts0 allowable error scope
Retouch, and when scanning is screened point 1 and screens point 2, voltage comparator output voltage does not produce
Upset, is all closing the interruption of break period Tns pass and is stopping scanning, and Tns is:
Tns=Tn-Tk
If be detected that cycle signal is true, then next cycle is opened break period Tks and is:
Tks=Tk+Th0
I.e. from opening for the first time after the break period takes Tk, clock timer is all that timing is opened to Tks
Interrupt, and restart timing after clearing, close during timing to Tns and interrupt, so that synchrometer
Time the device time corrected by cycle time voltage crosses zero.
Repeat said process.If the upper cycle signal detected described in is true, and this cycle judges
Time, discriminator signal is false, or the cycle time detected compares with meansigma methods Tz of cycle time
Exceed setting cycle time error Tzv, or clock timer timing is to closing break period setting value
During Tns, voltage zero-crossing comparator V0 output voltage does not overturns, and does not produce interruption, then
Close when clock timer timing to Tns and interrupt, at this moment remember that not counting cycle N is 1 and stores,
Open the break period is to open the break period in last time to open interruption after Tz next time, sentences the most every time
Determine the cycle signal true and false, though if false or this detection discriminator signal is true last time is false, then
Take N, will restore in memorizer after N+1, clock timer have no progeny in opening unclear zero continue meter
Time, at this moment, next cycle of setting is opened the break period and is temporarily used out the break period instead and set temporarily
Value Tkz:
Tkz=(N+1) × Tz
Meanwhile, next cycle pass break period temporarily uses instead and closes break period interim setting value Tnz:
Tnz=Tkz+Tns
When clock timer to after Tkz, scanning is screened the time of point and can be obtained by simple computation
?.If at this moment detecting that cycle signal is true, then take out N in memorizer and preserve, and will deposit
N zero setting in reservoir, makes the clock timer clocking value Ts be: (Ts-Tkz) → Ts, at this moment takes
(N+1) value of × 20ms is added in synchrotimer, and recover use setting value Tks with
Tns, recovered clock timer is had no progeny clearing in opening.
The system synchronization time is the time of synchrotimer, adds current just at the clock meter of timing
Time device time.
When judging to screen the some signal true and false, Th0, Th1, Th2 are by exporting with voltage comparator
Voltage setting value Ts0 flip-flop transition, Ts1, Ts2 make comparisons and see the most overproof, judge to screen
The point signal true and false, can select: Th0, Th1, Th2 are this cycle discriminator signal of true time and are
Very, or Th0 is true, and one of Th1, Th2 are true time simultaneously, or Th1, Th2 are true
Time, this cycle discriminator signal is true, depending on to judging that cycle signal true and false difference requires.
If system fault, when N is more than a setting value between 25 to 70, owing to being
Main controller, Fire extinguisher and each humiture collector, each smoke detector in system, its detection
Tz value and N value may be different, at this moment, power network frequency cumulative error, be likely to result in synchronization
Timer periods cannot by true cycle signal being detected time corrected, when cycle being detected
Signal is true time, uses clock timer clocking value at Tkz to be directly added on synchrotimer
In, to reduce the asynchronous time of system, in the case of power network normal operation, N is much smaller than 25.
The cycle time error Tzv allowed and the flip-flop transition of voltage comparator output voltage set
Value, is taken its meansigma methods by test assessment and obtains.
(5) detailed description of the invention:
Fig. 3 is that warehouse environment information gathering alarm system circuit block diagram includes: main controller
10, communications electronics switch 11, switch drive module 12, SMS transmitting-receiving
Device 13, SIM 14, Temperature Humidity Sensor 15, cycle discriminator circuit
16, humiture collector 17, smoke detector 18, smoke sensor 19,
Fire extinguisher 20, fire extinguishing drive circuit 21, fire-extinguishing apparatus 22.Wherein lead to
Letter electrical switch 11, switch drive module 12, cycle discriminator circuit 16 and Fig. 2
Middle single-chip microcomputer U0, is included in humiture collector 17, smoke detector respectively
18 with main controller 10, and communications electronics switch 11 uses bidirectional triode thyristor conduct
Switch.
Fig. 2 is the structural representation of cycle discriminator circuit 16, by: input circuit S0,
Voltage zero-cross detection module V0, voltage comparator V1 and voltage comparator V2 structure
Become.Single-chip microcomputer U0 refers to that humiture collector 17, smoke detector 18 are with main
Single-chip microcomputer in control device 10.Input circuit S0 is for passing through mains AC voltage
Resistance and the dividing potential drop of diode, be converted to the input voltage that voltage comparator is the most stable.Single
Sheet machine U0 uses 89C55WD, voltage zero-cross detection module V0, voltage comparator
V1, voltage comparator V2 all use special voltage comparator LM339, its benchmark
Voltage is the threshold voltage using the mu balanced circuit of stabilivolt to carry out burning voltage comparator.
When mains AC voltage cycle signal zero passage, voltage zero-cross detection module V0's is defeated
Going out voltage jump, single-chip microcomputer U0 produces interruption, records break period, simultaneously single-chip microcomputer
U0 is additionally operable to the output electricity of scanning voltage comparator V1 and voltage comparator V2
Pressure, when output voltage saltus step record bound-time, be used for judging power network cycle signal thus
Produce lock in time.
In SMS R-T unit, single chip computer89C51 is realized with master controller by I2C bus
Serial communication, this single chip computer89C51 is also by serial line interface integrated circuit MAX232 and GSM
The connection of module TC35i carries out data exchange, and gsm module chip TC35i is RS232 data port,
Supporting AT Command Set, wherein contain the control to SMS, single chip computer89C51 is by GSM
Module sends a series of AT instruction, completes the initialization to gsm module and receiving short message.SMS
Transmitting-receiving use TEXT pattern, TEXT pattern is a kind of structural models based on ASCII character.