Package 

Class DiagAdapterHydra

    • Method Summary

      Modifier and Type Method Description
      ByteOrder getByteOrder() 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).
      boolean writeAddressParameter(@NonNull() String doid, @NonNull() Array<byte> value) Write raw value to specified address parameter (DST2 parameter).
      boolean saveDataToFlash() Possibility to request saving data to flash after writing DST2 parameters.
      boolean requestReset() 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.
      boolean writeDid(@NonNull() String did, @NonNull() Array<byte> value) Update the raw value of the specified DID parameter.
      boolean setDtc(@NonNull() String identifier) Set Diagnostic Trouble Code
      boolean resetDtc(@NonNull() String identifier) Disables the Diagnostic Trouble Code
      EcuIdData getEcuIdData() Volvo HW- and SW identifiers for this ECUHW Part number, Hw revision, Serial number, MSW, DST2, GSL and CSWs.
      • Methods inherited from class se.cpacsystems.diagnostics.Diagnostics

        writeDid
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.

      • 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 parameter
        value - 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.