蓝牙 - GATT Sub-procedure

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搜索

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

夜流冰

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值