|
| 1 | +# Copyright (c) 2025 Silicon Laboratories Inc. |
| 2 | +# SPDX-License-Identifier: Apache-2.0 |
| 3 | + |
| 4 | +.. zephyr:code-sample:: siwx91x_otas |
| 5 | + :name: HTTP OTA Firmware Update on SiWx917 |
| 6 | + :relevant-api: wifi |
| 7 | + |
| 8 | + Demonstrates HTTP/HTTPS OTA firmware update using SiWx917 on Zephyr. |
| 9 | + |
| 10 | +Overview |
| 11 | +******** |
| 12 | + |
| 13 | +Application demonstrates how to perform HTTP/HTTPS OTA firmware updates on the |
| 14 | +SiWx917 platform using Zephyr RTOS. It connects to a Wi-Fi network, establishes |
| 15 | +an HTTPS connection, and downloads firmware |
| 16 | +updates from a remote server. The application showcases secure connectivity and |
| 17 | +OTA update mechanisms for IoT devices. |
| 18 | + |
| 19 | +Requirements |
| 20 | +************ |
| 21 | + |
| 22 | +* SiWx917 development board with Wi-Fi support |
| 23 | +* HTTP server |
| 24 | + |
| 25 | +Configurations |
| 26 | +************** |
| 27 | + |
| 28 | +The following configurations can be modified in ``prj.conf``: |
| 29 | + |
| 30 | +* Wi-Fi Settings |
| 31 | + * ``CONFIG_OTA_WIFI_SSID`` - Network name |
| 32 | + * ``CONFIG_OTA_WIFI_PSK`` - Network password |
| 33 | + * ``CONFIG_OTA_UPDATE_URL`` - OTA update URL |
| 34 | + |
| 35 | +.. _signed image generation: |
| 36 | + https://docs.zephyrproject.org/latest/kconfig.html#CONFIG_SIWX91X_SIGN_KEY |
| 37 | + |
| 38 | +Building and Running |
| 39 | +******************** |
| 40 | + |
| 41 | +1. Configure required settings |
| 42 | +2. Build and Flash |
| 43 | + |
| 44 | + .. zephyr-app-commands:: |
| 45 | + :app: siwx917_ota |
| 46 | + :board: siwx917_rb4338a |
| 47 | + :goals: build flash |
| 48 | + |
| 49 | +3. Run HTTP/HTTPS server |
| 50 | + |
| 51 | +Test the Application |
| 52 | +******************** |
| 53 | + |
| 54 | +1. After flashing the SiWx91x, the device will scan for the specified AP and |
| 55 | + attempt to connect if found. |
| 56 | +2. Once connected, the SiWx91x will initiate an HTTP/S connection to the specified |
| 57 | + server and download the firmware binary. |
| 58 | +3. The OTA update process will be logged to the serial console. |
| 59 | + |
| 60 | +Note |
| 61 | +**** |
| 62 | + |
| 63 | +This application is not for production. |
0 commit comments