python-OBD icon indicating copy to clipboard operation
python-OBD copied to clipboard

how to get the milage?

Open montio5 opened this issue 2 years ago • 2 comments

Hi, how are you? i can't find a possible way to find out the total mileage of a car( I mean from the beginning it was released ex: 120k KM until now ).

montio5 avatar Nov 20 '23 16:11 montio5

More of a workaround than a solution, but I am currently planning to use the "miles since last check engine light" and subtract it from my current mileage. Should be accurate as long as the CIL doesn't come on...

2019+ vehicles were mandated in California to provide odometer the codes are: A6 166 - expect 4 bytes You might get lucky if this was done previous to 2019 in your ECU.

Before 2019 its not so easy - relying on either engine hours, or distance traveled before + after a CEL as suggested above

Distance Since Reflash or Module Replacement - C7 199 - two bytes (yes this means only 65k KM) Distance traveled since codes cleared - 31 49 - two bytes Distance traveled with malfunction indicator lamp (MIL) on - 21 33 - two bytes Engine run time - 7F 127 - 13 bytes

Reference: https://en.wikipedia.org/wiki/OBD-II_PIDs

TastyHackTheBox avatar Apr 02 '24 05:04 TastyHackTheBox