当前位置:网站首页>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
边栏推荐
- There is an unhandled exception at 0x003b66c3 in MFC: 0xc000041d: unhandled exception encountered during user callback
- Visual conversion of nmap vulnerability scanning results
- RT thread learning notes (V) -- edit, download and debug programs
- 为什么需要自动化测试?软件测试师带你测评不同软件测试工具
- Basic use of logging
- win10 1903 笔记本开热点出现蓝屏问题
- 菜鸟看源码之ArrayDeque
- QT——连接USB摄像头
- c结构体中定义的成员指针赋值与结构体指针作为成员函数参数的使用
- -bash: ./build.sh: /bin/bash^M: 坏的解释器: 没有那个文件或目录
猜你喜欢
随机推荐
There is an unhandled exception at 0x003b66c3 in MFC: 0xc000041d: unhandled exception encountered during user callback
Pytest case execution sequence
菜鸟看源码之ArrayList
2021-08-13 learn C language with pengge - array
Toolstrip border removal
@NotBlank、@NotNull 、@NotEmpty 区别和使用
Connection between PLC and servo motor
Drbl diskless startup + Clonezilla network backup and restore system
3dunity game project practice - first person shooting game
MFC picture control
C#委托与匿名方法浅析
mother
1837. Sum of digits under k-ary representation
Postman export import
经典蓝牙的连接过程
Pengge C language - minesweeping 2021-08-16
菜鸟看源码之SparseArray
104. Maximum depth of binary tree
@The real difference and usage between validated and @valid
Bash shell learning notes (II)









