基于ZigBee的无线温湿度采集系统设计毕业设计论文

摘要

摘要

在物联网盛行的今天,无线传感器网络(WSNM乍为物联网中核心技术之 一,应用更是日益广泛。IEEE802.15.4/ZigBee技术是近些年来通信领域中 的研究热点,它具有低成本、低功耗、低速率等特点和高可靠性、组网简单 灵活等优势,逐步成为WSN事实上的国际标准[1]。ZigBee技术凭借其优势, 赢得了广阔的市场,国内外企业纷纷展开了 ZigBee产品的开发。本文设计 的ZigBee的无线温湿度采集系统,移植性强,可广泛应用于大棚温湿度采 集、家庭办公自动化温控、工业与环境信息监测等场景,有广阔的市场前景。

本文首先对ZigBee协议栈架构进行了系统的分析,然后依据其特点对 系统总体方案进行概要设计。本文设计了参照TI公司的设计方案,硬件选 用TI公司的

CC2530芯片进行设计,软件选用ZigBee协议栈2007 Z-Stack 设计[2]。文章接下来

又分别对软硬件进行详细地设计。对于系统的硬件电路 设计主要包括,分析了

CC2530射频芯片的特性及使用,分别对协调器、路 由器和终端采集节点的核心电

路和外围电路原理图进行设计,其中外围电路 部分主要包括电源电路、复位电路、

USB转串口电路、Debug下载电路以 及网络指示电路等的设计。在系统软件设计

部分,主要对ZigBee协议栈的 配置、网状网程序、设备间的通信、温湿度数据采集和上位机界面等部分进 行了设计,其中上位机界面设计程序使用LabVIEW2010编写。

系统设计完成后,又对所设计的系统进行了组网、通信以及系统功能的 测试,实现了网状网拓扑的组网采集功能,论证了方案的可实施性。接下来 本文对ZigBee网络与C008网络通信进行了分析,给出了实现网络大范围 覆盖的系统搭建方案,用来。文章结尾对设计工作做了总结,并对接下来的 进一步研究设计和系统的应用进行了分析与展望。

关键词无线传感器网络;ZigBee;数据采集;Z-Stack

Abstract

Nowadays the IOT is prevalent, wireless sensor network is used wider and wider as the core of the Internet technology. IEEE802.15.4/ZigBee technology is a hot

I

燕山大学本科毕业设计(论文)

research in the field of communication in recent years. It has the advantages of low cost, low power consumption, low rate, high reliability, simple, flexible and so on. And it gradually become the de facto international standard of the WSN[1]. ZigBee technology has won the broad market, the domestic and foreign companies launched the development of ZigBee products. ZigBee wireless temperature and humidity acquisition system is designed in this paper, the portability is strong, can be widely applied in the greenhouse temperature and humidity collection, family office automation control, industrial and environmental information monitoring scene.

This paper analyzes ZigBee protocol stack, then designs the scheme of the system. The hardware is designed by using CC2530 chip of the TI, the software is designed by using Z-Stack . The design of hardware circuit system includes the core and peripheral circuit of the coordinator, router and end device. The peripheral circuit includes the design of the power circuit, reset circuit, USB conversion circuit, Debug serial circuit and display circuit. While in the process of designing the software of the system, the configuration of the Z-Stack, network programming, devices communication, temperature and humidity data acquisition are designed, and the PC interface is designed by the LabVIEW2010.

Then I test the system function of networking and communication. And the net acquisition function of mesh topology is realized, demonstrates the implementation of the scheme. Next this paper analyzs the bridging of the ZigBee network and C008 wireless network, and gives the system construction scheme for network coverage. At the end of the paper the design work is summarized, and the future design of the study is analyzed and forecasted.

Key words wireless sensor network; data acquisition; ZigBee; Z-Stack

II

目录

目录

摘要 .................................................................................................................... I

Abstract .............................................................................................................. II

第1章绪论 ..................................................................................................... 1

1.1课题的研究背景及意义 .......................................................................... 1 1.2国内外研究的现状 ................................................................................. 2 1.3无线温湿度采集系统设计思路 ............................................................... 2 1.4组织架构 ............................................................................................... 3 第2章ZigBee协议简介 ..................................................................................... 5

2.1 ZigBee技术简介 ................................................................................. 5 2.2 ZigBee网络设备 ................................................................................. 5 2.3 ZigBee协议栈架构 .............................................................................. 7 2.4本章小结 ............................................................................................... 9 第3章系统硬件设计 ........................................................................................ 10

3.1系统整体方案 ...................................................................................... 10 3.2系统硬件平台选择 ............................................................................... 11 3.3协调器电路设计 .................................................................................. 12 3.3.1 CC2530核心电路设计 ................................................................ 13 3.3.2外围电路设计 ................................................................................ 14 3.4终端节点电路设计 ............................................................................... 16 3.5路由器电路设计 .................................................................................. 17 3.6本章小结 ............................................................................................. 17 第4章系统软件设计 ........................................................................................ 18

4.1系统软件平台概述 ............................................................................... 18 4.2 ZigBee设备通信设计 .......................................................................... 19 4.2.1 ZigBee协议栈配置 ...................................................................... 19 4.2.2网状网程序设计 ............................................................................ 25 4.2.3数据的收发 ................................................................................... 27

III

燕山大学本科毕业设计(论文)

4.2.4温湿度数据采集 ............................................................................ 30 4.3 LabVIEW上位机设计 ........................................................................ 35 4.3.1后砸程序实现 ................................................................................ 35 4.3.2前砸布局 ....................................................................................... 37 4.3.3应用程序和安装程序的生成 ........................................................... 37 4.4本章小结 ............................................................................................. 38 第5章网络测试与分析 ..................................................................................... 39

5.1组网测试 ............................................................................................. 39 5.2设备通信测试 ...................................................................................... 40 5.2.1空旷无障碍测试试验 ..................................................................... 40 5.2.2有障碍测试 ................................................................................... 41 5.2.3温湿度采集系统功能测试 .............................................................. 42 5.3测试结果与分析 ................................................................................... 44 5.4 C008搭载ZigBee网络实现方案 ........................................................ 44 5.5本章小结 ............................................................................................. 46 总结 ................................................................................................................. 47 参考文献 .......................................................................................................... 48 致谢 ................................................................................................................. 50 附录1硬件原理图 ............................................................................................ 51 附录2 ZigBee程序 ........................................................................................... 53 附录3 LabVIEW程序图 ................................................................................... 67 附录4外文翻译 ............................................................................................... 69 附录5开题报告 ............................................................................................... 85 附录6文献综述 ............................................................................................... 91 附录7中期报告 ............................................................................................... 96

IV

联系客服:779662525#qq.com(#替换为@) 苏ICP备20003344号-4