Firmware Update#
Functions#
Helper function for actual APIs
Send the RPS header content of firmware file.This is a blocking API.
Send the firmware file content.This is a blocking API.
Create an OTAF client.
Function Documentation#
sl_si91x_fwup#
sl_status_t sl_si91x_fwup (uint16_t type, uint8_t * content, uint16_t length)
Helper function for actual APIs
[in] | type | Firmware upgrade chunk type |
[in] | content | Firmware content |
[in] | length | Length of the content |
Returns
sl_status_t. See https://docs.silabs.com/gecko-platform/4.1/common/api/group-status for details.
331
of file components/si91x/inc/sl_si91x_driver.h
sl_si91x_fwup_start#
sl_status_t sl_si91x_fwup_start (uint8_t * rps_header)
Send the RPS header content of firmware file.This is a blocking API.
[in] | rps_header | Pointer to the RPS header content. |
Returns
sl_status_t. See https://docs.silabs.com/gecko-platform/4.1/common/api/group-status for details.
341
of file components/si91x/inc/sl_si91x_driver.h
sl_si91x_fwup_load#
sl_status_t sl_si91x_fwup_load (uint8_t * content, uint16_t length)
Send the firmware file content.This is a blocking API.
[in] | content | Pointer to the firmware file content. |
[in] | length | Length of the content |
Returns
sl_status_t. See https://docs.silabs.com/gecko-platform/4.1/common/api/group-status for details.
353
of file components/si91x/inc/sl_si91x_driver.h
sl_si91x_ota_firmware_upgradation#
sl_status_t sl_si91x_ota_firmware_upgradation (sl_ip_address_t server_ip, uint16_t server_port, uint16_t chunk_number, uint16_t timeout, uint16_t tcp_retry_count, bool asynchronous)
Create an OTAF client.
[in] | server_ip | OTAF server IP address sl_ip_address_t |
[in] | server_port | OTAF server port number. |
[in] | chunk_number | Firmware content request chunk number. |
[in] | timeout | TCP receive packet timeout. |
[in] | tcp_retry_count | TCP retransmissions count. |
[in] | asynchronous | OTAF upgrade done aynchronously when this is set, else synchronous upgrade. |
Initialize the client with a given configuration.
sl_net_up API needs to be called before this API.
Returns
sl_status_t. See https://docs.silabs.com/gecko-platform/4.1/common/api/group-status for details.
Note
For safe firmware upgrade via TCP server, it will take approx. 65 sec duration for upgrading the firmware of 1.5 MB file.
377
of file components/si91x/inc/sl_si91x_driver.h