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
To Top Created with Sketch. To Top
To Bottom Created with Sketch. To Bottom
HMI Documentation
GetVehicleType

GetVehicleType

Type
Function
Sender
SDL
Purpose
Get general information about the vehicle.

Request

Parameters

This RPC has no additional parameter requirements

Response

Note

In case HMI responds with incomplete VehicleType (with no make value), the vehicle type filtering will not work on app side.

Parameters

Name Type Mandatory Additional
vehicleType Common.VehicleType true

Sequence Diagrams

JSON Message Examples

Example Request

{
  "id" : 21,
  "jsonrpc" : "2.0",
  "method" : "VehicleInfo.GetVehicleType"
}

Example Response

{
  "id" : 21,
  "jsonrpc" : "2.0",
  "result" :
  {
    "vehicleType" :{
      "make" : "Ford",
      "model" : "Fusion",
      "modelYear" : "2013",
      "trim" : "SE"
    },
    "code" : 0,
    "method" : "VehicleInfo.GetVehicleType"
  }
}

Example Error

{
  "id" : 21,
  "jsonrpc" : "2.0",
  "error" :
  {
    "code" : 9,
    "message" : "The requested data is not available",
    "data" :
    {
      "method" : "VehicleInfo.GetVehicleType"
    }
  }
}
View on GitHub.com
Previous Section Next Section