When people no longer worry about the issue of food and clothing,the convenience of transportation and the quality of home life has increasingly become the focus of attention.The smart home system is developed using advanced hardware products,network communication and computer programming control.It is equipped with high-tech camera equipment and infrared sensors and other alarm equipment to better secure the family living environment.Therefore,researching an efficient and intelligent home system has become a research point.This thesis has designed and developed the software part of the Smart Home system.First of all,a smart home system control terminal is developed basing on the current Android system with the highest market share for development.The Android system is equipped with powerful hardware support to reduce the development difficulty.It uses the Android Studio software for development and uses the Java language.The control terminal consists of a user management module,a home gateway management module,a scene and a linkage sensor module,a data storage module,a communication module,and a status feedback module.Its main function is to complete the distribution of electrical authority between the administrator and other users,the addition and control of electrical appliances,and the setting of scene functions and linkage scene functions.Finally,the thesis completes the development of the server side.It realizes the remote data storage function and the communication function with the gateway and the control terminal.The server uses a MySQL database.Regarding the realization of the communication part between the server,the gateway and the control terminal,the server side adopts the Spring Hibernate template interface for development.By accessing these interfaces through the WebService,gateways and control terminals implement server data transmission and electrical control.After use,it is shown that the smart home control terminal can achieve effective control of all sub-node appliances in both local and remote states.The status of the appliance can also be displayed on the control interface in real time through the WebSocket connection established between the server and the control terminal.The function of the system has met the market demand,and has the characteristics of real time and high efficiency. |