| The client and gateway are important content in Smart Home. The client that reasonable layout and convenient control will greatly enhance the user’s feeling, then the gateway that complete function, stable performance can achieve a qualitative improvement for the system. The client based on Android platform and the gateway are designed and implemented in this thesis, Aims to make the system control more convenient, efficient, improve the user experience and realize the centralized control and management. The main work of this thesis is as following.1. According to the architecture and function of the system, the client based on Android platform is designed, and then the Socket and the HTTP communication are designed and implemented that used for the interaction between the client and gateway. The database of client is designed and the method that the client connection requests unsolicited to the gateway is used for implement the database synchronization between the client database and gateway database.2. The SQLite3and the Web server are transplanted for built the gateway development environment. The Socket server and the Web server applications are developed, and the multi-threading technology is used for the gateway software. The database of the gateway is designed to store the data for environmental and the properties of the devices.3. In order to implement the devices management and information interaction, the intelligent appliances management protocol is designed. The message format of the Network communication is designed to improve the reliability of the network transmission.4. The control experimental of client and gateway has been carried out, and the experimental results show the good effectiveness of the control function. The gateway performance has been analysis, the results met the requirements. |