当前位置:网站首页>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.
边栏推荐
- AH8669-AC380/VAC220V转降5V12V24V500MA内电源芯片IC方案
- Takeda Fiscal 2022 First Quarter Results Strong; On Track to Achieve Full-Year Management Guidance
- lingo入门——河北省第三届研究生建模竞赛B题
- 日本卫生设备行业协会:日本温水喷淋马桶座出货量达1亿套
- 【instancetype类型 Objective-C】
- typescript60-泛型工具类型(readonly)
- 盒子模型中过度约束问题及其解决办法
- UDP广播
- UDP组(多)播
- 亚马逊美国站:马术头盔CPC认证标准要求
猜你喜欢
随机推荐
Database table insert data
(四)旋转物体检测数据roLabelImg转DOTA格式
TCP的粘包拆包问题+解决方案
Using printf function in STM32
Jenkins详细配置
VS Code私有服务器部署(私有化)
MySQL:基础部分
【JVM调优】Xms和Xmx为什么要保持一致
AI + video technology helps to ensure campus security, how to build a campus intelligent security platform?
腾讯业务安全岗 IDP 谈话总结
二叉搜索树问题
MySQL:JDBC编程
防抖函数和节流函数
自媒体人一般会从哪里找素材呢?
typescript63-索引签名类型
技术分析模式(十)头肩图案
MySQL:连接查询 | 内连接,外连接
UDP group (multi)cast
MySQL: JDBC programming
PCI Pharma Services Announces Multi-Million Dollar Expansion of UK Manufacturing Facility to Meet Growing Demand for Global High Potency Drug Manufacturing Services to Support Oncology Treatment