【正文】
大連海事大學(xué) 畢 業(yè) 論 文 二 ○ 一 四 年六月 ┊┊┊┊┊┊┊裝┊┊┊┊┊┊┊訂┊┊┊┊┊┊┊線┊┊┊┊┊┊┊ 基于 ZigBee技術(shù)的溫度采集系統(tǒng)設(shè)計(jì) 專業(yè)班級(jí): 通信工程 2 班 姓 名: 羅景元 指導(dǎo)教師: 譚克俊 信息科學(xué)技術(shù)學(xué)院 I 摘 要 近年來(lái)隨著無(wú)線通信、計(jì)算機(jī)傳感技術(shù)的飛速發(fā)展和融合,無(wú)線傳感網(wǎng)技術(shù)( WSN)應(yīng)運(yùn)而生, 而 Zigbee 以其低成本、低數(shù)據(jù)速率、超低功耗的特點(diǎn)滿足 了當(dāng)前無(wú)線傳感網(wǎng)絡(luò)技術(shù)的應(yīng)用與普及。本論文研究課題是基于 Zigbee 的無(wú)線溫度采集系統(tǒng),該系統(tǒng)可以應(yīng)用到智能家居領(lǐng)域從而節(jié)省人力和能源,具有非常廣闊的應(yīng)用前景和研究?jī)r(jià)值。 文章 首先介紹了 Zigbee 技術(shù)與網(wǎng)絡(luò)拓?fù)浣Y(jié)構(gòu),通過(guò)介紹無(wú)線溫度采集系統(tǒng)的基本原理,制定系統(tǒng)總體設(shè)計(jì)方案。進(jìn)而完成了對(duì)控制模塊、終端節(jié)點(diǎn)相關(guān)軟硬件的設(shè)計(jì)。系統(tǒng) 采用星型網(wǎng)絡(luò)拓?fù)浣Y(jié)構(gòu),建立了一個(gè)主節(jié)點(diǎn)與多個(gè)從節(jié)點(diǎn)搭建的自組網(wǎng), 來(lái) 實(shí)現(xiàn)無(wú)線數(shù)據(jù)傳輸。通過(guò)數(shù)字 溫度傳感器 SHT11 采集溫度數(shù)據(jù), 在Zigbee 終端節(jié)點(diǎn)根據(jù)設(shè)定好的路由協(xié)議多跳上傳至協(xié)調(diào)器 節(jié)點(diǎn),協(xié)調(diào)器節(jié)點(diǎn)將收集到的溫度數(shù)據(jù)處理由串口 線路傳給上位 PC 機(jī) ,在 PC 機(jī)上的串口終端上實(shí)時(shí)顯示監(jiān)測(cè)收集到的數(shù)據(jù)。 最后 對(duì)傳感器模塊硬件電路、無(wú)線收發(fā)模塊硬件電路以及整個(gè)系統(tǒng) 進(jìn)行了 測(cè)試, 結(jié)果顯示系統(tǒng)運(yùn)行平穩(wěn),驗(yàn)證了本系統(tǒng)設(shè)計(jì)方案的可行性 。 關(guān)鍵詞:無(wú)線通信 ;無(wú)線傳感網(wǎng) ; ZigBee;溫度采集 II ABSTRACT In recent years, with the rapid development of wireless munications, puter sensing technology and the fusion, wireless sensor work technology(WSN) arises at the historic moment. known for its low cost, the characteristics of the low data rate, low power consumption Zigbee satisfy the current applications of wireless sensor work technology and popularization. This thesis research topic is based on the Zigbee wireless temperature acquisition system,The system can be applied to the field of intelligent household saving manpower and energy. it has very broad application prospects and research value. This paper introduces the Zigbee technology and the work topology,Through the introduction of the basic principle of wireless temperature acquisition system, the system overall design scheme,Then pleted the control module, terminal node related hardware and software USES the star work topology structure, set up a master node and multiple slave nodes set up adhoc work, to realize wireless data digital temperature sensor SHT11 temperature data collected in Zigbee terminal nodes according to set good routing protocol jump uploaded to the coordinator node,The coordinator node will be collected by the temperature data processing by a serial line to the upper PC, and displayed in real time on PC serial port terminal monitoring data collected. At the end of the sensor module, wireless transceiver module hardware circuit and the whole system is tested, the results show that the system runs stably, verify the feasibility of the system design. KEY WORDS: wireless munication。Wireless sensor work; ZigBee;temperature acquisition III 目 錄 第 1 章 緒論 ..................................................................................................................... 1 課題背景與意義 ................................................................................................. 1 無(wú)線溫度采集 的現(xiàn)狀與未來(lái)展望 ..................................................................... 1 論文的主要研究?jī)?nèi)容 ......................................................................................... 2 第 2 章 Zigbee 技術(shù) ......................................................................................................... 4 Zigbee 技術(shù)簡(jiǎn)介 ................................................................................................. 4 Zigbee 是什么 ........................................................................................... 4 Zigbee 的優(yōu)勢(shì) ........................................................................................... 4 Zigbee 的主要特性 ................................................................................... 5 Zigbee 協(xié)議棧結(jié)構(gòu) ............................................................................................. 5 ZigBee 的網(wǎng)絡(luò)拓?fù)浣Y(jié)構(gòu) .................................................................................... 7 星形拓?fù)浣Y(jié)構(gòu) ........................................................................................... 7 樹(shù)形拓?fù)浣Y(jié)構(gòu) ........................................................................................... 8 Mesh拓?fù)浣Y(jié)構(gòu) ......................................................................................... 8 IEEE 規(guī)范 ............................................................................................ 9 物理層規(guī)范 ............................................................................................. 10 MAC 層規(guī)范 ............................................................................................11 第 3 章 溫度采集系統(tǒng)的硬件設(shè)計(jì) ............................................................................... 13 系統(tǒng)整體設(shè)計(jì) ................................................................................................... 13 硬件設(shè)計(jì) ........................................................................................................... 14 系統(tǒng)硬件平臺(tái) ......................................................................................... 14 ZigBee 通信模塊 .................................................................................... 15 通信模塊電路設(shè)計(jì) ................................................................................. 16 溫濕度數(shù)據(jù)采集原理 ....................................................................................... 17 溫濕度傳感器 SHT10 ...................................................................................... 18 第 4 章 溫度采集系統(tǒng)的軟件設(shè)計(jì) ............................................................................... 20 系統(tǒng)軟件平臺(tái)概述 ........................................................................................... 20 ZStack2020 協(xié)議棧軟件 ................................................................................. 21 ZStack軟件架構(gòu) ................................................................................... 21 ZStack軟件流程 ................................................................................... 23 VI 程序設(shè)計(jì) ........................................................................................................... 24 第 5 章 總結(jié) ............