SWRA491A September   2015  – October 2016 CC2640 , CC2640R2F , CC2650 , CC2650MODA

 

  1.   Implementing Eddystone™ Bluetooth® Smart Beacons Using the TI BLE-Stack™
    1.     Trademarks
    2. 1 Introduction
    3. 2 Abbreviations
    4. 3 Objective
    5. 4 Project Overview and Prerequisites
    6. 5 Design and Implementation
      1. 5.1 Operation Modes Overview
      2. 5.2 Regular Advertising Mode
        1. 5.2.1 Setting Advertising Parameters
        2. 5.2.2 Populating the Eddystone Frame Payload
      3. 5.3 URL Configuration Mode
        1. 5.3.1 Setting Advertising Parameters
        2. 5.3.2 URL Configuration Service
    7. 6 Test
    8. 7 Summary
    9. 8 References
  2.   Revision History

Setting Advertising Parameters

To create the set up for configuration mode advertising, use the same method described in Section 5.2.1 but with different properties than shown in Table 2. In this section, only the differences from Section 5.2.1 are noted.

For ADV Event Type, GAP_ADTYPE_ADV_IND as the value is used because configuration mode is connectable.

For ADV Type Flags, the GAP_ADTYPE_FLAGS field of the struct variable eddystoneCfgAdv for configuration mode is initialized with GAP_ADTYPE_FLAGS_BREDR_NOT_SUPPORTED, together with GAP_ADTYPE_FLAGS_GENERAL, because configuration mode is discoverable.

advInt for ADV Interval is set to GAP_ADTYPE_ADV_IND. Typically the interval for configuration mode is shorter than that for regular advertising mode.

TX Power should be set to the value corresponding to TX_POWER_MODE_MEDIUM.

When all of the above properties are set and the ADV data is updated using GAPRole_SetParameter() with the parameter ID GAPROLE_ADVERT_DATA, advertising is ready to start.

Lastly, connectable advertising mode is enabled by calling GAPRole_SetParameter() with the parameter ID GAPROLE_ADVERT_ENABLED.

All the procedures described in this section are handled in SimpleEddystoneBeacon_startConfigAdv().