Background technology
Along with development, the growth in the living standard of society, for convenience, quick, energy-conservation, people have used various household electrical appliance to satisfy above-mentioned requirements.Illustrate with electric cooker: the line that plugs in, press start key, to start working, microcomputer detects temperature and the loam cake sensor temperature of main thermostat, when relevant temperature meets operating temperature range, connects the electric hot tray power supply, the electric hot tray heating that powers on.Because electric hot tray fully contacts with interior pot, heat passes on the interior pot very soon, the corresponding heat of interior hingle passes among the Mi Heshui, rice water begins heating, along with rice water heat temperature raising, the moisture start vaporizer, the loam cake sensor temperature raises, when pot rice water seethes with excitement in microcomputer detects, adjust the heating power (microcomputer is judged the Mi Shuiliang situation of heating according to a period of time temperature variations) of electric cooker, thereby guarantee that soup does not overflow, after boiling a period of time, the water in water evaporates and the interior pot is blotted by Mi Jiben, and the grain of rice of interior pot bottom might adhere to thermal insulation layer of the bottom of a pan formation together with dextrin; Therefore, cooking bottom temperature can rise with fast speed, the temperature of corresponding main thermostat also can rise with very fast temperature, when detecting main thermostat temperature, microcomputer reaches limit Wen Wendu, microcomputer drives relay and disconnects the electric hot tray power supply, the electric hot tray outage is not generated heat, and enters the state of cooking rice over a slow fire, and changes keeping warm mode over to after the end of cooking rice over a slow fire.At keeping warm mode, as time passes, the rice temperature in the interior pot descends, main thermostat temperature is descended, when microcomputer detects the control temperature that main thermostat temperature drops to insulation, drive the power supply of electric hot tray, re-power heating, temperature rises, and main thermostat temperature also increases; When detecting main thermostat temperature, microcomputer raises, electric hot tray outage cooling, and main thermostat temperature descends, and repeats above-mentioned circulation, makes electric cooker maintain insulating process.The shortcoming of this electrical equipment maximum is: the first, outward appearance and structure qualification the quantity of external function button, cause the function of numerous common principle can't guide the user to use.The second, can't Long-distance Control, must carry out function setting in distance.When three, electrical equipment breaks down, the difficult follow-up of after-sale service.Four, the expansion of user's use experience and function can not get propagating fast and using.
Summary of the invention
The object of the present invention is to provide a kind of a kind of intelligent appliance control system and control method thereof based on WIFI reliably, can realize short range or long-range Based Intelligent Control to household electrical appliances.
The objective of the invention is to be achieved through the following technical solutions: a kind of intelligent appliance control system based on WIFI, it comprises the intelligent terminal that has the UI interface, the WIFI module, wireless router, the control gateway, household appliances terminal and remote server, wherein, wireless router links to each other with the control gateway respectively at the intelligent terminal that has the UI interface by the WIFI module, remote server links to each other with wireless router by the Internet, the control gateway is provided with UART serial ports controller and MCU1, the household appliances terminal links to each other with the UART serial ports controller, and the household appliances terminal is provided with MCU2.
Described WIFI module is with the mode access of radio network of 802.11b/g/n/ac/, and the mode of the control data envelope being dressed up ICP/IP protocol is transmitted.
A kind of intelligent appliance control method based on WIFI, in control procedure, the intelligent terminal, WIFI module, wireless router, control gateway, household appliances terminal and the remote server that have the UI interface are set up into a control feedback network, and it comprises following steps:
(1), the household appliances starting terminal, MCU2 detects the sensing data amount of household appliances terminal by each IO mouth;
(2), MCU2 sends to MCU1 with data volume by the UART serial ports controller;
(3), MCU1 transmits through wireless router or remote server data volume by the WIFI module in the ICP/IP protocol mode;
(4), the intelligent terminal that has a UI interface receives that the mode with UI is shown to the user after the data, the user can operate at the UI interface;
(5), the intelligent terminal that has a UI interface becomes operating data with operational processes, return in the ICP/IP protocol mode equally;
(6), MCU1 receives operating data and unpacks processing, sends to MCU2 by the UART serial ports controller;
(7), MCU2 will control relevant transducer, controller responds, and finishes the operation of user's appointment.
Beneficial effect of the present invention is: realized closely controlling household electrical appliance terminal equipment with remote-wireless by WIFI, control the control protocol of gateway simultaneously and can pass through specific modification, the characteristics of maintaining secrecy that meet the privately owned communications protocol of producer, adopt the general controls agreement, the household electrical appliance terminal of each producer can directly use, and meets the market demand easily and efficiently.
Embodiment
Further describe technical scheme of the present invention below in conjunction with embodiment and accompanying drawing, but that claimed scope is not limited to is described.
A kind of intelligent appliance control system based on WIFI, it comprises the intelligent terminal 100 that has the UI interface, WIFI module 101, wireless router 102, control gateway 103, household appliances terminal 104 and remote server 105, wherein, wireless router 102 links to each other with control gateway 103 respectively at the intelligent terminal 100 that has the UI interface by WIFI module 101, remote server 105 links to each other with wireless router 102 by the Internet, control gateway 103 is provided with UART serial ports controller and MCU1, household appliances terminal 104 links to each other with the UART serial ports controller, and household appliances terminal 104 is provided with MCU2.
Described WIFI module 101 is with the mode access of radio network of 802.11b/g/n/ac/, and the mode of the control data envelope being dressed up ICP/IP protocol is transmitted.
The intelligent terminal 100 that has the UI interface refers to have the mobile phone/panel computer/computer/TV machine/miscellaneous equipment of WIFI terminal, compare with common terminal equipment, new application software can be installed, take full advantage of the hardware resource of intelligent terminal, expand the function of mobile phone.Intelligent terminal provides human-computer interaction interface by supporting special utility is installed, and realizes control to the household electrical appliance terminal electric cooker by the different key on the software and menu.Whole process is issued automatically by software, no longer needs manual adjustment.Intelligent terminal replaces traditional timing, model selection by touch-screen, sets up data path by TCP/IP between intelligent terminal and control gateway.
Wireless router 102 provides the communication between application program, and its function comprises: one, formatted message stream; Two, provide reliable transmission.
Control gateway 103 comprises WIFI module, embedded controller, power module, the WIFI module is used for receiving the control command that intelligent terminal is sent, embedded controller is used for controlling all data processing work of gateway, pass on the intelligent terminal that feeds back signal to of household electrical appliance terminal, and the control command that issues of intelligent terminal is remembered and stored, carry out in regular turn by the time configuration, the UART serial ports controller is under the control of embedded controller, sending controling instruction, be used for controlling household electrical appliance terminal, realize the purpose of Long-distance Control thus.
Household appliances terminal 104 comprises the needed power module of household appliances self-operating, embedded controller, transducer.
Remote server 105 is by network download and share to realize automatic renewal and the increase of household electrical appliances control scheme, feeds back the household electrical appliances reason of makeing mistakes automatically, and server remote auto newspaper barrier and after-sale service are followed up.Share follow all for one, I am everybody principle, own menu can be shared to give popularly, masses can pass through mobile phone, computer instrument click download button, will control data and be sent to the control gateway.
The invention also discloses a kind of intelligent appliance control method based on WIFI, in control procedure, the intelligent terminal 100, WIFI module 101, wireless router 102, control gateway 103, household appliances terminal 104 and the remote server 105 that have the UI interface are set up into a control feedback network, and it comprises following steps:
(1), household appliances terminal 104 starts, MCU2 detects the sensing data amount of household appliances terminal 104 by each IO mouth;
(2), MCU2 sends to MCU1 with data volume by the UART serial ports controller;
(3), MCU1 transmits through wireless router 102 or remote server 105 data volume by WIFI module 101 in the ICP/IP protocol mode;
(4), the intelligent terminal 100 that has a UI interface receives that the mode with UI is shown to the user after the data, the user can operate at the UI interface;
(5), the intelligent terminal 100 that has a UI interface becomes operating data with operational processes, return in the ICP/IP protocol mode equally;
(6), MCU1 receives operating data and unpacks processing, sends to MCU2 by the UART serial ports controller;
(7), MCU2 will control relevant transducer, controller responds, and finishes the operation of user's appointment.
The present invention has under following 3 kinds of patterns and moves when actual operate as normal:
(1), as shown in Figure 2, the local area network (LAN) operational mode, when entering the local area network (LAN) operational mode, can directly set up into a control feedback network by the intelligent terminal 100, WIFI module 101, wireless router 102, control gateway 103, the household appliances terminal 104 that have the UI interface.When household appliances terminal 104 starts, MCU2 detects the sensing data amount of household electrical appliances by each IO mouth, as temperature sensor, last cover sensor, empty pot transducer, current controller etc., the Tx interface of MCU2 sends to data volume the Rx interface of MCU1 by the UART serial ports controller, MCU1 transmits the ICP/IP protocol mode that data volume sees through wireless router 102 by WIFI module 101, the intelligence movement that supporting utility program is installed receives data and handles afterwards, mode with UI is shown to the user, the user can operate accordingly at the UI interface, click corresponding button or select corresponding menu, portable terminal becomes operating data with operational processes, return in the ICP/IP protocol mode equally, MCU1 receives operating data and unpacks processing, send to the Rx interface of MCU2 by the Tx interface of UART serial ports controller, MCU2 will control relevant transducer, controller responds.
(2), as shown in Figure 3, wide area network operational mode 1, when entering wide area network operational mode 1, the intelligent terminal 100 that has the UI interface, wireless router 1, wireless router 2, WIFI module 101, control gateway 103, household appliances terminal 104 and remote server 105 are formed a complete control feedback network, when overall process is the household electrical appliances startup, MCU2 detects the sensing data amount of household electrical appliances by each IO mouth, as temperature sensor, last cover sensor, empty pot transducer, current controller etc., the Tx interface of MCU2 sends to data volume the Rx interface of MCU1 by the UART serial ports controller, MCU1 sees through wireless router 1 by the WIFI module with data volume, wireless router 2, remote server 105 transmits, transmission depends on ICP/IP protocol, the intelligence movement that supporting utility program is installed receives data and handles afterwards, mode with UI is shown to the user, the user can operate accordingly at the UI interface, click corresponding button or select corresponding menu, portable terminal becomes operating data with operational processes, return in the ICP/IP protocol mode equally, MCU1 receives operating data and unpacks processing, send to the Rx of MCU2 by the Tx of UART serial ports controller, MCU2 will control relevant transducer, controller responds.
(3), as shown in Figure 4, wide area network operational mode 2, when entering wide area network operational mode 1, the intelligent terminal 100, wireless router 1, wireless router 2, WIFI module 101, control gateway 103, household appliances terminal 104 and the remote server 105 that have the UI interface are formed a complete control feedback network.Overall process and wide area network operational mode 1 are similar, only at remote server the backstage monitoring facilities are installed.The backstage monitoring facilities provides network download and share to realize automatic renewal and the increase of household electrical appliances control scheme, feeds back the household electrical appliances reason of makeing mistakes automatically, and server remote auto newspaper barrier and after-sale service are followed up.
Utilization of the present invention has the supporting utility program of presetting on the mobile phone/panel computer/computer/TV machine/miscellaneous equipment of WIFI terminal, each sensor information of collector's electric terminals, and send control command and allow household electrical appliances finish the operation of appointment, the control data depend on the transmission of TCP/IP network.This technology can select to cooperate remote server, support Long-distance Control, to overcome weak point of the prior art, by network download and shared automatic renewal and the increase that realizes household electrical appliances control scheme, automatically the feedback household electrical appliances reason of makeing mistakes, server remote auto newspaper barrier and after-sale service are followed up.