摘要:
Aiming at the problem that smarthome application is tightly coupled, hard to expand and with poor network performance, a smarthome platform with REST architectural style was proposed. Firstly, this paper summarized the concept of smart home and compared the development of smart home at home and abroad by demonstrating some products of several IT giants, and discussed several key IoT ( Internet of Things) technologies with great impact to smart home. Secondly, using Web technology to integrate IoT resources, this article compared two common Web service styles: SOAP-based WS-∗ and REST style, and their application scenarios. The REST architectural style has the advantage in uniform interface, light weight class and high scalability. Finally, it presented a RESTful platform for smarthome application development, demonstrating the functions of its constituent parts, and took an example of a smarthome LED application, which verified this platform ' s advantage in uniform interface, fine-grained controllability and network transmissin efficiency. In the end, it put forward a few of thoughts about the future in smart home application development.%针对智能家居系统应用耦合性强、可扩展性差、网络性能弱等问题,提出一种基于REST架构风格的智能家居应用平台解决方案。首先,调研对比了国内外智能家居发展现状和趋势,深入分析了影响智能家居发展的物联网关键技术。其次,研究了怎样利用Web技术,整合使用物联网资源。对比两种常用的Web service风格,即REST和基于SOAP的WS-∗,分析它们具体的使用场景,得出结论:在统一接口、轻量级特性、可扩张性等方面,REST更加优秀,智能家居场景应用的快速开发应使用REST风格架构。最后,介绍了智能家居应用平台的组成和具体功能模块,并以开发LED应用为例,验证了RESTful架构平台的在统一接口抽象、安全和用户权限管理、网络传输效率等指标上有天然优势,因此它可以提高应用开发的效率、应用管理特性和应用体验,对智能家居应用开发的未来发展提供了可行的系统模式。