基于Zigbee的WPAN灯光控制系统的研究与设计-毕业设计论文

摘要

摘 要

随着计算机技术和无线通讯技术的快速发展和人们生活水平的提高,在家庭中使用网络化智能家居系统,显然人们已经不满足于单纯的提供亮度这一功能。Zigbee技术是一种短距离、低速率、低功耗、低成本和可靠性高的无线通信技术,这些特点使得该技术弥补了低功耗、低成本和低速率的无线通讯市场的空缺,其应用前景被十分看好。

本文提出了一套基于Zigbee技术的无线智能灯光控制系统的方案,该方案从Zigbee技术介绍、基于Zigbee的WPAN灯光控制系统的设计与实现、Zigbee技术与几种常用的无线通讯技术的比较,硬件设计和软件设计等方面进行了设计。通过对Jennic公司的JN51xx系列芯片的性能进行了比较,最终选择JN5139模块进行硬件系统设计。并对无线传感器网络、GAINSJ上的温湿度传感器的工作原理、性能特点进行了分析说明。软件设计部分从软件平台介绍、终端设备软件实现、主程序三个方面着手进行设计,最终使得系统能共实现自动组网、设备绑定、普通照明等功能。成功实现了本次设计。

关键词:Zigbee技术,JN5139模块,自动组网,灯光控制

I

Abstract

Abstract

IEEE802.15.4defines a new standard of wireless chip technology with the characterics of short-range,low power consumption,low ratio,and high reliability.Zigbee is a group technical standards based on the IEEE 802.15.4 approved by the wireless standard about the network、security and application software.Not only the name of 802.15.4 in which IEEE deals only with low-level MAC layer and physical layer protocol,Zigbee Alliance standardized its network layer protocol and API layer.

Zigbee technology is targeting the fields of industrial,home automation,remote control,automotive automation,automation of agricultural and medical care.

This paper first introduces Zigbee technology in the background, present situation and development prospect and the history of the basic technical specifications Zigbee technology and other several common wireless technology, after comparing. And respectively in two aspects of hardware and software for lighting control system design and research, and finally worked out a simple and feasible wireless lighting system solutions.

Keywords: Zigbee,ieee802.15.4,WAPN,wireless lighting

II

目录

目 录

摘 要 .................................................................... I Abstract ..................................................................................................... 错误!未定义书签。 第1章 绪 论 ............................................................................................................................ 1

1.1 基于Zigbee灯光控制系统研究的背景 ..................................................................... 1 1.2 Zigbee技术介绍 ........................................................................................................... 1

1.2.1 Zigbee的概念及特点 ......................................................................................... 1 1.2.2 Zigbee技术的历史现状及发展前景 ................................................................. 2 1.2.3 Zigbee技术的发展方向 ..................................................................................... 3 1.3 Zigbee与几种无线通信技术的比较 ........................................................................... 4

1.3.1 Zigbee技术 ......................................................................................................... 4 1.3.2 蓝牙技术 ............................................................................................................ 4 1.3.3 Wi-Fi技术的比较 ............................................................................................... 5 1.3.4 红外技术 ............................................................................................................ 5 1.4 本文研究内容及结构安排 .......................................................................................... 6 第2章 基于Zigbee技术的WPAN灯光控制系统设计 ........................................................ 7

2.1 基于Zigbee的智能照明系统的实现 ......................................................................... 7

2.1.1 Zigbee无线照明的特点 ..................................................................................... 7 2.2 控制系统总体设计 ...................................................................................................... 7 2.3 Zigbee网络的新建与加入 ........................................................................................... 9 第3章 硬件设计 .................................................................................................................... 11

3.1 Jennic芯片 .................................................................................................................. 11

3.1.1 JN51xx系列芯片介绍 ...................................................................................... 11 3.1.2 Jennic:JN5139平台介绍................................................................................ 12 3.1.3 GAINSJ开发板................................................................................................. 12 3.1.4 JN5139模块 ...................................................................................................... 14 3.2 无线传感器网络 ........................................................................................................ 17

3.2.1 GAINSJ传感器................................................................................................. 18 3.2.2 温湿度传感器 ......................................................................................................... 19 3.3 Zigbee芯片比较Zigbee芯片采用器件分析 ............................................................ 20 3.4 系统硬件模块设计 .................................................................................................... 23

i

目录

第4章 软件设计 .................................................................................................................... 24

4.1 软件平台介绍 ............................................................................................................ 24

4.1.1基于Zigbee协议栈开发 .................................................................................. 24 4.1.2 Zigbee协议栈的开发API ................................................................................ 25 4.1.3 ZDP接口函数 ................................................................................................... 26 4.2 终端设备软件实现 .................................................................................................... 29

4.2.1 协调器工作流程 .............................................................................................. 29 4.2.2 终端设备软件实现 .......................................................................................... 31 4.3 主程序 ........................................................................................................................ 32 第5章 总结与展望 ................................................................................................................ 34

5.1 总结 ............................................................................................................................ 34 5.2 不足和展望 ................................................................................................................ 35 致 谢 ...................................................................................................................................... 36 参考文献 .................................................................................................. 错误!未定义书签。

ii

联系客服:779662525#qq.com(#替换为@)