Bluetooth Core Technology Overview (5): Bluetooth protocol specifications (irOBEX, BNEP, AVDTP, AVCTP ),
Keywords: Bluetooth Core Technology protocol irDA BNEP AVDTP AVCTP
Author: xubin341719 (You are welcome to reprint it. Please indicate the author. Please respect copyright. Thank you !)
Correct the mistakes and learn and make progress together !!
Download link:Bluetooth PROFILE SPECIFICATIONS(Basically covering all Bluetooth protocols ),Buletooth core 2.1-4.0 SPECIFICATION(Core Protocol v2.1 \ v3.0 \ v4.0 of the three Bluetooth versions ),Core Bluetooth Technology and Application(For more information about the Bluetooth protocol, see)
Bluetooth Core Technology Overview (I): Bluetooth Overview
Core Bluetooth Technology Overview (II): Bluetooth application scenarios
Bluetooth Core Technology Overview (III): Bluetooth protocol specifications (RF, baseband Link Control, Link Management)
Bluetooth Core Technology Overview (iv): Bluetooth protocol specifications (HCI, L2CAP, SDP, RFOCMM)
Bluetooth Core Technology Overview (5): Bluetooth protocol specifications (irOBEX, BNEP, AVDTP, AVCTP)
I. IrDA Interoperability Protocol
IrOBEX infrared object interaction protocol (OBEX) enables high-level protocols to operate simultaneously on wireless links of Bluetooth and infrared.
Main Operation Commands include: Connection operation, disconnection operation, Put operation, and Get operation.
1. Connection operation, Operation Code 0x80
Byte 0 |
Byte 1, 2 |
Byte 3 |
Byte 4 |
Bytes 5, 6 |
Byte 7 ~ N |
0x80 |
Connection Request group Length |
OBEX version |
Flag |
Maximum length of the OBEX group that the client can receive |
Optional Header |
Byte 0 |
Byte 1, 2 |
Byte 3 |
Byte 4 |
Bytes 5, 6 |
Byte 7 ~ N |
0x80 Connect command |
7 |
0x10 |
Flag |
65534 |
Optional Header |
Connection response
2. DisconnectThe operation code is 0x81.
3. Put operationThe operation code is 0x02.
After the connection is successful, the client uses the Put request to "push" the object to the server. If the object is large, the Put request can be grouped by multiple Put requests.
4. Get operationThe operation code is 0x03.
Ii. Audio and telephone control protocols
1. Framework
Bluetooth Audio is shown in the Protocol Stack: audio is synchronized through baseband transmission and is implemented for connection groups. It is not provided in a standard form and is not part of the protocol stack.
TCS_Binary is a binary encoding instruction set based on group calls. It is located on top of L2CAP. Implement Bluetooth cordless phones and walkie talkie functions.
RFCOMM is used for AT commands. dial-up Internet access, Bluetooth headsets, headsets, and faxes are controlled by sending AT commands.
2. Audio part
64 Kbps carrier-level language quality audio streams
CVSD continuous variable slope delta continuous variable slope increment.
PCM pulse code modulation.
PCM has a slope effect. CVSD uses the syllable compression algorithm and the encoding step size is automatically adjusted according to the signal slope change. It is a good coding solution to improve the language's anti-interference ability.
3. Telephone Control
TCS-Binary Telephone Control Section.
(1) telephone call
Call Control, call establishment, and call removal;
(2) Group Management
Access permission requests, distributed configuration, and quick internal Member access.
Iii. Network Encapsulation Protocol BNEP
BNEP ipvthnetworkencapsulation Protocol network encapsulation Protocol.
To exchange information with network devices such as computers, telephones, PDAs, and household appliances integrated with Bluetooth technology, a unified data group at the network layer is required. The Network Encapsulation Protocol re-encapsulates data groups from different networks and transmits data through L2CAP. This part of the protocol seems to be of little use in reality, and there are more simple and convenient ways to implement network functions.
BNEP supports Ipv4, Ipv6, and IPX
Iv. audio and video distribution protocol AVDTP
AVDTPAudio/Video Distribution Transport Protocol audio and Video Distribution and transmission Protocol
Protocols for A/v avdtp, AVCTP, GAVDP, A2DP, and AVCRP
1. Basic concepts and terminologies
Stream:Stream is the form of audio/video transmission data. It is unidirectional transmission and is divided into media groups in AVDTP. The stream is identified with a uniform HS handle.
2. Signaling
AVDTP signaling list
Command |
Signaling identifier |
Description |
AVDTP_DISCOVER |
0x01 |
Discover the stream endpoint in the device |
AVDTP_GET_CAPABILITIES |
0x02 |
Ability to obtain stream endpoint Information |
AVDTP_SET_CONFIGURATION |
0x03 |
Configure SEP |
AVDTP_GET_CONFIGURATION |
0x04 |
Obtain the current SEP Configuration |
AVDTP_RECONFIGURE |
0x05 |
Reconfigure SEP |
AVDTP_OPEN |
0x06 |
After successfully configuring SEP, open the stream |
AVDTP_START |
0x07 |
Stream opened: Used to start forming a stream; when the stream is paused: used to form a new stream. |
AVDTP_CLOSE |
0x08 |
Disable SEP |
AVDTP_SUSPEND |
0x09 |
Request SEP to suspend |
AVDTP_SECURITY_CONTROL |
0x0A |
Set Content Protection for devices, or request device status information |
AVDTP_ABORT |
0x0B |
The process of interruption being established or transmitted |
AVDTP_GET_ALL_CAPABILITIES |
|
|
AVDTP_DELAYREPORT |
|
|
This part of signaling achieves Bluetooth A2DP data stream control;
(1) stream signaling management process
(2) get capabilities to obtain supported features
(3) set configuration to configure audio Parameters
Other commands are similar to the above two operations.
V. audio and video control transmission protocol AVCTP
AVCTP allows audio and video devices to support multiple application frameworks. Each application framework defines the corresponding message formats and rules.
This part of the operation is also insufficient in practical applications. The amount of data transmitted by Bluetooth is limited, and the implementation of these functions is insufficient. With the development of science and technology, the advantages and disadvantages of Bluetooth in wireless communication are highlighted, and the right direction to find is a reasonable direction of development.