GATT (Generic Attribute Profile) is a protocol used in Bluetooth communication for exchanging data between devices. GATT sub-procedures refer to specific operations or procedures defined within GATT that allow for data exchanges between a client and a server device.
One of the GATT sub-procedures is the "read multiple characteristic values" procedure. This sub-procedure is used when the client knows the characteristic value handles and needs to read multiple characteristic values from the server. It allows for efficient retrieval of multiple values at once.
Other GATT sub-procedures include write without response, signed write without response, and reliable writes, among others. These sub-procedures enable various operations for read and write transactions in a GATT-based data exchange.
For more detailed information on GATT sub-procedures and their usage, you can refer to the documentation provided by different sources or Bluetooth specifications.
GATT(通用属性规范)是蓝牙通信中用于设备间交换数据的协议。GATT sub-procedures指的是 GATT 中定义的特定操作或程序,允许客户端和服务器设备之间进行数据交换。
GATT sub-procedures之一是 "读取多个特征值 "程序。当客户端知道特征值句柄并需要从服务器读取多个特征值时,就会使用该子过程。它允许一次高效检索多个值。
其他 GATT sub-procedures包括无响应写入、无响应签名写入和可靠写入等。在基于 GATT 的数据交换中,这些子过程为读写事务提供了各种操作。
有关 GATT 子过程及其用法的详细信息,可参考不同来源提供的文档或蓝牙规范。
比如下面的例子,是某个BLE中GATT Server对于Sub-Procedure的需求(除所有GATT Server都要有的之外):
<GATT Sub-procedure Requirements>
GATT Sub-Procedure | Requirements |
Write Characteristic Value | M |
Write Without Response | O |
Notifications | M |
Indications | M |
Read Characteristic Descriptors | M |
Write Characteristic Descriptors | M |
M表示必须Must,O表示可选Optional。
或者根据协议栈中提供的API,可以看到GATT所支持的Sub-procedure:
TI BLE Stack API Documentation: GATT Client Sub-Procedure API Functions
这个链接是一个TI蓝牙协议栈的文档,里面列出了相关API,每个API都是关联于GATT的一个Sub-procedure,来实现某种功能。
GATT_ExchangeMTU
GATT_DiscAllPrimaryServices
GATT_DiscPrimaryServiceByUUID
GATT_FindIncludedServices
GATT_DiscAllChars
GATT_DiscCharsByUUID
GATT_DiscAllCharDescs
GATT_ReadCharValue
GATT_ReadUsingCharUUID
GATT_ReadLongCharValue
GATT_ReadMultiCharValues
GATT_WriteNoRsp
GATT_SignedWriteNoRsp
GATT_WriteCharValue
GATT_WriteLongCharValue
GATT_ReliableWrites
GATT_ReadCharDesc
GATT_ReadLongCharDesc
GATT_WriteCharDesc
GATT_WriteLongCharDesc
参考:
1, LINER AI搜索