安卓平台ZigBee远程监测应用网关设计与实现
发布时间:2018-04-06 03:24
本文选题:环境参量测量 切入点:ZigBee 出处:《西安工业大学》2014年硕士论文
【摘要】:获取第一手野外监测数据可以为研究环境、气候变化及自然灾害提供数据支持,长期以来此类监测主要依靠人工监测手段,易受天气影响且可靠性差,也无法满足野外大规模长期监测的需求。基于ZigBee的野外环境参量自动监测系统,利用各种高精度传感器实现对监测区域内环境信息的自动监控,使研究人员在第一时间获知环境特性参量的变化,采取及时有效的应对措施,可以大大减轻野外人工监测强度。 本文针对野外环境参量自动监测系统中的WSN网关进行设计,介绍了远程通信网关的基本功能和构成,分析了目前WSN网关采用中心节点与PC机通过串口相连形成网关、在中心节点扩展网络通信模块作为网关等方式及其所存在的需要铺设线缆、专用现场机房等开销大、实施不便的缺点,设计了一种基于Android平台的WSN远程应用网关。系统在Eclipse-android环境下开发完成,开发成本低且应用程序具有很好的移植性,利用无线通信开发包实现的无线传输方式,受监测环境约束小,设施简便,并可解决一般网关数据储存不足的问题。 本方案中,采用华为V880类型移动终端作为载体来完成通信中转功能,并根据网关的功能需求分析,进一步完善网关的管理功能。在网关通信功能开发中,包括与底层协调节点的蓝牙通信以及经由3G网连入互联网与监测中心的网络通信。在此基础上,分析WSN时间同步的设计方法,选择UTC时间来作为系统同步基准信号;数据处理方面,在Android平台上开发专用的SQLite数据库进行数据的管理储存;实现系统节点配置管理及任务调度,确保所接收信息的正确性并准确发布测量任务;完成数据在网关部分的备份保留;在测量任务及状态上报部分,采用FTP上传来实现与监测中心服务器的交互。 最后介绍了网关开发环境及测试情况,采用串口调试助手SSCOM3.2、 TCP/UDPSocket调试工具、Quick Easy FTP Server4.0.0来对设计的应用网关进行模块和整体功能测试。结果表明,此应用网关能实现上下层通信、网关多项管理功能及数据上报等诸多要求。
[Abstract]:Obtaining first-hand field monitoring data can provide data support for the research environment, climate change and natural disasters. For a long time, such monitoring mainly relies on manual monitoring, which is vulnerable to weather and has poor reliability.It is also unable to meet the needs of large-scale long-term monitoring in the field.Based on the field environment parameter automatic monitoring system based on ZigBee, various kinds of high precision sensors are used to realize the automatic monitoring of the environmental information in the monitoring area, so that the researchers can know the change of the environmental characteristic parameter in the first time.Timely and effective response measures can greatly reduce the intensity of field manual monitoring.In this paper, the WSN gateway in the field environment parameter automatic monitoring system is designed, the basic function and structure of the remote communication gateway are introduced, and the current WSN gateway which is connected by the central node and PC through serial port is analyzed.In order to extend the network communication module as a gateway at the central node and its disadvantages such as laying cable, special field computer room and so on, a WSN remote application gateway based on Android platform is designed.The system is developed under the Eclipse-android environment, the development cost is low and the application program has good portability. The wireless transmission mode realized by the wireless communication development kit is less constrained by the monitoring environment, and the facilities are simple and convenient.And can solve the general gateway data storage problem.In this scheme, Huawei V880 mobile terminal is used as the carrier to complete the communication transfer function, and the management function of the gateway is further improved according to the functional requirements of the gateway.In the development of gateway communication function, the Bluetooth communication with the underlying coordination node and the network communication between the Internet and the monitoring center via 3G network are included.On this basis, the design method of WSN time synchronization is analyzed, and the UTC time is selected as the system synchronization reference signal. In the aspect of data processing, the special SQLite database is developed on the Android platform to manage and store the data.System node configuration management and task scheduling to ensure the correctness of the received information and accurate release of the measurement task; complete the backup of data in the gateway part of the reservation; in the measurement task and status reporting section,FTP upload is used to realize the interaction with the monitoring center server.Finally, this paper introduces the development environment and testing situation of the gateway, adopts serial port debugging assistant SSCOM3.2 and TCP/UDPSocket debugging tool Quick Easy FTP Server4.0.0 to test the module and the whole function of the designed application gateway.The results show that the application gateway can realize the communication between the upper and lower layers, the management functions of the gateway and the data reporting requirements.
【学位授予单位】:西安工业大学
【学位级别】:硕士
【学位授予年份】:2014
【分类号】:TN915.05;TN92
【参考文献】
相关期刊论文 前6条
1 李良;朱善安;;基于Java的串口通信[J];电子器件;2007年02期
2 李国刚;;从传统走向现代——发展中的中国环境监测[J];环境监测管理与技术;2005年06期
3 刘新;吴秋峰;;无线个域网技术及相关协议[J];计算机工程;2006年22期
4 高键;方滨;尹金玉;胡葛军;;ZigBee无线通信网络节点设计与组网实现[J];计算机测量与控制;2008年12期
5 周海涛;高兴锁;江晓峰;;基于java数据采集串口通讯的设计和实现[J];微计算机信息;2006年04期
6 黄志伟;王光焱;;论生态环境监测[J];污染防治技术;2005年04期
相关博士学位论文 前1条
1 罗丹彦;无线传感器网络能量高效组建关键技术的研究[D];哈尔滨工业大学;2009年
,本文编号:1717764
本文链接:https://www.wllwen.com/kejilunwen/wltx/1717764.html