HTTP-Based Smart Home Network Improvement Program
|School||Kunming University of Science and Technology|
|Course||Applied Computer Technology|
|Keywords||HTTP SGIP CGI Web Browser Smart Home|
In recent years, the normal network system architecture changed from fat client model into thin client mode gradually with the rapid development of the Communications technology and Web server performance. The performance of the network terminal is gradually freed in this trend. From the perspective of design and implementation points, this paper attempted to analyze the general structure of smart home system network communication. Based on Science and Technology Fund "smart homes and smart home controller", this paper discussed improved ways of smart home network communication with HTTP as the main bearing protocol. Improved smart home network mainly consists of three parts which include external SMS gateway, community information systems and indoor machine interface.In the past, the smart home controller use mobile phone module to implement SMS capabilities. This has resulted in the development of complex, difficult to debug, hard extend and poor stability, high cost and other issues. And now Could Computing advocates that functions as a service. "All service" concept as a guide, this paper integrated the two-way External Short Message Gateway (ESMG, based on China Unicom SGIP) into the smart home network, and then completed the SMS service based on HTTP.Community Information System meets community information platform and the network middle layer for the user needs. As a network middle layer, implements home appliance control message forwarding by LAS (Local Area Service) messages defined by this paper. Provides two interfaces for the external communication and alarm messages sent, share the connected load of external SMS gateway based on HTTP. As an information platform, it links residential management to owners by web way. Web site provides daily information services for owners. Web program is implemented by CGI and a comparison is made for the two communication ways of HTTP and LAS message in this paper.In the Arm-Linux platform of the smart home indoor machine, this paper implemented a Web browser based on Webkit and transplanted SSL library into this system. There are the web browsing, bookmark manager, page forward/back, page zoom and search functions in browser. It can run such as e-mail, Web QQ and other network applications. At last, referenced by command design pattern, provided improvements of save concurrent requests and processing them in order for the problem of multi-threaded device resource competition. Provide the improvement scheme of local message interface based on HTTP for the improved thin client network structure. In improved indoor system, the probability of SMS sending and receiving failure was significantly reduced, the cell phone module was removed and the cost of hardware was reduced.