劉 秀,李 燁,劉兆坤
(上海理工大學(xué) 光電信息與計算機(jī)工程學(xué)院,上?!?00093)
基于Android的遠(yuǎn)程控制系統(tǒng)設(shè)計
劉秀,李燁,劉兆坤
(上海理工大學(xué) 光電信息與計算機(jī)工程學(xué)院,上海200093)
摘要為實(shí)現(xiàn)對家庭智能設(shè)備的遠(yuǎn)程控制,文中提出了一種基于Android的遠(yuǎn)程控制系統(tǒng)。該系統(tǒng)采用Android手機(jī)作為控制終端,發(fā)送控制指令,經(jīng)3G網(wǎng)絡(luò)由集總控制器接收后進(jìn)行解析,從而達(dá)到控制家居環(huán)境中各種智能設(shè)備的目的??刂葡到y(tǒng)采用了基于Socket的Java編程,實(shí)現(xiàn)了客戶端和服務(wù)端之間的網(wǎng)絡(luò)通信。實(shí)驗(yàn)證明,該控制系統(tǒng)可遠(yuǎn)程控制智能家居設(shè)備,且定位精確、響應(yīng)迅速、應(yīng)用范圍廣。
關(guān)鍵詞遠(yuǎn)程控制;Android;Socket;3G網(wǎng)絡(luò)
Remote Control System Based on Android
LIU Xiu,LI Ye,LIU Zhaokun
(School of Optical-Electrical and Computer Engineering,University of Shanghai for
Science and Technology,Shanghai 200093,China)
AbstractAn Android-based remote control system for familial intelligent devices is proposed in this paper.The system uses Android phones as a control terminal to send the control instruction.The instructions are received and analyzed by the lumped controller through 3G network,so as to achieve the control of various intelligent devices for home uses.The control system uses the Java programming based on socket,which realizes the network communication between the client and the server.Experiments show that the control system is capable of remote control of smart home devices with accurate location,fast response and good adaptability.
Keywordsremote control;Android;Socket;3G network
隨著計算機(jī)網(wǎng)絡(luò)和數(shù)字通信技術(shù)[1]的發(fā)展,各種網(wǎng)絡(luò)技術(shù)日新月異,利用網(wǎng)絡(luò)技術(shù)遠(yuǎn)程控制家居設(shè)備使居住環(huán)境變得更為便捷舒適,已成為新的研究熱點(diǎn)。雖然市場消費(fèi)觀念尚未形成,但隨著智能家居產(chǎn)業(yè)的進(jìn)一步推廣落實(shí),一旦成功培養(yǎng)出消費(fèi)者的使用習(xí)慣,將具有巨大的潛在消費(fèi)市場。與此同時,谷歌公司推出的Android平臺[2-3]憑借其友好的人機(jī)交互界面、豐富的應(yīng)用程序、開放的源碼和低廉的成本,迅速占領(lǐng)了手機(jī)、車載導(dǎo)航等移動終端市場。因此,將Android系統(tǒng)同遠(yuǎn)程控制家居系統(tǒng)[4]相結(jié)合,借助移動互聯(lián)網(wǎng)技術(shù),更好的為生活、社會發(fā)展服務(wù)。
Android系統(tǒng)以Linux內(nèi)核為基礎(chǔ)[5]。內(nèi)核層為系統(tǒng)提供基本功能的支持,例如內(nèi)存與進(jìn)程的監(jiān)管、網(wǎng)絡(luò)通信協(xié)議等;第二層為系統(tǒng)運(yùn)行庫層,包括核心庫和其他類庫,如圖像數(shù)據(jù)庫、SQLite數(shù)據(jù)庫;第三層為應(yīng)用框架層,開發(fā)人員可獲取Android系統(tǒng)的API權(quán)限開發(fā)第三方應(yīng)用?!?br>