java.lang.Object
com.smartdevicelink.proxy.RPCStruct
com.smartdevicelink.proxy.RPCMessage
com.smartdevicelink.proxy.RPCRequest
Parameter List
Name | Type | Description | Reg. | Notes | Version |
---|---|---|---|---|---|
targetID | Integer | Name of target ECU. | Y | Min Value: 0; Max Value: 65535 | SmartDeviceLink 3.0 |
messageLength | Integer | Length of message (in bytes). | Y | Min Value: 0; Max Value:65535 | SmartDeviceLink 3.0 |
messageData | Integer | Array of bytes comprising CAN message. | Y | Min Value: 0; Max Value:255; Min Size:1; Max Size:65535 | SmartDeviceLink 3.0 |
HMI must:
1. Check the requested data using provided information of targetID (name of ECU),messageLength and messageData.
2. Respond with one of the appropriate result codes.And in case of SUCCESS return messageDataResult which is an array of bytes comprising CAN message result.
public static final java.lang.String KEY_TARGET_ID
public static final java.lang.String KEY_MESSAGE_LENGTH
public static final java.lang.String KEY_MESSAGE_DATA
Constructs a new DiagnosticMessage object
public DiagnosticMessage()
Constructs a new DiagnosticMessage object indicated by the Hashtable parameter
public DiagnosticMessage(java.util.Hashtable<java.lang.String, java.lang.Object> hash)
Constructs a new DiagnosticMessage object
public DiagnosticMessage(Integer targetID,Integer messageLength,java.util.List<java.lang.Integer> messageData)
Sets TargetID
public com.smartdevicelink.proxy.rpc.DiagnosticMessage setTargetID(Integer targetID)
Returns an Integer object representing the Target ID that you want to add
public java.lang.Integer getTargetID()
public com.smartdevicelink.proxy.rpc.DiagnosticMessage setMessageLength(Integer messageLength)
public java.lang.Integer getMessageLength()
public java.util.List getMessageData()
public com.smartdevicelink.proxy.rpc.DiagnosticMessage setMessageData(java.util.List<java.lang.Integer> messageData)
From Class | Methods |
---|---|
com.smartdevicelink.proxy.RPCRequest | getCorrelationID, setCorrelationID, setOnRPCResponseListener, getOnRPCResponseListener |
com.smartdevicelink.proxy.RPCMessage | getFunctionID, getFunctionName, setFunctionName, getMessageType, setParameters, getParameters, getObject, getString, getInteger, getFloat, getDouble, getBoolean, getLong |
com.smartdevicelink.proxy.RPCStruct | getStoreValue, getStore, deserializeJSON, serializeJSON, serializeJSON, format, getBulkData, setBulkData, setPayloadProtected, isPayloadProtected, getMessageTypeName, hasKey, setValue, getValue, getObject, formatObject, getValueForString, getString, getInteger, getDouble, getFloat, getBoolean, getLong, clone, equals, hashCode |
java.lang.Object | getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize |