PolarSPARC

Introduction to Bluetooth Low Energy (BLE)


Bhaskar S 11/26/2022


Overview

Bluetooth Low Energy (or BLE for short) standard was added to the Bluetooth Core Specification in version 4.0. Bluetooth Low Energy, as the name indicates, is a short-range, interoperable, wireless connectivity standard for small battery-operated devices with low power consumption and intermittent data transfer needs. This standard is different from the core Bluetooth Classic standard, which is commonly used for connectivity of higher bandwidth needs, such as the headphones, speakers, smartphones, laptops, etc.

BLE uses the 2.4 GHz Industrial Scientific Medical (ISM) frequency radio spectrum since it has no licensing requirements. However, the 2.4 GHz radio spectrum has some challenges relating to poor propagation charateristics due to absorption of the radio signals by some elements like water.

The BLE radio spectrum is divided into 40 frequency channels, each of 2 Mhz frequency. The maximum supported data transfer rate is in the range 1 Mbps to 2 Mbps. Also, the maximum support distance (range) is between 30 feet to 100 feet.

Architecture Stack

The following illustration shows the high-level architecture of BLE:


BLE Architecture
Figure-1

The architecture stack is divided into thre core layers which are as follows:

We will delve a little more into the different layers of the architectural stack as follows:

BLE Packet

Every BLE packet has the following format:


BLE Packet
Figure-3

The fields in the BLE packet are described as follows:

High-Level Functionality

In the Advertising state, a device transmits advertising packets containing some relevant and useful information, such as the local name of the device, whether another device can connect to this device, a list of Service UUIDs supported by this device, etc.

As was indicated above in Figure.2, there are three Primary Advertising channels - 36, 37, and 38 that a device will start advertising on them. The size of the advertising data is limited to about 31 bytes.

Note that only a Broadcaster or a Peripheral can transmit advertising packets.

An advertising packet can be one of several types, which are as follows:

A typical Advertising Interval is in the range of 20 ms to a maximum of 10 sec.

In order to receive the advertising packets, a device needs to tune into the three Primary Advertising channels one at a time. A device that listens for advertisements and then sends scan requests to the advertising device is said to be in a Active Scanning Mode. On the other hand, if the listening device does NOT send any scan requests to the advertising device, then it is said to be in Passive Scanning Mode.

Note that only a Central can transmit scan request packets.

A connection between two devices can happen when one device is a Peripheral and the other device is a Central. In order to make a connection, a Peripheral device needs to transmit connectable advertising packets. A Central device must be scanning for these connectable advertising packets on the thre Primary Advertising channels. Once a Central device reads a connectable advertising packet, it can initiate a connection request to the advertising Peripheral. Once a connection is established between a Peripheral and a Central, the Peripheral can receives requests for a Service and the Peripheral can send a response related to the Service back to the Central using the Secondary Adevertising channels.

The following illustration depicts the interaction flow between a Peripheral and a Central:


Interaction Flo0w
Figure-5

References

Official Bluetooth Low Energy Resources



© PolarSPARC