当前位置:网站首页>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.
边栏推荐
- AI+视频技术助力保障校园安全,校园智能安防平台该如何建设?
- 《PyTorch深度学习实践》第十课(卷积神经网络CNN)
- 【JVM调优】Xms和Xmx为什么要保持一致
- RK3568环境安装
- VS Code私有服务器部署(私有化)
- typescript64-映射类型
- 【工具配置篇】VSCode 常用使用总结
- 1, Citrix XenDesktop 2203 AD domain system installation (1)
- FPGA parsing B code----serial 4
- 2022 Fusion Welding and Thermal Cutting Operation Certificate Exam Questions and Mock Exams
猜你喜欢
随机推荐
【C语言】结构体变量数据通过 void* 传入到函数中
在STM32中使用printf函数
Technical Analysis Mode (8) Double Top and Bottom
HelloWorld
微信小程序仿input组件、虚拟键盘
今天虚竹哥又发现了一款好用的国产化API工具
MySQL: basic part
怎么样避免线上内存泄漏
Week 8 Document Clustering(文本聚类)
八大排序之堆排序
【动态类型检测 Objective-C】
《基于R语言的自动数据收集》--第3章 XML和JSON
【5】Docker中部署MySQL
【网友真实投稿】为女友放弃国企舒适圈,转行软件测试12k*13薪
亚马逊美国站:马术头盔CPC认证标准要求
七夕!专属于程序员的浪漫表白
基于快速行进平方法的水面无人船路径规划
技术分析模式(十)头肩图案
Shiny04---DT和进度条在shiny中的应用
自媒体人一般会从哪里找素材呢?









