Gopalakrishnan M
14. January 2024 Categories: Technology,

In the previous blog “Introduction to Bluetooth technology” we described a brief on technology advancement and its details. In this blog, we will discuss in detail the Bluetooth architecture OSI Model mapping, physical, link layer and BT-WIFI coexistence support in physical layer.

Bluetooth technology Introduction

Bluetooth is wireless technology standard using short wavelength Ultra High frequency radio waves in the license free Industrial, Scientific and Medical (ISM) frequency band. Bluetooth is managed by Bluetooth SIG (Special Interest Group) originally formed by five companies Ericsson, Nokia, IBM, Toshiba and Intel. The Bluetooth SIG will publish and update the Bluetooth specifications. The IEEE standardized Bluetooth as IEEE 802.15.1, but no longer maintains the standard. The Bluetooth radio interface enables reliable communications over short distances. It supports multiple channels with different power levels and reliable forms of modulation.

Bluetooth Technology OSI layer mapping

Bluetooth protocol can be mapped to the OSI (Open Systems Interconnection) model as per the below picture.

Bluetooth OSI Mapping

Bluetooth OSI Mapping

Physical Layer Bluetooth operates in the 2.4 GHz ISM (Industrial, Scientific, and Medical) band.
It uses frequency-hopping spread spectrum (FHSS) for transmission, dividing the band into channels.
Data Link Layer Bluetooth uses the L2CAP (Logical Link Control and Adaptation Protocol) protocol, which operates above the baseband layer.
L2CAP provides both connection-oriented and connectionless data services to upper-layer protocols.
It handles segmentation and reassembly of packets, as well as flow control and error correction.
Network Layer Not applicable
Transport Layer Bluetooth does not directly correspond to the OSI transport layer. Instead, it relies on L2CAP to provide transport services.
Session Layer Bluetooth does not have a dedicated session layer like the OSI model. However, certain Bluetooth profiles define sessions for specific applications (e.g., Audio/Video Control Transport Protocol (AVCTP) for controlling audio/video sessions).
Presentation Layer Data formatting and presentation are handled by upper-layer protocols.
Application Layer Bluetooth profiles such as SPP (Serial Port Profile), HFP (Hands-Free Profile), A2DP (Advanced Audio Distribution Profile), and many others operate at the application layer.
These profiles define specific use cases and protocols for various applications such as file transfer, audio streaming, and device control.

In this article, we will look in to Physical and Link layer.

Bluetooth Frequency Hopping Technique

Bluetooth frequencies are in the 2.4GHz ISM band. The frequency in ISM bands ranges from 2400MHz to 2483.5MHz. There is 1MHz space between each Bluetooth channel starting from 2402MHz and ending at 2480MHz. This can be calculated as 2401 + n, where n ranges from 1 to 79. This type of channel arrangement gives a guard band of 2MHz at the bottom end and 3.5MHz at the top, thus preventing interference. Bluetooth employs a technology called Frequency Hopping Spread Spectrum by which the radio signals are transmitted by rapidly switching the carrier signal among various frequency channels. In this method the transmitted data is divided into packets and sent on one of 79 designated channels switched randomly at a rate of 1600 times per second. The main drawback of this technique is the occurrence of collision with another wireless device such as Wi-Fi when introduced into the same environment.

Bluetooth Physical Layer Design

Bluetooth physical layer consists of baseband and radio specifications as defined in IEEE 802.15.1. It contains the analog communications circuitry responsible for the translation of digital symbols over the air. It is the lowest layer of the protocol stack and provides its services to the link layer. Using this layer, BLE offers data rates of 1 Mbps (Bluetooth v4.2)/2 Mbps (Bluetooth v5.0). Some of the main aspects it covers include:

  1. Frequency band
  2. Gaussian frequency shift keying (GFSK) modulation scheme
  3. Transmission speeds
  4. Power
  5. Receiver sensitivity
  6. Time division

Bluetooth LE defines three physical layer variants known as PHYs.

  1. LE 1M
  2. LE 2M
  3. LE Coded

The LE 1M PHY uses a symbol rate of 1 Msym/s with a required frequency deviation of at least 185 kHz. All devices must support the LE 1M PHY.

