基于WiFi与ZigBee的山区农田环境监测系统研究
2019-04-04韩团军
韩团军
关键词: 监测系统; 实时采集; ZigBee; WiFi; 环境监测; CC2430
中图分类号: TN926+.23?34 文献标识码: A 文章编号: 1004?373X(2019)02?0014?04
Research on mountainous farmland environmental monitoring
system based on WiFi and ZigBee
HAN Tuanjun
(School of Physics & Telecommunications Engineering, Shaanxi University of Technology, Hanzhong 723000, China)
Abstract: A mountainous farmland environmental monitoring system based on WiFi and ZigBee is designed according to the environmental characteristics and application requirements of mountainous areas, so as to solve the limitations of the traditional mountainous farmland environmental monitoring system. The temperature?humidity sensor, illumination sensor and CO2 sensor are selected for the system to conduct real?time acquisition of environmental parameters. The CC2430 radio frequency chip is adopted to complete the function of the ZigBee protocol. Data transmission and connection to the upper computer are realized by combining with the WiFi protocol. The Web server is used for the personal computer to display, process and store data. The experimental results show that the system can realize accurate detection of environmental parameters, which can expand its application range.
Keywords: monitoring system; real?time acquisition; ZigBee; WiFi; environment monitoring; CC2430
随着我国对农业生产环境要求不断提升和农业信息化水平的提高,实现山区农业环境参数实时监测,智能传输和数据处理具有重要的战略应用价值。传统的无线监测网络采用单一的无线传输模式,由于监测点环境广泛性和特殊性,这种监测方法无法解决使用时的耗能和传输速率问题,而且安装不变[1?3]。
为了解决以上问题,结合山区地貌的实际环境本文提出基于WiFi与ZigBee技术的环境监测系统。该方法是将ZigBee技术的低功耗、可自组网和多跳传输的特点和具有易于和工业以太网相互融合传输速率比较高的WiFi技术相结合。可以实现在低功耗和减少传感器数量基础上对当地環境的精确测量[4?6]。
1 监测系统的硬件设计方案
该系统是通过无线传感器节点完成对当地环境参数的采集并将采集到的参数通过ZigBee协议传输到ZigBee?WiFi网关。由于ZigBee技术无法与外网直接融合,所以必须使用WiFi技术作为中转,ZigBee?WiFi网关作用就是实现协议之间的转换。
通过协议网关转换,参数就可以在ZigBee和WiFi之间进行传输和应用。上位机接收、存储和显示通过ZigBee传输到ZigBee?WiFi网关的传感器节点采集到的数据[7?9]。整个系统的硬件框图如图1所示。

2 硬件接口的设计
智能传感器节点的硬件结构,ZigBee路由节点硬件的关键是选择能耗和成本比较合适的微处理器芯片,为了增加节点数据的处理和存储能力,采用TI公司片上系统CC2430通信模块。……
