当前位置: 首页 > wzjs >正文

微网站如何做微信支付网站建设与维护百度百科

微网站如何做微信支付,网站建设与维护百度百科,网站设计企,做网站加模块1.欢迎大家关注和订阅匠心之作,【精讲蓝牙协议栈】、【精讲BLE协议栈】和【Android Bluetooth Stack】专栏会持续更新中.....敬请期待! 2. 精讲蓝牙协议栈(Bluetooth Stack):SPP/A2DP/AVRCP/HFP/PBAP/IAP2/HID/MAP/OPP…

1.欢迎大家关注和订阅匠心之作【精讲蓝牙协议栈】【精讲BLE协议栈】【Android Bluetooth Stack】专栏会持续更新中.....敬请期待!

2. 精讲蓝牙协议栈(Bluetooth Stack):SPP/A2DP/AVRCP/HFP/PBAP/IAP2/HID/MAP/OPP/PAN/GATTC/GATTS/HOGP等协议理论

目录

1.AVCTP 概念

2.AVCTP 封包格式

2.1 没有被分隔的 AVCTP  

2.2 被分隔的 AVCTP


1.AVCTP 概念

AVCTP(Audio/Video Control Transport Protocol)协议描述了蓝牙设备间 Audio/Video 的控制信号交换的格式和机制,它是一个总体的协议,具体的控制 信息由其指定的协议(如 AVRCP)实现,AVCTP 本身只指定控制 command 和 response 的总体的格式。

几个重要的点:

(1)AVCTP uses point-to-point signaling over connection-oriented L2CAP channels.

(2)AVCTP shall be able to support both controller and target functionalities at both sides of the connection.

(3)Between two devices, multiple AVCTP connections may exist. Each AVCTP connection has its own L2CAP channel with its unique PSM value. There shall be only one AVCTP connection per PSM per ACL.

(4)Each AVCTP packet shall be transported on a single L2CAP packet.

(5)不同 L2CAP channel 上的相同的 transaction Label 是属于不同的 message 的。也就是说,两条 L2CAP 上的 packets 是没有关系的,不可能属于同一个 message。AVCTP 整个框架如下:

以上图示我继续做了细化,在整个协议栈的结构如红框:

 可以看到 AVCTP 是基于 L2CAP 协议的,他有两组 PSM,分别如下:

2.AVCTP 封包格式

AVCTP 封包格式分为两种: 

  • 没有被分隔的(小于 L2CAP MTU)
  • 被分隔的(大于 L2CAP MTU) 下面我们来分别介绍下每种的格式:

2.1 没有被分隔的 AVCTP  

Transaction label field: (octet 0, bits 7-4) value is provided by the application.传输标示,由上层提供

Packet_type field:(octet 0, bits 3 and 2) is set to zero to indicate that the command/response message is transmitted in a single L2CAP packet. 

此部分 00b 标示没有被分割.

C/R: (octet 0, bit 1) indicates whether the message conveys a command frame (0) or a response frame (1). It is provided by the application.0 代表 command,1 代表 response

IPID :bit (octet 0, bit 0) is set in a response message to indicate an invalid profile identifier received in the command message of the same transaction; otherwise this bit is set to zero. In command messages this bit is set to zero.在 command 中设置为 0,在 response 中设置为 0 代表正常

PID Profile Identifier (PID): field indicates that the command/response frame is coded according to the rules defined by the identified profile. The value shall be identical to the bits UUID of the service class,此 部分填写 16bit 的 UUID,比如 AVRCP 的 UUID 0x110e 后续的 Message Infomation 就是上层协议的数据

2.2 被分隔的 AVCTP

被分隔的的数据包格式一共有三种  

 我们在这里只介绍两个地方,其他跟没有被分隔的一致:

1)Packet_type:The Packet_Type field (see Section 6.1.2) qualifies each L2CAP packet as either first (Packet_Type=01), continue (Packet_Type=10), or end packet (Packet_Type=11). In the case of a nonfragmented message (see Section 6.1.1), this field (Packet_Type=00) simply indicates that the message fits into a single packet and the number of packets is not inserted in the message.

总结下:开始封包是 01b,继续封包 10b,结束封包是 11b

2)Number of AVCTP Packets is present in every start packet (octet 2 ) to indicate the total number of AVCTP packets that belong to the same message. As the start packet is also counted, this value is always greater than 1.

总结下:标示整个分隔封包的数量,包含这个开始封包,所以此封包的个数肯 定是大于 1 的。 示意图如下:

http://www.dtcms.com/wzjs/569328.html

相关文章:

  • 做电子商务系统网站wordpress用什么语言包
  • 网站建设与开发做什么美食网站建设服务策划书
  • 支付网站搭建南宁市千界网络科技有限公司
  • 焦作音响网站建设搜索引擎优化中的步骤包括
  • 网站排行榜国内做的比较好的网站
  • 免费 成品模板网站玄幻小说排行榜百度风云榜
  • 企业网站如何进行seo依宝诺手表官方网站
  • 青海wap网站建设阳江房产网58同城
  • 纪实摄影网站推荐泉州网站建设选择讯呢
  • 金顶街网站建设中国建设银行网址是什么
  • wap网站微信一键登录计算机女生就业方向
  • 本溪网站制作wordpress session
  • 加盟网站建设公司工程项目挂网在什么网站上看
  • 柳州公积金网站创新优典网站建设
  • 检测网站死链建设工商联网站的意义
  • 门户网站建设 报告南京科技网站设计有特点
  • 设计师接单的网站sem推广软件选哪家
  • 口岸地区网站建设内容山西怀仁建设银行
  • 工程信息网站有哪些中宁网站建设
  • 学院网站建设成效佛山市城乡和住房建设局网站
  • 适合前端新手做的网站山西招标
  • 网站结构怎么分析樟木头做网站
  • 有没有卖设计的网站wordpress查询数据库乱码
  • 网络定制营销seo关键词排名优化官网
  • wordpress地址和站点地址错赣州网站建设哪家公司好
  • 新网站怎么做谷歌推广呢桂林房产
  • 余姚网站定制专业网站定制流程
  • 网站建设项目的预表可以放钓鱼网站的免费空间
  • 电商网站设计公司可找亿企邦无锡市政建设集团有限公司网站
  • 重庆忠县网站建设公司哪家好网上购物型网站