UDS 0x22 ReadDataByIdentifier
Read one or more values, each named by a 2-byte data identifier (DID).
Request and response
| Bytes |
|---|
| Request | 22 <DID: 2 bytes> [<DID> …] |
| Positive response | 62 <DID> <data> [<DID> <data> …] |
| Negative response | 7F 22 <NRC> |
The positive response service ID is the request's plus 0x40: 22 answers with 62.
Example
Request: 22 F1 90
Response: 62 F1 90 57 30 4C 30 30 30 30 34 33 4D 42 35 34 31 33 32 36
The VIN, as 17 ASCII characters.
Worth knowing
- Several DIDs can be asked for at once; the answer repeats each DID before its data.
- The data has no length field: the tester must know each DID's size from the ECU description (ODX, CDD).
- F180 to F19F are the standard identification DIDs: F190 VIN, F187 spare part number, F18C serial number, F195 supplier software version.
Negative response codes it often returns