aosp13

奔跑吧 android6 小时前
android·framework·bluetooth·bt·gd·aosp13
【android bluetooth 框架分析 04】【bt-framework 层详解 5】【AbstractionLayer介绍】我们在阅读 native 和 java 层 蓝牙服务代码时,会发现很多 AbstractionLayer.xxxxx 的字段。 这些字段 虽然很容易理解是干什么的。 但是 大家有没有考虑过, 为啥要专门定义一个类来存放他们。 这样设计的意义是什么?
奔跑吧 android5 天前
android·bluetooth·bt·aosp13
【android bluetooth 框架分析 04】【bt-framework 层详解 1】【BluetoothProperties介绍】BluetoothProperties.sysprop 是 Android AOSP 中的一种 系统属性定义文件(System Property Definition File),用于声明和管理 Bluetooth 模块相关的系统属性(System Properties)。这些属性以结构化的方式定义,并由 sysprop 编译工具自动生成访问接口,供 Framework、HAL 或其他模块使用。
奔跑吧 android9 天前
android·hfp·aosp13·telecom·ag·hf·headsetclient
【android bluetooth 协议分析 14】【HFP详解 1】【案例一: 手机侧显示来电,但车机侧没有显示来电: 讲解AT+CLCC命令】今天上报了一例, 手机是连接了 蓝牙的。 但此时来电时,车机侧不显示来电。可以在手机侧看到来电。这里简单分享一下这个问题。 借着这个问题, 我们讲解一下 :
奔跑吧 android13 天前
android·bluetooth·carplay·bt·gd·aosp13
【android bluetooth 案例分析 04】【Carplay 详解 3】【Carplay 连接之车机主动连手机】在前面的文章中,我们已经介绍了 carplay 在车机中的角色划分, 并实际分析了 手机主动连接车机的案例。 感兴趣可以 查看如下文章介绍。 【android bluetooth 案例分析 04】【Carplay 详解 1】【CarPlay 在车机侧的蓝牙通信原理与角色划分详解】 【android bluetooth 案例分析 04】【Carplay 详解 2】【Carplay 连接之手机主动连车机】
奔跑吧 android13 天前
android·bluetooth·carplay·bt·aosp13
【android bluetooth 案例分析 04】【Carplay 详解 2】【Carplay 连接之手机主动连车机】在【android bluetooth 案例分析 04】【Carplay 详解 1】【CarPlay 在车机侧的蓝牙通信原理与角色划分详解】中我们从整理上介绍了车机中 carplay 相关基础概念。 本节 将详细分析 iphone手机主动 连接 车机carplay 这一过程。
奔跑吧 android15 天前
android·hal·bt·aosp13·hidl_1.0
【android bluetooth 协议分析 02】【bluetooth hal 层详解 6】【bt_vendor_opcode_t 介绍】在 AOSP 的 Bluetooth Vendor 接口中,bt_vendor_opcode_t 定义了一组供上层调用的操作指令。这些操作在蓝牙初始化、使用和关闭过程中由协议栈(如 Bluedroid)驱动调用,按照一定的顺序执行。
奔跑吧 android23 天前
android·bluetooth·bt·aosp13·hcicmd·bt5.3
【android bluetooth 协议分析 01】【HCI 层介绍 9】【ReadLocalSupportedCommands命令介绍】HCI_Read_Local_Supported_Commands 是 HCI 层中非常重要的查询命令。它允许 Host(如 Android 系统中的 Bluetooth stack)获取 Controller(蓝牙芯片)支持的 所有 HCI 命令 列表。
奔跑吧 android1 个月前
android·bluetooth·hci·bt·gd·aosp13
【android bluetooth 协议分析 01】【HCI 层介绍 3】【NUMBER_OF_COMPLETED_PACKETS 事件介绍】我们在介绍 【android bluetooth 框架分析 02】【Module详解 8】【Controller 模块介绍】 中介绍 Controller 模块初始化流程时,在 Controller::impl::Start 函数中会看到 我们对 NUMBER_OF_COMPLETED_PACKETS 事件做了 专门的监听:
奔跑吧 android1 个月前
android·bluetooth·bt·gd·aosp13·writelehostsup·hcicmd
【android bluetooth 协议分析 01】【HCI 层介绍 6】【WriteLeHostSupport命令介绍】HCI 指令 HCI_Write_LE_Host_Support 是 Bluetooth Host 向 Controller 发送的一条指令,用于启用或禁用主机对 Bluetooth Low Energy(LE)的支持能力。该指令属于 HCI(Host Controller Interface)命令集合中,规范位置为 Core Spec v5.x,Vol 2, Part E, Section 7.3.79。
奔跑吧 android1 个月前
android·bluetooth·bt·aosp13·storagemodule
【android bluetooth 框架分析 02】【Module详解 6】【StorageModule 模块介绍】我们在 gd_shim_module 介绍章节中,看到 我们将 StorageModule 模块加入到了 modules 中。
奔跑吧 android1 个月前
android·bluetooth·l2cap·gd·aosp13
【android bluetooth 协议分析 06】【l2cap详解 11】【l2cap连接超时处理逻辑介绍】我们在使用蓝牙的过程中, 当上层 应用 断开所有的 profile 后, 协议栈就会帮我们下发 disconnect 命令。本节就让笨叔, 带大家一起梳理这块内容,具体在协议栈如何处理的。
奔跑吧 android2 个月前
android·bluetooth·bt·aosp13·btaa
【android bluetooth 框架分析 02】【Module详解 4】【Btaa 模块介绍】我们在上一篇文章中介绍 HciHal 模块时,有如下代码我们先回忆一下 模块加载的流程:在 ModuleRegistry::Start 函数中我们对 加入的所有 module 挨个初始化。 而在该函数中启动一个 module 都要执行那下面几步:
奔跑吧 android2 个月前
android·queue·bluetooth·bt·aosp13·bidiqueue·bidiqueueend
【android bluetooth 框架分析 02】【Module详解 12】【 BidiQueue、BidiQueueEnd、Queue介绍】蓝牙协议栈里面有很多 BidiQueue ,本节就专门来梳理这块内容。BidiQueue,是 Host 与 Controller 层通信的中枢之一, acl_queue_、sco_queue_、iso_queue_ 都是 BidiQueue 类型。让我们一起看一下这个结构。
奔跑吧 android2 个月前
android·bluetooth·bt·gd·aosp13·hcihal
【android bluetooth 框架分析 02】【Module详解 3】【HciHal 模块介绍】我们在 gd_shim_module 介绍章节中,看到 我们将 HciHal 模块加入到了 modules 中。
奔跑吧 android2 个月前
android·bluetooth·bt·gabeldorsche·gd·aosp13·bluedroid
【android bluetooth 协议分析 01】【HCI 层介绍 1】【hci_packets.pdl 介绍】在 AOSP 的蓝牙协议栈 (Gabeldorsche) 中,hci_packets.pdl 是一个 协议描述语言文件,用于定义 HCI (Host Controller Interface) 层的数据包结构和通信协议。以下是详细解析: