No Blues with Bluetooth! GATT Explained - Part 5 - Understanding Higher Protocol Layers Provides Interoperability Help
Circuit Cellar|September 2024
After exploring low-level layers of Bluetooth Low Energy in previous editions, and establishing connections in Part 4, Robert examines Attribute Protocol and Generic Attribute Profile or GATT in Part 5. These higher layer protocols provide developers with greater opportunity for interoperability with third-party applications or products.
Robert Lacoste
No Blues with Bluetooth! GATT Explained - Part 5 - Understanding Higher Protocol Layers Provides Interoperability Help

Welcome back to the world of Bluetooth. In my previous articles, I presented an overall introduction to Bluetooth and then explained the low-level layers of Bluetooth Low Energy (BLE). Last month we established a BLE connection between two devices ("No Blues with Bluetooth part 4 / Let's connect with BLE", Circuit Cellar 409, August 2024).

In this part, we will examine what information can be exchanged through such a connection and how the developer can make the BLE experience fully plug-and-play for the end user. Another protocol called the BLE application layer is required, often called by its nickname GATT.

BLE RECAP

Let's start with a small refresher on BLE. For simplicity, I stick with its basic version introduced in Bluetooth 4.0. Have a look again at the BLE protocol stack in Figure 1. As you probably remember, its physical layer uses 40 frequency channels in the ubiquitous 2.4GHz frequency band. Three of these channels (numbered 37, 38, and 39) are dedicated to BLE device discovery and connection establishment. This is done through the Generic Access Profile protocol (GAP, top right on the figure). A BLE peripheral broadcasts periodically an advertising frame to indicate its presence, as detailed in part 3 of this series.

This story is from the September 2024 edition of Circuit Cellar.

Start your 7-day Magzter GOLD free trial to access thousands of curated premium stories, and 9,000+ magazines and newspapers.

This story is from the September 2024 edition of Circuit Cellar.

Start your 7-day Magzter GOLD free trial to access thousands of curated premium stories, and 9,000+ magazines and newspapers.

MORE STORIES FROM CIRCUIT CELLARView All
As a 'Matter of Fact
Circuit Cellar

As a 'Matter of Fact

Inside atest Home Control Consolidation Attempt via Google Home and Matter-over-Thread

time-read
10+ mins  |
November 2024
Industrial Computers Boost Machine Vision Systems
Circuit Cellar

Industrial Computers Boost Machine Vision Systems

GPU and CPU Performance Drive Rugged Industrial Platforms

time-read
6 mins  |
November 2024
Infineon Introduces Industry's First 20 Gbps Universal USB Peripheral Controller
Circuit Cellar

Infineon Introduces Industry's First 20 Gbps Universal USB Peripheral Controller

Infineon Technologies announced the addition of the EZUSBTM FX20 programmable USB peripheral controller to its EZ-USB product family.

time-read
1 min  |
November 2024
Microchip Makes it Easier to Build Sophisticated GUIs for MPLAB Harmony v3 and Linux Environments
Circuit Cellar

Microchip Makes it Easier to Build Sophisticated GUIs for MPLAB Harmony v3 and Linux Environments

Designers are incorporating Graphical User Interfaces, or GUIs, into more electronic devices to enhance the user experience by providing intuitive and visually appealing interactions with today's modern applications.

time-read
1 min  |
November 2024
Entertainment On Wheels
Circuit Cellar

Entertainment On Wheels

In-Dash Panels Control Head Units, Multiple Displays, Cameras and Sensors

time-read
10+ mins  |
November 2024
Using Amazon Alexa to Control Custom IoT Gadgets
Circuit Cellar

Using Amazon Alexa to Control Custom IoT Gadgets

Integrating Voice Recognition for Smart Home Projects

time-read
10+ mins  |
November 2024
Datasheet: Power Up With DC-DC Converters
Circuit Cellar

Datasheet: Power Up With DC-DC Converters

Application Types Drive Parameters Beyond Efficiency and Density

time-read
3 mins  |
November 2024
D&D Die Roller with Raspberry PI RP2040
Circuit Cellar

D&D Die Roller with Raspberry PI RP2040

Fantastical Project Built with MCU TFT Display and LVGL Graphics

time-read
10+ mins  |
November 2024
No Blues with Bluetooth!
Circuit Cellar

No Blues with Bluetooth!

Part 6: Bluetooth Cybersecurity Basics

time-read
10+ mins  |
November 2024
LoRaWAN Goes the Distance at Low Power
Circuit Cellar

LoRaWAN Goes the Distance at Low Power

IoT’s Versatile Protocol for Long-Range, Wide-Area Connectivity

time-read
10+ mins  |
November 2024