
bluetooth
信田君9527
keep reading the fu*king code and learning
展开
-
android bluetooth enable 流程
based on Android 11/system/bt/btif/src/bluetooth.cc170static int enable() {171 if (!interface_ready()) return BT_STATUS_NOT_READY;172173 stack_manager_get_interface()->start_up_stack_async();174 return BT_STATUS_SUCCESS;175}system/bt/bti原创 2020-08-03 14:27:25 · 1537 阅读 · 0 评论 -
AOSP中提供的Wi-Fi 和 Bluetooth测试,调试工具
本文主要介绍如何使用AOSP中提供的工具测试,调试Wi-Fi 和 Bluetooth。BluetoothUnit tests in AOSPAOSP includes functional and unit tests for the default Bluetooth stack. These tests are located insystem/bt/test. To run the AOSP tests, do the following:Stop the Android ru...原创 2020-05-20 10:14:26 · 1948 阅读 · 0 评论 -
Android - BlueTooth BLE 之 Central 与 Peripheral
一.前言Andorid 5.0 之前是无法进行 外围设备开发的,在Android 5.0 API 21 android.bluetooth.le包下,新增加 Scaner相关类和 Advertiser 相关类。目前最后使用Scanner相关类实现蓝牙扫描。这段时间对蓝牙的学习与理解,对中心设备与周边设备做下面总结。先看下 android.bluetooth.le 包下内容:1. Android B...转载 2018-05-24 21:56:28 · 5856 阅读 · 0 评论 -
Bluetooth BLE in Android
一、 BLE现在低功耗蓝牙(BLE)连接都是建立在GATT(Generic Attribute Profile) 协议之上。GATT 是一个在蓝牙连接之上的发送和接收很短的数据段的通用规范,这些很短的数据段被称为属性(Attribute)。二、 GAP详细介绍 GATT 之前,需要了解GAP(Generic Access Profile),它在用来控制设备连接和广播。GAP 使你...原创 2019-06-05 11:00:35 · 404 阅读 · 0 评论