当前位置:网站首页>Analysis of ble packet capturing debugging information
Analysis of ble packet capturing debugging information
2022-06-26 15:11:00 【jim0506】
1、l2cap fragment start;l2cap fragment
Segmentation and reorganization (Fragmentation and Recombination)
Some controllers may have limited transmission capacity , And may need to L2CAP Segments create clips of different sizes . therefore ,L2CAP The lower layer may be further to L2CAP PDU Fragment and recombine , To create clips that fit the capabilities of each layer . In the transport L2CAP PDU period , Many different levels of fragmentation and reassembly can occur between two peer devices .
HCI The driver or controller can control L2CAP PDU Go into segments , To comply with the packet size limit of the host controller interface transmission scheme . This leads to HCI The packet payload carries L2CAP PDU The beginning and continuation of . Similarly , The controller can put L2CAP PDU Segment to map them to controller packets . This may cause the controller packet load to carry L2CAP PDU The beginning and continuation of .
Each layer of the protocol stack may pass different sizes of L2CAP PDU Fragmentation , And the partition size created by each layer may be different in each peer device . However ,PDU Be segmented within the stack , receive L2CAP The entity still recombines these segments to get the original L2CAP PDU.
2、SERVER CONFIGURATION
This function is client Used to set ATT Of , There is only one setting MTU size The program :Exchange MTU
When client Of ATT_MTU Greater than default ATT_MTU when ,client Will call Exchange MTU Application configuration ATT_MTU, This program is executed only once during the connection process ( In fact, it can also be used in connection ,Android Native CTS In the test, there are changes in the connection ATT_MTU The operation of ). stay BR/EDR physical link Don't execute Exchange MTU,MTU The interaction is L2CAP It's done
The process :
(1)client send out ATT Of Exchange MTU Request to server, Parameters Client Rx MTU Set to the maximum you can receive MTU size
(2)Server There are two possible responses , One is Exchange MTU Response and Error Response, Reply to... Under normal circumstances Exchange MTU Response, Parameters Server Rx MTU by server The maximum amount that the terminal can receive MTU size, then client and server Will take Client Rx MTU and Server Rx MTU The smallest value in is taken as ATT_MTU. Reply in case of abnormality Error Response,error code The reason for the failure will be set , If Error Code by Request Not Supported, be client and server Will use default MTU
As shown in the figure below :

Client send out Exchange MTU Request, Set up Client Rx MTU=0x0200,Server reply Exchange MTU Response, Set up Server Rx MTU=0x0032,server and client City settings ATT_MTU=0x0032
边栏推荐
猜你喜欢

【TcaplusDB知识库】TcaplusDB系统用户组介绍
Advanced operation of MySQL database basic SQL statement tutorial

Halcon C# 设置窗体字体,自适应显示图片

About selenium common. exceptions. Webdriverexception: message: an unknown server side error solution (resolved)

Unity uses skybox panoramic shader to make panorama preview. There is a gap. Solution

【TcaplusDB知识库】TcaplusDB单据受理-事务执行介绍

TS common data types summary

Common operation and Principle Exploration of stream

ETL过程中数据精度不准确问题

TCP拥塞控制详解 | 1. 概述
随机推荐
MongoDB系列之适用场景和不适用场景
The DOTPLOT function in the epidisplay package of R language visualizes the frequency of data points in different intervals in the form of point graphs, specifies the grouping parameters with the by p
Notes on writing questions in C language -- table tennis competition
R语言epiDisplay包的dotplot函数通过点图的形式可视化不同区间数据点的频率、使用by参数指定分组参数可视化不同分组的点图分布、使用cex.X.axis参数指定X轴轴刻度数值标签字体的大小
Detailed explanation of C language programming problem: can any three sides form a triangle, output the area of the triangle and judge its type
程序分析与优化 - 8 寄存器分配
10 minutes to understand bim+gis fusion, common BIM data formats and characteristics
Solution to the upper limit of TeamViewer display devices
Optimizing for vectorization
php文件上传00截断
cluster addslots建立集群
使用 Abp.Zero 搭建第三方登录模块(一):原理篇
Smoothing data using convolution
R语言使用epiDisplay包的aggregate函数将数值变量基于因子变量拆分为不同的子集,计算每个子集的汇总统计信息、使用aggregate.data.frame函数计算分组汇总统计信息
Minister of investment of Indonesia: Hon Hai is considering establishing electric bus system and urban Internet of things in its new capital
Is it safe to open an account by digging money? Is there any risk?
MongoDB系列之Window环境部署配置
刷题笔记(十九)--二叉树:二叉搜索树的修改与构造
数据库-序列
Common operation and Principle Exploration of stream