节点文献
基于PSIA的智能家居系统设计
【作者】 郭鸿飞;
【导师】 赵卫东;
【作者基本信息】 复旦大学 , 软件工程, 2012, 硕士
【摘要】 随着人民生活水平的提高,智能家居系统进入到更多人民的日常生活中。而技术的进步,也使得更多的设备需要接入智能家居系统中,因而系统就要不断的进行升级,然而在升级的过程也出现诸多的问题。新旧协议的不匹配,使用更为规范化的通信协议,为智能家居系统的硬件和软件平台创建一种标准化的接口显得更加迫切。采用PSIA协议作为基础,根据产品特点定义出独立的PSIA over JSON扩展协议,实现了协议的无限扩展性。允许对新型设备进行基于文本方式的协议扩充,所以命令的解释器仅需关注模块自身感兴趣的内容,使新老协议在同一系统中运行不会发生任何兼容性问题。从而实现了对新设备接入的快速响应,且不需要对现有系统进行停机,满足日新月异的智能家居市场的需求。首先分析了崇安智能家居系统问题现状,明确存在的诸如系统升级需要停机、添加设备周期过长等不足,确定研发基于PSIA的智能家居系统的必要性。在此基础上,讨论了基于PSIA的智能家居系统的远程访问、控制查询以及自动升级等功能,分析设备状态上报、处理以及跨网段通讯等核心需求。然后,确定系统采用基于Open API的MVC架构,将系统分为控制主机、家居智能控制终端系统以及远程终端子系统,并讨论服务器与智能主机及移动终端的基于JSON的通讯协议详细设计。其中重点讨论如何利用PSIA Over JSON的通讯协议实现系统协议的无线扩展性,使得新老协议可以在同一系统中同时运行,并讨论了数据的高效传输以及加密方式。最后对系统进行总结和展望。
【Abstract】 Smart Home System is entering households as people’s living standards are improving. While advance technical make it possible to supports more devices connected to home system, there are lots of challenges emerging when upgrading it. A potential convenient and fast solution is PSIA extended JSON protocol (PSIAX JSON), which standardizes the interface of integrating hardware and software for Smart Home System on the basis of PSIA protocol. PSIAX JSON can be customized to meet specific requirements of various devices, and is compatible with extension of text-based-protocol for new types of devices. Therefore, command interpreter concentrates on active area in modules, permitting both original and new protocols to work compatibly in one system. New protocol can instantly respond to new connecting devices with no need to shut down working system, which is the market demand for Smart Home System.The necessity of R&D of PSIA-based Smart Home System is explained after defects of the current system are analyzed, such as that the system shall be shut-down during upgrade, it will take a long cycle to add new devices. Then new functions of the system are described, such as remote access, control/query, as well as auto-update, which is followed by the analysis of status-reporting, processing, and core work flow of data transfer in network. With the subsequent decision being, MVC framework is chose as system design, the Open API and three sub-systems-control panel, control client and remote control app are provided. Also, the design of the communication protocol was described, which based on PSIA and JSON with emphases on its high performance and low latency, including high-speed data transfer and data encryption/decryption. Finally, some necessary discussion of the security, extensibility, and operations of new system are included.
【Key words】 PSIA; JSON; Smart Home; Encrypt; Communication Protocol;
- 【网络出版投稿人】 复旦大学 【网络出版年期】2013年 03期
- 【分类号】TP273.5
- 【被引频次】3
- 【下载频次】151