public class ReadDID extends RPCRequest
Non periodic vehicle data read request. This is an RPC to get diagnostics data from certain vehicle modules. DIDs of a certain module might differ from vehicle type to vehicle type
Function Group: ProprietaryData
HMILevel needs to be FULL, LIMITED or BACKGROUND
Parameter List
| Param Name | Type | Description | Req. | Notes | Version Available |
|---|---|---|---|---|---|
| ecuName | Integer | Name of ECU. | Y | Minvalue: 0; Maxvalue: 65535 | SmartDeviceLink 2.0 |
| didLocation | Integer | Get raw data from vehicle data DID location(s). | Y | Minvalue: 0; Maxvalue: 65535 | SmartDeviceLink 2.0 | appID | Integer | ID of the application that requested this RPC. | Y | SmartDeviceLink 2.0 |
Response
Non-default Result Codes:
SUCCESS
INVALID_DATA
OUT_OF_MEMORY
TOO_MANY_PENDING_REQUESTS
APPLICATION_NOT_REGISTERED
GENERIC_ERROR
REJECTED
DISALLOWED
USER_DISALLOWED
TRUNCATED_DATA
| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_DID_LOCATION |
static String |
KEY_ECU_NAME |
onResponseListenerfunction, KEY_CORRELATION_ID, KEY_FUNCTION_NAME, KEY_NOTIFICATION, KEY_PARAMETERS, KEY_REQUEST, KEY_RESPONSE, messageType, parametersKEY_BULK_DATA, KEY_PROTECTED, store| Constructor and Description |
|---|
ReadDID()
Constructs a new ReadDID object
|
ReadDID(Hashtable<String,Object> hash)
Constructs a new ReadDID object indicated by the Hashtable parameter
|
ReadDID(Integer ecuName,
List<Integer> didLocation)
Constructs a new ReadDID object
|
| Modifier and Type | Method and Description |
|---|---|
List<Integer> |
getDidLocation()
Gets raw data from vehicle data DID location(s)
|
Integer |
getEcuName()
Gets the ID of the vehicle module
|
ReadDID |
setDidLocation(List<Integer> didLocation)
Sets raw data from vehicle data DID location(s)
|
ReadDID |
setEcuName(Integer ecuName)
Sets an ID of the vehicle module
|
getCorrelationID, getOnRPCResponseListener, setCorrelationID, setOnRPCResponseListenergetBoolean, getDouble, getFloat, getFunctionID, getFunctionName, getInteger, getLong, getMessageType, getObject, getParameters, getString, setFunctionName, setParametersclone, deserializeJSON, equals, format, formatObject, getBulkData, getMessageTypeName, getStore, getStoreValue, getValue, getValueForString, hashCode, hasKey, isPayloadProtected, serializeJSON, serializeJSON, setBulkData, setPayloadProtected, setValuepublic static final String KEY_ECU_NAME
public static final String KEY_DID_LOCATION
public ReadDID()
public ReadDID(Hashtable<String,Object> hash)
hash - The Hashtable to usepublic ReadDID(@NonNull
Integer ecuName,
@NonNull
List<Integer> didLocation)
ecuName - an Integer value representing the ID of the vehicle module
Notes: Minvalue:0; Maxvalue:65535didLocation - a Listpublic ReadDID setEcuName(@NonNull Integer ecuName)
ecuName - an Integer value representing the ID of the vehicle module
Notes: Minvalue:0; Maxvalue:65535public Integer getEcuName()
public ReadDID setDidLocation(@NonNull List<Integer> didLocation)
didLocation - a List