蓝牙 BLE GATT 剖析(一)

时间:2023-03-09 00:28:23
蓝牙 BLE GATT 剖析(一)

一.概述

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, notifying and indicating characteristics, as well asconfiguring the broadcast of characteristics.

二.架构

蓝牙 BLE GATT 剖析(一)

三.ATT属性table

蓝牙 BLE GATT 剖析(一)

蓝牙 BLE GATT 剖析(一)

四.GATT profile层次

蓝牙 BLE GATT 剖析(一)

1.SERVICE DEFINITION

蓝牙 BLE GATT 剖析(一)

2.INCLUDE DEFINITION

蓝牙 BLE GATT 剖析(一)

3.CHARACTERISTIC DEFINITION

1)Characteristic Declaration

蓝牙 BLE GATT 剖析(一)
Characteristic Declaration
蓝牙 BLE GATT 剖析(一)

2)Characteristic Value Declaration

蓝牙 BLE GATT 剖析(一)

3)Characteristic Descriptor Declarations

①Characteristic Extended Properties
蓝牙 BLE GATT 剖析(一)
Characteristic User Description
蓝牙 BLE GATT 剖析(一)
③Client Characteristic Configuration
蓝牙 BLE GATT 剖析(一)
④Server Characteristic Configuration
蓝牙 BLE GATT 剖析(一)
⑤Characteristic Presentation Format
蓝牙 BLE GATT 剖析(一)
⑥Characteristic Aggregate Format

蓝牙 BLE GATT 剖析(一)

4.SUMMARY OF GATTPROFILE ATTRIBUTE TYPES

蓝牙 BLE GATT 剖析(一)

五.GATT FEATURE REQUIREMENTS

There are 11 features defined in the GATT Profile:
1. Server Configuration
2. Primary Service Discovery
3. Relationship Discovery
4. Characteristic Discovery
5. Characteristic Descriptor Discovery
6. Reading a Characteristic Value
7. Writing a Characteristic Value
8. Notification of a Characteristic Value
9. Indication of a Characteristic Value
10.Reading a Characteristic Descriptor
11.Writing a Characteristic Descriptor

具体GATT feature交互参照core4.2

GATT PROCEDURE MAPPING TO ATT PROTOCOL OPCODES

蓝牙 BLE GATT 剖析(一)

蓝牙 BLE GATT 剖析(一)

蓝牙 BLE GATT 剖析(一)

蓝牙 BLE GATT 剖析(一)