摘要
针对物联网(Internet of Things,IOT)异构多元,基于Socket.IO构建物联网网关与资源平台的实时双向通信系统,选用Node.JS作为运行平台,通信部分采用Socket.IO技术,设计网关端与资源平台之间设备验证、设备数据上传与下发、设备心跳三大信令交互过程,用Redis数据库进行对缓存数据的快速存取。对物联网网关双向通信系统功能和系统性能测试,结果表明,采用Socket.IO技术可提高系统通信效率,实现物联网网关物理实体数据模型与物联网资源平台注册的虚拟实体数据模型同步更新。
For the heterogeneous diversity of the Internet of Things,a real time bidirectional communication system between the Internet of Things gateway and resource platform based on Socket.IO is established.Node.JS is selected as the operating platform.The communication part uses Socket.IO technology to design the three signaling interaction process between the Internet of Things gateway and the resource platform,they are device verification,equipment data upload and down,and device heartbeat.Redis database is used to achieve fast access of cache data.Function test and performance test is used for bidirectional communication system of Internet of Things gateway.The test results show that using Socket.IO technology can improve the communication efficiency of the system,and realize the synchronization update of the database between the Internet of Things gateway physical entity data model and the virtual entity data model registered on Internet of Things resource platform.
出处
《西安邮电大学学报》
2017年第6期111-116,共6页
Journal of Xi’an University of Posts and Telecommunications
关键词
物联网网关
SocketIO
实时双向通信
Internet of Things gateway
Socket.IO
real time bidirectional communication