| With the development of Internet technology,embedded technology,wireless communication technology and Internet of Things technology,rapid improvement of people’s living standards,people no longer meet the traditional home control and have more attentiont that how to make household appliances become intelligent and improve the comfort of home life.Electrical appliances are connected by Smart home system through the wireless network connection,and then access the Internet.So that people who be anywhere can see the parameters in the home environment and control any household equipment.It creates a more simple,more convenient and more comfortable home environment for people that it is not required to view and switch the function of the device at close range.With the rapid development of Internet technology and mobile communication technology,the major electronics manufacturers have begun to join the smart home research and development.Smart home fashion trend has become unstoppable.Android phones in recent years,sudden emergence,occupy the smart phone smart market share of the majority,with a larger user groups.It is the design of the Internet technology,WiFi wireless communications technology,Android technology and embedded control technology together and designs a smart home remote control system based on Android phone and B/S architecture in this context.It will meet the strong demand which people want to see the home equipment information,control the operation of household equipment and understandfor home safety.The system master processor is a STM32F107 chip based on the Cortex-M3 core and couples with WiFi wireless communication module,sensor module,sub-controller module and other necessary external circuit together to form a smart home control system hardware development platform.STM32 series chip has a wealth of peripheral resources,low cost,strong performance,very suitable as a master module microprocessor.WiFi communication module using Marvell’s 88W8686 chip,the chip has a low cost,high integration,good compatibility and so on.The sensor module includes a temperature sensor,a combustible gas sensor,and a light intensity sensor.Sub-controller modules using C8051F340 control chip control switch circuit,control the electrical switch and collect electrical operation status information.So that users could access the Web server through an Android phone or a web browser.Then Web server will communicate with the master module and the master module will then send control commands to the home device and the sensor via the Wi Fi wireless network.Thus it will realize the information query,switch operation and integrated management of household appliances and sensors.First of all,it is realized the communication between the home device and the main control module in software.Because WiFi technology is used as wireless communication technology,it is divided into communication between home device and WiFi module and communication between WiFi module and master module.Then the application software is specifically designed for the Android-side and B / S-based Web-side.It is the main development of the design content and mainly implements various operation interface design and corresponding control function design.Android mainly includes login system,the overall display,equipment status,scenarios,room settings,indoor security and other functional modules inside and implements user login,device information display,add / remove devices,device information changes,scheduled tasks,room settings,profile settings,home security monitoring and other functions.The login system interface is the same as other mobile applications.It sets the save password function and is convenient for users to use the next time.In the total device display page,it sets the quick switch device button and the quick timer task entry and is easy for users to quickly manage devices.It can adopt custom mode page and users can manage all kinds of household appliances according to individual needs in the profile mode.It displays the information collected by each data sensor in the indoor security page,such as light intensity,combustible gas concentration,temperature and so on.It can promptly prompt users if there is a security situation at home.Then it is written in the Java programming language for web server development.Because JAVA has a powerful,simple advantages and is compiled and can be run on any platform.After it has received the request from the Android application and the web browser,the Web side will call the corresponding program for business logic processing,manipulate the database and then return to the console data which is displayed in the browser.It also implements features such as secure login,data display,manipulation of devices,change of passwords,addition / deletion of devices,custom profiles,security alerts.No matter where they are,what operating system is used,Users can use the smart home system to manage their home appliances by it.The database developed by the application software is the Oracle database.It has the advantages of high stability and strong security mechanism.The electrical data and the data collected by the sensor will be stored in the database.Later it will be analyzed statistically and will prompt the user electrical operation and possible security risks.The system was tested on Android phones and web browsers.And the test content includes user login test,functional module test and system performance test.The results show that the system has high stability,every function module is used normally and it also meets design goals for system performance.So the system has a good practical value. |