BLE System Architecture
Bluetooth Low Energy (BLE) stands as a wireless Personal Area Network (PAN) technology meticulously crafted and overseen by the Bluetooth Special Interest Group (SIG). Bluetooth technology comes in several iterations, with BLE referring to versions 4.2 and onwards. The most recent advancements in this series are marked as v5.0 and v5.1. BLE specifications are strategically designed to curtail power consumption and device costs while upholding an efficient coverage range. It's recognized under the moniker "Bluetooth Smart," in contrast to its predecessor, known as "Bluetooth Classic."
Here are some key attributes of BLE:
A) Physical Layer:
B) Link Layer:
Positioned above the Physical layer, this layer assumes the crucial responsibilities of advertising, scanning, and establishing/maintaining connections. The behavior of BLE devices can shift between peer-to-peer (Unicast) or broadcast modes, where typical roles encompass Advertiser/Scanner (Initiator), Slave/Master, or Broadcaster/Observer. The various states of the Link layer are illustrated in Figure 1, depicting BLE Device States.
领英推荐
A BLE device can exist in any of these states, including Standby state, Advertising state, Scanning state, Initiating state, Connection State, and Synchronization state.
? HCI (Host-Controller Interface): This layer facilitates communication between the controller and the host using standard interface types. The HCI layer can be realized either through the utilization of APIs or by employing interfaces like UART, SPI, or USB. The Bluetooth specifications define a set of standard HCI commands and events.
? L2CAP (Logical Link Control and Adaptation Protocol): This layer provides data encapsulation services to upper layers, enabling logical end-to-end data communication.
? SMP (Security Manager Protocol): The SMP layer manages device pairing and key distribution, offering secure connectivity and data exchange services to other layers within the BLE protocol stack.
? GAP (Generic Access Profile): The GAP layer directly interfaces with the application layer and/or profiles above it. It handles tasks related to device discovery and connection services for BLE devices, including the initiation of security features.
? GATT (Generic Attribute Profile): GATT serves as a service framework that specifies sub-procedures for using ATT (Attribute Protocol). Data communication between two BLE devices is managed through these sub-procedures, with applications and profiles interacting directly with GATT.
? ATT (Attribute Protocol): The ATT layer enables BLE devices to expose specific pieces of data or attributes.
C) Application Layer: