Firmware Update#

Functions#

sl_status_t
sl_si91x_fwup(uint16_t type, uint8_t *content, uint16_t length)

Helper function for actual APIs

sl_status_t
sl_si91x_fwup_start(uint8_t *rps_header)

Send the RPS header content of firmware file.This is a blocking API.

sl_status_t
sl_si91x_fwup_load(uint8_t *content, uint16_t length)

Send the firmware file content.This is a blocking API.

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.

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

Parameters
[in]type

Firmware upgrade chunk type

[in]content

Firmware content

[in]length

Length of the content

Returns


Definition at line 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.

Parameters
[in]rps_header

Pointer to the RPS header content.

Returns


Definition at line 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.

Parameters
[in]content

Pointer to the firmware file content.

[in]length

Length of the content

Returns


Definition at line 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.

Parameters
[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

Note

  • For safe firmware upgrade via TCP server, it will take approx. 65 sec duration for upgrading the firmware of 1.5 MB file.


Definition at line 377 of file components/si91x/inc/sl_si91x_driver.h