| Smart home system can provide a more comfortable, convenient and fast modern way of life. The appearance of Internet of things has brought a new solution for smart home technology. Therefore, in this thesis, we introduce some technologies of Internet of things into the smart home system, to design and implement a set of convenient and practical smart home system. The smart home system in this thesis which is based on the Internet of things mainly includes the ZigBee wireless sensor network, the PC user terminal and the Android client.First of all, this thesis presents the overall design of the smart home system construction, then studies ZigBee technology, Socket communication technology and Android technology, and gives the design of communication frame structure in smart home system for internal data transmission.Secondly, this thesis designs and implements the ZigBee wireless sensor network inside the home. ZigBee wireless sensor network includes ZigBee coordinator node and ZigBee terminal nodes. The hardware module of ZigBee nodes use CC2530 chip produced by Texas Instruments as the main control chip, and the software development is based on Z-Stack protocol. After testing, the ZigBee wireless sensor network is stable. What’s more, it can realize the information acquisition from home, such as temperature, humidity, light intensity, the concentration of PM2.5, and control some household appliances, such as lights, fans, electric curtains, humidifiers and others.Thirdly, the PC user terminal is developed based on C# language in the Visual Studio 2012 integrated development environment. PC user terminal can not only communicate with ZigBee wireless sensor network through serial port, but also exchange data with Android client by the way of client/server mode through Socket communication. After testing, the PC user terminal runs stably, and it can provide users with the interactive service of home environment information and household electric appliances control.Finally, this thesis builds the Android development environment and completes the design of Android client, which includes the design of client interface, Socket communication program and user interaction program. After testing, the Android client runs stably, which provides a more convenient way for users to interact with the smart home system. |