Build UDS request
build_uds_requestBuild a UDS request as hex with an annotated breakdown. Services: session, ecu_reset, read_did, write_did, security_seed, security_key, tester_present, routine, request_download, transfer_data, transfer_exit, clear_dtc, read_dtc, control_dtc, comm_control, raw. Numeric strings are hex.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| on | No | control_dtc: true = DTC setting on. | |
| dfi | No | dataFormatIdentifier, default 0. | |
| did | No | ||
| hex | No | raw: bytes to pass through. | |
| key | No | security_key: key bytes in hex. | |
| rid | No | routine: e.g. "FF00". | |
| data | No | Hex payload (write_did, transfer_data, routine option record). | |
| dids | No | read_did: e.g. ["F190","F18C"]. | |
| mask | No | read_dtc status mask, default FF. | |
| size | No | request_download: e.g. "0x10000". | |
| type | No | session/ecu_reset sub-function (number, hex string or name). | |
| group | No | clear_dtc group, default FFFFFF. | |
| level | No | security_seed/security_key: odd seed-request level; the key is sent with level+1. | |
| action | No | ||
| address | No | request_download: e.g. "0x08000000". | |
| control | No | comm_control control type. | |
| counter | No | transfer_data block sequence counter. | |
| service | Yes | ||
| commType | No | comm_control communicationType, default 01. | |
| suppress | No | tester_present: set suppressPosRspMsgIndicationBit. | |
| sizeBytes | No | Default 4. | |
| subfunction | No | read_dtc sub-function (e.g. 2 = reportDTCByStatusMask). | |
| addressBytes | No | Default 4. |