王明偉,陳立萬,李洪兵,陳 強(qiáng)
(1.重慶三峽學(xué)院 電子信息與工程學(xué)院,重慶 404100;2.重慶三峽學(xué)院 計算機(jī)科學(xué)與工程學(xué)院,重慶 404100)
?
基于ZigBee協(xié)議WSN在智能家居中的控制實現(xiàn)
王明偉1,陳立萬1,李洪兵2,陳強(qiáng)1
(1.重慶三峽學(xué)院 電子信息與工程學(xué)院,重慶404100;2.重慶三峽學(xué)院 計算機(jī)科學(xué)與工程學(xué)院,重慶404100)
摘要為改善無線節(jié)點失效而影響信息采集問題,提出了一種基于ZigBee協(xié)議的無線傳感器網(wǎng)絡(luò)在智能家居中的控制與實現(xiàn)方案,該方案采用低功耗ARM11處理器為核心,利用內(nèi)嵌協(xié)議棧模塊為網(wǎng)絡(luò)的數(shù)據(jù)出口,以嵌入式Web服務(wù)器為網(wǎng)關(guān),利用ZigBee協(xié)議進(jìn)行全網(wǎng)無線搭建,對信息的采集、分析、處理、控制。通過實驗驗證表明,對節(jié)點失效檢測率達(dá)到80%,在溫度檢測方面誤差為0.05 ℃,增強(qiáng)家居生活的安全性,實現(xiàn)了無線傳感器網(wǎng)絡(luò)在家居生活智能化的管理。
關(guān)鍵詞無線傳感器網(wǎng)絡(luò);ZigBee協(xié)議;智能家居
Design and Implementation of WSN Based on ZigBee Protocol in Smart Home
WANG Mingwei1,CHEN Liwan1,LI Hongbing2,CHEN Qiang1
(1.School of Electronic Information and Engineering,Chongqing Three Gorges University,Chongqing 404100,China;2.School of Computer Science and Engineering,Chongqing Three Gorges University,Chongqing 404100,China)
AbstractWireless Sensor Network (WSN) based on the ZigBee protocol is the next generation of emerging sensor networks.ZigBee technology with high performance,low power consumption and low speed rate enjoys broad application prospects,such as industrial control.This study uses the ZigBee technology to establish the wireless network in smart home in stead of the traditional mode type with low power ARM11 as the core,embedded protocol stack as the data interface and embedded Web server as the gateway to improve the wireless node failure that affects information acquisition.Experiments show that the failure detection rate is 80% and the temperature detection error is 0.05 ℃,thus enhancing the security of the smart home and achieving the smart management of household life by the wireless sensor network.
Keywordswireless sensor network;ZigBee protocol;smart home
無線傳感器網(wǎng)絡(luò)是由部署在檢測區(qū)域內(nèi)大量具有感知能力、計算能力和通信能力的微型傳感器節(jié)點,通過無線通信方式形成的一個多跳自組織網(wǎng)絡(luò)系統(tǒng)[1]。其中ZigBee協(xié)議以其功耗低、傳輸距離較遠(yuǎn)、安全性較高的特點在無線傳感器網(wǎng)絡(luò)中應(yīng)用廣泛。無線傳感器網(wǎng)絡(luò)在智能家居應(yīng)用,以環(huán)境控制為主、安全管理為導(dǎo)向,對家庭中設(shè)備進(jìn)行有效地整合,實現(xiàn)遠(yuǎn)程控制與集中控制,使家居生活更加安全、便利以及舒適。
對于節(jié)點失效,提出了正六邊形的拓?fù)浣Y(jié)構(gòu)。采用與鄰居節(jié)點數(shù)據(jù)[2]、歷史數(shù)據(jù)比對來確定節(jié)點失效并嘗試進(jìn)行修復(fù),在確定節(jié)點永失效久后達(dá)到一定數(shù)量時,會喚醒失效節(jié)點并聯(lián)的備用節(jié)點,從而保障網(wǎng)絡(luò)的可靠運行。……