(3) content of the invention:
The present invention relates to warehouse environment information gathering warning system, and it includes multiple humiture collectors, multiple sense cigarettes are visited
Device, Fire extinguisher and a main controller are surveyed, each position sets a humiture collector in warehouse, and on warehouse room top
Multiple smoke detectors (according to environmental characteristic or using photosensitive or heat detector) are installed in portion, and each humiture collector includes
One or several Temperature Humidity Sensors, humiture collector and smoke detector all configure toggle switch, all set unique number,
Usually, the temperature-humidity signal of recording synchronism time and its collection sends main controller processing to, if smoke detector detects cigarette
Mistiness degree transfinites, and according to fire alarm intensity, the classification of time, is alarmed to main controller, main controller or selection are opened Fire extinguisher and risen
Move fire-extinguishing apparatus and send alarm, and alarmed by GSM nets with short message mode to owner and relevant department.Fire extinguisher is defeated
Go out through Phototube Coupling, bidirectional triode thyristor control, or contact relay circuit control, fire-extinguishing apparatus is connected on the civil power outside system.
Each humiture collector, each smoke detector and main controller are connected on same electric power netting twine and set master switch,
Diode is installed after master switch, and in main controller, Fire extinguisher and each humiture collector, each smoke detector
Each installation cycle discriminator circuit, keep system to keep strokes for producing lock in time, while respectively installed in its telecommunication circuit
One communications electronics switch, switch drive module.During communication, half wave communication through power line, communications electronics switch is connected;Instead
It, master controller first sends sign off instruction, shut-off communications electronics switch to each electric quantity monitoring instrument.
Communication is to be controlled by lock in time to keep communication operation consistent, and main controller, Fire extinguisher and each humiture are adopted
It is to be depressured from electric power netting twine through resistance, just connecing two poles to collect the switch drive module that communications electronics switch in instrument, each smoke detector
Pipe further after the negative half-wave of isolation cycle, is connected to comparator input terminal, and its reference voltage is 100Mv to 200Mv, using two poles
Tube voltage drop is obtained through electric resistance partial pressure, therefore the output end of comparator is square-wave signal, and it is produced after the diode rectification just connect
Corresponding power network cycle bears the positive square-wave signal of half-wave, the I/O mouths of single-chip microcomputer is connected to, when positive square-wave signal is arrived in single-chip microcomputer scanning
Traffic operation is performed, the positive square-wave signal is additionally operable to drive communications electronics switch, therefore communications electronics switch is in cycle positive half-wave
When turn off, cycle bear half-wave when connect.Communications electronics switch is connected to single-chip microcomputer corresponding port according to used communication mode, and carries out
Signal condition, during sign off under main controller control, make drive circuit shut-off communications electronics switch.
SMS R-T unit is installed in system, using GSM network, communicated with receiving and dispatching short message mode, at present
GSM SMS messaging service is still that a kind of short message service GSM SMS of domestic popularity rate highest possesses data transmission work(in itself
Can, the transmission of a message, which just constitutes, once to communicate, and the transmission of message is by the SMS service center outside GSM
(SMSC) relayed, it does not have to dialing and can establish connection by GSM SMS service SMS, and user adds the information to be sent out
Stay of two nights data are sent to short message service center, and the final stay of two nights is then forwarded to after short message service center completes storage.So
When GSM terminals are not started shooting, information will not lose.
The present invention utilizes the positive half cycle ascent stage of power network cycle, takes three to screen point and realizes that the identification to cycle signal is sentenced
It is fixed, recycle the cycle time to establish lock in time, realize main controller in system, Fire extinguisher and each humiture collector, each
The synchronous operation of smoke detector.
The cycle discriminator circuit structural representation of main controller, Fire extinguisher and each humiture collector, each smoke detector
Figure includes filtered electrical as shown in Fig. 2 be made up of three voltage comparators using hysteresis loop comparators in each voltage comparator
Road, the reference voltage of its voltage comparator are provided by mu balanced circuit.System sets clock timer and synchrotimer.If inspection
It is true to measure two adjacent cycle signals, then takes out the clock timer meter between this two adjacent cycle signal zero passages
When the time, sequentially be stored in cycle time memory cell in, the cycle time memory cell can deposit 100 cycle times, be filled with
When be often stored in a cycle time, first remove the cycle time being stored at first, and calculate the flat of the cycle time of deposit
Average Tz is simultaneously preserved, and differentiates cycle signal to be identified using Tz values, to reduce the influence of power network frequency fluctuation, while using three
Individual point of screening reduces erroneous judgement possibility.
Three comparators are respectively used to three examination points, that is, screen point 0, screen point 1, screen point 2, as shown in Figure 1.In week
At the cycle zero passage of ripple positive half cycle ascent stage, that is, screen point 0 and voltage zero-crossing comparator is set, due to power network cycle negative half period quilt
Commutation diode is isolated, in order to improve accuracy of detection, in the signal input part series diode isolation again of voltage zero-crossing comparator
Negative half period, its reference voltage brings up to 10mv to 100mv from zero, and depending on the offset voltage of comparator, the reference voltage can profit
Obtained with diode drop through electric resistance partial pressure.Remaining two comparator is separately positioned on cycle positive half cycle ascent stage, crest voltage
35% to 50% place examination point 1 and 50% to 70% place examination point 2.
Cycle signal determining:After setting time opens interruption, clock timer resets and starts timing single-chip microcomputer, works as cycle
During voltage zero-cross, the output voltage upset for the voltage Zero-cross comparator Qi ﹙ V0 ﹚ for screening point 0 is arranged on, is produced in its voltage trailing edge
Interrupt, record its zero crossing break period Th0 and the Central Shanxi Plain is broken;Hereafter, electricity pressure comparator ﹙ V1 ﹚ at point 1 are screened in single-chip microcomputer scanning
Output voltage, when all wave voltages are reached to ﹙ V1 ﹚ threshold voltage, output voltage is overturn from high to low, when scanning records its upset
Between Th1;Same scanning record screens electricity pressure comparator ﹙ V2 ﹚ output voltage flip-flop transition Th2 at point 2, by Th0 and voltage zero-cross
Bi compare Qi ﹙ V0 ﹚ output voltage flip-flop transition setting value Ts0 makes comparisons;Th1 and electricity pressure comparator ﹙ V1 ﹚ output voltage are overturn
Time setting value Ts1 and Th2 makes comparisons respectively with electricity pressure comparator ﹙ V2 ﹚ output voltage flip-flop transition setting value Ts2, such as
For fruit in the range of allowable error, then the discriminator signal detected is true, is otherwise false.When above-mentioned judgement discriminator signal is true,
Calculate the clock timer meter between cycle signal zero passage when this cycle signal zero passage and an adjacent preceding discriminator signal are true
When time Tzu, it is made comparisons with the average value Tz of cycle time, the cycle if no more than setting cycle time error Tzv
Signal is true, at this moment preserves Tzu and takes 20ms to be added with synchrotimer timing time, the value deposit synchrotimer that will add up
In.
When clock timer starts timing with cycle voltage zero-cross, then timing to 16ms opens the break period between 18.5ms
Open interruption during setting value Tk, clock timer timing to 25ms to Central Shanxi Plain during pass break period setting value Tn between 27ms is broken.
After system boot, clock timer starts timing, when detecting first cycle voltage zero-cross, is arranged on examination
The voltage Zero-cross comparator Qi ﹙ V0 ﹚ of point 0 output voltage upset, interrupts so as to produce, takes out the time T0 of cycle voltage over zero
Preserve, clock timer is reset and starts timing, at this moment cycle time voltage crosses zero Th0 is 0, while single-chip microcomputer presses above-mentioned side
Method scans and judges discriminator signal.What it is due to detection is first cycle, and clock timer is started in cycle voltage zero-cross
Timing, its Th0, Th1 and Th2 value must add the difference that cycle time 20ms subtracts out break period setting value Tk, if
Three discriminator signals are true, and the time T0 of the cycle voltage over zero of taking-up is stored in synchrotimer as initial time, under
Once i.e. opening the break period for the first time takes Tk.Otherwise be fictitious time, now the clock timer time must add T0, continue to detect.
When detecting first and second adjacent cycle voltage zero-cross, due to not preserving the cycle time of detection,
Therefore the clock timer timing time twice between cycle signal zero passage is made comparisons with cycle time 20ms, judges cycle signal
Then it is to take 20ms to subtract Th0 difference to be added with synchrotimer timing time when being true, i.e., preserves the standard cycle time for the first time
20ms, its Th0 value need to be deducted, because when hereafter to detect cycle signal every time be true, by clock meter when opening interruption
When device reset after restart timing, and be that the standard cycle time is included in synchrotimer when opening interruption, open interruption
Afterwards clock timer reset, otherwise judge cycle signal be fictitious time, now the clock timer time must add T1=T0+Tk, after
It is continuous to detect first cycle again as stated above.After it is very to detect first cycle signal, recover above-described cycle
Signal determining.
If as shown in figure 1, detecting that cycle signal is false, the break period is opened next time and opens the break period at this
Afterwards, open interruptions during average value Tz through the cycle time that is delayed, and open interrupt after be delayed Tns when the Central Shanxi Plain break, when setting the Central Shanxi Plain to break
Between be when cycle signal screen point 0 when do not producing interruption, at this moment must be in the setting time point more than Ts0 allowable error scopes
Start to scan, and when scanning examination point 1 and examination point 2, voltage comparator output voltage does not produce upset, all in the Central Shanxi Plain breaks
The Central Shanxi Plain was broken and stopped scanning time Tns, and Tns is:
Tns=Tn-Tk
If it is true to detect cycle signal, next cycle opens 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 that timing opens interruption to Tks, and weight after resetting
New to start timing, timing is broken to Central Shanxi Plain during Tns, so that the synchrotimer time is corrected by cycle time voltage crosses zero.
Repeat said process.If the upper cycle signal detected is true, when this cycle judges, discriminator signal is
Vacation, or the cycle time detected exceed setting cycle time error Tzv, or clock meter compared with the average value Tz of cycle time
When device timing to close break period setting value Tns when, voltage Zero-cross comparator device ﹙ V0 ﹚ output voltages are not overturn, in not producing
Disconnected, then when clock timer timing is to Tns, the Central Shanxi Plain is broken, and at this moment remembers that not counting cycle N is 1 and stores, when opening interruption next time
Between be to open the break period in last time to open interruption after Tz, hereafter every time judge the cycle signal true and false, if false or this detection
Though discriminator signal is true but last time is false, then N is taken, will restore after N+1 and do not reset after interruption is opened in memory, clock timer
Continue timing, at this moment, next cycle of setting opens the break period and temporarily uses out break period interim setting value Tkz instead:
Tkz=(N+1) × Tz
Meanwhile next cycle closes break period temporary transient use instead and closes the break period interim setting value Tnz:
Tnz=Tkz+Tns
When clock timer to after Tkz, the time that point is screened in scanning can be obtained by simple computation.If at this moment examine
It is true to measure cycle signal, then takes out N in memory and preserve, and by N zero setting in memory, make clock timer clocking value Ts
For:(Ts-Tkz) → Ts, at this moment take (N+1) × 20ms value to be added in synchrotimer, and recover using setting value Tks with
Tns, recovered clock timer are reset after interruption is opened.
The system synchronization time be synchrotimer time, along with currently just timing clock timer time.
When judging to screen the point signal true and false, Th0, Th1, Th2 are by being set with voltage comparator output voltage flip-flop transition
Definite value Ts0, Ts1, Ts2 make comparisons see it is whether overproof, come judge screen point a signal true and false, can select:Th0, Th1, Th2 are
The cycle discriminator signal is true when true, or Th0 is true, while when one of Th1, Th2 are true, or when Th1, Th2 are true, should
Cycle discriminator signal is true, depending on to judging the different requirements of the cycle signal true and false.
If system fault, when N is more than a setting value between 25 to 70, due to main controller, fire extinguishing control in system
Device processed and each humiture collector, each smoke detector, its Tz value detected may be different with N values, and at this moment, power network frequency is tired out
Product error, may cause the synchrotimer time to be corrected when can not be by detecting true cycle signal, when detecting week
When ripple signal is true, directly it is added on using clocking value of the clock timer at Tkz in synchrotimer, to reduce system not
Lock in time, N is much smaller than 25 in the case of power network normal operation.
The cycle time error Tzv of permission and the flip-flop transition setting value of voltage comparator output voltage, by test assessment
Its average value is taken to obtain.