pires / obd-java-api

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

Delete DTC code #69

Closed navat closed 8 years ago

navat commented 9 years ago

Hi all,

I was able to make all functions work on both simulator and real car except clearing the DTC code since I couldn't find the command to do.

You guys have any suggestion on how to delete the DTC code using the api.

Thank you in advance,

sytolk commented 9 years ago

Hi I dont have success with DTC too but you have use https://github.com/pires/android-obd-reader application or ? And this simulator https://github.com/Hesamedin/ELM327#simulator-mode ? Im trying to get (and clear) car distance traveled (kilometers) do you have success with this command ?

Pho3niX90 commented 9 years ago

This is what you are looking for => https://github.com/pires/obd-java-api/blob/master/src/main/java/com/github/pires/obd/commands/protocol/ResetTroubleCodesCommand.java

I have had success with multiple cars. However, persistent/current codes that haven't been sorted will immediately trigger another error

pires commented 8 years ago

Thank you @Pho3niX90!