Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/documentation/modules/post/hardware/automotive/getvinfo.md
Views: 11788
Introduction
This module gathers several pieces of information from the vehicle. First it reports the available PIDS for pulling realtime current_data from Mode $01. If some of the common PIDs are returned it will print those as well, such as Engine Temp and Vehicle speed. If there are any Diagnostic Trouble Codes (DTCs) it will list those. The DTCs and Engine Light can be cleared by setting the optional CLEAR_DTC to true. Finally it gathers Vehicle information via UDS Mode $09 requests. The module first probes Mode $09 PID $00 to determine what all PIDs are supported then iterates through them and prints the response. The module will format known PIDs to ASCII.
Options
SRCID
This is the SRC CAN ID for the ISO-TP connection. Default is 0x7E0.
DSTID
This is the CAN ID of the expected response. Default is 0x7E8.
CANBUS
Determines which CAN bus to communicate on. Type 'supported_buses' for valid options.
CLEAR_DTCS
If any Diagnostic Trouble Codes (DTCs) are present it will clear those and reset the MIL (Engine Light).
PADDING
Optional byte-value to use for padding all CAN bus packets to an 8-byte length. Padding is disabled by default.
FC
Optional. If true forces sending flow control packets on all multibyte ISO-TP requests
Scenarios
Given a standard vehicle ECU that is connected to can2 of the HWBridge device: