A kind of intelligent home control system and control methodTechnical field
The present invention relates to a kind of intelligent home control system and control method.
Background technology
After smart mobile phone and other intelligent mobile terminals are universal, various intelligent domestic systems arise, and have facilitated popular daily life life.
But most of intelligent home control systems, price, complicated operation, makes ordinary consumer forbidding.Its reason is, deviser has realized many simple requirements in life staying idle at home by complicated technology.Current intelligent domestic system mostly adopts the technology such as WIFI, ZigBee, Bluetooth, KNX, X10 to realize, this class technology Dou Shiyou industry alliance or interest group have formulated complexity and huge agreement, cause the use chip processing procedure of these technology complicated, with high costs, be applicable to using in large data wireless transmission, or high secure data transfer.On each consumer, insert the modular circuit of this class technology, must cause whole system price high, and the audit of the heavy agreement of single control action realization needs, also must cause complicated operation.
It is simple ON and OFF that consumer in most lifes staying idle at home is controlled, or the action such as light modulation, speed governing, nor need high secret operation grade, the transmission rate request of data is not also higher than 10Kbit/S, the wireless transmission rate of the technology such as WIFI, ZigBee, Bluetooth, KNX, X10, much larger than this requirement, has just caused the costliness of product price and the complexity of operation so technical waste is used.
Summary of the invention
Primary technical matters to be solved by this invention is to provide a kind of economic and practical intelligent home control system for above-mentioned prior art.
The present invention further primary technical matters to be solved is that a kind of control method of economic and practical intelligent home control system is provided for above-mentioned prior art.
The present invention solves the technical scheme that above-mentioned primary technical matters adopts: this intelligent home control system, comprise household electricity equipment, and it is characterized in that: also comprise
Control terminal, can send for controlling the control signal of household electricity equipment working state;
Wireless router, described control terminal is connected with wireless router by Wi-Fi;
Gateway, be connected with described wireless router, the control signal that wireless router sends control terminal is transmitted to gateway, described gateway comprises the MCU circuit that the control signal that control terminal is sent is identified and decoded, be connected with MCU circuit for decoded control signal being carried out to the first radio-frequency (RF) receiving and transmission module of less radio-frequency transmission;
Second radio-frequency (RF) receiving and transmission module that can receive the control signal that the first radio-frequency (RF) receiving and transmission module sends is installed on household electricity equipment.
As improvement, described gateway also comprises the memory circuit with storer, this memory circuit is connected with MCU circuit, and described storer is used for preserving wireless router IP address, control terminal identification code, household electricity device address coding and household electricity equipment working state and controls data encoding.
Preferably, described MCU circuit comprises microprocessor, described memory circuit comprises storage chip, and the data input and output pin of this storage chip is connected with a certain data input and output pin of microprocessor, and the clock input pin of this storage chip is connected with a clock output pin of microprocessor.
Improve, described gateway also comprises indicating circuit again, and this indicating circuit is connected with MCU circuit.
Preferably, described indicating circuit comprises that power light, wireless router connect pilot lamp, control terminal line pilot lamp, after the positive pole of power light, wireless router connection pilot lamp, control terminal line pilot lamp connects respectively a resistance, be connected with constant voltage dc source, the negative pole that power light, wireless router connect pilot lamp, control terminal line pilot lamp is connected with a certain data input and output pin of microprocessor respectively.
Improve, described gateway also comprises power circuit again, and the input end of this power circuit is electrically connected to outside city, the output terminal output constant voltage dc source of this power circuit.
Improve, the data input/output interface of the first radio-frequency (RF) receiving and transmission module is connected with a certain data input and output pin of microprocessor again.
Improve, described gateway also comprises network interface circuit again, and this network interface circuit is connected with MCU circuit.
Preferably, described control terminal is user mobile phone or other intelligent mobile terminals.
In such scheme, gateway and household electricity equipment all have the bidirectional transmit-receive function of radio frequency, between the first radio-frequency (RF) receiving and transmission module and the second radio-frequency (RF) receiving and transmission module, adopt ISM band to communicate, such as adopting the public frequencys such as 315Mhz or 434Mhz or 630Mhz or 868Mhz or 2.4Ghz, emissive power is less than 10mW, guaranteeing effectively to launch and receive within the scope of 100 meters, to meet most of household needs. this quefrency is used not needs application, can not bring harm to the public and environment.And the radio-frequency receiving-transmitting technology maturation of this class frequency range, control chip module is cheap, and control of intelligent terminal and wireless router are all that consumer is existing, so the formation cost of whole system is very cheap.
The present invention solves the technical scheme that above-mentioned further technical matters adopts: the control method with the intelligent home control system of said structure, it is characterized in that: control terminal utilizes Wi-Fi to be connected with wireless router, to send to wireless router for controlling the control signal of household electricity equipment working state, wireless router is transmitted to gateway by the control signal of controlling household electricity equipment working state, gateway identify also feedback signal to wireless router to controlling the control signal of household electricity equipment working state, by wireless router, feedback signal is sent to control terminal again, gateway is simultaneously by after the control signal decoding of the control household electricity equipment working state receiving, the first radio-frequency (RF) receiving and transmission module by self is launched with ISM band, the consumer of same household receives by the second radio frequency receiver of self control signal that control terminal sends, then carry out address and product code identification, carry out again the control action to furniture consumer, emission results signal again after the complete corresponding actions of furniture consumer, after being received by gateway, pass through wireless router, pass to control terminal.
The first radio-frequency (RF) receiving and transmission module and the second radio-frequency (RF) receiving and transmission module adopt the OOK mode of simple general-purpose on radiofrequency signal coding, address code adds data code groups and becomes coding, address code and numeric data code can define any digit according to the complexity of control action and safety requirements, no longer need other any agreements, guaranteed the simple of product operation.
When user is during in other places, intelligent mobile terminal can be used after mobile communications network online, then through internet, recognizes the wireless router that connects net, and then signal transmission is to gateway, to realize Long-distance Control.
Compared with prior art, the invention has the advantages that: control terminal send for the control signal of controlling household electricity equipment working state by wireless router and gateway forwards to furniture consumer, and gateway and household electricity equipment all have the bidirectional transmit-receive function of radio frequency, between the first radio-frequency (RF) receiving and transmission module and the second radio-frequency (RF) receiving and transmission module, adopt common frequency band to communicate, can meet most of household needs, and common frequency band is used does not need application, can not bring harm to the public and environment, and the radio-frequency receiving-transmitting technology maturation of this class frequency range, control chip module is cheap, control of intelligent terminal and wireless router are all that consumer is existing, so the formation cost of whole system is very cheap, very economic and practical.
Accompanying drawing explanation
Fig. 1 is the architecture block diagram of intelligent home control system in the embodiment of the present invention;
Fig. 2 is that the module of intelligent home control system in the embodiment of the present invention connects block diagram.
Fig. 3 is gateway circuit figure in the embodiment of the present invention.
Embodiment
Below in conjunction with accompanying drawing, embodiment is described in further detail the present invention.
Intelligent home control system as shown in Figure 1, it comprises:
A plurality of household electricity equipment, as desk lamp a, electric fan b, electric heater c, refrigerator d, electric heater e, televisor f, air-conditioning g, ceiling fan h etc.
Control terminal 1, can send for controlling the control signal of household electricity equipment working state, and the control terminal here adopts smart mobile phone or other intelligent mobile terminals that furniture intelligent control software is installed;
Wireless router 2, described control terminal is connected with wireless router by Wi-Fi, and the wireless network here can be mobile network or WIFI;
Gateway 3, with describedwireless router 2 wired connections, the control signal that wireless router sends control terminal is transmitted to gateway, described gateway comprises theMCU circuit 31 that the control signal that control terminal is sent is identified and decoded, be connected withMCU circuit 31 for decoded control signal being carried out to the first radio-frequency (RF) receiving andtransmission module 32 of less radio-frequency transmission, theindicator light circuit 33 being connected with MCU circuit,memory circuit 34 andnetwork interface circuit 35, and provide thepower circuit 36 of stable DC voltage for each module;
Second radio-frequency (RF) receiving and transmission module that can receive the control signal that the first radio-frequency (RF) receiving and transmission module sends is installed on household electricity equipment.
In described gateway, memory circuit is connected with MCU circuit, and described memory circuit is used for preserving wireless router IP address, control terminal identification code, household electricity device address coding and household electricity equipment working state and controls data encoding.
Described MCU circuit comprises microprocessor IC5, described memory circuit comprisesmemory IC 2, the data input and output pin SDA of thismemory IC 2 is connected with a certain data input and output pin of microprocessor IC5, and the clock input pin SCL of thismemory IC 2 is connected with a clock output pin of microprocessor IC5.
Described indicating circuit comprises that power light LED1, wireless router connect pilot lamp LED2, control terminal line pilot lamp LED3, after the positive pole of power light LED1, wireless router connection pilot lamp LED2, control terminal line pilot lamp LED3 connects respectively a resistance, be connected with constant voltage dc source, the negative pole that power light LED1, wireless router connect pilot lamp LED2, control terminal line pilot lamp LED3 is connected with a certain data input and output pin of microprocessor IC5 respectively.
The input end of described power circuit is electrically connected to outside city, the output terminal output constant voltage dc source of this power circuit, and power circuit adopts custom circuit.
The data input/output interface of described the first radio-frequency (RF) receiving and transmission module is connected with a certain data input and output pin of microprocessor IC5.
Gateway and household electricity equipment all have the bidirectional transmit-receive function of radio frequency, between the first radio-frequency (RF) receiving and transmission module and the second radio-frequency (RF) receiving and transmission module, adopt ISM band to communicate, such as adopting the public frequencys such as 315Mhz or 434Mhz or 630Mhz or 868Mhz or 2.4Ghz, emissive power is less than 10mW, guarantee effectively to launch and receive within the scope of 100 meters, to meet most of household needs. this quefrency is used not needs application, can not bring harm to the public and environment.And the radio-frequency receiving-transmitting technology maturation of this class frequency range, control chip module is cheap, and control of intelligent terminal and wireless router are all that consumer is existing, so the formation cost of whole system is very cheap.
In the present embodiment, microprocessor IC5 adopts the microprocessor chip of PIC16F66 model,memory IC 2 adoptsmodel memory IC 2 to adopt the storage chip that model is HT24C06, and the first radio-frequency (RF) receiving and transmission module and the second radio-frequency (RF) receiving and transmission module all adopt the radio frequency transceiving module of any model of prior art; 63 pins of microprocessor IC5 are connected with the data input and output pin of the first radio-frequency (RF) receiving and transmission module, 28 pins of microprocessor IC5 are connected with the data input and output pin SDA ofmemory IC 2, and 27 pins of microprocessor IC5 are connected with the clock input pin SCL ofmemory IC 2; 31 pins of microprocessor IC5 are connected with the negative pole of power light LED1,43 pins of microprocessor IC5 are connected pilot lamp LED2 negative pole with wireless router connects, 44 pins of microprocessor IC5 are connected with the negative pole of control terminal line pilot lamp LED3, and the positive pole that power light LED1, wireless router connect pilot lamp LED2, control terminal line pilot lamp LED3 connects respectively after a resistance R 9, R10, R11 with+3V constant voltage dc source and is connected.
The control method of above-mentioned intelligent home control system is: control terminal utilizes Wi-Fi to be connected with wireless router, to send to wireless router for controlling the control signal of household electricity equipment working state, wireless router is transmitted to gateway by the control signal of controlling household electricity equipment working state, gateway identify also feedback signal to wireless router to controlling the control signal of household electricity equipment working state, by wireless router, feedback signal is sent to control terminal again, gateway is simultaneously by after the control signal decoding of the control household electricity equipment working state receiving, the first radio-frequency (RF) receiving and transmission module by self is launched with ISM band, the consumer of same household receives by the second radio frequency receiver of self control signal that control terminal sends, then carry out address and product code identification, carry out again the control action to furniture consumer, emission results signal again after the complete corresponding actions of furniture consumer, after being received by gateway, pass through wireless router, pass to control terminal.
The first radio-frequency (RF) receiving and transmission module and the second radio-frequency (RF) receiving and transmission module adopt the OOK mode of simple general-purpose on radiofrequency signal coding, address code adds data code groups and becomes coding, address code and numeric data code can define any digit according to the complexity of control action and safety requirements, no longer need other any agreements, guaranteed the simple of product operation.
When user is during in other places, intelligent mobile terminal can be used after mobile communications network online, then through internet, recognizes the wireless router that connects net, and then signal transmission is to gateway, to realize Long-distance Control.