摘要
针对物联网(IoT)自身复杂的网络体系以及物联网通信协议不标准化问题,设计一种基于消息队列遥测传输(MQTT)协议的物联网网关双向通信系统。该系统以Node.JS为运行平台,采用MongoDB与Redis非关系型数据库完成对数据的快速存取,通过分别对物联网平台和网关进行模块划分,实现网关与平台之间的设备认证、网关模型建立、数据上传与下发以及设备心跳。对系统进行功能和性能测试,结果表明:MQTT协议可实现网关与平台的双向通信,可同时接收500个设备的连接请求。
Aiming at the problem of complex network system of the Internet of things(IoT)and the nonstandard communication protocol of the IoT,a two-way communication system of the gateway of the IoT based on MQTT protocol is designed.The system uses Node.JS in order to run the platform,MongoDB and Redis non relational database are used to complete the rapid access to data.Through the module division of the Internet of things platform and gateway,the device authentication,gateway model establishment,data upload and distribution and device heartbeat between gateway and platform are realized.The function and performance of the system are tested.The results show that the MQTT protocol can realize the two-way communication between the gateway and the platform,and can receive the connection requests from 500 devices at the same time.
作者
陈文艺
梁宁宁
杨辉
CHEN Wenyi;LIANG Ningning;YANG Hui(School of Modern Post,Xi’an University of Posts and Telecommunications,Xi’an 710061,China;School of Communication and Information Engineering,Xi’an University of Posts and Telecommunications,Xi’an 710121,China)
出处
《传感器与微系统》
CSCD
北大核心
2022年第8期100-103,共4页
Transducer and Microsystem Technologies
关键词
物联网
消息队列遥测传输协议
双向通信
网关
云平台
Internet of things(IoT)
message queuing telemetry transport(MQTT)protocol
two-way communication
gateway
cloud platform