智能家居系統(tǒng)客戶端與網(wǎng)關(guān)的設(shè)計與實(shí)現(xiàn)
發(fā)布時間:2019-02-23 10:29
【摘要】:客戶端與網(wǎng)關(guān)是智能家居系統(tǒng)中十分重要的部分。布局合理、控制方便的客戶端會很大程度提升用戶對是智能家居系統(tǒng)的整體感覺,而功能齊全、性能穩(wěn)定的網(wǎng)關(guān)是智能家居系統(tǒng)中最重要的部分,能夠?qū)χ悄芗揖酉到y(tǒng)實(shí)現(xiàn)質(zhì)的提升。本文設(shè)計并實(shí)現(xiàn)了基于Android平臺的客戶端和智能家居系統(tǒng)網(wǎng)關(guān),旨在使智能家居系統(tǒng)控制更加方便、快捷,提升用戶體驗(yàn)并實(shí)現(xiàn)對家居設(shè)備的集中化控制與管理。主要完成的研究工作如下: 1.根據(jù)整個智能家居系統(tǒng)體系結(jié)構(gòu)和網(wǎng)關(guān)功能的實(shí)現(xiàn)邏輯,根據(jù)MVC設(shè)計模式對基于Android平臺的客戶端整體框架進(jìn)行了設(shè)計,同時對客戶端與網(wǎng)關(guān)交互的Socket通信和HTTP協(xié)議通信進(jìn)行了設(shè)計與實(shí)現(xiàn)。設(shè)計了客戶端數(shù)據(jù)庫,采用客戶端主動發(fā)送連接請求的方式實(shí)現(xiàn)客戶端數(shù)據(jù)庫與網(wǎng)關(guān)數(shù)據(jù)庫的同步。 2.通過對數(shù)據(jù)庫SQLite3和Web服務(wù)器Appweb的移植搭建了智能家居系統(tǒng)網(wǎng)關(guān)軟件開發(fā)環(huán)境,設(shè)計了Socket服務(wù)器程序和Web服務(wù)器程序,分別連接客戶端的Socket請求與HTTP協(xié)議請求,利用多線程機(jī)制實(shí)現(xiàn)了網(wǎng)關(guān)軟件部分。設(shè)計了網(wǎng)關(guān)數(shù)據(jù)庫保存家居環(huán)境狀態(tài)數(shù)據(jù)和設(shè)備屬性信息。 3.為了實(shí)現(xiàn)對家居設(shè)備進(jìn)行統(tǒng)一的管理以及設(shè)備間的信息交互,設(shè)計了家居設(shè)備管理協(xié)議。根據(jù)智能家居系統(tǒng)的通信模型,設(shè)計了網(wǎng)絡(luò)通信消息格式,從而采用格式化的消息交互格式提高了系統(tǒng)的可擴(kuò)展性和網(wǎng)絡(luò)傳輸?shù)目煽啃浴?4.搭建了智能家居系統(tǒng)實(shí)驗(yàn)環(huán)境,對客戶端和網(wǎng)關(guān)進(jìn)行了功能測試,結(jié)果表明均可滿足實(shí)際應(yīng)用要求。對網(wǎng)關(guān)性能進(jìn)行了分析比較,結(jié)果符合期望要求。
[Abstract]:Client and gateway are very important parts of smart home system. A client with reasonable layout and convenient control will greatly enhance the overall feeling that the user is a smart home system, and the gateway with complete functions and stable performance is the most important part of the smart home system. It can improve the quality of smart home system. This paper designs and implements the client and smart home system gateway based on Android platform, which aims to make the intelligent home system control more convenient and fast, improve the user experience and realize the centralized control and management of home equipment. The main research work is as follows: 1. According to the realization logic of the whole smart home system architecture and gateway function, according to the MVC design pattern, the whole client frame based on Android platform is designed. At the same time, the Socket communication and HTTP protocol communication between client and gateway are designed and implemented. The client database is designed to synchronize the client database with the gateway database. 2. By transplanting database SQLite3 and Web server Appweb, the software development environment of smart home system gateway is built, and the Socket server program and Web server program are designed to connect the Socket request and HTTP protocol request of the client, respectively. The gateway software is realized by multi-thread mechanism. The gateway database is designed to store the status data of home environment and the device attribute information. 3. In order to realize the unified management of the household equipment and the information exchange between the devices, the management protocol of the household equipment is designed. According to the communication model of smart home system, the network communication message format is designed, and the extensibility of the system and the reliability of network transmission are improved by using the formatted message exchange format. 4. The experiment environment of smart home system is built and the function of client and gateway is tested. The results show that it can meet the requirements of practical application. The performance of the gateway is analyzed and compared, and the results meet the expected requirements.
【學(xué)位授予單位】:浙江工業(yè)大學(xué)
【學(xué)位級別】:碩士
【學(xué)位授予年份】:2014
【分類號】:TP393.05;TU855
本文編號:2428733
[Abstract]:Client and gateway are very important parts of smart home system. A client with reasonable layout and convenient control will greatly enhance the overall feeling that the user is a smart home system, and the gateway with complete functions and stable performance is the most important part of the smart home system. It can improve the quality of smart home system. This paper designs and implements the client and smart home system gateway based on Android platform, which aims to make the intelligent home system control more convenient and fast, improve the user experience and realize the centralized control and management of home equipment. The main research work is as follows: 1. According to the realization logic of the whole smart home system architecture and gateway function, according to the MVC design pattern, the whole client frame based on Android platform is designed. At the same time, the Socket communication and HTTP protocol communication between client and gateway are designed and implemented. The client database is designed to synchronize the client database with the gateway database. 2. By transplanting database SQLite3 and Web server Appweb, the software development environment of smart home system gateway is built, and the Socket server program and Web server program are designed to connect the Socket request and HTTP protocol request of the client, respectively. The gateway software is realized by multi-thread mechanism. The gateway database is designed to store the status data of home environment and the device attribute information. 3. In order to realize the unified management of the household equipment and the information exchange between the devices, the management protocol of the household equipment is designed. According to the communication model of smart home system, the network communication message format is designed, and the extensibility of the system and the reliability of network transmission are improved by using the formatted message exchange format. 4. The experiment environment of smart home system is built and the function of client and gateway is tested. The results show that it can meet the requirements of practical application. The performance of the gateway is analyzed and compared, and the results meet the expected requirements.
【學(xué)位授予單位】:浙江工業(yè)大學(xué)
【學(xué)位級別】:碩士
【學(xué)位授予年份】:2014
【分類號】:TP393.05;TU855
【參考文獻(xiàn)】
相關(guān)期刊論文 前6條
1 徐光俠;封雷;涂演;李成;;基于Android和Google Maps的生活輔助系統(tǒng)的設(shè)計與實(shí)現(xiàn)[J];重慶郵電大學(xué)學(xué)報(自然科學(xué)版);2012年02期
2 吳藝娟;秦彩云;萬米洋;;基于ZigBee技術(shù)的智能家居環(huán)境監(jiān)測系統(tǒng)設(shè)計[J];北京石油化工學(xué)院學(xué)報;2013年01期
3 李慧;張慶范;段培永;;基于用戶學(xué)習(xí)的智能動態(tài)熱舒適控制系統(tǒng)[J];四川大學(xué)學(xué)報(工程科學(xué)版);2011年02期
4 童小念;安興亞;藍(lán)曉栺;王江晴;;嵌入式無線移動通信系統(tǒng)的研究與開發(fā)[J];通信學(xué)報;2008年01期
5 楊珉;王曉陽;張濤;張建軍;;國內(nèi)Android應(yīng)用商城中程序隱私泄露分析[J];清華大學(xué)學(xué)報(自然科學(xué)版);2012年10期
6 彭鳳凌;庹先國;王洪輝;張貴宇;蒲建華;;安卓手機(jī)與數(shù)據(jù)庫交互系統(tǒng)的設(shè)計與實(shí)現(xiàn)[J];計算機(jī)工程與設(shè)計;2013年11期
,本文編號:2428733
本文鏈接:http://sikaile.net/guanlilunwen/chengjian/2428733.html
最近更新
教材專著