SWRU473A February 2017 – August 2018 CC3120MOD , CC3220MOD , CC3220MODA , CC3220R , CC3220S , CC3220SF
out_of_box.c – main file creates all tasks in the system. The tasks include the simplelink task, provisioning task, link local task, OTA task, and control task. This file also includes implementation of the control task which implements the switching to AP mode and registration of all SimpleLink callbacks
Provisioning_task.c – includes all provisioning-related implementation and procedures. The file also includes a piece of code for the OTA bundle committing procedure. The flow of the task follows:
Link_local_task.c – includes implementation of local link communication between the CC3220 web server and the connected web client. The set of available operations include retrieving data from the CC3220 database, as well as updating the CC3220 database. All operations use RESTful API.
Table 4 lists the set of all operations.
Service | Operation | Description |
---|---|---|
Device | Get | Fetches MAC address, IP address, and SSID of the AP, to which the CC3220 server is connected. In case CC3220 is in AP mode, SSID is the name of CC3220. |
Light | Get and Post | Fetches and updates the state of the onboard red LED (D7). |
Sensor | Get | Fetches the value of X, Y, and Z accelerometer axis. |
OTA | Put | Uploads the OTA image to the CC3220 web server. |
OTA | Get | Fetches the current OTA version. |
Ota_task.c – implements a tiny HTTP report server (running on proprietary TCP port). This server reports the status of the progress bar during the OTA update.
OtaArchive.c – extracts the archive image received during the OTA update, and updates the local file system.
OtaJson.c – includes minimal Json parser services tailored for parsing the metadata header file during the OTA update.
oob_common.c – includes common resources for all tasks. These tasks include synchronization and mailbox objects, sensors readings, and platform reboot.
bma222drv.c – implements an accelerometer sensor driver.
tmp006drv.c – implements a temperature sensor driver.