节点文献
基于安卓框架的低功耗蓝牙移植与应用
Porting and Application of Bluetooth Low Energy Based on Android Framework
【作者】 王曦;
【导师】 阳富民;
【作者基本信息】 华中科技大学 , 计算机应用技术, 2016, 硕士
【摘要】 安卓(Android)移动操作系统基于Linux内核,具有自由开放的源码、兼容丰富硬件和易于开发等特点;随着Google的大力推广,安卓已占领智能可穿戴设备和车载移动设备等市场。近年来,三网融合和物联网迅速发展,移动智能终端和各种可穿戴设备越来越多地使用无线协议来通讯,其中低功耗蓝牙(Bluetooth Low Energy,BLE)正占据越来越大的市场,未来潜力巨大,基于安卓的BLE研究与应用已成为热点。武汉精伦电子公司开发的广告机基于rk3288芯片,采用AP6335蓝牙芯片,基于安卓5.0操作系统,通过发射低功耗蓝牙广播实现广告功能。基于安卓的分层结构,在各层对BLE进行移植,并开发BLE应用服务BLEService。对BLE的移植工作包括:在内核层针对AP6335蓝牙芯片配置dts和config,比如对芯片管脚的配置;在其他层使能安卓发射BLE的功能。应用层服务BLEService通过封装Android BLE API,实现发射和接收BLE蓝牙广播的功能。为此,BLEService分为发射模块和扫描模块。发射模块主要提供广播设置接口方便用户设置自己的广播内容。扫描模块以软件堆层的形式分成接口层、管理层、服务层和功能层,其中功能层包括测距模块和扫描封装模块2个功能,其中管理层和服务层利用Messenger通信,管理层暴露的接口从而提高应用程序员开发BLE应用程序的效率。在应用程序层对BLEService服务的发射模块进行功能测试,对扫描模块进行性能测试。发射模块的功能测试:发射式广播对厂商信息的定制,交互式广播的通信;扫描模块的性能测试:测试接收BLE蓝牙信号的能力和对BLE信号距离的计算。
【Abstract】 Android mobile operating system(OS) bases on Linux kernel which has many characteristics,such as free open source,high compatibility with various hardware and easy ways to development.With the vigorous promote and development by Google,Android has bean domanating the market of intelligent wearable devices and vehicle on-board mobile devices.In recent years,triple play and the Internet of Things has been developing rapidly,more and more mobile intelligent terminals and various wearable devices start adopting wireless protocols to communicate.Particularly,the Bluetooth Low Energy(BLE) has been dominating the market which has great future potential,the research and application of BLE based on Android becomes hot. The advertising device,developed by Wuhan Jing Lun electronic company,realises advertising function through BLE,which bases on rk3288 chip, Bluetooth chip AP6335, and Android 5.0 operating system.Based on Android layered architecture,BLE is ported on some layers and BLE application is developed on application layer.Porting BLE includes the configuration of dts and config of kernel layer,and enabling Android advertising BLE on some other layers.Application layer’s service,BLEService encapsulates Android BLE API to realise advertising and receiving BLE.In order to do so,BLEService is devided into two parts:transmitter module and scanner module. Transmitter module mainly provide a convenient way to configure users own advertising through advertising setting interface.Scanner modules is designed in the form of software stack,which includes interface layer,Service layer,Manager layer and Function layer.Function layer has two function,computing distance and encapsulating API.Service layer and Manager layer communicate through Android messenger technology.Application programmer can use the interface exposed by Manager layer to promote the efficiency of programming.In the application layer,advertising module is tested its function, the scanning module is tested its performance.The functional test of advertising module includes customizing manufacturer information of launching mode, and communication of interactive mode.Scanning module performance test includes the ability of receive BLE signal and BLE signal distance calculation.
【Key words】 Android operating system; Bluetooth low energy; Bluetooth porting; Service of application layer; Received Signal Strength Indication; Ranging;
- 【网络出版投稿人】 华中科技大学 【网络出版年期】2017年 11期
- 【分类号】TP316;TN925
- 【被引频次】4
- 【下载频次】128