设为首页 收藏本站
查看: 795|回复: 0

[经验分享] 蓝牙BLE ATT剖析(二)-- PDU

[复制链接]

尚未签到

发表于 2017-7-4 12:26:25 | 显示全部楼层 |阅读模式
一.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
DSC0000.jpg

DSC0001.jpg

二.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.
DSC0002.jpg
2.Exchange MTU Response
  The Exchange MTU Responseis sent in reply to a received Exchange MTU Request.
DSC0003.jpg
三.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
DSC0004.jpg
2. Find Information Response
  The Find Information Responseis sent in reply to a received Find Information Requestand contains information about this server
DSC0005.jpg
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
DSC0006.jpg
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
DSC0007.jpg
3.Read Request
  The Read Requestis used to request the serverto read the value of an attribute and returnits value in a Read Response
DSC0008.jpg
4.Read Response
  The read response is sent in reply toa received Read Requestand contains the value of the attribute that has been read
DSC0009.jpg
  例:
DSC00010.jpg

DSC00011.jpg DSC00012.jpg

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
DSC00013.jpg
2.Write Response
  The Write Responseis sent in reply to a valid Write Requestand acknowledges that the attribute has been successfully written
DSC00014.jpg
  例:
DSC00015.jpg

DSC00016.jpg DSC00017.jpg

3.Write Command
  The Write Command is used to request the server to write the value of an attribute, typically into a control-pointattribute.
DSC00018.jpg
  例:
DSC00019.jpg

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
DSC00020.jpg
  例:
DSC00021.jpg

2.Handle Value Indication
  A server can send an indication of an attribute’s value
DSC00022.jpg
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.
DSC00023.jpg

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-390719-1-1.html 上篇帖子: ssl 握手过程【收藏】 下篇帖子:
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表