摘 要:LoRa 是目前窄带物联网领域的研究热点,文章选取开源 ChirpStack 作为 LoRaWan Server,分析了 Docker 容器技术特点,基于 Docker 容器技术对 ChirpStack 组件的安装、配置和部署流程进行验证,对 LoRa 节点的入网方式和工作模式进行分析。文章选用 XC20 型 LoRa 模组和 TJ81 型 LoRa 网关进行组网和数据传输,经验证 LoRa 节点数据经网关透传后成功上行至 LoRaWan Server,可通过 MQTT 协议实现数据上下行,系统运行稳定。研究为后续使用 LoRa 技术进行物联网应用层接入提供了有力的云平台支撑。
关键词:LoRa;LoRaWAN;Docker;ChirpStack;MQTT
DOI:10.19850/j.cnki.2096-4706.2022.011.005
基金项目:江苏省职业技术教育学会研究课题(XHYBLX2021003);2020 年江阴职业技术学院教改课题(2021JGKT-JS-01)
中图分类号:TP311;TN929.5 文献标识码:A 文章编号:2096-4706(2022)11-0019-04
Application Research of Docker and ChirpStack in LoRaWan Cloud Service
NI Feng, JIN Haifeng, SU Chunfang
(Computer Science Department, Jiangyin Polytechnic College, Jiangyin 214405, China)
Abstract: LoRa is a research hotspot in the field of narrow-band Internet of Things. This paper selects open-source ChirpStack as LoRaWAN Server, analyzes the technical characteristics of Docker container, verifies the installation, configuration and deployment process of ChirpStack components based on Docker container technology, and analyzes the network access mode and working mode of LoRa node. This paper selects XC20 type LoRa module and TJ81 type LoRa gateway to carry out networking and data transmission. It is verified that LoRa node data is successfully uplink to LoRaWAN Server after transparent transmission through the gateway. And it realizes data uplink and downlink through MQTT protocol, and the system runs stably. The research provides a strong cloud platform support for the subsequent use of Lora technology for Internet of Things application layer access.
Keywords: LoRa; LoRaWAN; Docker; ChirpStack; MQTT
参考文献:
[1] 胡连华,徐卓,陈海峰 .LoRa 与 NB-IoT 通信技术研究现状 [J]. 传感器世界,2021,27(9):1-6+11.
[2] 顾超杰,谭睿 . 赋能新一代物联网的 LoRaWAN 技术 [J].物联网学报,2021,5(2):18-25.
[3] 刘洋,赵瑞锋,李波,等 . 基于 Docker 技术的静态安全分析云计算应用 [J]. 电力科学与技术学报,2021,36(4):181-187.
[4] 杨彬蔚 .LoraWAN 技术及其在物联网中的应用 [J]. 数字技术与应用,2021,39(4):43-45.
[5] 黄迪,徐湛,田志刚,等 . 基于 MQTT 协议的 Mosquitto数据订阅机制优化与性能分析 [J]. 物联网技术,2021,11(11):29-32.
作者简介:倪峰(1981.07—),男,汉族,江苏张家港人,讲师,硕士研究生,研究方向:物联网技术与应用、嵌入式系统开发。