-
- All Implemented Interfaces:
-
se.cpacsystems.diagnostics.Diagnostics
public class DiagAdapterHydra implements Diagnostics
-
-
Method Summary
Modifier and Type Method Description ByteOrdergetByteOrder()Representation of the underlying byte order/endianess of the raw diagnostic data. Array<byte>readAddressParameter(@NonNull() String doid)Get raw data for specified parameter address parameter (DST2 parameter). 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. booleanrequestReset()Possibility to request reset of the processor storing the DST2 parameters. Array<byte>readDid(@NonNull() String did)Read the raw value of the specified DID. booleanwriteDid(@NonNull() String did, @NonNull() Array<byte> value)Update the raw value of the specified DID parameter. booleansetDtc(@NonNull() String identifier)Set Diagnostic Trouble Code booleanresetDtc(@NonNull() String identifier)Disables the Diagnostic Trouble Code EcuIdDatagetEcuIdData()Volvo HW- and SW identifiers for this ECUHW Part number, Hw revision, Serial number, MSW, DST2, GSL and CSWs. -
-
Method Detail
-
getByteOrder
@NonNull() 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() 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
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
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.
-
readDid
@NonNull() Array<byte> readDid(@NonNull() String did)
Read the raw value of the specified DID.Only implemented on Copilot2 and the DIDsP1M6K and P1M6M
- Parameters:
did- the DID name
-
writeDid
boolean writeDid(@NonNull() String did, @NonNull() Array<byte> value)
Update the raw value of the specified DID parameter.
- Parameters:
value- the value to be written
-
setDtc
boolean setDtc(@NonNull() String identifier)
Set Diagnostic Trouble Code
- Parameters:
identifier- The ISO-15031-6 identifier, example: U100188
-
resetDtc
boolean resetDtc(@NonNull() String identifier)
Disables the Diagnostic Trouble Code
- Parameters:
identifier- The ISO-15031-6 identifier, example: U100188
-
getEcuIdData
@NonNull() EcuIdData getEcuIdData()
Volvo HW- and SW identifiers for this ECU
HW Part number, Hw revision, Serial number, MSW, DST2, GSL and CSWs.
-
-
-
-