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
DiagnosticMessage

DiagnosticMessage

Type
Function
Sender
SDL
Purpose
Request current diagnostic messages.

Request

Must

Send BC.OnResetTimeout notification to SDL to reset the timeout in case HMI needs more time to process the 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

JSON Message Examples

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],
    "appID" : 65368
  }
}

Example Response

{
  "id" : 139,
  "jsonrpc" : "2.0",
  "result" :
  {
    "messageDataResult" : [1,2,3,4,5,6],
    "code" : 0,
    "method" : "VehicleInfo.DiagnosticMessage"
  }
}

Example Error

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