6.4 Device Firmware Upgrade Over Wi-Fi®
Over-The-Air (OTA) Demo
This example application acts as a Wi-Fi® Station (STA) to connect to an Access Point (AP) and perform an OTA WINCS02 firmware update by downloading an image from a user-defined OTA-HTTPS server.
OTA Update Process
- The device connects to the configured Home-AP and obtains a DHCP IP address.
- After successful DHCP resolution, it establishes a secure TCP tunnel using TLS mutual authentication to connect to the HTTPS server at the user-provided URL and socket.
- The device uses pre-flashed certificates for authentication:
- CA certificate
- Client certificate
- Client key
Important: If the certificates are invalid, an error will be displayed on the server. - Once the device establishes the secure connection, it initiates an HTTPS request to download the image file.
- The downloaded image is stored in the inactive partition of the WINCS02 module.
- The application then sends a request to the WINCS02 firmware to switch to the newly downloaded image in the WINCS02 partition, which is subsequently activated.
