当前位置:网站首页>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
边栏推荐
猜你喜欢

新来个技术总监要我做一个 IP 属地功能~

菜鸟看源码之HashTable

Drbl diskless startup + Clonezilla network backup and restore system

pytest 前后置方法

20210807 1 c language program structure

3Dunity游戏项目实战——第一人称射击游戏

Wechat official account message notice "errCode": 40164, "errmsg": "invalid IP

Classified by the number of 1 in binary number

Bash shell learning notes (III)

PyQt5快速开发与实战 3.1 Qt Designer快速入门
随机推荐
@JsonFormat和@DateTimeFormat的区别和使用
MultipartFil转为File
logging 学习最终版-配置的不同级别日志打印的颜色
Sword finger offer (43): left rotation string
Pengge C language 20210811 program structure operation
1748. Sum of unique elements
2021-08-14 Sanzi chess
解决org.apache.commons.codec.binary.Base64爆红问题
Analysis of C # delegation and anonymous method
Bash shell learning notes (III)
Sword finger offer (52): regularization expression
菜鸟看源码之LinkedBlockingQueue
Shape matching Halcon template
Drbl diskless startup + Clonezilla network backup and restore system
WIRESHARK基础教程以太帧的分析。
Sword finger offer (twenty): stack containing min function
Capture ZABBIX performance monitoring chart with selenium
Multipartfil to file
c 语言中宏参数的字符串化跟宏参数的连接
看源码之LinkedList