OBD-II PID 31: Distance travelled since codes cleared

Mode 01 PID 31 (SAE J1979) reports distance travelled since codes cleared. Request 01 31; the response 41 31 carries 2 data bytes, decoded with 256 A + B.

Request and response

Request:   01 31
Response:  41 31 A B

Send 01 31 to the functional address 0x7DF (every emissions ECU answers) or to one ECU, such as 0x7E0 for the engine. The answer starts 41 31 and carries 2 data bytes, named A and B in the formula. In a freeze frame (mode 02) the same PID comes as 42 31 00 followed by the data.

Formula

ValueFormulaUnit
Distance travelled since codes cleared256 A + Bkm

Worked example

Response:  41 31 05 DC
Distance travelled since codes cleared: 1500 km

Worth knowing

  • Not every vehicle supports PID 31. A vehicle that does not stays silent; PIDs 00, 20, 40 … list the ones it supports.
  • Over CAN (ISO 15765-4) the request is one frame such as 02 01 31 on 0x7DF, and each ECU answers on its own ID (0x7E8 for the engine).
  • Values are metric: temperatures in °C, speeds in km/h, pressures in kPa.

Nearby PIDs

Do it in your browser