摘要
在环境监测过程中要求传感器和数据传输设备能够长时间的稳定工作,提出了一种面向环境监测的LoRa自组网网关的设计。节点子设备和网关基于STM32芯片进行开发,节点数据传输设备和网关接收设备采用LoRa模块,网关的LoRa接入模块通过自组网可实现接收多个LoRa节点数据的功能;节点传感器采用AHT10温湿度传感器和BH1750光照度传感器进行实时数据采集,每个节点板还内置三个ADC电压采样电路,可以准确检测LoRa模块及各个传感器模块的工作电压是否稳定;网关通过ESP8266模块可以连接Wi Fi,以此来建立与服务器的数据通信,同时采用MQTT协议可将各节点子设备的数据发布至服务器进行可视化显示,有利于用户对节点数据的实时监控和管理。LoRa自组网私有协议大大提高了网关的实用性、稳定性和可靠性,实验验证了该网关能够满足在工业、农业以及其他环境下的监测需求。
In the process of environmental monitoring,sensors and data transmission equipments have to work steadily for a long time,so the design of LoRa ad-hoc network gateway for environmental monitoring is put forward.According to the design,node sub-equipments and the gateway are developed based on STM32 chip,node data transmission equipments and gateway receiving equipments adopt LoRa module,and LoRa access module of gateway can receive data of multiple LoRa nodes through ad-hoc network.Node sensors use AHT10 temperature and humidity sensors and BH1750 light intensity sensors for real-time data collection.Each node board is also equipped with three ADC voltage sampling circuits inside to accurately detect the working voltage stability of the LoRa module and every sensor module.The gateway can connect WiFi through ESP8266 module to make data communication with the server.At the same time,MQTT protocol can be used to publish the data of node sub-equipments to the server for visual display,which is helpful for users to monitor and manage node data in real time.The private protocol of LoRa ad hoc network can greatly improve the practicability,stability and reliability of the gateway,and experiments have verified that this gateway can meet the monitoring requirements for industrial,agricultural and other environmental conditions.
作者
李文豪
陈仲生
方乡
LI Wen-hao;CHEN Zhong-sheng;FANG Xiang(School of Electrical and Information Engineering,Hunan University of Technology,Zhuzhou 412007,China)
出处
《电工电气》
2023年第4期53-59,共7页
Electrotechnics Electric
基金
国家自然科学基金项目(51975206)。
关键词
环境监测
LoRa传输
自组网
网关
传感器
environmental monitoring
LoRa transmission
ad-hoc network
gateway
sensor