vehicle/dtc/can0_active
The vehicle/dtc/can0_active URI gets a list of ECUs on the first J1939/CAN bus for active DTCs.
URI path
vehicle/dtc/can0_active
Supported request methods
GET
Query the system for the list of ECUs that the system knows exist on the primary J1939/CAN bus, since they might be providing active DTC messages (J1939 PGN 65226). The data record returned is a list of URIs corresponding to each ECU on a bus.
Each time the vehicle data subsystem restarts, it exposes a fixed list of ECUs. Once the subsystem begins running, it samples the bus for 60 seconds to determine whether the list of ECUs it has recorded matches the current running vehicle. If it does not match, the subsystem automatically stores an updated list and restarts the subsystem to use the new, fixed list.
Supported content types
HTML
The result URIs is turned into URLs relative to the device, and returned in an HTML list.
XML
The result URIs will each be wrapped in element tags, and returned within a can0_active block. For example:
<can0_active> <element>vehicle/dtc/can0_active/ecu0</element> <element>vehicle/dtc/can0_active/ecu3</element> </can0_active>
JSON
The result URI strings is collected in an array assigned to a can0_active field. For example:
{ “can0_active” : [ “vehicle/dtc/can0_active/ecu0”, “vehicle/dtc/can0_active/ecu3” ] }