Decode DTC
decode_dtcConvert a 3-byte UDS DTC to the SAE J2012 style code (P/C/B/U + digits) plus failure type byte, or the reverse ("U0073-00" to hex). With a status byte, explains each of the 8 DTC status bits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dtc | Yes | Three bytes hex ("01 23 45") or a code ("P0123-45"). | |
| status | No | Optional status byte, e.g. "0x09". |