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
ReadDID

ReadDID

Type
Function
Sender
SDL
Purpose
Request data from specified DID locations.

Request

Parameters

Name Type Mandatory Additional
ecuName Integer true minvalue: 0
maxvalue: 65535
didLocation Integer true array: true
minsize: 1
maxsize: 1000
minvalue: 0
maxvalue: 65535
appID Integer true

Response

Parameters

Name Type Mandatory Additional
didResult Common.DIDResult false array: true
minsize: 0
maxsize: 1000

Sequence Diagrams

JSON Message Examples

Example Request

{
  "id" : 158,
  "jsonrpc" : "2.0",
  "method" : "VehicleInfo.ReadDID",
  "params" :
  {
    "ecuName" : 1287,
    "didLocation" : [35, 48, 182],
    "appID" : 93
  }
}

Example Response

{
  "id" : 158,
  "jsonrpc" : "2.0",
  "result" :
  {
    "didResult" :
    [
      {
      "resultCode" : "SUCCESS",
      "didLocation" : 35,
      "data" : "38AF"
      },
      {
      "resultCode" : "TRUNCATED_DATA",
      "didLocation" : 48,
      "data" : "35"
      },
      {
      "resultCode" : "INVALID_ID",
      "didLocation" : 182
      }      
    ],
    "code" : 0,
    "method" : "VehicleInfo.ReadDID"
  }
}

Example Error

{
  "id" : 158,
  "jsonrpc" : "2.0",
  "error" :
  {
    "code" : 2,
    "message" : "The requested ECU does not exist",
    "data" :
    {
      "method" : "VehicleInfo.ReadDID"
    }
  }
}
View on GitHub.com
Previous Section Next Section