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

DiagnosticMessage

Type
Function
Sender
SDL
Purpose
Request current diagnostic messages.

Request

Parameters

Name Type Mandatory Additional
targetID Integer true minvalue: 0
maxvalue: 65535
messageLength Integer true minvalue: 0
maxvalue: 65535
messageData Integer true array: true
minsize: 1
maxsize: 65535
minvalue: 0
maxvalue: 255
appID Integer true

Response

Parameters

Name Type Mandatory Additional
messageDataResult Integer true array: true
minsize: 1
maxsize: 65535
minvalue: 0
maxvalue: 255

Sequence Diagrams

Example Request

{
  "id" : 139,
  "jsonrpc" : "2.0",
  "method" : "VehicleInfo.DiagnosticMessage",
  "params" :
  {
    "targetID" : 5456
    "messageLength" : 1084,
    "messageData" : [1,2,3,4,5,6,7,8,9]
  }
}

Example Response

{
  "id" : 139,
  "jsonrpc" : "2.0",
  "result" :
  {
    "messageDataResult" : [1,2,3,4,5,6],
    "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