|
干货!Android之蓝牙驱动开发经验
目录
一 Bluetooth基本概念 1 二 Android Bluetooth架构 1 2.1 Bluetooth架构图 1 2.2 Bluetooth代码层次结构 3 三 Bluetooth协议栈分析 4 3.1 蓝牙协议栈 4 3.2 Android与蓝牙协议栈的关系 5 四 Bluetooth之HCI层分析 5 4.2 包的分析及研究 7 4.3 通信过程的研究与分析 8 五 Bluetooth之编程实现 8 5.1 HCI层编程 8 5.2 L2CAP层编程 10 5.3 SDP层编程 12 六 Bluetooth之启动过程实现 13 6.1 Bluetooth启动步骤 14 6.2 Bluetooth启动流程 14 6.3 Bluetooth数据流向 14 6.4 Bluez控制流程 14 6.5 Bluetooth启动过程分析 15 七 Bluetooth之驱动移植 15 7.1 android系统配置 15 7.2 启动项修改 16 7.4 Rebuild Android image and reboot 16 7.5 实现BT睡眠唤醒机制 16 7.6 系统集成 17 八 Bluetooth之调试与编译 17 8.1 Bluetooth驱动调试 17 8.2 Bluetooth 调试工具 18 九 Bluetooth之应用程序开发 18 9.1 Bluetooth的API开发 18 9.2 The Basics开发 18 9.3 Bluetooth Permissions开发 19 9.4 Set ting Up Bluetooth服务 19 9.5 Finding Devices服务 20 9.6 Connecting Devices服务 22 9.7 Managing a Connection服务 26 9.8 Working with Profiles服务 28 十 总结与疑问 29
|