智能家居中異構(gòu)網(wǎng)關(guān)的設(shè)計與應(yīng)用
發(fā)布時間:2018-01-03 20:04
本文關(guān)鍵詞:智能家居中異構(gòu)網(wǎng)關(guān)的設(shè)計與應(yīng)用 出處:《杭州電子科技大學(xué)》2015年碩士論文 論文類型:學(xué)位論文
更多相關(guān)文章: RT5350 網(wǎng)關(guān) 物聯(lián)網(wǎng) 串口 Wi-Fi
【摘要】:隨著物聯(lián)網(wǎng)技術(shù)的不斷成熟,給人們帶來舒適、高效生活的智能家居越來越受到重視,家庭異構(gòu)網(wǎng)關(guān)是智能家居系統(tǒng)的核心和樞紐,負責(zé)連通外部網(wǎng)絡(luò)和內(nèi)部網(wǎng)絡(luò),轉(zhuǎn)換不同網(wǎng)絡(luò)間的通信協(xié)議、數(shù)據(jù)格式,傳達信息,在家居網(wǎng)絡(luò)通信中起著至關(guān)重要的作用。本文首先對網(wǎng)關(guān)的需求進行了分析,在此基礎(chǔ)上對網(wǎng)關(guān)通信方式進行了對比和選擇,例舉了網(wǎng)關(guān)的應(yīng)用場景,并對網(wǎng)關(guān)的應(yīng)用開發(fā)了完整的通信系統(tǒng),包括了用戶手持終端(Android手機)的應(yīng)用開發(fā),遠端互聯(lián)網(wǎng)服務(wù)器的中繼轉(zhuǎn)發(fā)程序,內(nèi)部的通信網(wǎng)絡(luò)則采用STM32板代替進行串口通信。主要根據(jù)網(wǎng)關(guān)的功能大致說明了硬件選型及整體架構(gòu);搭建了軟件開發(fā)環(huán)境,移植嵌入式Linux 2.6.21.x的內(nèi)核,選擇關(guān)鍵的驅(qū)動和系統(tǒng)應(yīng)用,進行了串口和Wi-Fi相互透傳的程序設(shè)計,并在flash中保存網(wǎng)關(guān)的配置信息,通過自定義的AT通信協(xié)議對相關(guān)信息進行配置。Android客戶端主要有登錄鑒權(quán)、開關(guān)控制、查詢功耗和歷史用電、定時功能等家居實用的功能設(shè)計。遠端互聯(lián)網(wǎng)服務(wù)器主要用于轉(zhuǎn)發(fā)數(shù)據(jù)幀,連通家庭網(wǎng)關(guān)和客戶端兩個通信鏈路,實現(xiàn)用戶的遠程訪問家庭網(wǎng)絡(luò)。STM32的串口通信主要包括對串口通信數(shù)據(jù)的緩沖,網(wǎng)關(guān)配置信息的設(shè)置以及網(wǎng)關(guān)工作狀態(tài)的監(jiān)測,如Wi-Fi的連接狀態(tài)監(jiān)測。在系統(tǒng)基本功能開發(fā)完畢后,根據(jù)網(wǎng)關(guān)實際應(yīng)用中涉及的實用功能進行了配套的技術(shù)開發(fā),如IP自動識別、網(wǎng)絡(luò)自動切換等。針對普通用戶的使用,設(shè)計了一鍵配置智能聯(lián)網(wǎng)的簡單操作,讓網(wǎng)關(guān)連接到路由器中。最后,對網(wǎng)關(guān)進行了通信測試、延時測試和數(shù)據(jù)透傳性能測試。測試結(jié)果表明網(wǎng)關(guān)達到了預(yù)期的設(shè)計目標,模塊工作穩(wěn)定,便于實際的應(yīng)用,可預(yù)見廣闊的市場前景。
[Abstract]:Along with the Internet technology continues to mature, to bring people comfort, high intelligent life Home Furnishing is paid more and more attention, home heterogeneous gateway is the core and hub of intelligent Home Furnishing system, responsible for communicating the external network and internal network, communication protocol conversion between different networks, data format, convey information, plays an important role in the Home Furnishing in network communication. Firstly, demand for gateway are analyzed, on the basis of the comparison and selection of the gateway communication mode, application scenarios examples of the gateway, and the application of the gateway developed a complete communication system, including the user terminal (mobile phone Android) application development, relay remote Internet server the redirector, communication network is used instead of STM32 board serial communication. According to the main gateway outlines the hardware choice and overall architecture; To build a software development environment, transplanting the embedded Linux 2.6.21.x kernel, select the key driver and application system, the serial port and Wi-Fi are passing through the program design, and save the configuration information gateway in flash, through the AT custom communication protocol for related information configuration.Android client login authentication, switch control the history, power and electricity inquiries, function design of timing function Home Furnishing practical. Remote Internet server is mainly used for forwarding data frame, connected home gateway and client two communication link, realize the serial communication with the remote access home network.STM32 users include the serial communication data buffer, monitoring gateway settings and configuration information the working state of the gateway, such as the Wi-Fi connection monitoring. In the development of the basic function of the system is completed, according to the actual application involved in the gateway The utility function of the technology supporting the development of IP, such as automatic identification, automatic switching network. Use for ordinary users, design a simple operation key configuration of intelligent network gateway, to connect to the router. Finally, the gateway communication test, delay test and data transmission performance test. The test results show that the gateway to achieve the desired design goals, system is stable, convenient of practical application, the foreseeable broad market prospects.
【學(xué)位授予單位】:杭州電子科技大學(xué)
【學(xué)位級別】:碩士
【學(xué)位授予年份】:2015
【分類號】:TU855;TN915.05
【參考文獻】
相關(guān)期刊論文 前1條
1 王淵博;賀偉;王殿偉;;嵌入式開發(fā)中文件傳輸工具的設(shè)計方法[J];信息通信;2014年09期
,本文編號:1375370
本文鏈接:http://sikaile.net/kejilunwen/wltx/1375370.html
最近更新
教材專著