(3) invention content:
The present invention relates to home furnishings intelligent networked control systems, and it includes multiple appliance controllers and a main controller.Household is total
Miniature circuit breaker is switched comprising multichannel independent air on switchboard, it is that guide tracked installation and presser type wiring reconfiguration are convenient, often
One air switch controls electric appliance load all the way, such as socket, illumination are electric appliance load etc. all the way, select a sky as needed
Air cock, installs an electronic switch after air switch, the electronic switch parallel connection isolating diode, when communication, main controller
Shutdown electronic switch simultaneously connects its communications electronics switch, alternating current is sent into system through isolating diode, system is in power line
Half wave communication and half-wave power supply state.The output of each appliance controller is serially connected with former socket through Phototube Coupling and bidirectional triode thyristor
Or in switching circuit, realize that it loads the control of energized power and time, and change design conveniently, without broken wall paper line, electricity
Preset optimization is stewed, is boiled, boiling in a covered pot over a slow fire, simmering, enduring, boils medicine and the utility programs such as electric fan natural wind in device controller, common electric food warmer,
Electric frying pan, medicine decocting tank, electric fan and headlamp etc. are inserted into any one described socket, input above procedure pattern, just make above-mentioned
Ordinary appliances intelligence is run;Main controller is communicated by telephone network with owner, and owner can remote control household electric appliances equipment.Master control
It is respectively mounted cycle discriminator circuit in device and each appliance controller, the synchronization time for generation system keeps system to keep strokes,
One communications electronics switch, switch drive module are respectively installed in its telecommunication circuit simultaneously.Main controller is in setting time or reception
When the telephone communication instruction arrived, that is, execute the switching action from all-wave to half-wave.When each appliance controller is logical in the half-wave of setting
The letter time or and detect that power network is isolated the half-wave of diode blocking when not having signal, that is, cut off its electric appliance load power supply,
Then communications electronics switch is connected;Conversely, when being switched to all-wave from half-wave, main controller, which is first sent to each appliance controller, to be switched
Instruction, shutdown communications electronics switch.
Appliance controller panel fills the LED light of 3-5 different colours, when one section after offline individually just booting is specific
Between when being displayed in red, shutdown is switched on again into numbering, and panel is sequentially shown 1 time or 2 LED modules with different colors lamps are one group
Close (such as be for the 1st time or the 2nd time:Red, green, blue, red green, bluish-green, red indigo plant, RGB etc. one of them), be shown as one 2 times
When combination, at 1-2 seconds, the end combined as one according to the preset dead time of display identified the 1st display time control,
Each combination is corresponding with the number of number, which is affixed on panel.One combination shutdown of selection, obtains combining phase with this
Corresponding unique number simultaneously preserves, labeling know, it be in the number period when can't detect grid cyclic wave signal, microcontroller according to
Number data are stored in nonvolatile storage by the energy storage by its power capacitor.The numbering is easily changed number number,
Not by erosions such as dust, water droplets, securely and reliably.
The switch drive module of communications electronics switch is to divide two-way after resistance is depressured from electric power cable, is used for each electricity all the way
Device controller, it is connected to the single-chip processor i/o mouth of each appliance controller through reversal connection diode, negative to cycle in clock timer timing
When half-wave, the I/O mouthfuls is scanned, if being in half-wave communications status without signal, that is, system;Another way is used for main controller and each electricity
Device controller, therebetween communication are controlled by synchronization time to be kept for action long-term consistent, and it is further which connects diode
After the negative half-wave of cycle is isolated, it is connected to comparator input terminal, reference voltage is 100Mv to 200Mv, is passed through using diode drop
Electric resistance partial pressure obtains, therefore the output end of comparator is square-wave signal, it produces corresponding electricity after the diode rectification just connect
Power net week wave bears the positive square-wave signal of half-wave, is connected to the I/O mouths of microcontroller, communication is executed when microcontroller scanning is to positive square-wave signal
Operation, which is additionally operable to driving communications electronics switch, therefore communications electronics switch is turned off in cycle positive half-wave, week
Wave is connected when bearing half-wave.Communications electronics switch is connected to microcontroller corresponding port according to used communication mode, and carries out signal condition,
When sign off under main controller control, make driving circuit shutdown communications electronics switch.
Household need to install a babyphone programme-controlled exchange, and one of extension number is remotely controlled for household electric appliances.It should
Extension number and instruction code and the table of comparisons of instruction are stored in mobile phone, and the methods of screen-lock password is used in combination to prevent the number of instruction code
According to divulging a secret.When communication, owner sends the number of instruction code from base or mobile phone, and interchanger is after caller dialing by dual-tone multifrequency
After decoder obtains the extension set calling telephone number, off-hook is simulated, and keep dual-tone multifrequency reception state, to receive instruction code
Signal can such as be sent out with mobile phone:" exchanging telephone number " P " number of instruction code ", wherein " P " can pin mobile phone simulating keyboard
* keys obtain, loom be to press * keys to obtain for 2-3 times, or key in again after waiting for the voice prompt of interchanger solidification in the chips
Instruction code, after sign off, interchanger sends the digital signal for receiving instruction code to main controller through interface circuit, by leading
Corresponding operating is executed after control device decoding.
The present invention utilizes the positive half cycle ascent stage of power network cycle, takes three to screen point and realize and sentences to the identification of cycle signal
It is fixed, recycle the cycle time to establish synchronization time, the synchronous operation of main controller and each appliance controller in realization system.
The cycle discriminator circuit structural schematic diagram of main controller and each appliance controller by two as shown in Fig. 2, use hysteresis
The voltage comparator of comparator forms, and includes filter circuit, the reference voltage of voltage comparator in each voltage comparator
It is provided by regulator circuit.Clock timer and synchrotimer is arranged in system.If detecting that two adjacent cycle signals are equal
It is true, then takes out the clock timer timing time between two adjacent cycle signal zero passages, is sequentially stored in the cycle time
In storage unit, which can store 100 cycle times, a cycle time is often stored in when being filled with,
The cycle time being stored at first is first removed, and calculates the average value Tz of the cycle time of deposit and preserves, is reflected using Tz values
Cycle signal not to be identified reduces erroneous judgement possibility to reduce the influence of power network frequency fluctuation, while screen point using three.
Two comparators are respectively used to screen point 1, screen point 2, as shown in Figure 1.In the cycle of cycle positive half cycle ascent stage
At zero passage, that is, screen point 0 setting a voltage zero-cross detection module, it using cycle positive half-wave signal through electric resistance partial pressure, diode into
The clock end CLK of feeding d type flip flop after negative half period, signal condition is isolated in one step, and the Q of d type flip flop terminates microcontroller external interrupt
Mouthful, which is arranged to level triggers, the ends the D ground connection of d type flip flop, and S terminates single-chip processor i/o mouth, usually sets for the I/O mouthfuls
1.When cycle positive half-wave zero cross signal arrives, cycle signal rising edge immediately after makes the ends d type flip flop Q be 0, outside microcontroller
Fracture low level in portion is interrupted to generate, is executed instruction in interrupt service routine:Described I/O mouthfuls set to 0, the Central Shanxi Plain is disconnected, meter
When, described I/O mouthfuls set 1, open interruption.Remaining two comparator is separately positioned on the cycle positive half cycle ascent stage, crest voltage
The examination point 2 of the examination point 1 and 50% to 70% place at 35% to 50% place.
Cycle signal determining:For microcontroller after setting time opens interruption, clock timer resets and starts timing, works as cycle
When voltage zero-cross, the output voltage jump that the d type flip flop in the voltage zero-cross inspection survey mould block ﹙ V0 ﹚ for screening point 0 is arranged becomes zero, and produces
It is raw to interrupt, record its zero crossing break period Th0;Hereafter, the output electricity of electricity pressure comparator ﹙ V1 ﹚ at point 1 is screened in microcontroller scanning
Pressure, when all wave voltages are reached to the threshold voltage of ﹙ V1 ﹚, output voltage saltus step from high to low, scanning records its bound-time Th1;
Same scanning record screens electricity at point 2 and presses comparator ﹙ V2 ﹚ output voltage bound-time Th2, and Th0 and voltage zero-cross are detected mould
The output voltage bound-time setting value Ts0 of Kuai ﹙ V0 ﹚ makes comparisons;The output voltage bound-time of Th1 and electricity pressure comparator ﹙ V1 ﹚
Setting value Ts1 and Th2 makes comparisons respectively with the output voltage bound-time setting value Ts2 of electricity pressure comparator ﹙ V2 ﹚, if
Within the scope of allowable error, then the discriminator signal detected is true, is otherwise false.When above-mentioned judgement discriminator signal is true, calculate
When clock timer timing between cycle signal zero passage when this cycle signal zero passage and an adjacent preceding discriminator signal are true
Between Tzu, it is made comparisons with the average value Tz of cycle time, the cycle signal if no more than setting cycle time error Tzv
It is true, at this moment preserves Tzu and 20ms is taken to be added with synchrotimer timing time, in the value deposit synchrotimer that will add up.
When clock timer starts timing with cycle voltage zero-cross, then timing to 16ms opens the break period between 18.5ms
Open interruption when setting value Tk, clock timer timing to 25ms is disconnected to Central Shanxi Plain when pass break period setting value Tn between 27ms.
After system boot, clock timer starts timing, and when detecting first cycle voltage zero-cross, setting is being screened
The voltage zero-cross Jian of point 0 surveys the output voltage saltus step of Mo Kuai ﹙ V0 ﹚, is interrupted to generate, and takes out the time of cycle voltage over zero
T0 is preserved, and clock timer is reset to and started timing, and at this moment cycle time voltage crosses zero Th0 is 0, while microcontroller is by above-mentioned
Method scans and judges discriminator signal.What it is due to detection is first cycle, and clock timer is opened in cycle voltage zero-cross
The value of beginning timing, Th0, Th1 and Th2 must add the difference that cycle time 20ms subtracts out break period setting value Tk, such as
Three discriminator signals of fruit are true, and i.e. opening the break period for the first time takes Tk next time.Otherwise it is fictitious time, at this time clock timer time
T0 must be added, continues 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
When being true, then takes out clock timer cumulative time T1=T0+Tk when opening interruption and be stored in synchrotimer as initial time
In, open interruption after clock timer reset, otherwise judge cycle signal be fictitious time, at this time the clock timer time must add T1,
Continue to detect first cycle again as stated above.After it is very to detect first cycle signal, restore above-described week
Wave signal determining.
As shown in Figure 1, if detecting that cycle signal is false, the break period is opened next time and opens the break period at this
Afterwards, open interruptions when average value Tz through the cycle time that is delayed, and open interrupt after be delayed Tns when the Central Shanxi Plain it is disconnected, when the setting Central Shanxi Plain is broken
Between be when cycle signal screen point 0 when do not generate interruption, at this moment must be in the setting time point more than Ts0 allowable error ranges
Start to scan, and when scanning examination point 1 and examination point 2, voltage comparator output voltage does not generate saltus step, all breaks in the Central Shanxi Plain
The time Tns Central Shanxi Plain is disconnected and stops scanning, and Tns is:
Tns=Tn-Tk
If detecting that cycle signal is true, 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 disconnected to Central Shanxi Plain when Tns, to make the synchrotimer time be corrected by cycle time voltage crosses zero.
It repeats the above process.If the upper cycle signal detected is true, when this cycle judges, discriminator signal is
Vacation, or the cycle time detected is more than 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 inspection survey the non-saltus step of mould block ﹙ V0 ﹚ output voltages, in not generating
Disconnected, then when clock timer timing is to Tns, the Central Shanxi Plain is disconnected, 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 judgement 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 be restored after N+1 in memory, clock timer is not reset after opening interruption
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 use instead and closes 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 examined
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) at this moment → Ts takes the value of (N+1) × 20ms to be added in synchrotimer, and restore using setting value Tks with
Tns, recovered clock timer are reset after opening interruption.
The system synchronization time is the time of synchrotimer, along with current just in the time of the clock timer of timing.
When the point signal true and false is screened in judgement, Th0, Th1, Th2 are by being set with voltage comparator output voltage bound-time
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 requiring judgement cycle signal true and false difference.
If system fault, when N is more than a setting value between 25 to 70, due to main controller in system and each electric appliance
Controller, the Tz values and N values of detection may be different, at this moment, power network frequency accumulated error, when may cause synchrotimer
Between corrected when can not be by detecting true cycle signal, when it is true to detect cycle signal, using clock timer
Clocking value at Tkz is directly added in synchrotimer, to reduce the asynchronous time of system, power network normal operation situation
Lower N is much smaller than 25.
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.