brendan-w / python-OBD

OBD-II serial module for reading engine data
GNU General Public License v2.0
1.02k stars 360 forks source link

OBD port sends no data after random time #203

Open samuelznewton opened 3 years ago

samuelznewton commented 3 years ago

A little bit about my setup: Raspberry Pi 3 connected through a USB OBD adapter to a Honda Civic 2009. I have the Pi using Async to read speed, throttle, accelerator position, and fuel level.

Everything works fine for a little while after startup. Then, after a random period of time (I've seen it happen in as little as 10 seconds and I've seen it take as long as 10 minutes), it'll just stop getting data. It would be quite difficult to get the debug output onto GitHub (there's no good way for me to connect to the Pi right now), but suffice to say there's little of note. Everything proceeds as expected, as predictable cycle of sending a request and getting an answer. Then at some point the responses all at once change from hex codes to b'NO DATA\r\r>'

I honestly have my doubts that this issue is caused by python-OBD, but I can't say for sure and I have no idea who else to ask for help, so I hope you might have some ideas to help out.