【正文】
計(jì) 大 賽 4 成一個(gè)網(wǎng)絡(luò),甚至可以通過(guò)網(wǎng)關(guān)連接 到 Inter,使得用戶可以方便地在任何地方監(jiān)控自己家里的情況。 基于 zigbee 的無(wú)線測(cè)溫系統(tǒng)是一種低成本,低功耗,近距離,高安全,短時(shí)延,免執(zhí)照頻段的一種技術(shù),與其他技術(shù)相比它的優(yōu)勢(shì)是顯而易見(jiàn)的。 當(dāng)前很多無(wú)線傳感器裝置采用紅外傳輸,但是紅外技術(shù)用于傳感器裝置的缺陷顯而易見(jiàn),它必須在可視的范圍內(nèi)定向傳輸,中間不能有任何阻擋,同時(shí)要求設(shè)備的位置相對(duì)固定。 ? 高壓電氣設(shè)備,由于故障試手段有限,特別在開(kāi)關(guān)箱和封閉母線內(nèi)溫度超限點(diǎn) 更不易被發(fā)現(xiàn)。因而溫度的無(wú)線傳輸顯的越來(lái)越重要,比如以下兩種場(chǎng)合就非常適合采用無(wú)線測(cè)溫技術(shù): ? 運(yùn)行中的電氣設(shè)備通常工作在高電壓和大電流狀態(tài),設(shè)備中存在的某些缺陷會(huì)導(dǎo)致設(shè)備部件的異常溫度升高。傳統(tǒng)的溫度測(cè)量方式測(cè)量周期長(zhǎng),施工復(fù)雜,不便于管理,并且在有些特定場(chǎng)合如封閉,高壓等環(huán)境下根本無(wú)法測(cè)量。 關(guān)鍵詞: ZigBee; CC2530;無(wú)線 傳感器網(wǎng)絡(luò);溫度采集 博 創(chuàng) 杯 全 國(guó) 大 學(xué) 生 嵌 入 式 設(shè) 計(jì) 大 賽 2 Abstract In the traditional temperature acquisition system, the method to connect nodes is wired, this way possesses the characteristic of plex layout and poor extensibility. In fact, the wired way even cannot be utilized in some application. Therefore, the ideal way to collect and transmit data is employing wireless connection. As a kind of emerging shortdistant, lowpower consumption and lowcost wireless munication technology, ZigBee has be widely introduced to industry controlling, consumer electronics, appliance automation, medical monitoring and so on. System is divided into hardware and software parts, first from the hardware aspects of the design of wireless temperature measurement module, wireless munication module. Software aspects of the design of the PC monitoring module by VC ++ MFC library to prepare, the client receives realtime module development kit from the android programming environment wireless temperature data, realtime display, ZigBee wireless work coordinator through serial port node address information and the current temperature value to the host puter monitoring module, the PC monitor module extracts the address and temperature values, and display realtime transfer to the client. PC monitoring module also draws a line graph temperature changes, reflecting the trend of temperature variations. Key words: ZigBee; CC2530; Wireless sensor works; Temperature acquisition 博 創(chuàng) 杯 全 國(guó) 大 學(xué) 生 嵌 入 式 設(shè) 計(jì) 大 賽 3 第 1章 緒 論 作品背景及意義 在現(xiàn)代工業(yè)領(lǐng)域中,溫度是一個(gè)非常重要的一個(gè)測(cè)量參數(shù)。軟件方面設(shè)計(jì)了 上位機(jī) 監(jiān)控模塊, 由 VC++ 函數(shù)庫(kù)編寫(xiě)完成,客戶端 實(shí)時(shí)接收模塊, 由 android 開(kāi)發(fā)套件環(huán)境 編程實(shí)現(xiàn)無(wú)線測(cè)溫?cái)?shù)據(jù)的實(shí)時(shí)顯示, ZigBee 無(wú)線網(wǎng)絡(luò)中的協(xié)調(diào)器通過(guò)串口將節(jié)點(diǎn)地址信息和當(dāng)前溫度值傳給上位機(jī) 監(jiān)控模塊 ,上位機(jī) 監(jiān)控模塊 提取出地址和溫度值,并實(shí)時(shí)的顯示出來(lái)傳送給客戶端 。設(shè)計(jì)出一種基于 zigbee為基礎(chǔ)的無(wú)線溫度采集系統(tǒng)。因此,最理想的方法是采用無(wú)線連接收集和傳送數(shù)據(jù)。 2020 第九屆 “博創(chuàng)杯 ”全國(guó)大學(xué)生嵌入式設(shè)計(jì)大賽 作品設(shè)計(jì)報(bào)告 基于 zigbee 協(xié)議的無(wú)線測(cè)溫系統(tǒng)的設(shè)計(jì)與實(shí)現(xiàn) Design and implementation of wireless temperature measuring system based on ZigBee protocol 設(shè) 計(jì) 報(bào) 告 參賽編號(hào): 參賽學(xué)校: 作 者: 指導(dǎo)教師: 是否恩智浦單項(xiàng):是 否 √ 目 錄 摘 要 ...................................................................................................................... 1 第 1 章 緒 論 ..................................................................................................... 3 作品背景及意義 ................................................................................ 3 ZigBee 的應(yīng)用 ...................................................................................... 3 研究現(xiàn)狀 ............................................................................................ 4 zigbee 協(xié)議 ................................................................................... 4 溫度測(cè)量 ..................................................................................... 5 本文結(jié)構(gòu) ............................................................................................ 6 第 2 章 系統(tǒng)方案 ............................................................................................... 7 總體方案 ............................................................................................ 7 系統(tǒng)各部分方案 ................................................................................ 7 數(shù)據(jù)采集模塊 ............................................................................. 7 ZigBee 通信模塊 ......................................................................... 8 手機(jī) 移動(dòng)客戶端模塊 ................................................................. 8 PC 機(jī)模塊 .................................................................................... 8 第 3 章 功能與指標(biāo) ........................................................................................... 9 系統(tǒng)功能 ............................................................................................ 9 技術(shù)指標(biāo) ............................................................................................ 9 第 4 章 實(shí)現(xiàn)原理 ............................................................................................. 10 ZigBee 協(xié)議棧結(jié)構(gòu) ............................................................................ 10 Zigbee 網(wǎng)絡(luò)拓?fù)浣Y(jié)構(gòu) ......................................................................... 12 IT ZStack 協(xié)議棧介紹 ....................................................................... 13 網(wǎng)絡(luò)的組建過(guò)程 .............................................................................. 16 消息接收函數(shù) .................................................................................. 16 android 套件開(kāi)發(fā) 環(huán)境搭建 ......................................................... 17 VC++ 庫(kù)開(kāi)發(fā)環(huán)境編程 ........................................................ 18 第 5 章 硬件設(shè)計(jì) ............................................................................................. 20 無(wú)線測(cè)溫模塊 DS18B20 ................................................................. 20 ZigBee 無(wú)線通信、微處理器模塊 ................................................... 21 終端 PC 機(jī)及手機(jī) ........................................................................... 26 第 6 章 軟件設(shè)計(jì) ............................................................................................. 27 總體設(shè)計(jì) .......................................................................................... 27 DS18B20 數(shù)據(jù)采集模塊 .................................................................... 27 CC2530 無(wú)線通信模塊 .....