SWRA475A January   2015  – October 2016 CC2540 , CC2540T , CC2541 , CC2541-Q1

 

  1.   Bluetooth low energy Beacons
    1.     Trademarks
    2. 1 What is a Beacon?
    3. 2 Bluetooth low energy and Bluetooth Smart
      1. 2.1 Non-Connectable Beacons
      2. 2.2 Connectable Beacons
      3. 2.3 Data Packet
      4. 2.4 Device Address
        1. 2.4.1 Flags
        2. 2.4.2 Manufacturer Specific Data
      5. 2.5 Broadcast Interval
      6. 2.6 Power
      7. 2.7 Range
      8. 2.8 Coexistence
    4. 3 Designing a Bluetooth low energy Beacon
      1. 3.1 Development Kits
      2. 3.2 Creating a Beacon Application With TI Bluetooth low energy-Stack
    5. 4 iBeacon Implementation
      1. 4.1 Overview and Prerequisites
      2. 4.2 Design and Implementation
      3. 4.3 Testing
    6. 5 Proprietary Implementation
      1. 5.1 Overview and Prerequisites
      2. 5.2 Design and Implementation
      3. 5.3 Testing
    7. 6 References
  2.   Revision History

Flags

The first three bytes of the broadcasted data defines the capabilities of the device. It is a requirement from the Core Specification [1] (Vol 3.C.13.1.1 page 2029) and the format is defined as shown in Table 3.

Table 3. Advertisement Data Type, Flags

Byte Bit Flag/Value Description
0 0x02 Length of this data
1 0x01 GAP AD Type Flags
2 0 LE Limited Discoverable Mode 180 s advertising
1 LE General Discoverable Mode Indefinite advertising time
2 BR/EDR Not Supported
3 Simultaneous LE and BR/EDR (Controller)
4 Simultaneous LE and BR/EDR (Host)
5-7 Reserved

Discovery mode flags are bit masked and the various settings are presented in Table 3. If no bit flags are to be set, the Flags Data type can be omitted [2]. It would for example not be required for a non-connectable advertisement packet (ADV_NONCONN_IND).