pires / obd-java-api

OBD-II Java API
Apache License 2.0
595 stars 295 forks source link

Command to read odometer/mileage reading #132

Closed vijquick closed 7 years ago

vijquick commented 7 years ago

There should be a command to read the odometer current reading. Have browsed through the source code and couldn't find any command that can return the odometer reading.

If the command is not supported is there a work around to achieve this?

Odmink0 commented 7 years ago

OBDII protocols doesn't have milleage PID.

alamirah93 commented 7 years ago

I working on project that should get the odometer/mileage reading! how can I receive that ?

Odmink0 commented 7 years ago

It is IMPOSSIBLE. Please read about OBD PIDs(https://en.wikipedia.org/wiki/OBD-II_PIDs)

Maybe some auto vendors include odometer data in own protocol(or bus) but for reading that data you can't use ELM327 adapter.

obd-java-api only for ELM327 adapters.

pires commented 7 years ago

Thanks for explaining!

alamirah93 commented 7 years ago

OK thank you for your answer, do you know another adapter that can read the odometer?

Odmink0 commented 7 years ago

Main problem not in adapter. In 95% autos milleage data stored in EEPROM chip which not connected to diagnostic bus. This is made for security purposes.