This example demonstrates the Out of Box experience with CC3220 devices.
Board_LED0 (red LED)
- Indicates that the board was initialized within main()
. Since only this LED is used for status indication, similar indications may be applied in more than one occasion. To distinguish similar indications, the user needs to be aware of the executed procedure. The following table lists all options.red LED indication | Procedure | Interpretation |
---|---|---|
Blinking once per 2 seconds | Provisioning | CC3220 is being provisioned |
Solidly on | Provisioning | Connection to Access Point is up |
Solidly off | Provisioning | Connection to Access Point is down |
Blinking once per second | Local network connection | For Station mode, connection to Access Point is in progress. For Access Point mode, initialization is in progress |
Solidly on | Local network connection | For Station mode, connection to Access Point is up. For Access Point mode, initialization is done |
Solidly off | Local network connection | Applies in Station mode only. Connection to Access Point is down |
Blinking 5 times per second | Over the Air update | Over the Air update of CC3220 is in progress |
Solidly on | Over the Air update | Over the Air update of CC3220 succeeded |
Solidly off | Over the Air update | Over the Air update of CC3220 failed |
Blinking once per second | Return to default | Return to default procedure is done. Waiting for the user to manually restart the CC3220 LaunchPad |
Board_initI2C (for onboard accelerometer)
- I2C interface is used for control of the CC3220 Launchpad onboard accelerometer.Build the setup.
Make sure you have the a local AP and a mobile/tablet with SimpleLink™ Wi-Fi® Starter Pro mobile application installed.
For basic users, open Uniflash, locate the relevant image (*.sli) according to device flavor and program it to the target device.
.\Uniflash\OOB_<Flavor>.zip
.Add the MCU image to the project and flash it.
The example could be executed from the debugger as well but since it involves platform reset at the end (so the new OTA image can be tested and committed),the debugger would get disconnected.
Open a serial session (e.g. HyperTerminal
,puTTY
, etc.) to the appropriate COM port.
The COM port can be determined via Device Manager in Windows or via
ls /dev/tty*
in Linux.
The connection should have the following settings
Baud-rate: 115200
Data bits: 8
Stop bits: 1
Parity: None
Flow Control: None
Run the example by pressing the reset button. The example should start running automatically when programming via Uniflash is done.
Board_LED0 (red LED)
should blink once every 2 seconds to indicate provisioning is in progress. When provisioning is done and connection to the local AP is completed, the LED should turn solid on. Terminal message should show device is ready to be provisioned:
[Provisioning task] Provisioning Started. Waiting to be provisioned..!!
[Provisioning task] Provisioning completed successfully..!
[Provisioning task] IP address is
Board_LED0 (red LED)
should turn solid on. Terminal message should show:
[WLAN EVENT] STA BSSID:
with the MAC address of the connected device.[NETAPP EVENT] IPv4 leased
with the assigned IP address.Note: the only valid way to switch to AP mode is by using the procedure above. It is not valid to connect to the device during provisioning.
At this point, users may proceed to the onboard peripherals demo or to the local OTA.
Local OTA is available via the mobile application only whereas the onboard peripherals demo is available also via the web browser.
Onboard peripherals demo: users can control and get the state of the onboard sensors. These sensors include the Board_LED0 (red LED)
and the accelerometer. Additionally, users can fetch some device specific information (SSID, Mac address and IP address). Web pages also include a 3D board movement when the device is moved.
Click the Check for software update button to test whether a new software version exists.
It is also possible to change the cloud repository by long pressing and holding the download icon next to Check for software update label, and filling the new URL
The upload progress bar appears with the following messages:
- Download started - Uploading new SW version - Extracting archive file - Writing to serial flash - Download done - Rebooting… - Testing new SW version
[Link local task] sl_extLib_OtaRun: ---- Download file completed
[Common] CC3220 MCU reset request
The following features are highlighted:
Once the device is provisioned and connected to an Access Point in station mode, the profile is stored on the local file system so that any reset to CC3220 automatically connects to the Access Point.
Any browser, web pages stored on the serial flash are loaded on the browser, to provide ease of use.
This feature demonstrates configuring and reading onboard sensors.