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

URL Configuration Service

URL Configuration service is implemented in eddystoneURLCfg.c. The application can access the nine characteristics of the service using URLCfgSvc_GetParameter() and URLCfgSvc_SetParameter(). The application registers a callback called when changes happen in the characteristics by the central. In this implementation, only a change in the Reset characteristic notifies the application.

Once the beacon device is connected with a central (such as a smart phone) in URL configuration mode, some of the system properties on the beacon device can be modified by the central through writing to characteristics, if the Lock State is FALSE. Only Unlock characteristic can be written to if Lock State is TRUE.

Updated characteristics are reflected on the corresponding properties in SimpleEddystoneBeacon_applyConfiguration() when the beacon device exits URL configuration mode to enter regular advertising mode by being disconnected for any reason, such as termination or time out. However, actions should be immediately taken when the Reset characteristic changes.