The XBee Beacon Advertise demo demonstrates how to use an XBee device to broadcast custom BLE data, including sensor readings from the I2C sensor on the XBIB-C development board.

This demo is particularly useful for applications that require proximity-based data dissemination, such as environmental monitoring, asset tracking, and other IoT use cases.

Demo explanation

In this demo, the XBee device functions as a BLE beacon, continuously advertising data from the I2C sensor on the XBIB-C board it is attached to. Nearby BLE-enabled devices can pick up this broadcasted data.

Without needing to establish a connection with the XBee device, the Digi XBee Mobile application scans for and extracts this custom data, displaying it in real-time in a card format.

Execute the demo

The XBee Beacon Advertise home page includes a diagram of the demo, a short description and the steps required to test the demo.

Follow these instructions to execute the XBee Beacon Advertise demo:

  1. Apply the XBee Beacon Advertise Quick Setup to your XBee module using XBee Studio. For more information about Quick Setups and how to apply them, refer to the Quick Setup chapter of the XBee Studio User Guide.

  2. Tap the Start scanning button in Step 2 (Scan for beacon frames). The XBee Beacon Advertise - Main page displays.

  3. After a few seconds, the application should detect the custom BLE beacon generated by your XBee device and display its information in card format, including:

    1. Name of the BLE beacon device.

    2. Bluetooth address.

    3. RSSI value.

    4. Temperature value from the I2C sensor of the XBIB-C development board.

    5. Humidity value from the I2C sensor of the XBIB-C development board.

    6. Raw advertisement payload.

      Information is continuously refreshed until you smartphone goes out of range with your XBee device.
  4. Tap the STOP SCANNING button. Verify that:

    1. The button text changes to START SCANNING.

    2. The button background changes to green.

    3. Beacon information is no longer refreshed.

  5. Tap the START SCANNING button. Verify that:

    1. The button text changes to STOP SCANNING.

    2. The button background changes to red.

    3. Beacon information is refreshed again.

      XBee Beacon Advertise