vehicle/dtc/can1_active/ecu_reference
The vehicle/dtc/can1_active/ecu_reference URI gets the latest active DTC from an ECU on the second J1939/CAN bus.
URI path
vehicle/dtc/can1_active/ecu_reference
Supported request methods
GET
Queries the system for the most recent DTC report from the referenced ECU on the secondary 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” } }