BLE GAP 协议和 GATT 协议 最近要打算学习 Blufi 协议进行蓝牙配置,其中必然使用 GAP 协议和 GATT 协议,于是进行重新学习一番. BLE 是一个 Bluetooth SIG 组织颁布的协议,对于使用 BLE 我们开发人员,最关注的是 上层的 GAP 协议和 GATT 协议. 1.1 GAP 和 GATT 有什么不同呢? GAP :定义一个 BLE 网络栈的通用拓扑结构. GATT:描述关于如何数据在连接中如何传输的细节. GATT 尤其关注于数据如何被格式化.打包.然后
Bluetooth: ATT and GATT Bluetooth 4.0, which includes the Low Energy specification, brings two new core protocols: ATT (Attribute Protocol) and GATT (Generic Attribute Profile). They are mainly targeted for Low Energy, and every LE profile is expecte
1.概述 AVCTP协议描述了蓝牙设备间Audio/Video的控制信号交换的格式和机制,它是一个总体的协议,具体的控制信息由其指定的协议(如AVRCP)实现,AVCTP本身只指定控制command和response的总体的格式. 几个重要的点: (1)AVCTP uses point-to-point signaling over connection-oriented L2CAP channels. (2)AVCTP shall be able to support both
1.概述 AVDTP(AUDIO/VIDEO DISTRIBUTION TRANSPORT PROTOCOL)是用来描述音频/视频在蓝牙设备间的传输的协议,是A2DP协议的基础协议,其在协议栈中的位置如下: AVDTP协议建立在connection-oriented L2CAP channel上,只能支持point-to-point signaling. 2.一些术语 Stream:represents the logical end-to-end connection of stre
1.概述 OBEX为Object Exchange,用于在蓝牙设备间传数据对象,来源于红外定义的协议,后被蓝牙采用.OBEX在蓝牙协议层中的位置如下图(在之前的OBEX版本中,OBEX是通过RFCOMM挂在L2CAP上的): 2.Object Model OBEX定义了Object model来进行数据的交换,形式为Request-Response.OBEX定义了Headers来描述数据,结构如下: <HI, the header ID> 1byte <HV, the heade
一.概述 The Generic Attribute Profile (GATT) defines a service framework using the Attribute Protocol. This framework defines proceduresand formats of services and their characteristics. The proceduresdefined include discovering, reading,writing, notify
generic attribute profile (GATT)The Generic Attributes (GATT) define a hierarchical data structure that is exposed to connected Bluetooth LE devices. 一.UUID GATT Services GATT Attribute Types GATT Characteristic Descriptors GATT Characteristic Types