A kind of smart home window with electrical anomaly warning function
Technical field
The present invention relates to smart home security field, and in particular to a kind of smart home with electrical anomaly warning function
Window.
Background technology
With the continuous progress of science and technology and gradually stepping up for living standard, miscellaneous intelligent home device enters people
Life.However, malicious intrusions equipment also increasingly has hiding therewith, in the case of cutting off the electricity supply, enter
The destructive invasion of row.Existing intelligent home device, typically all using the electrical parameter of civil power as design standard, it is virtually impossible to tackle power supply
Hold occur emergency case or other sabotage behavior:Power-off, supply frequency or amplitude are by extraneous malicious interference;That is, intelligence
When home equipment power-off, supply frequency or amplitude occurs by extraneous malicious interference situation, immediately with regard to failure or failure.Especially,
Smart home security equipment or entrance guard facilities, processing power events are not intelligent;Smart home with power-off protection alarm
Security device or entrance guard facilities, it is impossible to distinguish non-malicious power events, easy false alarm causes unnecessary loss;Majority peace
Anti- equipment or entrance guard facilities, are provided with the isolating device that cuts off self-lock, and this is unfavorable for resident family when the disaster such as fire and earthquake occurs
Escape;Existing power-off prior-warning device, it is impossible to which detection causes intelligent home device failure by malicious interference supply frequency or amplitude
Or the event of failure, i.e., intelligent home device working frequency and power are disturbed, make its failure or in non-normal working
State, also, the invasion mode can't trigger stand-by power supply(Power-off triggering system), equipment will be persistently by the drive of " bad " power supply
It is dynamic, cause to damage or failure failure in abnormal operation for a long time.
In addition, existing malicious intrusions behavior, usually, steals or destroys for single household in a street area with implementing;Specifically
Ground, is destroyed for the power supply or circuit line of smart home security equipment or entrance guard facilities.
The content of the invention
For above-mentioned prior art, present invention aims at provide a kind of smart home with electrical anomaly warning function
Window, it aims to solve the problem that existing smart home security equipment can not detect abnormal power supply in smart home circuit, it is impossible to distinguish malice
Invasion power-off is powered off with large-scale area, is unfavorable for resident family when disaster occurs and is escaped, lacks feedback control, efficient communication and standby
The power initiation technical problem such as not in time.In addition, producing far-reaching technical inspiration to industry target:This family civil power is based only on to take
The intelligent domestic system built, in this family city electrical anomaly, it will lose original function, or even can not effectively start stand-by power supply;
Unconventionally, close quarters civil power bus is accessed by independent hidden wiring, realizes inspection, monitoring and meet an urgent need, and produce
Unexpected breakthrough effect.
To reach above-mentioned purpose, the technical solution adopted by the present invention is as follows:
A kind of smart home window with electrical anomaly warning function, including the middle control early warning mould examined for civil power virtual value
Block:Civil power is received, control signal is also sent;The zero passage detection unit examined for mains frequency:Receive civil power and export detection
Signal;Discrimination module:Receive detection signal and export differentiation signal to middle control warning module;Drive circuit:Receive control signal,
Output driving pulse;The motor being connected with window rotating shaft:Receive driving pulse;Described drive circuit, including the arteries and veins being sequentially connected
Rush timing modulation unit, on-off circuit and monophase machine unit.
In such scheme, described civil power, including this family civil power and close quarters civil power.Creatively, accessed adjacent
Block civil power, has bypassed this family civil power input bus, while this family civil power and close quarters city are electrically accessed middle control warning module,
Real time contrast's effective value changes of two type civil powers;Significantly and substantially, distinguished regional electrical anomaly and single household by
Malicious intrusions, improve the accuracy of identification of malicious intrusions behavior, reduce invasion rate of false alarm.
In such scheme, it is preferable that described close quarters civil power, including a plurality of close quarters civil power, by independent hidden
Circuit is hidden, warning module is controlled in connection.Significantly and substantially, add hiding, significantly reduce it is middle control prior-warning device by
To failure during electricity invasion or the possibility of failure.
In such scheme, it is preferable that described middle control warning module, civil power is received by transformer.There is provided decompression, every
From and protection.
In such scheme, it is preferable that it is ± 30% that described middle control warning module, which presets electrical anomaly value to deviate scope, is maintained
Time is 1 minute.
In such scheme, described middle control warning module is different according to the default electricity of the stability of intelligent domestic system electric consumption
Often deviate scope.Intelligent domestic system is more stable with electric consumption power, and electrical anomaly value deviation scope is narrower, differentiates electrical anomaly event
Precision it is higher.
In such scheme, described middle control warning module, including A/D converter:Civil power is received, and is exported with civil power
The data signal of effective value tag;Processor:Receive the data signal of A/D converter.Virtual value is provided in real time to examine.
In such scheme, described A/D converter receives civil power by way of connecting decompression protector.Provide
Decompression, isolation and protection.
In such scheme, described zero passage detection unit, including the first zero passage detection unit and the second zero passage detection unit.
Frequency detecting is provided in real time.
In such scheme, it is preferable that described zero passage detection unit, including the digital isolator being sequentially connected, rectifier bridge
Circuit and voltage comparator circuit.Digital isolator realizes stabilization, reliable insulation blocking, and filters out random noise disturbance.
In such scheme, described discrimination module, including XOR gate:Receive detection signal;Connect the phase inverter of XOR gate:
Same OR gate is constituted with XOR gate;Integrator:Connect the output end with OR gate;Connect the oscillator of integrator:60 hertz of output is humorous
Shake pulse.When electrical anomaly occurs in this family civil power, the differentiation of electrical anomaly event is realized;There is provided voltage enhancing, it is ensured that early warning
Device carries out emergency operation.
In such scheme, it is preferable that described middle control warning module, it is also associated with triggering answering for function processed with electrical anomaly
Urgent telegram source, communication node and/or feedback node.In regionality power-off or disaster generation there is provided Emergency power source so that middle control
Warning module notifies rescue using communication node;Feedback node accessing user's control terminal, when occurring anomalous event, especially,
Single household power-off will inform the user that, so that carrying out corresponding emergency operation.
In such scheme, it is preferable that described processor, including the field programmable gate array being mutually matched and digital processing
Device.Flexible structure, has stronger versatility, is suitable for modularized design, so as to improve matching algorithm efficiency;It is opened simultaneously
The hair cycle is shorter, easy maintenance and expansion, is adapted to real time signal processing.
Compared with prior art, the present invention is unconventional, but generates unexpected breakthrough beneficial effect:
Whether occur malice electricity invasion, or occur intelligent domestic system fault, emergency operation can be provided;It can distinguish
Single household is powered off and large-scale area power-off;Mains frequency and RMS to DC can be carried out in real time, determine whether that malice is broken
Bad behavior and intelligent domestic system fault;Timely emergency communication;With reaction type control, there is provided high hommization body
Test;Flexible structure and versatility is high.
Brief description of the drawings
Fig. 1 is module diagram of the invention;
Fig. 2 is specific embodiment schematic diagram of the invention.
Embodiment
All features disclosed in this specification, or disclosed all methods or during the step of, except mutually exclusive
Feature and/or step beyond, can combine in any way.
The present invention will be further described below in conjunction with the accompanying drawings:
Fig. 1 is the module diagram of the present invention, a kind of smart home window with electrical anomaly warning function, including for city
The middle control warning module that electric virtual value is examined:Receive civil power;The zero passage detection unit examined for mains frequency:Receive civil power simultaneously
Output detection signal;Discrimination module:Receive detection signal and export differentiation signal to middle control warning module.
Embodiment 1
Fig. 2 is the specific embodiment schematic diagram of the present invention, described civil power, including this family civil power and close quarters civil power.
Described close quarters civil power, including a plurality of close quarters civil power, by independent hidden wiring, warning module is controlled in connection.Institute
The middle control warning module stated, this family civil power and close quarters civil power are received by the first transformer T1, the second transformer T2 respectively.
It is ± 30% that described middle control warning module, which presets electrical anomaly value to deviate scope, is held time as 1 minute.Described middle control early warning
Module presets electrical anomaly according to the stability of intelligent domestic system electric consumption and deviates scope.Described middle control warning module, bag
Include A/D converter:Civil power is received, and exports the data signal with the effective value tag of civil power;Processor:Analog is received to turn
The data signal of parallel operation.Described A/D converter, receives civil power by way of connecting decompression protector, is depressured protector
Using divider resistance.
Described zero passage detection unit, including the first zero passage detection unit and the second zero passage detection unit.Described zero passage
Detection unit, including the digital isolator being sequentially connected, rectifier circuit and voltage comparator circuit.Digital isolator is from direct
Condenser type, the first electric capacity C1, the second electric capacity C2, the 3rd electric capacity C7 and the 4th electric capacity C8.
Described discrimination module, including XOR gate U1A:Receive detection signal;Connect XOR gate U1A phase inverter U2A:With
XOR gate U1A constitutes same OR gate;Integrator:Connect the output end with OR gate;Connect the oscillator OSC of integrator:60 hertz of output
Hereby resonant pulses.Described middle control warning module, is also associated with triggering the emergency power supply of function processed, communication node with electrical anomaly
And/or feedback node.Described processor, including the field programmable gate array FPGA and digital processing unit DSP being mutually matched.
Embodiment 2
Described zero passage detection unit, including receive the first digital isolator of civil power:First electric capacity C1 and the second electric capacity
C2;Receive the rectifier bridge of the first digital isolator output:Including four diodes D1, D2, D3 and D4;Voltage comparator circuit:Will
The output of rectifier bridge is made comparisons with divider resistance voltage, completes zero passage detection;Voltage comparator circuit is also connected with a threshold voltage
Switch D5.
Embodiment 3
Described discrimination module, integrator therein, including the 5th electric capacity C4 and resistance R6 in parallel.The time of integrator
Constant needs the occupation efficiency more than civil power 1/2nd, and less than the occupation efficiency of civil power, so that in two zero passage detections
When inconsistent pulse occurs in unit, " panting " electric pulse can be sent, will not when oscillator OSC receives " panting " pulse
It is enough to continue to send 60 hertz of pulses, field programmable gate array FPGA couter-loop is destroyed, triggers electrical anomaly event.
Embodiment 4
The electricity invasion that apparatus of the present invention identification depth is hidden.Front end is accessed in smart home load power source, by malice electricity
Interference;Malice electrical interference is that frequency is significantly disturbed, and destroys civil power occupation efficiency, is further in intelligent home device improper
Working condition, prolonged non-normal working can make its failure or failure, and this is fatal to gate inhibition and intelligent security guard equipment;
And exception will not occur for the line voltage amplitude of middle control warning module detection, but at the first zero passage detection unit, can export with
The zero cross signal of forcing frequency change, at XOR gate U1A, exports the high level of interruption, phase inverter U2A will export the low of interruption
Level, integrator sends " panting " pulse, pulse of the oscillator OSC outputs less than 60 hertz, field programmable gate array FPGA meters
Ring of numbers is destroyed, and further notifies digital processing unit DSP, digital processing unit DSP to be counted according to field programmable gate array FPGA
Whether ring is by random destroying for times(Without electricity output after one-time breakable, it is judged to powering off unintentionally or smart home line fault, but
Also feedback node can be activated and notify user), if it is, malicious intrusions will be determined as, while communication node and feedback node are activated,
Realize alarm and notify user.
Embodiment 5
Described processor be applied to following MCU, DSP, CPU or GPU, APU RISC Architecture, ARM or x86 frameworks,
Quantum or the photon CPU choices of technology.The progress of technology is the reference of selection standard;But it is in order at and changes bad invention, or cost
Consider, only from the selection of technical scheme of practicality.
Embodiment 6
Described pulse timing modulating unit 200, including modulation pulse generator 4:Input connection FPGA clock is defeated
Go out end, receive FPGA control clocks Clock;First phase inverter 5:Input connects the output end of modulation pulse generator 4;First
Programmable delayer 6:Input connects the output end of the first phase inverter 5;Second phase inverter 24:Input connection first may be programmed
The output end of delayer 6;First FET Q1:Grid connects the output end of the second phase inverter 24, and source electrode is connected to inductance L1;Electricity
It is High_V to feel L1 one end;On-off circuit for eliminating judgement delay:It is connected with the output end of modulation pulse generator 4, with
The output end connection of first programmable delayer 6;Second FET Q2:Grid connecting valve circuit, drain electrode connection first
Effect pipe Q1 source electrode;Schottky synchronous rectification diode D1:Positive pole, negative pole connect the source of the second field-effect diode respectively
Pole, drain electrode;Schottky synchronous rectification diode D1 just extremely Low_V.
Described on-off circuit, including cut-off circuit, turning circuit, in addition to rest-set flip-flop 31:Q ends connect second effect
Should pipe Q2 grid.
Described cut-off circuit, including buffer register 7:Input connects the output end ID of the first programmable delayer 6;
First appreciation counter 19;The output end of clock end CLK connections buffer register 7;First with door 8:Input port connects High_
V and programmed sequence Pro.bit;First nor gate 9:Input port is connected with the output end of first and door 8, output end connection first
The counting end UP of appreciation counter 19;3rd phase inverter 12:Input is default end Preset;First OR gate 11:Input port
Connect the output end of the 3rd phase inverter 12 and the output end of buffer register 7;Second nor gate 10:Input port is connected with first
The output end of the output end of OR gate 11 and the first nor gate 9, output end is connected to the input port of the first nor gate;Second can compile
Journey delayer 21:Counting end-the Q of counting end A the first appreciations of connection counter 19 is activated, delay end D connections first are programmable to prolong
When device output end ID;4th phase inverter 28:Input connects the output end Y of the second programmable delayer 21;3rd nor gate
27:Input port connects the input and output end of the 4th phase inverter 28 respectively;Second with door 25;Second OR gate 26:Input
Mouth be connected with the 3rd nor gate 27 output end and second with the output end of door 25;5th phase inverter 23:Input and output end
Connection second and the input port of door 25;The output end of second OR gate 26 connects the R ends of rest-set flip-flop 31.
Described turning circuit, including the second appreciation counter 20:Clock end CLK connections modulation pulse generator 4 it is defeated
Go out end;3rd OR gate 13:Input port connects the output end and High_V of the 3rd phase inverter 12;Four nor gate 14:Input
Mouth is connected with the output end of the 3rd OR gate 13;5th nor gate 18:Input port is connected with the output end of four nor gate 14, defeated
Go out the counting end UP of the second appreciation counter 20 of end connection;3rd with door 17:Input port is connected with the output of buffer register 7
End, output end is connected to the input port of the 5th nor gate 18;4th with door 16:Input port is provided with monitoring point
Checkpoint, output end is connected to the input port of the 3rd and door 17;Reference power supply Ref_1:Plus earth;Comparator 15:
High level end connection reference power supply Ref_1 negative pole, output end is connected to the input port of the 4th and door 16;3rd programmable prolongs
When device 22:The Q ends of counting end A the second appreciations of connection counter 20 are activated, be delayed the defeated of the first programmable delayer of end D connections 6
Go out to hold ID;Hex inverter 30:Input connects the output end Y of the 3rd programmable delayer 22;5th with door 29:Input port
The output end and input of hex inverter 30 are connected, output end connects the S ends of rest-set flip-flop 31.
Described monophase machine unit 300, including drive circuit PDC:1_H ends connect High_V, Low_V connections Low_V;
Monophase machine MOTOR:Interface 1 connects the output interface OUT1 of drive circuit;Second analog-digital converter 32:Input connection is single-phase
Motor MOTOR interface 1, output end connects the low level end of comparator 15.
Embodiment 7
On the basis of embodiment 4 and embodiment 6, user controls warning module by feedback node in control, and it sends control
Signal, drive circuit receives motor after control signal and rotated, and optionally allows window to open or close.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any
Belong to those skilled in the art the invention discloses technical scope in, the change or replacement that can be readily occurred in, all should
It is included within the scope of the present invention.