Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Internet Explorer alert
This browser is not recommended for use with smartdevicelink.com, and may not function properly. Upgrade to a different browser to guarantee support of all features.
close alert
Documentation
GetStatusUpdate

GetStatusUpdate

Type
Function
Sender
HMI
Purpose
Get information about the current status of the policy update process.

Request

In case HMI needs to find out current status of PTU and sends GetStatusUpdate_request to SDL, it must respond with the current update status code to HMI.
The request GetStatusUpdate duplicates the functionality of the notification OnStatusUpdate. In case the policy update status is being changed.(e.g. an update is finished successfully or retry strategy failed), SDL must send notification OnStatusUpdate to HMI with the corresponding UpdateStatus code, whereas GetStatusUpdate allows to request the status of policy table at any time, not on update only.

Must

Send a request to SDL if it needs to get a current policy update status according to its workflows.

Parameters

This RPC has no additional parameter requirements

Response

Parameters

Name Type Mandatory
status Common.UpdateResult true

Sequence Diagrams

JSON Message Examples

Example Request

{
  "id" : 176,
  "jsonrpc" : "2.0",
  "method" : "SDL.GetStatusUpdate"
}

Example Response

{
  "id" : 176,
  "jsonrpc" : "2.0",
  "result" :
  {
    "status" : "UPDATE_NEEDED",
    "code" : 0,
    "method" : "SDL.GetStatusUpdate"
  }
}

Example Error

{
  "id" : 176,
  "jsonrpc" : "2.0",
  "error" :
  {
    "code" :22,
    "message" : "Some error occurred",
    "data" :
    {
      "method" : "SDL.GetStatusUpdate"
    }
  }
}
View on GitHub.com
Previous Section Next Section