蓝牙BLE ATT剖析(二)-- PDU
来源:互联网 发布:netbeans php配置 编辑:程序博客网 时间:2024/06/04 19:48
一.Error Handling
Error Response
The Error Responseis used to state that a given request cannot be performed,and to provide the reason.
Note: The Write Command does notgenerate an Error Response
二.MTU Exchange
1.Exchange MTU Request
The Exchange MTU Requestis used by the client toinform the server of theclient’s maximum receive MTU size and requestthe server to respond with its
maximum receive MTU size.
2.Exchange MTU Response
The Exchange MTU Responseis sent in reply to a received Exchange MTURequest.
三.Find Information
1.Find Information Request
The Find Information Requestis used to obtain the mapping of attributehandles with their associated types. This allows a client to discover the list of
attributes and their types on a server
2. Find Information Response
The Find Information Responseis sent in reply to a received Find InformationRequestand contains information about this server
3.Find By Type Value Request
The Find By Type Value Requestis used to obtain the handles of attributes thathave a 16-bit UUID attribute type and attribute value.This allows the range of
handles associated with a given attribute to be discovered when the attribute
type determines the grouping of a set of attributes. Note: Generic Attribute
Profile defines grouping of attributes by attribute type.
4.Find By Type Value Response
The Find By Type Value Responseis sent in reply to a received Find By Type
Value Requestand contains information about this server
四.Reading Attributes
1.Read By Type Request
The Read By Type Requestis used to obtain the values of attributes where theattribute type is known butthe handle is not known
疑惑:既然uuid是唯一的,为何还得提供handle的范围?有什么目的?
2.Read ByType Response
The Read By Type Responseis sent in reply to a received Read By TypeRequestand contains the handles and values of the attributesthat have been
read
3.Read Request
The Read Requestis used to request the serverto read the value of anattribute and returnits value in a Read Response
4.Read Response
The read response is sent in reply toa received Read Requestand containsthe value of the attribute that has been read
例:
5.Read Blob Request
The Read Blob Requestis used to request the server to read part of the valueof an attribute at a given offset and return a specific part of the value in a Read
Blob Response.
6.ReadBlob Response
The Read Blob Responseis sent in reply to a received Read Blob Requestandcontains part of the value of the attribute that has been read.
7.Read Multiple Request
The Read Multiple Requestis used to request the server to read two or morevalues of a set of attributesand return their values in a Read Multiple
Response. Only values that have a known fixed size can be read, with the
exception of the last value that can have a variable length. The knowledge of
whether attributes have a known fixed size is defined in a higher layer
specification.
8.Read Multiple Response
The read response is sent in reply toa received Read Multiple Requestandcontains the values of the attributes that have been read
9.Read by Group Type Request
The Read By Group Type Requestis used to obtain the values of attributeswhere the attribute type is known, the type of a grouping attribute as defined by
a higher layer specification,but the handle is not known.
10.Read by Group Type Response
The Read By Group Type Responseis sent in reply to a received Read ByGroup Type Requestand contains the handles and values of the attributes that
have been read
五.Writing Attributes
1.Write Request
The Write Requestis used to request the server to write the value of anattribute and acknowledge thatthis has been achieved in a Write Response
2.Write Response
The Write Responseis sent in reply to a valid Write Requestandacknowledges that the attribute has been successfully written
例:
3.Write Command
The Write Command is used to request the server to write the value of anattribute, typically into a control-pointattribute.
例:
4.Signed Write Command
The Signed Write Commandis used to request the serverto write the value of anattribute with an authentication signature, typically into a control-point attribute
六.Signed Write Command
The Signed Write Commandis used to request the serverto write the value of anattribute with an authentication signature, typically into a control-point attribute
七.ServerInitiated
1.Handle Value Notification
A server can send a notification of an attribute’s value at any time例:
2.Handle Value Indication
A server can send an indication of an attribute’s value3.Handle Value Confirmation
The Handle Value Confirmationis sent in response to a received Handle ValueIndicationand confirms that the client has received an indication of the given
attribute.
阅读全文
0 0
- 蓝牙BLE ATT剖析(二)-- PDU
- 蓝牙BLE ATT剖析(二)-- PDU
- 蓝牙BLE ATT剖析(一)
- 蓝牙BLE ATT剖析(一)
- 蓝牙BLE LINK LAYER剖析(二) -- PDU
- 蓝牙BLE LINK LAYER剖析(二) -- PDU
- 蓝牙SDP剖析(二) 之 PDU ID解析
- 蓝牙 BLE GATT 剖析(二)-- GATT UUID and 举例
- 蓝牙解析(part10):BLE ATT/GATT
- 蓝牙 BLE GATT 剖析(一)
- 蓝牙BLE 架构剖析
- BLE(低功耗蓝牙)中ATT协议简介
- Android蓝牙BLE(二)--使用蓝牙主机
- 蓝牙BLE LINK LAYER剖析(一) -- status and channel
- 蓝牙BLE LINK LAYER剖析(一) -- status and channel
- 蓝牙LMP剖析(二)
- 蓝牙HCI剖析(二)
- 蓝牙L2CAP剖析(二)
- httpclientutil
- Jsoup -- 网络爬虫解析器
- Fzu 2255 过河【Dp】好题!
- iOS开发:面向协议编程与 Cocoa 的邂逅 (上)
- 【机器学习杂货铺】——归纳偏好(暂缺)
- 蓝牙BLE ATT剖析(二)-- PDU
- ATECC508A芯片开发笔记(六):产生CSR以及申请证书(X.509)流程及其内容分析
- 637. Average of Levels in Binary Tree
- mysql in 查询返回的结果不一定按照传进的顺序
- 数据库的隔离级别以及悲观锁和乐观锁详解
- 图像分割汇总
- android netd守护进程机制 --- netd分析
- Java集合——set总结
- Section 2.1 hamming