The LE 2M PHY is like LE 1M but uses a symbol rate of 2 Msym/s and has a required frequency deviation of at least 370 kHz. Support for the LE 2M PHY is optional.

The LE Coded PHY uses a symbol rate of 1 Msym/s. Packets are subject to a coding called Forward Error Correction (FEC) and, depending on configuration, a pattern mapping. This increases the effective range of transmissions but reduces the application data rate. Support for the LE Coded PHY is optional.

Bluetooth Data Link Layer

The Link Manager (LM) is the system that manages establishing the connection between devices. It is responsible for the establishment, authentication and configuration of the link. The Link Manager locates other managers and communicates with them via the management protocol of the LMP link. To perform its function as a service provider, the LM uses the services included in the Link Controller (LC).

Link Manager Protocol (LMP) − LMP establishes logical links between Bluetooth devices and maintains the links for enabling communications. The other main functions of LMP are device authentication, message encryption, and negotiation of packet sizes.

Logical Link Control and Adaptation Protocol (L2CAP) − L2CAP provides adaptation between upper layer frame and baseband layer frame format. L2CAP provides support for connection oriented and connectionless services.

The Link Manager Protocol basically consists of several PDUs (Protocol Data Units) that are sent from one device to another. The following is a list of supported services:

  • Transmission and reception of data
  • Name request
  • Request of the link addresses
  • Establishment of the connection
  • Authentication
  • Negotiation of link mode and connection establishment
Logical Link Control and Adaptation Protocol

The Logical Link Control and Adaptation Protocol (L2CAP) is used to multiplex multiple logical connections between two devices using different higher-level protocols. It provides segmentation and reassembly of on-air packets.

In Basic mode, L2CAP provides packets with a payload configurable up to 64 kB, with 672 bytes as the default MTU, and 48 bytes as the minimum mandatory supported MTU.

In Retransmission and Flow Control modes, L2CAP can be configured either for isochronous data or reliable data per channel by performing retransmissions and CRC checks.

BT/Wi-Fi coexistencence with Adaptive Frequency Hopping

Engineers and researchers embarked on a quest to find solutions that would allow BT and WiFi to coexist harmoniously. BLE introduced low power consumption and advancements in frequency hopping techniques, allowing Bluetooth devices to dynamically switch between channels, thereby reducing the likelihood of interference with WiFi signals.

Bluetooth –Wi-Fi Collision

Bluetooth –Wi-Fi Collision

The Adaptive Frequency Hopping technique allows Bluetooth to adapt to the environment by excluding the fixed sources of interference (i.e. bad channels) from the available list of channels. This technique of re-mapping reduces the number of channels to be used by Bluetooth. The following figure illustrates the collision resulting from the random frequency hopping adapting to the environment.

Bluetooth Wi-Fi Collision Avoidance with AFH

Bluetooth Wi-Fi Collision Avoidance with AFH

These first-generation Bluetooth devices use 79 of the available channels in the 2.4 GHz band, hopping across these channels in a random fashion and at a rate of 1600 times per second. As soon as another wireless device is introduced into the environment this type of hopping results in occasional collisions.

Adaptive Frequency Hopping allows Bluetooth to adapt to the environment by identifying fixed sources of interference and excluding them from the list of available channels. This process of re-mapping also involves reducing the number of channels to be used by Bluetooth. The Bluetooth Specification requires a minimum set of at least twenty channels.

Identification of bad channels is done initially with RSSI and PER. Post identifying the weak or bad channels, those channels are kept away from use.

AFH for Bluetooth consists of four main sections:

Channel Classification - A method of detecting an interference on a channel-by-channel basis, or pre-defined channel mask.

Link Management - Coordinates and distributes the AFH information to the rest of the Bluetooth network.

Hop Sequence Modification - Avoids interference by selectively reducing the number of hopping channels.

Channel Maintenance - A method for periodically re-evaluating the channels.

While the clash between Bluetooth and Wi-Fi signals posed significant challenges in the past, technological innovations have paved the way for effective coexistence solutions.

Conclusion

From the introduction of BLE to the evolution of Wi-Fi co-existence, continuous advancements have transformed Bluetooth communication technology as the most used and popular wireless communication standard. With understanding of the technology and basic operations behind Bluetooth, we will look into the higher layer of the Bluetooth stack in upcoming articles.

Subscribe to our Blog