-
public interface DiagnosticsDiagnostic interface for Diagnostic Trouble Codes, Address parameters and Data Identifiers.
-
-
Method Summary
Modifier and Type Method Description abstract ByteOrdergetByteOrder()Representation of the underlying byte order/endianess of the raw diagnostic data. abstract Array<byte>readAddressParameter(@NonNull() String doid)Get raw data for specified parameter address parameter (DST2 parameter). abstract booleanwriteAddressParameter(@NonNull() String doid, @NonNull() Array<byte> value)Write raw value to specified address parameter (DST2 parameter). booleansaveDataToFlash()Possibility to request saving data to flash after writing DST2 parameters. abstract booleanrequestReset()Possibility to request reset of the processor storing the DST2 parameters. abstract booleanwriteDid(@NonNull() String doid, @NonNull() Array<byte> value)Update the raw value of the specified DID parameter. abstract booleansetDtc(@NonNull() String identifier)Set Diagnostic Trouble Code abstract booleanresetDtc(@NonNull() String identifier)Disables the Diagnostic Trouble Code abstract EcuIdDatagetEcuIdData()Volvo HW- and SW identifiers for this ECUHW Part number, Hw revision, Serial number, MSW, DST2, GSL and CSWs. -
-
Method Detail
-
getByteOrder
@NonNull() abstract ByteOrder getByteOrder()
Representation of the underlying byte order/endianess of the raw diagnostic data.
For example when reading a raw address parameter the byte order is of importance when doingconversion to engineering value.
-
readAddressParameter
@NonNull() abstract Array<byte> readAddressParameter(@NonNull() String doid)
Get raw data for specified parameter address parameter (DST2 parameter).
- Parameters:
doid- DST DOID parameter name, ex P1QDT
-
writeAddressParameter
abstract boolean writeAddressParameter(@NonNull() String doid, @NonNull() Array<byte> value)
Write raw value to specified address parameter (DST2 parameter).
- Parameters:
doid- the DOID name of the parametervalue- the value to be written
-
saveDataToFlash
boolean saveDataToFlash()
Possibility to request saving data to flash after writing DST2 parameters.
NOTE! Only applicable for ZB and Copilot2, no-op for other devices.
-
requestReset
abstract boolean requestReset()
Possibility to request reset of the processor storing the DST2 parameters.
Use case: Reset after writing parameters with writeAddressParameter (String, byte[])}.Should be used with care as this reboots the complete device.
-
writeDid
abstract boolean writeDid(@NonNull() String doid, @NonNull() Array<byte> value)
Update the raw value of the specified DID parameter.
- Parameters:
doid- the DOID name of the DID parametervalue- the value to be written
-
setDtc
abstract boolean setDtc(@NonNull() String identifier)
Set Diagnostic Trouble Code
- Parameters:
identifier- The ISO-15031-6 identifier, example: U100188
-
resetDtc
abstract boolean resetDtc(@NonNull() String identifier)
Disables the Diagnostic Trouble Code
- Parameters:
identifier- The ISO-15031-6 identifier, example: U100188
-
getEcuIdData
@NonNull() abstract EcuIdData getEcuIdData()
Volvo HW- and SW identifiers for this ECU
HW Part number, Hw revision, Serial number, MSW, DST2, GSL and CSWs.
-
-
-
-