Intelligent home control system and its implementation
Technical field
The present invention relates to a kind of intelligent home control system and its implementation, be applicable to home dwelling, belong to the intelligent power technical field.
Background technology
Smart Home is an important component part of intelligent grid as an important ring of intelligent power.Smart Home is platform with the dwelling house, has both network service, information household appliances, equipment automatization; Utilize advanced computer technology and network communications technology with the various subsystems relevant with life staying idle at home, organically combine, by overall management, make life staying idle at home more comfortable, safe, effective.Compare with common household, Smart Home not only has traditional inhabitation function, also by the original passive static function with active wisdom that changes into, omnibearing information exchange functions is provided, help family to keep information interchange unimpeded with outside, optimize people's life style, help people effectively to arrange the time, strengthen the security of life staying idle at home, even save various energy expenditure funds.
In recent years, Smart Home development is in the ascendant, external producer such as ABB, SIMENS, Haier, numerous and confused Smart Home product and the system that releases oneself of domestic manufacturer such as beautiful.But the product of external producer lays particular emphasis on the construction of shopping centre mansion intelligent building more; Domestic manufacturer's product often establishes one's own system, and especially intelligent appliance adopts the agreements of oneself more, and externally technical know-how can not be interconnected.In addition, the product price of above producer is also than higher.
Summary of the invention
Technical matters to be solved by this invention provides a kind of employing puppy parc, intelligent home control system and its implementation of communicating by letter with intelligent appliance by INTERNET.
The technical solution adopted for the present invention to solve the technical problems:
Technical scheme one (technical scheme of system of the present invention):
A kind of intelligent home control system is characterized in that comprising the intelligent domestic appliance controller, remote terminal, WIFI router, household electrical appliances control subsystem, home equipment control subsystem, security alarm subsystem and monitoring camera subsystem;
Described the intelligent domestic appliance controller is made up of GPRS modulator-demodular unit U2, a 315M receiver module U3, radio frequency alarm module U4, the 2nd 315M sending module U5, the 433 sending module U6 of single card microcomputer U1, band SIM card; Described single card microcomputer U1 is connected with radio frequency alarm module U4 by the GPRS modulator-demodular unit U2 of RS232 mouth with the band SIM card respectively, the input end of described radio frequency alarm module U4 is connected with the output terminal of a 315M receiver module U3, and the corresponding port of described single card microcomputer U1 is connected with 433 sending module U6 with the 2nd 315M sending module U5 respectively;
The RJ45 mouth of described single card microcomputer U1 is connected with the WIFI router, and described WIFI router is connected with remote terminal by the internet net;
Described remote terminal comprises smart mobile phone and PC;
The GPRS modulator-demodular unit U2 of described band SIM card is connected with smart mobile phone by GPRS antenna, GPRS net successively;
Described household electrical appliances control subsystem comprises infrared transponder, intelligent switch and smart jack; Described infrared transponder, intelligent switch and smart jack are connected with the 433M emitting antenna of 433 sending module U6 by the 433M receiving antenna that they carry; The corresponding infrared emission end of infrared transponder is controlled televisor, DVD, air-conditioning or water heater respectively;
Described security alarm subsystem comprises infrared alarm probe, door magnetic alarm probe, gas alarm probe and fire alarm probe; The 315M emitting antenna of above-mentioned each probe is connected with the 315M receiving antenna of a described 315M receiver module U3;
Described home equipment control subsystem comprises electrically driven curtain controller, electrically driven curtain, electric window-opening controller, electric window-opening device and the energy-conservation broken-circuit controller of remote control; Described electrically driven curtain controller, electric window-opening controller, the energy-conservation broken-circuit controller of remote control are connected with the 2nd 315M emitting antenna of the 2nd 315M sending module U5 by the 315M receiving antenna that carries respectively, the power output end of the energy-conservation broken-circuit controller of the remote control formula supply socket CZ that runs in, the output terminal of described electrically driven curtain controller and electric window-opening controller is controlled electrically driven curtain and electric window-opening device respectively;
Described monitoring camera subsystem comprises monitoring camera, security protection camera and panel computer; Described monitoring camera is crossed antenna with dull and stereotyped computer expert and is connected with the WIFI router; The security protection camera is connected with the COM3 mouth of single card microcomputer U1.
Native system also comprises power line carrier warning subsystem, and described power line carrier warning subsystem comprises carrier wave warning transmitting element and carrier wave warning receiving element, and carrier wave warning transmitting element is connected with carrier wave warning receiving element by line of electric force; Described carrier wave warning transmitting element is installed in basement, and carrier wave warning receiving element is installed in by the described intelligent controller, and the respective input of the described radio frequency alarm module of its output termination U4.
Technical scheme two (technical scheme of the method for the invention):
Specific implementation method of the present invention is as follows:
(1) utilize the security alarm subsystem that warning message is mail to user's smart mobile phone in real time with short message mode:
(a) system initialization;
(b) a 315M receiver module U3 waits for the radio frequency warning message that each probe of security alarm subsystem sends, if there is not warning message, then continues to wait for;
(c) if warning message is arranged, then distinguish warning message, warning message is issued single card microcomputer U1 through radio frequency alarm module U4, issue user's smart mobile phone by single card microcomputer U1 by the GPRS modulator-demodular unit U2 that is with SIM card again;
(d) after alarming short message sends, return step (b);
(2) user utilizes smart mobile phone or PC, transmits control signal to single card microcomputer U1 by the internet net, and household electrical appliances control subsystem or home equipment control subsystem are controlled:
(a) TCP communication initialization, it is server end that native system is set;
(b) wait in 8000 port snoopings whether the client connection request is arranged, if do not have, continue to wait for;
(c) if listened to the client connection request, then verify username and password, if the password mistake is then closed TCP and connected;
(d) if password is correct, then accept user command, carry out the control operation of home equipment or household electrical appliances by the 2nd 315M sending module U5 or 433M sending module U6;
(3) user utilizes the smart mobile phone note only to transmit control signal to single card microcomputer U1, and household electrical appliances control subsystem or home equipment control subsystem are implemented control:
(a) read short message from GPRS modulator-demodular unit U2 from the COM2 of single card microcomputer U1; If do not have, then continue to wait for;
(b) if information is the control command of home equipment control subsystem or household electrical appliances control subsystem, then carry out software and resolve, send out steering order by the 2nd 315M sending module U5 or 433M sending module U6 to home equipment or household electrical appliances, implement control; Otherwise carry out other processing;
(4) user utilizes SMS to send security protection photograph order to single card microcomputer U1, mails to the user in the multimedia message mode after the security protection camera is taken pictures:
A. read to carry the short message of the GPRS modulator-demodular unit U2 of SIM card from the COM2 of single card microcomputer U1; If do not have, then continue to wait for;
B. if information is security protection photograph order, then communicate with the security protection camera, obtain image information;
C. single card microcomputer U1 sends the AT instruction to the GPRS modulator-demodular unit U2 of band SIM card, with the image information packing, mails to user's smart mobile phone in the mode of multimedia message;
(5) utilize monitoring camera to carry out remote access, in real time the image in the display room;
(6) utilize power carrier warning subsystem, when resident family's basement is stolen, gate controlled switch is connected carrier wave warning transmitting element, the alerting signal that carrier wave warning transmitting element sends reaches carrier wave warning receiving element through line of electric force, carrier wave warning receiving element reaches single card microcomputer U1 by radio frequency alarm module U4 with alerting signal, single card microcomputer U1 reaches smart mobile phone by GPRS modulator-demodular unit U2 with alerting signal, and perhaps single card microcomputer U1 reaches PC by the internet net with alerting signal.
The present invention has following function:
(1) can realize Long-distance Control to household electrical appliances, as can long-rangely opening, stop shower heater; The water heater temperature is set; Long-rangely open, stop air-conditioning; Indoor temperature etc. is set.
(2) can the Remote Open window opener, equipment such as ventilator, realize functions such as room ventilation ventilation.
(3) can carry out chain combination control to household electrical appliances or home equipment, as " owner leaves home " pattern can be set, can close in case enter the intelligent switch of this pattern interlock, realize that the people walks outage, security alarm can be deployed troops on garrison duty automatically simultaneously; When being set to " audio-visual pattern ", can draw the curtain together automatically, close light, turn on DVD, TV, sound equipment etc.
(4) can long-range instant alarming, the security alarm subsystem comprises combustion gas leakage, infrared acquisition, door magnetic detection, smoke detection etc., in case alerting signal occurs, warning message can immediately be issued owner's mobile phone with way of short messages under the state of deploying troops on garrison duty.
(5) but utilize the monitoring camera remote access of indoor installation, show image within doors in real time.
(6) security protection of resident family's basement adopts the power carrier type of alarm to realize, places carrier wave warning transmitting element at basement; The other carrier wave warning receiving element of placing of the intelligent domestic appliance controller in man of resident family; When basement had the people to swarm into, carrier wave warning transmitting element sent alerting signal, passed to carrier wave warning receiving element by line of electric force, and then imported the radio frequency alarm module into by the mouth line, finally by single card microcomputer, GPRS modulator-demodular unit are issued user mobile phone excessively.
(7) user can be by the control of SMS order enforcement to all kinds of home equipments and household electrical appliances.The function that all internet network controls mode processed can realize all can realize by the SMS order.
(8) user can take pictures by SMS order Long-distance Control security protection camera, and picture is returned with the form of multimedia message.
Beneficial effect of the present invention is as follows:
(1) the present invention adopts a kind of framework of opening, can be integrated with the multiple market universal product, be suitable for the intellectuality of household, and can make up the higher intelligent home control system of cost performance.
(2) the Long-distance Control mode is versatile and flexible, and the user can control household at any time by smart mobile phone and PC, and the household warning message is real-time transmitted to the user with short message mode.
Description of drawings
Fig. 1 is the theory diagram of intelligent home control system of the present invention.
Fig. 2 is the theory diagram of the energy-conservation broken-circuit controller of remote control.
Fig. 3 is the circuit theory diagrams of the energy-conservation broken-circuit controller of remote control.
Fig. 4 is the theory diagram of power carrier warning subsystem.
Fig. 5 is the circuit theory diagrams of power carrier warning subsystem.
Fig. 6 is mobile phone version control software flow pattern.
Fig. 7 is PC version control software flow pattern.
Fig. 8 is security alarm and short message receiving-transmitting control process software flow pattern.
Fig. 9 is internet net Long-distance Control process process flow diagram.
Embodiment
Embodiment 1(is with reference to Fig. 1-5):
Present embodiment comprises the intelligent domestic appliance controller, remote terminal, WIFI router, household electrical appliances control subsystem, home equipment control subsystem, security alarm subsystem and monitoring camera subsystem;
Described the intelligent domestic appliance controller is made up of GPRS modulator-demodular unit U2, a 315M receiver module U3, radio frequency alarm module U4, the 2nd 315M sending module U5, the 433 sending module U6 of single card microcomputer U1, band SIM card; Described single card microcomputer U1 is connected with radio frequency alarm module U4 by the GPRS modulator-demodular unit U2 of RS232 mouth with the band SIM card respectively, the input end of described radio frequency alarm module U4 is connected with the output terminal of a 315M receiver module U3, and the corresponding port of described single card microcomputer U1 is connected with 433 sending module U6 with the 2nd 315M sending module U5 respectively;
The RJ45 mouth of described single card microcomputer U1 is connected with the WIFI router, and described WIFI router is connected with remote terminal by the internet net;
Described remote terminal comprises smart mobile phone and PC;
The GPRS modulator-demodular unit U2 of described band SIM card is connected with smart mobile phone by GPRS antenna, GPRS net successively;
Described household electrical appliances control subsystem comprises infrared transponder, intelligent switch and smart jack; Described infrared transponder, intelligent switch and smart jack are connected with the 433M emitting antenna of 433 sending module U6 by the 433M receiving antenna that they carry; The corresponding infrared emission end of infrared transponder is controlled televisor, DVD, air-conditioning or water heater respectively;
Described security alarm subsystem comprises infrared alarm probe, door magnetic alarm probe, gas alarm probe and fire alarm probe; The 315M emitting antenna of above-mentioned each probe is connected with the 315M receiving antenna of a described 315M receiver module U3;
Described home equipment control subsystem comprises electrically driven curtain controller, electrically driven curtain, electric window-opening controller, electric window-opening device and the energy-conservation broken-circuit controller of remote control; Described electrically driven curtain controller, electric window-opening controller, the energy-conservation broken-circuit controller of remote control are connected with the 2nd 315M emitting antenna of the 2nd 315M sending module U5 by the 315M receiving antenna that carries respectively, the power output end of the energy-conservation broken-circuit controller of the remote control formula supply socket CZ that runs in, the output terminal of described electrically driven curtain controller and electric window-opening controller is controlled electrically driven curtain and electric window-opening device respectively;
Described monitoring camera subsystem comprises monitoring camera, security protection camera and panel computer; Described monitoring camera is crossed antenna with dull and stereotyped computer expert and is connected with the WIFI router; The security protection camera is connected with the COM3 mouth of single card microcomputer U1.
Present embodiment also comprises power line carrier warning subsystem, and described power line carrier warning subsystem comprises carrier wave warning transmitting element and carrier wave warning receiving element, and carrier wave warning transmitting element is connected with carrier wave warning receiving element by line of electric force; Described carrier wave warning transmitting element is installed in basement, and carrier wave warning receiving element is installed in by the described the intelligent domestic appliance controller, and the respective input of the described radio frequency alarm module of its output termination U4.
The energy-conservation broken-circuit controller of described remote control comprises the 2nd 315M Receiver Module U7, demoder, first driving circuit, magnetic latching relay J1 and hand switch K1; The output terminal of described the 2nd 315M Receiver Module U7 connects the input end of first driving circuit through demoder, the line bag of the output termination magnetic latching relay J1 of first driving circuit, the L of alternating current 220V is through the run in live wire end of formula supply socket CZ of the normally opened contact J1-1 of described magnetic latching relay J1, the run in zero line side of formula supply socket CZ of the zero line side N of alternating current 220V, hand switch K1 is in parallel with the normally opened contact J1-1 of magnetic latching relay;
Described demoder is made up of radio frequency decoding chip U8 and resistance R 1; Input end 14 pin of radio frequency decoding chip U8 meet the output terminal RXD of the 2nd 315M Receiver Module U7, and resistance R 1 is connected between 15 pin and 16 pin of radio frequency decoding chip U8;
Described first driving circuit is made up of the identical branch road of two line structures, wherein first route transistor Q1, resistance R 2-R3, LED 1 and sustained diode 1 are formed, the base stage of transistor Q1 connects output terminal 12 pin of radio frequency decoding chip U8 through resistance R 2, resistance R 3 and the collector that is connected on transistor Q1 after LED 1 is connected and+12V between; The grounded emitter of transistor Q1;
Second route transistor Q2, resistance R 4-R5, LED 2 and sustained diode 2 are formed; The base stage of transistor Q2 connects output terminal 11 pin of radio frequency decoding chip U8 through resistance R 4;
The first line bag L1 of described magnetic latching relay J1 is connected on+collector of 12V and transistor Q1 between, the second line bag L2 of magnetic latching relay J1 is connected on+collector of 12V and transistor Q2 between; The model of described radio frequency decoding chip is PT2272.
Described carrier wave warning transmitting element is made up of sending module control circuit, power carrier sending module U9 and gate controlled switch MK, the output terminal of described sending module control circuit is carried the input end of ripple sending module U9, and the output terminal of carrier wave sending module U9 connects line of electric force through gate controlled switch MK;
Described sending module control circuit is by the first single-chip microcomputer U11 and peripheral cell crystal X1 thereof, capacitor C 1-C3, resistance R 6-R8, LED 3-LED4, the first reset switch K2 forms, be connected on after the first reset switch K2 and capacitor C 3 are in parallel the first single-chip microcomputer U11 4 pin and+5V between, resistance R 6 is connected between 4 pin and ground of the first single-chip microcomputer U11, crystal X1 is connected between 14 pin and 15 pin of the first single-chip microcomputer U11, capacitor C 1, C2 is connected on 14 pin of the first single-chip microcomputer U11 respectively, between 15 pin and the ground, LED 3 and 40 pin that are connected on the first single-chip microcomputer U11 after resistance R 7 is connected and+5V between, LED 4 and 40 pin that are connected on the first single-chip microcomputer U11 after resistance R 8 is connected and+5V between, two input ends of power carrier sending module U9 connect 5 pin of the first single-chip microcomputer U11 respectively, 7 pin, the output terminal of power carrier sending module U9 connects the L phase of line of electric force through gate controlled switch MK, the N phase of its another output termination line of electric force;
Described carrier wave warning receiving element is made up of power carrier receiver module U10, receiver module control circuit and second driving circuit; The L that two input ends of described power carrier receiver module U10 connect line of electric force respectively mutually with N mutually; The input end of the output termination second singlechip U12 of power carrier sending module U10, the output terminal of second singlechip U12 connects the respective input of described radio frequency alarm module U4 through second driving circuit;
Described receiver module control circuit is by second singlechip U12 and peripheral cell transistor X2, capacitor C 4-C6, the second reset switch K3, and resistance R 9 is formed; Transistor X2 is connected between 14 pin and 15 pin of second singlechip U12, capacitor C 4, C5 are connected on respectively between 14 pin, 15 pin and the ground of second singlechip U12, be connected on after the second reset switch K3 and capacitor C 6 are in parallel second singlechip U12 4 pin and+5V between, resistance R 9 is connected between 4 pin and ground of second singlechip U12;
The output terminal that input end 5 pin of described second singlechip U12,7 pin meet power carrier receiver module U10;
Described second driving circuit is made up of transistor Q3, relay J 2, resistance R 10-R11, LED 5 and sustained diode 3; The base stage of transistor Q3 connects output terminal 42 pin of second singlechip U12 through resistance R 10, the line bag of relay J 2 is connected on+collector of 5V and transistor Q3 between, in parallel with the line bag of relay J 2 after resistance R 11 is connected with LED 5, the normally closed contact J2-2 of relay J 2 is attempted by the respective input of radio frequency alarm module U4; The model of described first, second single-chip microcomputer is STCS9C52; The model of described power carrier sending module is PLTTXD21, and the model of power carrier receiver module is PLTRXD21.
The model of the infrared alarm probe of described security alarm subsystem is PJ-HWH10, and the model of door magnetic alarm probe is PJ-HWMC10, and the model of gas alarm probe is PJ-HWMD10, and the model of fire alarm probe is PJ-HWAD10; The infrared alarm probe generally is installed in a last centre position, is convenient to survey people's turnover; Door magnetic alarm probe is installed on the doorframe, is convenient to the switching of monitoring door; The gas alarm probe is installed on the gas-cooker top, is convenient to monitor gas and leaks; The fire alarm probe is installed on the roof, room.
The model of the monitoring camera of described monitoring camera subsystem is NETCAM-H; The model of security protection camera is DC-ZM02.
In the present embodiment, the model of the infrared transponder of household electrical appliances control subsystem is TRANS-10, and the model of intelligent switch is ORT-603S, and the model of smart jack is ORT-101.
The model of the magnetic latching relay of described household control subsystem is HHM801, and the model of electrically driven curtain controller is ORT-05, and the model of electric window-opening device is ORT-06.
Single card microcomputer U1 model in the described the intelligent domestic appliance controller is SBC6020ARM, the model of GPRS modulator-demodular unit is SIM300S, the model of the one 315M receiver module U3 is CRJ-FST315, the model of the 2nd 315M sending module U5 is CHJ-FST315, the model of 433M sending module U6 is CHJ-FST433, and the model of radio frequency alarm module U4 is AL-08.
Embodiment 2(is with reference to Fig. 6-9):
The specific implementation method of present embodiment is as follows:
(1) utilize the security alarm subsystem that warning message is mail to user's smart mobile phone in real time with short message mode:
(a) system initialization;
(b) a 315M receiver module U3 waits for the radio frequency warning message that each probe of security alarm subsystem sends, if there is not warning message, then continues to wait for;
(c) if warning message is arranged, then distinguish warning message, warning message is issued single card microcomputer U1 through radio frequency alarm module U4, issue user's smart mobile phone by single card microcomputer U1 by the GPRS modulator-demodular unit U2 that is with SIM card again;
(d) after alarming short message sends, return step (b);
(2) user utilizes smart mobile phone or PC, transmits control signal to single card microcomputer U1 by the internet net, and household electrical appliances control subsystem or home equipment control subsystem are controlled:
(a) TCP communication initialization, it is server end that native system is set;
(b) wait in 8000 port snoopings whether the client connection request is arranged, if do not have, continue to wait for;
(c) if listened to the client connection request, then verify username and password, if the password mistake is then closed TCP and connected;
(d) if password is correct, then accept user command, carry out the control operation of home equipment or household electrical appliances by the 2nd 315M sending module U5 or 433M sending module U6;
(3) user utilizes the smart mobile phone note only to transmit control signal to single card microcomputer U1, and household electrical appliances control subsystem or home equipment control subsystem are implemented control:
(a) read short message from GPRS modulator-demodular unit U2 from the COM2 of single card microcomputer U1; If do not have, then continue to wait for;
(b) if information is the control command of home equipment control subsystem or household electrical appliances control subsystem, then carry out software and resolve, send out steering order by the 2nd 315M sending module U5 or 433M sending module U6 to home equipment or household electrical appliances, implement control; Otherwise carry out other processing;
(4) user utilizes SMS to send security protection photograph order to single card microcomputer U1, mails to the user in the multimedia message mode after the security protection camera is taken pictures:
A. read to carry the short message of the GPRS modulator-demodular unit U2 of SIM card from the COM2 of single card microcomputer U1; If do not have, then continue to wait for;
B. if information is security protection photograph order, then communicate with the security protection camera, obtain image information;
C. single card microcomputer U1 sends the AT instruction to the GPRS modulator-demodular unit U2 of band SIM card, with the image information packing, mails to user's smart mobile phone in the mode of multimedia message;
(5) utilize monitoring camera to carry out remote access, in real time the image in the display room;
(6) utilize power carrier warning subsystem, when resident family's basement is stolen, gate controlled switch is connected carrier wave warning transmitting element, the alerting signal that carrier wave warning transmitting element sends reaches carrier wave warning receiving element through line of electric force, carrier wave warning receiving element reaches single card microcomputer U1 by radio frequency alarm module U4 with alerting signal, single card microcomputer U1 reaches smart mobile phone by GPRS modulator-demodular unit U2 with alerting signal, and perhaps single card microcomputer U1 reaches PC by the internet net with alerting signal.