当前位置:网站首页>Classic Bluetooth connection process
Classic Bluetooth connection process
2022-07-26 11:02:00 【deparks】
Classic Bluetooth connection process
Want to know the connection process of Bluetooth , You have to understand 3 A concept :
1, link Link: Physical link , It is a concept in baseband Protocol , Include ACL Links and SCO There are two kinds of links , The former is mainly used to transmit data , The latter transmits voice . A pair of Bluetooth devices , There is only one ACL link , Allow to exist 3 strip SCO link
2, channel channel: This is a L2DAP Concepts in the agreement , It's a logical channel , The endpoint of the channel is marked with a channel identifier CID Express , In two bytes , So at most 65536 Channels . That's one ACL Links can exist up to 65536 Channels . Channels include signaling channels and data channels , Establish data channel through signaling channel , Then the data is transmitted by the data channel . Signaling channel CID by 0x0001
3, Connect connection: Apply the concept of Profile , With this profile connection, Only in this way can the service and application of this profile be carried out .
among link establishment Partly from LMP Realization ,channel establishment Partly from L2CAP Realization ,connection establishment By the specific application profile (profile) To implement the .
We use the connection between mobile phones and Bluetooth headsets commonly used in life to analyze the connection process of Bluetooth in detail :
First , Main equipment (master, That is, the device that initiates the connection , Here's the cell phone ) Can page (page) Slave device (slave, Receive connected devices , This refers to Bluetooth headset ),master Will have hopped the way to page slave,slave Will scan at regular intervals (scan) External paging , namely page scan, When scan To the outside page Will respond response The page, In this way, a link The connection of , namely ACL Link connection . When ACL After the link connection is established , The master device will initiate channel Connection request for , namely L2CAP The connection of , establish L2CAP After connecting , The main equipment adopts SDP Go to inquire about the hands-free service of the slave device , Get from it rfcomm Your channel number , Then the master device will initiate rfcomm Connection request establishment rfcomm The connection of . Then the connection of the application is established .
namely link establish->channel establish->rfcomm establish->connection
边栏推荐
- Traversal recursion + iteration of binary tree
- 如何组装一个注册中心?
- 静态路由和动态路由
- ESXi6.5补丁更新
- 3Dunity游戏项目实战——飞机大战
- The assignment of member pointer defined in C structure and the use of structure pointer as member function parameter
- SCADA和三大工业控制系统PLC、DCS、FCS
- Sword finger offer (53): a string representing a numeric value
- Sword finger offer (twenty): stack containing min function
- Pytest fixture decorator
猜你喜欢

Scrapy shell出现的一个错误

很多人都不清楚自己找的是Kanban软件还是看板软件

@Notblank, @notnull, @notempty differences and uses

How the ThreadPoolExecutor performs tasks

Software Testing Overview: the background, essence and process of software testing

菜鸟看源码之ArrayDeque

QT——连接USB摄像头

WIRESHARK基础教程以太帧的分析。

postman 导出导入

Implementing queues with two stacks
随机推荐
MultipartFil转为File
C language pengge 20210812c language function
Pengge C language - minesweeping 2021-08-16
349. Intersection of two arrays
Novice source code hashtable
mysql20210906
MySQL quicklearn-2021-09-01
Basic use of logging
BigDecimal's addition, subtraction, multiplication and division, size comparison, rounding up and down, and BigDecimal's set accumulation, judge whether BigDecimal has decimal
Linkedblockingqueue of novice source code
0x00007FFD977C04A8 (Qt5Sqld.dll)处(位于 a.exe 中)引发的异常: 0xC0000005: 读取位置 0x0000000000000010 时发生访问冲突
Fragment lazy load
Fragment 懒加载
2021-08-13 learn C language with pengge - array
母亲
@Notblank, @notnull, @notempty differences and uses
35. Search the insertion position
实时流式协议--RTSP
Bash shell learning notes (III)
How to assemble a registry?