I've connected to OBDKey and obtained data. I want immediately close my program when the vehicle is powered down(ignition turned off) How can I check that ignition is turned off?
Asked
Active
Viewed 2,239 times
2 Answers
0
If you're using an ELM327
chipset, you can use the ATIGN
command which will response ON
or OFF
.
In practice, I'm not sure whether this command is actually useful. For socket-powered OBD2 devices, it looks like they always report ON
when they are powered. See also ELM327 ATIGN always returns 'ON'.

Community
- 1
- 1

DrMickeyLauer
- 4,455
- 3
- 31
- 67