Wi-Fi Commissioning Micrium OS Example on WGM160P (BRD4321A)

This document describes how to run the Wi-Fi Commissioning example on a WGM160P. The example is based on the combo capacity of the WF200 where the WF200 can act as an Access Point and a Station simultaneously to demonstrate a typical use case of field deployment where an operator installs the device and configures it to connect to a specific Access Point using a Webpage.

Getting Started

This demo runs the Wi-Fi Full MAC driver meant to communicate with the WF(M)200 Silicon Labs Wi-Fi transceivers.

Naming convention

Requirements

Hardware Prerequisites

The WGM160P Wi-Fi Module Radio Board is a standalone module that can run once powered up through the USB port, but a Silicon Labs Wireless STK baseboard (SLWSTK6121A) is necessary to flash the module. It also offers all the possibilities provided by Simplicity Studio (download, debug, energy profiler, and so on).

Software Prerequisites

The main software components used by this example are as follows:

Set up Your Kit

  1. Connect the WGM160P Module Board to the Silicon Labs Wireless STK baseboard.

  2. Ensure that the power selector switch on the Silicon Labs Wireless STK baseboard is in the [AEM] position.

  3. Provide power by connecting the [DBG] USB connector on the Silicon Labs Wireless STK baseboard to the PC using the provided USB cable.

Install Simplicity Studio 5 and the SDKs

Simplicity Studio 5 is a free software suite needed to start developing your application. To install Simplicity Studio 5, follow this procedure by selecting the options [Install by connecting device(s)] and [Auto].

Get the Example

An SDK with a version 3.2 or higher is necessary. If this does not match your case, install it from the Simplicity Studio Installation Manager

  1. Connect the Silicon Labs Starter Kit and open Simplicity Studio 5.

  2. Select the [Launcher] perspective.

  3. From the [Debug Adapters] panel on the left top corner, select your Silicon Labs Starter Kit.

  4. Ensure that an SDK is selected in the [General Information] tile of the [Overview] tab.

  5. Select the [EXAMPLE PROJECTS] tab in [Launcher] perspective.

  6. Search for the example [Platform - Wi-Fi Commissioning Micrium OS Kernel] from the Software Examples list as illustrated in the image below. Notice the search field, which makes it easy to find the example by entering wi-fi.

  1. Click on the [Create] button of the example.

  2. Click on [Finish].

At the end of this procedure, Simplicity Studio has created the project in your workspace and your display will be similar to the picture below:

Studio 5 Created Project

Start the Example

  1. Start a console in Studio by right clicking on the Silicon Labs Starter Kit in the [Debug Adapters] panel and select [Launch console].

  2. Select the [Serial 1] tab from the console window and make sure the console is connected. To do that, check the icon in the bottom left corner of the console panel. If its status is console not connected. See the image below. Then, the serial console is not yet connected. Press [Enter] in the console, the icon should change its status to console connected. See the image below.

  3. Compile the example. For more information about how to build a project, refer to the dedicated Simplicity Studio 5 documentation.

  4. Open the Simplicity Flash Programmer. For more information about the Flash Programmer, see a dedicated section of the Simplicity Studio 5 documentation.

  5. Browse the wifi_commissioning_micriumos.hex file created in the build folder inside your workspace.

  1. Click on [Program] to flash the Silicon Labs Starter Kit with the example.

Logs appear in the console input field once the programming is done to look like the image below:

You are ready to move to the Wi-Fi commissioning demonstration page.