一.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 the client’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 MTU Request.

三.Find Information

1.Find Information Request

The Find Information Requestis used to obtain the mapping of attribute handles 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 Information Requestand contains information about this server

3.Find By Type Value Request

The Find By Type Value Requestis used to obtain the handles of attributes that have 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 the attribute type is known butthe handle is not known

2.Read ByType Response

The Read By Type Responseis sent in reply to a received Read By Type Requestand 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 an attribute and returnits value in a Read Response

4.Read Response

The read response is sent in reply toa received Read Requestand contains the 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 value of 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 Requestand contains 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 more values 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 Requestand contains 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 attributes where 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 By Group 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 an attribute and acknowledge thatthis has been achieved in a Write Response

2.Write Response

The Write Responseis sent in reply to a valid Write Requestand acknowledges that the attribute has been successfully written

例:

3.Write Command

The Write Command is used to request the server to write the value of an attribute, typically into a control-pointattribute.

例:

4.Signed Write Command

The Signed Write Commandis used to request the serverto write the value of an attribute 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 an attribute 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 value

3.Handle Value Confirmation

The Handle Value Confirmationis sent in response to a received Handle Value Indicationand confirms that the client has received an indication of the given attribute.

蓝牙BLE ATT剖析(二)-- PDU的更多相关文章

  1. 蓝牙BLE ATT剖析(一)

    一.概述 The attribute protocol allows a device referred to as the server to expose a set of attributes ...

  2. 蓝牙 BLE GATT 剖析(二)-- GATT UUID and 举例

    generic attribute profile (GATT)The Generic Attributes (GATT) define a hierarchical data structure t ...

  3. 蓝牙 BLE GATT 剖析(一)

    一.概述 The Generic Attribute Profile (GATT) defines a service framework using the Attribute Protocol. ...

  4. 蓝牙BLE 架构剖析

    一.BLE架构概述: 二.各个层

  5. 【转】蓝牙ble app开发(三) -- 抓包

    原文网址:http://blog.csdn.net/lckj686/article/details/43156617 关于android 蓝牙app开发抓包的重要性在 android 蓝牙ble ap ...

  6. 蓝牙BLE: ATT协议层中属性(Attribute)

    ATT(Attribute Protocol)属性层是GATT和GAP的基础,它定义了BLE协议栈上层的数据结构和组织方式. 属性(Attribute)概念是ATT层的核心,ATT层定义了属性的内容, ...

  7. [蓝牙] 3、 剖析BLE心率检测工程

    位于:<KEIL path> \ARM\Device\Nordic\nrf51822\Board\pca10001\s110\ble_app_hrs Heart Rate Example ...

  8. Android4.3 蓝牙BLE初步

    一.关键概念: Generic Attribute Profile (GATT) 通过BLE连接,读写属性类小数据的Profile通用规范.现在所有的BLE应用Profile都是基于GATT的.   ...

  9. 【转】Android4.3 蓝牙BLE初步

    原文网址:http://www.cnblogs.com/savagemorgan/p/3722657.html 一.关键概念: Generic Attribute Profile (GATT) 通过B ...

随机推荐

  1. jq生成目录文件树jQuery Ztree基本用法

    转自:http://www.cnblogs.com/linjiqin/p/4547452.html 1.首先在页面上有<ul/>标签 ? 1 <ul id="tree&qu ...

  2. Spark Streaming中向flume拉取数据

    在这里看到的解决方法 https://issues.apache.org/jira/browse/SPARK-1729 请是个人理解,有问题请大家留言. 其实本身flume是不支持像KAFKA一样的发 ...

  3. web service介绍

    WEB SEVICE平台 web Service 三种基本元素: SOAP .WSDL .UDDI 什么是SOAP:       XML+HTTP 基本的Web Service平台 SOAP 简易对象 ...

  4. linux下Gnome桌面环境的安装

    在实际工作中,无论是生产环境还是公司内部环境.很多时候装的linux系统都是最小化安装的.即没有桌面环境, 那么如果有时我们又需要一个桌面环境.该怎么安装呢?其实不难,现笔者将安装方法分享如下. 测试 ...

  5. 移动开单软件 手持PDA开单扫描打印系统开发介绍

    具体功能预览--(图示) PDA开单打印扫描采集器主程序: ▲门店使用:接单员销售开单.销售退货或查询相关资料. ▲仓库使用:PDA仓库验收货.发货.仓库盘点 ▲在外业务开单:业务在外面开销售单.销售 ...

  6. Color a Tree[HDU1055]

    Color a Tree Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Tota ...

  7. POJ 2763 (树链剖分+边修改+边查询)

    题目链接:http://poj.org/problem?id=2763 题目大意:某人初始在s点.有q次移动,每次移动沿着树上一条链,每经过一条边有一定花费,这个花费可以任意修改.问每次移动的花费. ...

  8. 洛谷 P1009 阶乘之和 Label:高精度

    题目描述 用高精度计算出S=1!+2!+3!+…+n!(n≤50) 其中“!”表示阶乘,例如:5!=5*4*3*2*1. 输入输出格式 输入格式: 一个正整数N. 输出格式: 一个正整数S,表示计算结 ...

  9. Linux下java获取CPU、内存、磁盘IO、网络带宽使用率

    一.CPU 使用proc文件系统,"proc文件系统是一个伪文件系统,它只存在内存当中,而不占用外存空间.它以文件系统的方式为访问系统内核数据的操作提供接口.用户和应用程序可以通过proc得 ...

  10. Xshell选中的同时把内容复制到剪贴板(还可以设置设置文本分隔符)

    1.设置对话框 工具 -> 选项 -> 键盘和鼠标 -> 将选定的文本自动复制到剪贴板 2.贴图如下 2.1.打开设置对话框 2.2.设置键盘鼠标,左键复制 2.3.右键粘贴 作者: ...