| Today which is about to fully enter the moderately prosperous society,people’s pursuit of home life quality is increasingly strong.With the rapid development of Internet of Things technology,smart homes begin to go into ordinary home users’live.In the era when man all has their own mobile phone,the mobile terminal control method has replaced PC control and has become an important part of smart home.Afterwards,Research on mobile applications has caught the smart home industry’s eyes.Android operating system has the favor by all big smart home enterprises is due to its good open source and extensive.This topic comes from company’s actual demand,based on the new framework of Android mobile client+embedded terminal+Internet of Things and cloud computing platform,develops and implements a smart home system client software that is based on Android platform.It considers security issues and proposes a smart home security protection solution that is based on two-level security mechanism.The client software in this paper is developed and implemented is on Eclipse platform,using the object-oriented java programming language.The design of the client-facing server interface was completed based on the RESTful API design principles.In the overall design stage of the software,the layered structure design idea is used to modularize the overall architecture of the software,which reduces the coupling of the client software and clarifies the relationship between the module and the function.In the design stage of the software specific function module,the MVC design mode is used to design and implement the detailed modules of the client,which is convenient for the maintenance and modification of the later code.Choosing the post communication method based on the HTTP communication protocol to implement data interaction with the cloud platform server,and the interactive data format adopts JSON text format that has clear layer structure.This paper uses a lightweight SQLite database based on small memory to implement user data persistence design.To realize the two-dimensional code scanning function by using the third party application Zxing.To realize SMS verification function based on the third party library cloud network SDK.The independently developed smart home client software in this paper which includes rich user functions,provides intelligent experience and ensure user’s safe working,has high practical value,meets the individual needs of users is an important part of the smart home system.The design idea and development method of smart home client software based on Android in this paper can also be some references to App Development in other mobile platforms. |