AT Commands for Firmware Update from Module#
This page describes the AT commands used to perform firmware updates on the SiWx91x device directly from the module. These commands allow the device to download and update its firmware from an HTTP server over-the-air (OTA).
Commands#
http-otaf#
Performs an HTTP Over-the-air firmware update (OTAF) on the SiWx91x device by downloading firmware from a specified HTTP server.
Command Format#
at+http-otaf=<flags>,<server_ip_addr>,<port>,<resource_url>,<host_name>,<extended_header>,<user_name>,<password>
Related SDK API
Pre-conditions#
None
Parameters#
flags#
Numeric value specifying a bitmap of OTA update flags. For possible values, see the sl_si91x_http_otaf API documentation.
server_ip_addr#
A string denoting the IP address of the HTTP server hosting the firmware image (see example below).
port#
Port number. Default: 80 - HTTP, 443 - HTTPS
resource_url#
The relative uniform resource identifier (URI) to the firmware image on the HTTP server (see example below).
host_name#
Optional. The HTTP host name. Can be left empty if not required.
extended_header#
Optional. Any additional HTTP headers to include in the request. Can be left empty if not required.
user_name#
Optional. Username for HTTP authentication. Can be left empty if not required.
password#
Optional. Password for HTTP authentication. Can be left empty if not required.
Response#
OK
on successful initiation of the OTA updateERROR <error code>
in case of failure. Possible error codes are the same as those returned by the sl_si91x_http_otaf API.
Notes#
The device may reboot automatically after a successful firmware update.
Ensure the firmware image is compatible with the device and properly signed if required.
Examples#
at+http-otaf=0,192.168.1.100,80,/fw/si91x_fw.bin