python-OBD
python-OBD copied to clipboard
Better ELM error handling
currently, elm327.py only looks for the UNABLE TO CONNECT string. I'd like it to be a little smarter, and know about the other error strings, such as:
NO DATA<--- this one currently gets handled by filtering for hex-only values (a little ugly)CAN ERRORBUS ERRORBUFFER FULL- etc, see pdf pg. 87 of the spec
I think CAN ERROR, BUS ERROR or BUFFER FULL get logged.
But the actions to take are not easy. When BUFFER FULL, you may increase connection speed or enable filtering. BUS ERROR might be a different speed. So all we could do is stop communications, which is not a good thing.