Modules#

OTA Client

OTA Client#

API and Callbacks for the OTA Cluster Client Component.

Silicon Labs implementation of the Zigbee Over-the-air Bootload Client Cluster (a multi-hop, application bootloader). This implementation finds the OTA server in the network, periodically queries the server for a new image to download, downloads the data, and then waits for the server command to tell it to upgrade. Optionally, it can cryptographically verify the image before upgrade.

API#

void

Set whether OTA clients use non TC servers.

void

Set whether OTA clients use non TC servers.

bool

Return the current value of ignoreNonTrustCenter for OTA clients.

void

Set whether OTA Clients will permit firmware downgrades.

bool

Return the current value of disableOtaDowngrades.

Macros#

#define
EMBER_AF_PLUGIN_OTA_CLIENT_DOWNLOAD_DELAY_MS 0L
#define
EMBER_AF_OTA_SERVER_DISCOVERY_DELAY_MS (2 * MINUTES_IN_MS)
#define
EMBER_AF_OTA_QUERY_DELAY_MS (5 * MINUTES_IN_MS)
#define
EMBER_AF_PLUGIN_OTA_CLIENT_QUERY_ERROR_THRESHOLD 10
#define
EMBER_AF_PLUGIN_OTA_CLIENT_DOWNLOAD_ERROR_THRESHOLD 10
#define
EMBER_AF_RUN_UPGRADE_REQUEST_DELAY_MS (10 * MINUTES_IN_MS)
#define
EMBER_AF_PLUGIN_OTA_CLIENT_UPGRADE_WAIT_THRESHOLD 10
#define
EMBER_AF_PLUGIN_OTA_CLIENT_PAGE_REQUEST_SIZE 1024
#define
EMBER_AF_OTA_CLIENT_PAGE_REQUEST_SPACING_MS 50L
#define
EMBER_AF_PLUGIN_OTA_CLIENT_VERIFY_DELAY_MS 10L
#define
NULL_EUI64 { 0, 0, 0, 0, 0, 0, 0, 0 }
#define
EMBER_AF_PLUGIN_OTA_CLIENT_SIGNER_EUI0 NULL_EUI64
#define
EMBER_AF_PLUGIN_OTA_CLIENT_SIGNER_EUI1 NULL_EUI64
#define
EMBER_AF_PLUGIN_OTA_CLIENT_SIGNER_EUI2 NULL_EUI64
#define
SECONDS_IN_MS (1000L)
#define
MINUTES_IN_MS (60 * SECONDS_IN_MS)
#define
HOURS_IN_MS (60 * MINUTES_IN_MS)
#define
EMBER_AF_INVALID_HARDWARE_VERSION 0xFFFF

API Documentation#

emberAfOtaServerSendUpgradeRequest#

void emberAfOtaServerSendUpgradeRequest ( IgnoreNonTc)

Set whether OTA clients use non TC servers.

Parameters
TypeDirectionArgument NameDescription
N/AIgnoreNonTc

a bool determining whether client should ignore any non Trust Center OTA servers

Sets the behavior of OTA clients when determining whether or not to use non Trust Center OTA servers and abort any download that is in progress.


emberAfPluginOtaClientSetIgnoreNonTrustCenter#

void emberAfPluginOtaClientSetIgnoreNonTrustCenter (bool ignoreNonTc)

Set whether OTA clients use non TC servers.

Parameters
TypeDirectionArgument NameDescription
boolN/AignoreNonTc

a bool determining whether client should ignore any non Trust Center OTA servers

Sets the behavior of OTA clients when determining whether or not to use non Trust Center OTA servers and abort any download that is in progress.


emberAfPluginOtaClientGetIgnoreNonTrustCenter#

bool emberAfPluginOtaClientGetIgnoreNonTrustCenter ()

Return the current value of ignoreNonTrustCenter for OTA clients.


emberAfPluginSetDisableOtaDowngrades#

void emberAfPluginSetDisableOtaDowngrades (bool isDisabled)

Set whether OTA Clients will permit firmware downgrades.

Parameters
TypeDirectionArgument NameDescription
boolN/AisDisabled

A bool value indicating whether or not downgrades will be disabled


emberAfPluginGetDisableOtaDowngrades#

bool emberAfPluginGetDisableOtaDowngrades ()

Return the current value of disableOtaDowngrades.


Variable Documentation#

emAfOtaClientStopDownloadPercentage#

uint8_t emAfOtaClientStopDownloadPercentage