Open mickeyl opened 6 years ago
Chances are our init sequence is correct, and it's rather a faulty adapter (of which there are literally thousands…).
See also https://github.com/brendan-w/python-OBD/issues/22
It is also possible that most of these issues are due to electrical problems (such as incorrect seating of the adapter in the socket), or missing ignition. It is – unfortunately – impossible to programmatically decide whether ignition is on or off. ATIGN
is not doing what it is supposed to. It returns ON
as soon as the adapter has power.
@mickeyl I’m currently testing with OBDLink CX and it always returns that ignition is off, where clearly its on- tested with car scanner and etc.
I wonder if we can tell anything from the voltage read via ATRV. Perhaps if the engine is running, we might have a higher voltage? But I guess it doesn't help with detecting the ignition being ON but the engine not running.
Sometimes I receive reports where the OBD2 adapter gets recognized successfully, but for some reason the adapter<->vehicle can't negotiate on a common protocol. I wonder whether there's anything we can do about it.
We already try manual protocol selection if the automatic fails – perhaps we should improve the init sequence?
Here is a sample log: