基于藍(lán)牙自配對(duì)的Android遙控系統(tǒng)的設(shè)計(jì)與實(shí)現(xiàn)
發(fā)布時(shí)間:2018-01-24 02:54
本文關(guān)鍵詞: Android uinput 藍(lán)牙自動(dòng)配對(duì) 傳感器 事件注入 出處:《電子科技大學(xué)》2014年碩士論文 論文類(lèi)型:學(xué)位論文
【摘要】:這是一個(gè)IT技術(shù)飛速發(fā)展的時(shí)代,智能設(shè)備已經(jīng)滲透進(jìn)人們普通生活的方方面面,成為移動(dòng)信息時(shí)代人們居家旅行工作娛樂(lè)必備之物。Android系統(tǒng)是一個(gè)以Linux為內(nèi)核的開(kāi)源操作系統(tǒng),當(dāng)前發(fā)展如火如荼,基于Android系統(tǒng)的嵌入式設(shè)備呈百家爭(zhēng)鳴之勢(shì),只有做到更人性化的體驗(yàn)才能贏得市場(chǎng)。市場(chǎng)上基于Android系統(tǒng)的各種控制系統(tǒng)產(chǎn)品已有不少,但是都存在一些缺陷和不足,如連接繁瑣,控制事件類(lèi)型不多,不支持傳感器控制等,因?yàn)檫@些短板而導(dǎo)致產(chǎn)品無(wú)法鶴立雞群,讓用戶使用感受大打折扣。基于此,本課題研究正應(yīng)了這種市場(chǎng)的需求,當(dāng)然也不僅僅止于這種需求。本課題來(lái)源于實(shí)驗(yàn)室項(xiàng)目,在國(guó)產(chǎn)瑞芯公司最新芯片RK3066的開(kāi)發(fā)板上,定制Android系統(tǒng),通過(guò)開(kāi)發(fā)板藍(lán)牙模塊與Android智能手機(jī)自配對(duì)連接,采集與注入控制事件如觸摸控制事件,鍵盤(pán)輸入控制事件,各種傳感器事件等,達(dá)到手機(jī)遙控這個(gè)智能電視盒的控制系統(tǒng)。論文首先介紹了Android系統(tǒng),藍(lán)牙框架,Android事件注入,linux輸入子系統(tǒng)等相關(guān)技術(shù)研究背景、國(guó)內(nèi)外研究狀況、本課題研究的目的和意義。然后對(duì)Android系統(tǒng)框架、Android的傳感器框架與驅(qū)動(dòng)平臺(tái)、Android藍(lán)牙自動(dòng)配對(duì),Linux內(nèi)核的input輸入子系統(tǒng)、Android事件輸入系統(tǒng)做了詳細(xì)的研究和分析,接著對(duì)本課題所研究的系統(tǒng)進(jìn)行了功能性需求和非功能性需求的闡述。接著重點(diǎn)對(duì)整個(gè)控制端和被控端的控制系統(tǒng)進(jìn)行了總體設(shè)計(jì),包括對(duì)控制系統(tǒng)的總體流程圖,控制端和被控制端硬件連接,控制端的軟件、藍(lán)牙自動(dòng)配對(duì)、被控端數(shù)據(jù)緩沖、被控端控制事件注入內(nèi)核方案、系統(tǒng)控制測(cè)試方法。在此基礎(chǔ)上對(duì)整個(gè)系統(tǒng)做了編碼實(shí)現(xiàn)測(cè)試的詳細(xì)介紹。最后對(duì)論文所有工作進(jìn)行了總結(jié),并展望后續(xù)工作的方向。本論文的研究成果與創(chuàng)新點(diǎn)如下:(1)設(shè)計(jì)并實(shí)現(xiàn)了基于藍(lán)牙自配對(duì)的Android遙控系統(tǒng)。(2)支持藍(lán)牙零操作自動(dòng)配對(duì)連接控制端和被控端,連接更便捷。(3)通過(guò)對(duì)linux input子系統(tǒng)和Android事件輸入系統(tǒng)的分析,設(shè)計(jì)出一條新的傳感器控制路徑,控制傳感器開(kāi)發(fā)更方便,且傳感器數(shù)據(jù)對(duì)被控端上層應(yīng)用更通用。
[Abstract]:This is an era of rapid development of IT technology, intelligent devices have penetrated into all aspects of people's ordinary life. Android system is an open source operating system with Linux as its kernel, and it is developing in full swing. Embedded devices based on Android system are in the trend of a hundred schools of thought contending. Only to achieve a more humane experience to win the market. There are many control system products based on Android system in the market, but there are some defects and shortcomings, such as cumbersome connection. There are not many types of control events, do not support sensor control, etc., because of these short boards, the products can not stand out from the crowd, so that users can not use feelings greatly discount. Based on this, the research of this topic is to meet the needs of this kind of market. Of course, it is not just this demand. This topic comes from the laboratory project, customizing Android system on the development board of the latest chip RK3066 of Rui Shing Co., Ltd. Through the development board Bluetooth module and Android smart phone self-paired connection, acquisition and injection control events such as touch control events, keyboard input control events, various sensor events. The paper first introduces the Android system and the Bluetooth framework. Linux input subsystem and other related technology research background, domestic and foreign research status, the purpose and significance of this study. Then the Android system framework. Android sensor framework and driver platform Android Bluetooth automatically match the input input subsystem of the kernel. The Android event input system is studied and analyzed in detail. Then the functional requirements and non-functional requirements of the system are described. Then the overall design of the control system of the whole control end and the controlled end is carried out. It includes the overall flow chart of the control system, the hardware connection between the control end and the controlled end, the software of the control end, the Bluetooth automatic matching, the data buffer of the controlled end, and the controlled control event injection kernel scheme. System control test method. On this basis, the whole system code implementation of the test is introduced in detail. Finally, all the work of the paper is summarized. The research results and innovations of this thesis are as follows: 1) Design and implementation of Android remote control system based on Bluetooth self-pairing. Support Bluetooth zero operation automatic pair connection control end and controlled end. Through the analysis of linux input subsystem and Android event input system, a new sensor control path is designed, and the development of control sensor is more convenient. And the sensor data is more common to the upper layer of the controlled terminal.
【學(xué)位授予單位】:電子科技大學(xué)
【學(xué)位級(jí)別】:碩士
【學(xué)位授予年份】:2014
【分類(lèi)號(hào)】:TP872;TN925
【參考文獻(xiàn)】
相關(guān)期刊論文 前1條
1 王善發(fā);吳道榮;;Java語(yǔ)言的反射機(jī)制[J];保山學(xué)院學(xué)報(bào);2011年05期
相關(guān)碩士學(xué)位論文 前1條
1 吳茂安;基于I2C總線協(xié)議的幾種傳感器在Android系統(tǒng)中的底層軟件設(shè)計(jì)與實(shí)現(xiàn)[D];西安電子科技大學(xué);2012年
,本文編號(hào):1458973
本文鏈接:http://sikaile.net/kejilunwen/wltx/1458973.html
最近更新
教材專(zhuān)著