Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Documentation
Sidebar

GetDTCs

Type
Function
Sender
SDL
Purpose
Request DTCs from vehicle.

Request

Parameters

Name Type Mandatory Additional
ecuName Integer true minvalue: 0
maxvalue: 65535
dtcMask Integer false minvalue: 0
maxvalue: 255
appID Integer true

Response

Parameters

Name Type Mandatory Additional
ecuHeader Integer true minvalue: 0
maxvalue: 65535
dtc String false array: true
minsize: 1
maxsize: 15
maxlength: 10

Sequence Diagrams

Example Request

{
  "id" : 139,
  "jsonrpc" : "2.0",
  "method" : "VehicleInfo.GetDTCs",
  "params" :
  {
    "ecuName" : 56
    "dtcMask" : 84,
    "appID" : 65645
  }
}

Example Response

{
  "id" : 139,
  "jsonrpc" : "2.0",
  "result" :
  {
    "ecuHeader" : 6534,
    "dtc" : ["84752093", "28237", "748398"],
    "code" : 0,
    "method" : "VehicleInfo.GetDTCs"
  }
}

Example Error

{
  "id" : 139,
  "jsonrpc" : "2.0",
  "error" :
  {
    "code" : 9,
    "message" : "Data not available",
    "data" :
    {
      "method" : "VehicleInfo.GetDTCs"
    }
  }
}
View on GitHub.com
Previous Section Next Section