![]() |
RDK-B
|
Functions | |
int | fwupgrade_hal_set_download_url (char *pUrl, char *pfilename) |
int | fwupgrade_hal_get_download_url (char *pUrl, char *pfilename) |
int | fwupgrade_hal_set_download_interface (unsigned int interface) |
int | fwupgrade_hal_get_download_interface (unsigned int *pinterface) |
int | fwupgrade_hal_download () |
int | fwupgrade_hal_get_download_status () |
int | fwupgrade_hal_reboot_ready (unsigned long *pValue) |
int | fwupgrade_hal_download_reboot_now () |
int | fwupgrade_hal_update_and_factoryreset () |
int | fwupgrade_hal_download_install (const char *url) |
int fwupgrade_hal_set_download_url | ( | char * | pUrl, |
char * | pfilename | ||
) |
@description Set FW Download Settings
char* | pUrl |
char* | pfilename |
RETURN_OK | if successful. |
RETURN_ERR | if any Downloading is in process or Url string is invalided. |
int fwupgrade_hal_get_download_url | ( | char * | pUrl, |
char * | pfilename | ||
) |
@description Get FW Download Url
char* | pUrl |
char* | pfilename |
RETURN_OK | if successful. |
RETURN_ERR | if FW url string is empty. |
int fwupgrade_hal_set_download_interface | ( | unsigned int | interface | ) |
@description Set the FW Download Interface
unsigned | int interface - interface=0 for wan0, interface=1 for erouter0 |
RETURN_OK | if successful. |
RETURN_ERR | if any error is detected |
int fwupgrade_hal_get_download_interface | ( | unsigned int * | pinterface | ) |
@description Get the FW Download Interface
unsigned | int* pinterface - interface=0 for wan0, interface=1 for erouter0 |
RETURN_OK | if successful. |
RETURN_ERR | if any error is detected |
int fwupgrade_hal_download | ( | ) |
@description Start FW Download
<None> |
RETURN_OK | if successful. |
RETURN_ERR | if any Downloading is in process. |
int fwupgrade_hal_get_download_status | ( | ) |
@description Get the FW Download Status
<None> |
0 | - Download is not started. |
0-100 | - Values of percent of download. |
200 | - Download is completed and waiting for reboot. |
400 | - Invalided Http server Url |
401 | - Cannot connect to Http server |
402 | - File is not found on Http server |
403 | - HW_Type_DL_Protection Failure |
404 | - HW Mask DL Protection Failure |
405 | - DL Rev Protection Failure |
406 | - DL Header Protection Failure |
407 | - DL CVC Failure |
500 | - General Download Failure |
int fwupgrade_hal_reboot_ready | ( | unsigned long * | pValue | ) |
@description Get the Reboot Ready Status
ULONG | *pValue- Values of 1 for Ready, 2 for Not Ready |
RETURN_OK | if successful. |
RETURN_ERR | if any error is detected |
int fwupgrade_hal_download_reboot_now | ( | ) |
@description FW Download Reboot Now
<None> |
RETURN_OK | if successful. |
RETURN_ERR | if any reboot is in process. |
int fwupgrade_hal_update_and_factoryreset | ( | ) |
@description: Firmware update and factory reset the device
None |
RETURN_OK | if successful. |
RETURN_ERR | if any reboot is in process. |
int fwupgrade_hal_download_install | ( | const char * | url | ) |
@description: Downloads and upgrades the firmware
None |
RETURN_OK | if successful. |
RETURN_ERR | in case of remote server not reachable |