python-OBD icon indicating copy to clipboard operation
python-OBD copied to clipboard

Better ELM error handling

Open brendan-w opened this issue 9 years ago • 1 comments

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 ERROR
  • BUS ERROR
  • BUFFER FULL
  • etc, see pdf pg. 87 of the spec

brendan-w avatar Jul 27 '16 21:07 brendan-w

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.

ffries avatar Jun 26 '17 21:06 ffries