Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quick and non-blocking method to connect the OBD-II? #54

Open
benjaminBrownlee opened this issue Apr 21, 2018 · 1 comment
Open

Quick and non-blocking method to connect the OBD-II? #54

benjaminBrownlee opened this issue Apr 21, 2018 · 1 comment

Comments

@benjaminBrownlee
Copy link

I noticed that if the OBD-II has stopped communication with the adapter, it takes 11 to 15 seconds for methods such as obd.init and obd.readPID to affirm that the vehicle is off. Is there a way to asynchronously connect to the adapter, or at least a quick check mode that takes less than a second?

@MichaelPate
Copy link

In terms of hardware, if you are trying to quickly see if the vehicle is off, you could poll for voltages on the ignition switch (or perhaps the data lines) and then attach that to one of the Arduino's inputs, using proper protection where appropriate. Then adding a "kill switch" to the code would tell you instantly if the car is off. No voltage, the car must be off.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants