BlueIOT (Beijing) Technology Co., Ltd.
back
Blueiot Blog

The Layered Architecture of the Bluetooth Protocol System

2025-09-03

With the booming development of wireless communication technology, Bluetooth, with its low power consumption, low cost, and convenient short-range communication capabilities, has become a key link for the interconnection of numerous electronic devices. From seamless integration between smartphones and wireless headphones to collaborative operation between smart home devices, Bluetooth technology is ubiquitous. Underpinning these powerful features is Bluetooth's scientifically designed layered protocol architecture. This layered architecture, like a sophisticated gear train, ensures efficient, stable, and reliable Bluetooth communication through the coordinated operation of each layer.


The_Layered_Architecture_of_the_Bluetooth_Protocol_System.png


Overview of the Layered Architecture of the Bluetooth Protocol System


The Bluetooth protocol system utilizes a layered design pattern, which breaks down complex communication functions into multiple, relatively independent layers. Each layer has clear responsibilities and functions and interacts with adjacent layers through standardized interfaces. This layered architecture not only improves the protocol's scalability and compatibility, but also facilitates protocol implementation and maintenance for developers. The Bluetooth protocol system is primarily divided into two major layers: the core protocol layer and the adaptation protocol layer. The following details the specifics of each layer.

 

Core Protocol Layers


Physical Layer

The physical layer is the lowest layer of the Bluetooth protocol architecture, responsible for establishing physical connections between Bluetooth devices and for basic data transmission.

Frequency Band and Channels: Bluetooth operates in the 2.4 GHz ISM (Industrial, Scientific, and Medical) band, a globally license-free frequency band. To prevent interference with other wireless devices within this band, Bluetooth uses frequency-hopping spread spectrum (FHSS) technology, dividing the 2.4 GHz to 2.4835 GHz band into 79 1-MHz-wide channels and rapidly hopping between these channels at a rate of 1600 times per second. This frequency hopping mechanism significantly improves Bluetooth communication's anti-interference capabilities, enabling Bluetooth devices to operate stably in complex electromagnetic environments.

Transmit Power: The physical layer also specifies the transmit power level of Bluetooth devices. Different transmit power levels can be selected based on different application scenarios and requirements. For example, for short-range communication, a lower transmit power can be selected to reduce power consumption and extend device battery life. For longer-range communication, the transmit power can be increased to enhance signal strength. Common Bluetooth transmit power levels include Class 1 (maximum transmit power of 100mW, communication range of approximately 100 meters), Class 2 (maximum transmit power of 2.5mW, communication range of approximately 10 meters), and Class 3 (maximum transmit power of 1mW, communication range of less than 1 meter).

Link Manager Protocol Layer (LMP)

The link manager layer, located above the physical layer, is primarily responsible for establishing, maintaining, and tearing down links between Bluetooth devices, as well as managing link security.

Link Establishment and Teardown: When two Bluetooth devices need to communicate, the link manager layer initiates the link establishment process. It performs operations such as device discovery, authentication, and link key exchange by sending and receiving specific link management protocol data units (LMP PDUs), ultimately establishing a reliable Bluetooth link. After communication is complete, the link manager layer tears down the link, releasing associated resources to ensure efficient system operation. Link Maintenance and Security Management: After a link is established, the link management layer continuously monitors link quality and automatically adjusts parameters such as the frequency hopping sequence and transmit power based on channel conditions to ensure link stability and reliability. It also manages link security, employing security mechanisms such as encryption and authentication to protect data on the link from eavesdropping and tampering, ensuring secure communications.

Logical Link Control and Adaptation Protocol Layer (L2CAP)

The Logical Link Control and Adaptation Protocol Layer is one of the core layers in the Bluetooth protocol architecture, providing connection-oriented and connectionless data transmission services for upper-layer protocols.

Data Segmentation and Reassembly: Because the Bluetooth physical layer has a small Maximum Transmission Unit (MTU), it cannot directly transmit large data packets. Therefore, L2CAP segments large data packets received from upper-layer protocols and reassembles them at the receiving end to ensure correct data transmission. This data segmentation and reassembly mechanism enables Bluetooth to transmit data of various sizes, meeting the needs of diverse applications. Protocol Multiplexing and Quality of Service (QoS) Control: L2CAP supports multiple upper-layer protocols using the Bluetooth link simultaneously. Through a protocol multiplexing mechanism, different upper-layer protocols are allocated different logical channels, achieving multiplexing. Furthermore, L2CAP provides different levels of quality of service (QoS) based on the requirements of the upper-layer protocols, such as guaranteed data transmission latency and bandwidth, to meet the needs of applications with high real-time requirements, such as audio and video transmission.

Service Discovery Protocol Layer (SDP)

The service discovery protocol layer is a key layer in the Bluetooth protocol for service discovery and querying between devices.

Service Discovery and Query: In a Bluetooth network, each device can provide multiple services, such as audio transmission and file transfer. SDP allows a Bluetooth device to discover the services provided by other devices and their associated attributes, such as service type, service identifier, and service access method. Through SDP, devices can dynamically learn about available services in their environment and select the appropriate service to connect to and use based on their needs.

Service Information Update and Maintenance: When a device's services change, SDP promptly updates the service information and notifies other devices. At the same time, the SDP maintains service information, ensuring its accuracy and consistency so that devices can correctly discover and use services.

 

Adaptation Protocol Layer


The adaptation protocol layer is designed to enable Bluetooth technology to integrate and adapt with other existing communication protocols or networks, expanding the application scope of Bluetooth technology.

Object Exchange Protocol (OBEX)

OBEX is a protocol for exchanging objects between devices. It provides a simple and efficient way to transfer various types of data objects, such as files, business cards, and calendar items.


Standard Commands and Responses: OBEX defines a set of standard commands and responses that enable operations such as uploading, downloading, and deleting objects between devices. For example, users can use the OBEX protocol to quickly transfer contact information from their phone to a Bluetooth printer for printing, or transfer files from their computer to a Bluetooth storage device for storage.


Integration with Upper-Layer Applications: OBEX can integrate with upper-layer applications, providing convenient object exchange capabilities. Many operating systems and applications support the OBEX protocol, allowing users to easily share data between devices. 2. Serial Port Emulation Protocol (RFCOMM)


RFCOMM is a protocol that emulates a serial cable connection over a Bluetooth link, allowing serial-based applications to be seamlessly migrated to the Bluetooth platform.


Serial Port Function Emulation: Many traditional devices, such as modems and GPS receivers, use serial ports for communication. Using the RFCOMM protocol, Bluetooth devices can emulate serial port functionality, allowing them to connect and communicate with these legacy devices. For example, connecting a Bluetooth module to a GPS receiver via RFCOMM allows devices like smartphones to obtain GPS location information via Bluetooth without the need for a physical serial cable.


Compatibility and Ease of Use: The RFCOMM protocol offers excellent compatibility and ease of use. It adheres to traditional serial port communication standards, making it easy for developers to port existing serial port applications to the Bluetooth platform, reducing development costs and complexity.

 

The Bluetooth protocol architecture is a carefully designed layered system, with each layer collaborating and supporting each other to achieve efficient, stable, and secure communication between Bluetooth devices. From the physical layer of wireless transmission to the upper layers of service discovery and object exchange, each layer plays an indispensable role.
Previous : No more
Previous : No more
Next : No more
Next : No more