当前位置:网站首页>Bluetooth gap protocol
Bluetooth gap protocol
2022-08-05 07:05:00 【aningxiaoxixi】
**
Datagram **
(It is defined by the gap layer starting from advdata in the payload, and it was defined by the ll layer before)
pdu type Data type transmitted
0 Normal broadcast data
1 Directional broadcast data (data is transmitted to a specified device)
2 Unconnectable broadcast data
Payload format analysis
adva indicates the address of the broadcaster
advdata broadcaster data
Indicates data type in data
0 limited discovery mode
1 general discovery mode
From the above table, the physical layer table can be seen
The broadcaster must have the sending attribute (which can be understood as having a transmitter)
The observer must have the receiving attribute (which can be understood as having a receiver)
The central device and the peripheral device must have the sending attribute and the receiving attribute
Broadcast event
Non-connectable and non-scannable undirected event
Non-connectable, unscannable, undirected event
Procedure
There are 2 methods for observation procedure
1 Active scan:
Observer notifies broadcaster first, then scans broadcaster
2 Passive scan:
Observers just scan for broadcasters
Modes and Procedures
Divided into
1 Undiscoverable mode
2 Restricted discoverable mode
3 Normal discoverable mode
Connection modes and procedures
Non-Connectable Mode
Non-Connectable ModeDirected Connectable Mode
Directed Connectable Mode, which
peripherals can use if they want to quickly connect to the central device.
In this mode, it sends out the ADV_DIRECT_ADV broadcast message directly to the designated central device.
Therefore, the peripheral device should have established a connection with the central device.
The sending frequency of ADV_DIRECT_ADV broadcast messages is very fast. This mode lasts for 1.28S at most, after which the controller automatically stops broadcasting.Undirected Connectable Mode
Undirected Connectable Mode.
Use this mode if a peripheral device does not need to establish a connection quickly, or if you intend to save as much power as possible.
It sends out the ADV_IND broadcast message.Auto Connection Establishment Procedure
Auto Connection Establishment Procedure.
This procedure is used by the central device to set up the controller to automatically establish a connection to one or more peripheral devices.The Host needs to write the device to be connected to the "whitelist" in advance.
It has a disadvantage: only one basic set of connection parameters can be used for all devices.General Connection Establishment Procedure
The general connection establishment procedure.
This is our commonly used procedure, first scan out the device, select a certain one, and then use the "Direct Connection Establishment Procedure" to connect it.Selective Connection Establishment Procedure
Selective Connection Establishment Procedure.
The Host first puts the device to be connected into the "whitelist" of the Controller.Devices that are broadcasting, only those on the whitelist will be submitted to the host.
The Host decides whether to connect the device and uses different parameters to connect it.Compared to the "automatic connection establishment procedure", the "selective connection establishment procedure" can use different parameters to connect each device.Direct Connection Establishment Procedure
Direct Connection Establishment Procedure, direct connection to the specified device.Connection Parameter Update Procedure
Connection parameter update procedure.Terminate Connection Procedure
Terminate the connection procedure.
Central equipment or peripheral equipment can execute this procedure, just send LL_TERMINATE_IND PDU to each other through LL layer.
边栏推荐
- 任务流调度工具AirFlow,,220804,,
- PCI Pharma Services宣布斥资数百万美元扩建英国制造设施,以满足市场对支持肿瘤治疗的全球高效药制造服务日益增长的需求
- 360度反馈调查表中的问题示范
- 盒子模型小练习
- 2022最强版应届生软件测试面试攻略
- Technical Analysis Mode (8) Double Top and Bottom
- 八大排序之堆排序
- Takeda Fiscal 2022 First Quarter Results Strong; On Track to Achieve Full-Year Management Guidance
- 工作3年,回想刚入门和现在的今昔对比,笑谈一下自己的测试生涯
- 日本卫生设备行业协会:日本温水喷淋马桶座出货量达1亿套
猜你喜欢
随机推荐
开启防火墙iptable规则后,系统网络变慢
Nacos cluster construction
typescript62-泛型工具类型(record)
二叉搜索树问题
Matplotlib plotting notes
UDP组(多)播
(4) Rotating object detection data roLabelImg to DOTA format
盒子模型小练习
蓝牙gap协议
Promise (3) async/await
(四)旋转物体检测数据roLabelImg转DOTA格式
【MyCat简单介绍】
日本卫生设备行业协会:日本温水喷淋马桶座出货量达1亿套
AH8669-AC380/VAC220V转降5V12V24V500MA内电源芯片IC方案
IO process thread -> communication between processes -> day7
淘宝宝贝页面制作
typescript67-索引查询类型
AI + video technology helps to ensure campus security, how to build a campus intelligent security platform?
技术分析模式(九)三重顶部和底部
DevExpress中针对指定列进行百分比转换









