Mode 01 PID 21 (SAE J1979) reports distance travelled with the check-engine lamp on. Request 01 21; the response 41 21 carries 2 data bytes, decoded with 256 A + B.
Request: 01 21
Response: 41 21 A BSend 01 21 to the functional address 0x7DF (every emissions ECU answers) or to one ECU, such as 0x7E0 for the engine. The answer starts 41 21 and carries 2 data bytes, named A and B in the formula. In a freeze frame (mode 02) the same PID comes as 42 21 00 followed by the data.
| Value | Formula | Unit |
|---|---|---|
| Distance travelled with the check-engine lamp on | 256 A + B | km |
Response: 41 21 00 00
Distance travelled with the check-engine lamp on: 0 km