星期五, 03 06月 2022 20:56

Bluetooth Protocol Stack

The Bluetooth® Special Interest Group (SIG) [1] and [2] defines the protocol stack for Bluetooth low energy (LE) and Bluetooth basic rate/enhanced data rate (BR/EDR) technology. The fundamental objectives of these specifications is to develop interactive services and applications over interoperable radio components and data communication protocols.
This figure shows the architecture of the Bluetooth stack.

Bluetooth devices can be one of these two types:



Single mode – Supports a BR/EDR or LE profile


Dual mode – Supports BR/EDR and LE profiles



The subsequent sections provide details about the architecture of Bluetooth LE Protocol Stack and Bluetooth BR/EDR Protocol Stack.

Bluetooth LE Protocol Stack
This figure compares the Bluetooth LE protocol stack to the Open System Interconnection (OSI) reference model.

In the preceding figure, the Bluetooth LE protocol stack is shown along with the OSI reference model.



There is one-to-one mapping at the physical layer (PHY)


The OSI data link layer (DLL) maps to the Bluetooth LE logical link control and adaptation protocol (L2CAP) and link layer (LL)


In the Bluetooth LE stack, the higher layers provide application layer services, device roles and modes, connection management, and security protocol



The functionality of the Bluetooth LE protocol stack is divided between three main layers: the Controller, the Host, and Application Profiles and Services.


Controller
The controller layer includes the Bluetooth LE PHY, the LL, and the controller-side host controller interface (HCI).
Bluetooth LE PHY.  The Bluetooth LE PHY air interface operates in the same unlicensed 2.4 GHz Industrial, Scientific, and Medical (ISM) frequency band as Wi-Fi®. The Bluetooth LE PHY air interface also includes these characteristics:



Operating radio frequency (RF) is in the range 2.4000 GHz to 2.4835 GHz, inclusive.


The channel bandwidth is 2 MHz. The operating band is divided into 40 channels, k = 0, …, 39. The center frequency of the kth channel is 2402 + k × 2 MHz.



User data packets are transmitted using channels in the range [0, 36].


Advertising data packets are transmitted in channels 37, 38, and 39.





Gaussian frequency shift-keying (GFSK) modulation scheme is implemented.


The Bluetooth LE PHY uses frequency-hopping spread spectrum (FHSS) to reduce interference and to counter the impact of fading channels. The time between frequency hops can vary from 7.5 ms to 4 s and is set at the connection time for each Peripheral.


Support for throughput at 1 Mbps is mandatory for specification version 4.x compliant devices. At a data rate of 1 Mbps, the transmission is uncoded.


Optionally, devices compliant with the Bluetooth Core Specification version 5.1 support these additional data rates:



Coded transmission at bit rates of 500 kbps or 125 kbps


Uncoded transmission at a bit rate of 2 Mbps






LL.  The LL performs tasks similar to the medium access control (MAC) layer of the OSI model. In Bluetooth, the LL interfaces directly with the Bluetooth LE PHY and manages the link state of the radio to define the role of a device as Central, Peripheral, Advertiser, or Scanner.
Controller-Side HCI.  The HCI on the controller side handles the interface between the host and the controller. The HCI defines a set of commands and events for transmission and reception of packet data. When receiving packets from the controller, the HCI extracts raw data at the controller to send to the host.


Host
The host includes the host-side HCI, L2CAP, attribute protocol (ATT), generic attribute profile (GATT), security manager protocol (SMP), and generic access profile (GAP).
Host-Side HCI.  The HCI on the host side handles the interface between the host and the controller. The HCI defines a set of commands and events for transmission and reception of packet data. When transmitting data, the HCI translates raw data into packets to send them from the host to the controller.
L2CAP.   The L2CAP encapsulates data from the Bluetooth LE higher layers into the standard Bluetooth LE packet format for transmission or extracts data from the standard Bluetooth LE LL packet on reception according to the link configuration specified at the ATT and SMP layers.
ATT.   The ATT transfers attribute data between clients and servers in GATT-based profiles. The ATT defines the roles of the client-server architecture. The roles typically correspond to the Central and the Peripheral as defined in the link layer. In general, a device could be a client, a server, or both, irrespective of whether it is a Central or a Peripheral. The ATT also performs data organization into attributes as shown in this figure.

Device attributes are represented as:



The attribute handle is a 16-bit identifier value assigned by the server to enable a client to reference those attributes....

继续阅读完整内容

请查看下方广告以解锁文章剩余内容

广告加载中...
查看 29236