1.5 Multiprotocol (BLE and ZigBee)Demo Experience

The demo consists of the WBZ451 Curiosity board with the accompanying ble_zigbee_light_prov firmware, and the Microchip Bluetooth Data (MBD) Smartphone App. Users can provision the zigbee device over BLE, control and monitor the lights and temperature using either the BLE link or Zigbee link using the MBD app and Alexa App respectively. MBD app has the capability to scan for BLE advertisements from the WBZ451 Module and to establish a connection. There are multiple sub apps in the Microchip Bluetooth Data App for showcasing the provisioning and control/monitor capabilities over BLE.

The BLE Scan operation helps monitor the following parameters before connection:
  1. Zigbee Device Name
  2. Temperature Sensor
  3. RGB LED Status (ON or OFF)

The BLE Connection operation helps monitor the following parameters:

  1. Zigbee Device Status

    1. Device Type, Current Channel, Current MAC ID, Device State, SW Version, Device Name

  2. Temperature Sensor

  3. RGB LED Status (ON or OFF)

  4. BLE Device Information Service

    1. Manufacturer Name, Model Number, Serial Number, Hardware Revision, Firmware Revision, Software Revision, System ID, Regular Certification Data List.

BLE Connection operation helps control the following parameters:

  1. Zigbee Device Connection Params

    1. Current Channel, Device Name

  2. RGB LED Status (on or off), Controls the color and intensity of RGB LED when LED is “on”

When using an Amazon Echo as a Zigbee Coordinator, Alexa App helps control the following parameters

  1. When the RGB LED is "on," it controls the color and intensity of the LED.

When using another WBZ451 Curiosity Board as a Zigbee Coordinator, UART commands can be used to control the following parameters

  1. RGB LED Status (on or off), Controls the color and intensity of RGB LED when LED is “on”

The multiprotocol demo experience starts with provisioning the Zigbee Device, then a successful zigbee connection, followed by the control/monitor of Lights over both the Zigbee and BLE links.

Multiprotocol Light Demo with Amazon Echo as Coordinator

  1. Supply power to the WBZ451 Curiosity Board by connecting a USB cable to the kit (PC to WBZ451 Curiosity Board).

  2. The Discovery of Zigbee Lights

    1. Voice Commands

      1. Ask Alexa to discover the device. Say “Discover my devices.”

    2. Alexa App

      1. From the menu, select Add Device.

      2. Select the type of smart home device Light and select other.

      3. Initiate Discover Devices

    Note: Echo/Alexa is in discovery mode for 45 seconds. Devices (Lights/other) wanting to join Echo must initiate the joining/connecting procedure within this time limit for a successful join.

Provisioning - Connecting Zigbee Lights (Router) to Coordinator (Combined Interface/Amazon Echo)

  1. Issue Reset to factory new (Use either 1.a or 1.b)

    1. Using button (SW2), press and hold SW2 button for 10 secs.

      Users can view the data logs for a better understanding of the demo experience. To view the logs -> Open a terminal emulator like Teraterm with following settings
      • Speed: 115200
      • Data: 8-bit
      • Parity: none
      • stop bits: 1 bit
      • Flow control: none

        LF+CR for tx and rx, echo enabled (Use of TeraTerm is not mandatory to experience the demo)

    2. Open Microchip Bluetooth Data (MBD) App:
      • Tap on BLE Provisioning.
      • Select Coming Soon in the MBD App.
      • In the scan operations, Select the device COMBO_LIGHT_xxxx
      • In COMBO_LIGHT_9393, tap on Factory Reset.
      The following message appears in the terminal window post a successful reset to factory new.
  2. To scan for nearby WBZ451 devices running the Multiprotocol demo:
    1. Open Microchip Bluetooth Data (MBD) App:
    • Tap on BLE Provisioning
    • Select Coming Soon in the MBD App
    • In the scan operations, select the device COMBO_LIGHT_xxxx .

      After selecting, the device status will be displayed, users can now either change the device name or move ahead to provisioning the device keeping the device name as default.

    1. Select the "Provision" option in the MBD App to configure channel map. Channel map needs to be chosen and select commission (In channel Map select all the channels before selecting commision unless user is aware of channel on which Echo is operating on). When the commission option is selected, the device begins to search for an existing zigbee network to join. When the device joins the existing network created by Amazon Echo, a 180-second finding and binding process begins.
      Note: Echo device must be in Discovery mode when selecting the commission option.
    2. Upon completion of 180 seconds, the Commissioning process is completed, users can select "ok". the Device State changes from “Not Commissioned” to “Commissioned”
      Figure 1-3. .

Multiprotocol Control/Monitor of Lights using BLE (MBD App)

  1. Monitor RGB LED state and Temperature

    1. The WBZ451 Curiosity board begins in advertisement mode, allowing access to RGB LED ON/OFF state and temperature sensor data and advertising its presence to a smartphone.

    2. Navigate through the Smartphone App as illustrated in the following figure to access the advertisement information.
  2. Control the RGB LED on/off status, as well as intensity and color.

    1. Click the device that shows up after initiating a scan to establish a connection with the WBZ451 Module.

    2. The user programmable blue LED becomes solid once connection is established between the smartphone and WBZ451 Module.
    3. Controls the RGB LED state ON/OFF
    4. Controls the color of RGB LED when LED is ON
    5. Controls the intensity of RGB LED when LED is ON

  3. The light status (on/off), light color and intensity chosen via the BLE link will be relayed on to Alexa App.

Multiprotocol Control/Monitor of Lights using Zigbee (Alexa App)

  1. Lights Getting Found and Connected to Echo
  2. Control the ON/OFF status of RGB LEDs.

    1. Voice commands

      1. Ask Alexa, “Alexa, Turn on first light” to change status of RGB LED from off to on

      2. Ask Alexa, “Alexa, Dim first light” to reduce the brightness.

      3. Ask Alexa, “Alexa, Turn my first light green” to change the color.

    2. Alexa App

      1. select First Light in “Lights” and control

  3. The Light Status (on/off), light color, and intensity chosen via the voice commands/Alexa App (Zigbee link) will be relayed on to the MBD App (BLE Sensor App)

Setup: Multiprotocol Lights Demo with another WBZ451 Curiosity Board as Coordinator

  1. Setup – Zigbee Coordinator (Combined Interface) - Network Creation and Steering

  2. BLE Provisioning - Lights to join the Zigbee network created by another WBZ451 Curiosity Board as Coordinator

  3. After completing steps 1 and 2, lights can be controlled by MBD App over BLE or Zigbee Commands
  4. Turn on the light with the MBD App via the BLE link.
    1. Turn on the RGB LEDs.

    2. The light status (on/off), light color, and intensity chosen via the MBD App (BLE link) will be relayed on to Multiprotocol lights (Zigbee link).
  5. Turn off the light with the MBD App via the Zigbee link.

    1. Off-Send the following command from the Coordinator device over UART ("0xf9e" is the router address and "0x23" is the zigbee endpoint of the zigbee light in control): onOff -s 0xf93e 0x23 -off

    2. The light status (on/off), light color, and intensity chosen via the Zigbee Coordinator UART commands (Zigbee link) will be relayed on to the MBD App (BLE Sensor App)