Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Function Name

Parameter

Description

MakeXconfComms

pResponse

server_type
http_code

Pointer to structure to receive output data

Xconf

Http status

createJsonString

Char * pPostFieldOut,

Size_t szPostFieldOut

The json string is looks like 

tbd


upgradeRequest

int upgrade_type,int server_type,constchar* artifactLocationUrl,constvoid* dwlloc,char*pPostFields,int*pHttp_code

Use For requesting upgrade pci, pdri and xconf.

Param-1: Upgrade type pci, pdri, xconf

Param-2: Type of server. HTTP_XCONF_DIRECT, HTTP_XCONF_CODEBIG, HTTP_SSR_DIRECT, HTTP_SSR_CODEBIG

Param-3: Download server url

Param-4: To store download data

Param-5: http code

getXconfRespData

XCONFRES *pResponse,char*pJsonStr

The response looks like below

{"firmwareDownloadProtocol":"http","firmwareFilename":"

tbd

lib32-application-test-image-RPI4-raspberrypi4-64-rdke-feature-RDKECOREMW-863-OTA.wic.tar.gz","firmwareLocation":"

tbd

https://tools.rdkcentral.com:8443/images/","firmwareVersion":"

tbd

lib32-application-test-image-RPI4-raspberrypi4-64-rdke-feature-RDKECOREMW-863-OTA.wic.tar.gz","

rebootImmediately

mandatoryUpdate":false,"rebootImmediately":false}


The response from Xconf is processed as part of the jsonparser Component. This is a typical response from the Xconf. 

Code Block
{
"firmwareDownloadProtocol":"http",
"firmwareFilename":"

...

lib32-application-test-image-RPI4-raspberrypi4-64-rdke-feature-RDKECOREMW-863-OTA.wic.tar.gz",
"firmwareLocation":"

...

https://tools.rdkcentral.com:8443/images/",
"firmwareVersion":

...

"lib32-application-test-image-RPI4-raspberrypi4-64-rdke-feature-RDKECOREMW-863-OTA.wic.tar.gz",
"mandatoryUpdate":false,
"rebootImmediately":false
}

 

  1. firmwareDownloadProtocol : This field represents the protocol. Rdkvfwupgrader support only http protocol.
  2. firmwareFilename: This filed use for PCI image details.
  3. firmwareLocation: This field provides URL endpoint to download image.
  4. firmwareVersion: This field provides the firmware version with out adding signed or unsigned details.
  5. rebootImmediatly: This field is used for critical updates. If this is true then the device will reboot immediately after PCI flash happens to flash memory. If this is false then reboot will happen during reboot window time.
  6.  additionalFwVerInfo: This field is used for PDRI image details.
  7.  remCtrl: This field is used for peripheral firmware details.
  8. cloudDelayDownload: This field is use for make the download start with some delay.
  9. dlCertBundle: This filed is used for to get certificate bundle details.

...