基于ZigBee技术的家居环境监测系统的设计与实现摘要:环境是人们赖以生存的必要条件,随着现代化信息技术的迅猛发展和提高,人们对自己的生活环境有了更高的要求,希望自己的生活环境健康、舒适。近些年,特别是人类在信息技术上的快速发展,使得各种无线通信技术有了前所未有的突破,无线技术在智能家居上的应用将越来越广泛。因此,本文利用ZigBee技术设计出了这种无线家居环境监测系统。该系统中,传感器节点(即终端节点)可以选择温度、湿度、亮度等传感器,并且可以根据需求添加或减少传感器节点。所以本文无线网络终端模块选用的CC2530芯片为平台,以实现信息数据的接收与发送。此芯片内置8051内核的单片机内核,并有一定的内存空间,故只要加上些少许外围电路就可以实现功能,无需再加单片机。在数据接收端(即协调器节点)收到的数据处理传送到PC机上显示。为了让用户方便监测数据,本文在PC机上设计了显示界面,让人们更加方便操作及监测数据。本系统运行可靠,能正确获取环境数据,实现实时监测。关键词:ZigBee;无线传感器网络;环境监测;智能家居DesignandRealizationofHouseholdEnvironmentMonitoringSystemBasedonZigBeeTechnologyAbstract:Environmentisanecessaryconditionforsurvival.Withtherapiddevelopmentandimprovementofmoderninformationtechnology,peoplehavehigherrequirementsfortheirlivingenvironment.Theyhopetheylivehealthilyandcomfortably.Duringrecentyears,especiallythequickdevelopmentofinformationtechnologywhichenablesallkindsofwirelesscommunicationtechnologytoimproveunprecedentedly.So,thethesisutilizesZigBeetechnologytoexploitanddesignthewirelesshomeenvironmentalmonitoringsystem.Inthesystem,thesensornode(aswellasterminalnode)canchoosetemperature,humidity,brightnessetc.Therefore,thewirelessnetworkterminalmoduleofthethesischoosetheCC2530chipastheplatformforrealizingreceivingandsendingoftheinformationdata.Thechiphasasinglechipwith8051coreandhascertainmemoryspace.Thus,itcanrealizeitsfunctionbyaddingalittleperipheralcircuitwithoutextrasinglechip.Thereceiveddataprocessinginthedatareceivingterminal(thatiscoordinatornode)sendtoPCforpeople’sreal-timemonitoring.ThethesisdesignedthedisplayinterfaceinPCforpeople’soperationanddatamonitoringconveniently.Thesystemworksreliablywhichcanobtaincorrectenvironmentaldataandrealizerealtimemonitoring.Keywords:ZigBee;Wirelesssensornetworks;environmentalmonitoring;smarthome目录前言.....................................................................1第1章绪论............................................................21.1本文的研究背景...................................................21.2智能家居环境监测系统的特点.......................................21.3本文主要研究内容.................................................31.4开发工具及开发环境的介绍........................................31.4.1系统软件开发环境介绍...............................................41.4.2上位机软件开发环境介绍.............................................5第2章ZigBee技术的概述.......................................72.1ZigBee技术的概念................................................72.2ZigBee技术的特点................................................82.3ZigBee网络设备组成和网络结构....................................82.4ZigBee的协议分析...............................................102.4.1网络层(NWK)....................................................102.4.2应用层(APP)....................................................112.5本章小结........................................................12第3章系统的总体设计.............................