殷松瑜



摘要:該文在ZigBee2007協議棧基礎上設計開發了一個嵌入式WEB網關,采用ARM微處理器S3C6410、CC2530射頻模塊實現了智能家居系統的智能安防模塊的功能。智能安防系統主要特點就是可以通過網絡遠程登錄智能安防系統,查看安防系統的傳感器節點狀態,具有自動報警和智能處理安全事件功能,還可以網絡遠程調試節點進行檢測維護。該文的系統不僅具有體積小、成本低、功耗小的優點,還具有實時性好和使用簡單的特點,適合應用于智能家居家庭物聯網中。
關鍵詞:嵌入式;WEB網關;紫峰;智能安防
中圖分類號:TP393? ? ? ? 文獻標識碼: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
智能家居系統是物聯網的一種重要應用。智能家居系統又稱為智能家庭局域網,是以住宅為平臺,兼備建筑、網絡通信、信息家電、設備自動化,集系統、結構、服務、管理為一體的高效、舒適、安全、便利、環保的居住環境。目前,家庭網關的實現主要有PC 機與嵌入式系統兩種,與PC 機相比,嵌入式系統具有體積小、成本低、可靠性高、穩定性好及功耗低等優點,更符合家庭網關的性能要求,因此,目前家庭網關主要采用嵌入式系統[1]。
本文設計的嵌入式WEB網關是基于北京博創科技有限公司UP-CUP6410開發平臺, S3C6410X(ARM11)嵌入式微處理器,無線傳感網協議是基于賽佰特科技有限公司的CBT-SuperIOT全功能物聯網教學科研平臺,ZIGBEE 芯片是采用德州儀器公司的CC2530,實現了物聯網網關的設計及其在智能家居中的應用。
1 系統框架和功能模塊概述
網站架構里主要有主頁index.html, 查看節點check.html ,節點設置set.html。
主程序webserver.c 實現嵌入式WEB網關和智能安防系統功能:用戶登錄網站,點擊網頁界面的標簽鏈接跳到數據處理模塊,運行執行代碼展示相應的結果。
安防報警系統實現功能:(1)當火焰出現時自動報警并且打開風扇安防報警。(2)報警器和風扇節點自動采集數據傳輸到WEB網關,通過網頁展示相應狀態。(3)通過節點設置網頁點擊相應的設置標簽,手動控制報警器和風扇節點的狀態。
2 系統設計與實現
2.1 ZigBee 通信協議[2]
2.2 網頁設計
嵌入式WEB網關與智能安防系統數據交互方式:在HTML中,我們用表單