殷松瑜
摘要:該文在ZigBee2007協(xié)議?;A(chǔ)上設(shè)計開發(fā)了一個嵌入式WEB網(wǎng)關(guān),采用ARM微處理器S3C6410、CC2530射頻模塊實(shí)現(xiàn)了智能家居系統(tǒng)的智能安防模塊的功能。智能安防系統(tǒng)主要特點(diǎn)就是可以通過網(wǎng)絡(luò)遠(yuǎn)程登錄智能安防系統(tǒng),查看安防系統(tǒng)的傳感器節(jié)點(diǎn)狀態(tài),具有自動報警和智能處理安全事件功能,還可以網(wǎng)絡(luò)遠(yuǎn)程調(diào)試節(jié)點(diǎn)進(jìn)行檢測維護(hù)。該文的系統(tǒng)不僅具有體積小、成本低、功耗小的優(yōu)點(diǎn),還具有實(shí)時性好和使用簡單的特點(diǎn),適合應(yīng)用于智能家居家庭物聯(lián)網(wǎng)中。
關(guān)鍵詞:嵌入式;WEB網(wǎng)關(guān);紫峰;智能安防
中圖分類號:TP393? ? ? ? 文獻(xiàn)標(biāo)識碼:A
文章編號:1009-3044(2019)19-0029-04
Abstract: In this paper, based on ZigBee2007 protocol stack, an embedded WEB gateway is designed and developed. ARM microprocessor S3C6410 and CC2530 RF module are used to realize the function of intelligent security module of smart home system. The main feature of the intelligent security system is that it can log in the intelligent security system remotely through the network, view the state of the sensor node of the security system, with automatic alarm and intelligent processing of security events, but also the network remote debugging node for detection and maintenance. The system in this paper not only has the advantages of small size, low cost and small power consumption, but also has the characteristics of good real-time performance and simple use, which is suitable for the application in the Internet of things of smart home.
Key words: embedded; WEB gateway; ZigBee; intelligent security
智能家居系統(tǒng)是物聯(lián)網(wǎng)的一種重要應(yīng)用。智能家居系統(tǒng)又稱為智能家庭局域網(wǎng),是以住宅為平臺,兼?zhèn)浣ㄖ?、網(wǎng)絡(luò)通信、信息家電、設(shè)備自動化,集系統(tǒng)、結(jié)構(gòu)、服務(wù)、管理為一體的高效、舒適、安全、便利、環(huán)保的居住環(huán)境。目前,家庭網(wǎng)關(guān)的實(shí)現(xiàn)主要有PC 機(jī)與嵌入式系統(tǒng)兩種,與PC 機(jī)相比,嵌入式系統(tǒng)具有體積小、成本低、可靠性高、穩(wěn)定性好及功耗低等優(yōu)點(diǎn),更符合家庭網(wǎng)關(guān)的性能要求,因此,目前家庭網(wǎng)關(guān)主要采用嵌入式系統(tǒng)[1]。
本文設(shè)計的嵌入式WEB網(wǎng)關(guān)是基于北京博創(chuàng)科技有限公司UP-CUP6410開發(fā)平臺, S3C6410X(ARM11)嵌入式微處理器,無線傳感網(wǎng)協(xié)議是基于賽佰特科技有限公司的CBT-SuperIOT全功能物聯(lián)網(wǎng)教學(xué)科研平臺,ZIGBEE 芯片是采用德州儀器公司的CC2530,實(shí)現(xiàn)了物聯(lián)網(wǎng)網(wǎng)關(guān)的設(shè)計及其在智能家居中的應(yīng)用。
1 系統(tǒng)框架和功能模塊概述
網(wǎng)站架構(gòu)里主要有主頁index.html, 查看節(jié)點(diǎn)check.html ,節(jié)點(diǎn)設(shè)置set.html。
主程序webserver.c 實(shí)現(xiàn)嵌入式WEB網(wǎng)關(guān)和智能安防系統(tǒng)功能:用戶登錄網(wǎng)站,點(diǎn)擊網(wǎng)頁界面的標(biāo)簽鏈接跳到數(shù)據(jù)處理模塊,運(yùn)行執(zhí)行代碼展示相應(yīng)的結(jié)果。
安防報警系統(tǒng)實(shí)現(xiàn)功能:(1)當(dāng)火焰出現(xiàn)時自動報警并且打開風(fēng)扇安防報警。(2)報警器和風(fēng)扇節(jié)點(diǎn)自動采集數(shù)據(jù)傳輸?shù)絎EB網(wǎng)關(guān),通過網(wǎng)頁展示相應(yīng)狀態(tài)。(3)通過節(jié)點(diǎn)設(shè)置網(wǎng)頁點(diǎn)擊相應(yīng)的設(shè)置標(biāo)簽,手動控制報警器和風(fēng)扇節(jié)點(diǎn)的狀態(tài)。
2 系統(tǒng)設(shè)計與實(shí)現(xiàn)
2.1 ZigBee 通信協(xié)議[2]
2.2 網(wǎng)頁設(shè)計
嵌入式WEB網(wǎng)關(guān)與智能安防系統(tǒng)數(shù)據(jù)交互方式:在HTML中,我們用表單