vehicle/dtc/can0_active/ecu_reference

The vehicle/dtc/can0_active/ecu_reference URI gets the latest active DTC from an ECU on the first J1939/CAN bus.

URI path

vehicle/dtc/can0_active/ecu_reference

Supported request methods

GET

Queries the system for the most recent DTC report from the referenced ECU on the primary J1939/CAN bus, if any (J1939 PGN 65226).

Note PGN 65226 messages are generally broadcast by ECUs once per second, so it is expected that these messages are updated regularly.
HTML status code 503 (Service Unavailable) indicates that the referenced ECU is expected to be valid, but no PGN 65226 message has yet been received. HTML status code 404 (Not Found) generally indicates that the system is not listening for trouble codes on the referenced ECU.

Supported content types

XML

The result, if any, is returned in a data content block, including a timestamp and a value. The value is a hexadecimal string representing the binary payload of the PGN 65226 message. The data block name matches the ECU reference. For example:

<ecu0>
          <timestamp>2012-12-09T05:15:32Z</timestamp>
          <value>00ff00000000ffff</value>
</ecu0>

JSON

The result, if any, is returned as an object with timestamp and value fields, with the value as a hexadecimal string representing the binary payload of the PGN 65226 message. The name of the object matches the ECU reference. For example:

{ “ecu0” : { “timestamp” :  “2012-12-09T05:15:32Z”,
                 “value” : “00ff00000000ffff”  } }

 

© 2019 Digi International Inc. All rights reserved.
vehicle/dtc/can0_active/ecu_reference updated on 17 Oct 2017 02:34 PM