The Architecture of Bluetooth Low Energy: Advertising Channels, GATT Services, and Spatial RSSI Ranging
Unlike classical Bluetooth Basic Rate/Enhanced Data Rate (BR/EDR)—which was engineered for continuous audio streaming and high-bandwidth wireless peripherals—Bluetooth Low Energy (BLE), introduced in the Bluetooth 4.0 specification, was designed from the ground up for micro-power telemetry. Operating in the globally unlicensed 2.4 GHz ISM frequency band, a BLE radio can remain dormant for seconds or minutes at a time, wake up in less than 3 milliseconds, transmit a small payload packet, and return to microampere sleep mode, enabling coin-cell battery lifespans measured in years.
Primary Advertising vs. Data Channels: The 37, 38, 39 Triad
The 2.4 GHz spectrum is divided into 40 distinct 2 MHz physical RF channels (numbered 0 through 39). Rather than scanning all 40 frequencies simultaneously, BLE partitions these channels strategically:
- Dedicated Advertising Channels (37, 38, 39): Placed specifically at 2402 MHz, 2426 MHz, and 2480 MHz, these three frequencies sit squarely between the primary channels of 2.4 GHz Wi-Fi networks (Channels 1, 6, and 11). This minimizes direct packet collisions with heavy residential Wi-Fi routers.
- Data Channels (0 to 36): Once a peripheral and central smartphone negotiate a connection handshake, communication transitions to the remaining 37 data channels using adaptive frequency hopping (AFH) to dodge RF interference.
The Generic Attribute Profile (GATT) Hierarchy
All communication in connected BLE devices is structured under the Generic Attribute Profile (GATT). GATT organizes data into a nested tree consisting of Profiles, Services, and Characteristics:
A Service is a collection of related data points assigned a unique 16-bit or 128-bit Universally Unique Identifier (UUID) managed by the Bluetooth Special Interest Group (SIG). Inside each service reside Characteristics—the actual data endpoints containing current values, descriptor units, and permission flags (Read, Write, Notify, Indicate). For instance, standard GATT Service 0x180D (Heart Rate) contains Characteristic 0x2A37, which streams real-time beats-per-minute values to connected health applications.
Spatial Proximity Modeling: The Log-Distance Path Loss Model
Estimating physical distance between a smartphone receiver and a BLE beacon relies on the Log-Distance Path Loss Model:
Where:
- RSSI (Received Signal Strength Indicator): The raw radio power received by the antenna in decibel-milliwatts (dBm), fluctuating typically between -35 dBm (adjacent contact) and -95 dBm (packet loss fringe).
- TxPower (Measured Power): The calibrated factory RSSI expected at exactly 1.0 meter distance (typically -59 dBm).
- Path Loss Exponent (\(n\)): Environmental coefficient representing physical obstacle density. In open outdoor free space, \(n = 2.0\). Inside residential drywall environments, \(n = 2.5\) to \(3.0\). Inside heavy reinforced concrete or commercial warehouses with metallic shelving, \(n\) can surge above \(4.0\).
Multipath Fading & Body Shadowing Interference
Raw RSSI distance estimation is inherently noisy due to fundamental electromagnetic wave behavior. In indoor environments, 2.4 GHz radio waves reflect off concrete floors, steel doorframes, and glass windows, arriving at the smartphone antenna slightly out of phase—a phenomenon known as multipath fading. This causes the measured RSSI to fluctuate by ±8 dBm even when the device remains completely stationary.
Furthermore, the human body is composed of over 60% saline water, which heavily absorbs 2.4 GHz microwave radiation. Simply turning your back to a beacon creates body shadowing attenuation, dropping received signal power by 10 to 15 dBm and falsely making the device appear three times farther away than it actually is.
Beacon Payload Framing: Apple iBeacon vs Google Eddystone
In connectionless advertising mode, beacons broadcast structured frames without forming mutual pairings. The two dominant protocol specifications represent contrasting design philosophies:
-
Apple iBeacon Frame Format: Encapsulated within a compact 30-byte payload, an iBeacon packet contains: Apple's 2-byte Company Identifier (
0x004C), a 1-byte sub-type indicator (0x02), a 16-byte Proximity UUID designating the enterprise owner (e.g. airport or retail chain), a 2-byte Major value (specifying a specific building), a 2-byte Minor value (specifying an individual room), and a 1-byte two's complement calibrated TxPower indicator. - Google Eddystone Protocol: An open-source beacon standard supporting four independent packet frames: Eddystone-UID (transmitting a 10-byte Namespace and 6-byte Instance ID), Eddystone-URL (broadcasting compressed web links for physical computing interactions), and Eddystone-TLM (streaming real-time ambient temperature, battery millivolts, and packet uptime counters).
Bluetooth 5.0 Coded PHY & Extended Advertising
Legacy Bluetooth 4.x restricted advertising packets to a rigid 31-byte payload limit. In dense commercial deployments, this forced manufacturers to truncate peripheral device names or transmit secondary scan response frames, compounding radio channel congestion.
The Bluetooth 5.0 specification introduced Extended Advertising, delegating secondary payload delivery to the 37 data channels and expanding maximum packet capacity up to 254 bytes. Furthermore, the introduction of LE Coded PHY employs Forward Error Correction (FEC) with spreading factors of S=2 or S=8. By trading data bandwidth (down from 1 Mbps to 125 kbps), LE Coded PHY boosts receiver sensitivity by up to 12 dB, quadrupling effective line-of-sight transmission distance up to 400 meters in industrial IoT and outdoor beacon applications.
WebBluetooth Security & Browser Permissions Architecture
To prevent malicious websites from silently tracking users across retail shopping malls via ambient beacon sniffing, the W3C WebBluetooth specification mandates strict security boundaries:
- HTTPS Secure Context Only: WebBluetooth APIs are completely blocked on unencrypted HTTP connections.
-
Transient User Activation: A script cannot invoke
navigator.bluetooth.requestDevice()on page load; scanning must be directly triggered by an explicit user gesture (such as clicking a scan button). - Explicit Permission Pairing Dialog: The web browser presents an isolated native operating system window listing discovered peripherals. The user must manually select a device to grant the web origin permission to communicate with that specific hardware MAC address.