openxc / vi-firmware

OpenXC-compatible firmware for PIC32 and LPC1768
http://vi-firmware.openxcplatform.com
BSD 3-Clause "New" or "Revised" License
198 stars 106 forks source link

openxc-dump and openxc-dashboard occasionally hang the VI when connected via USB #183

Closed tgiuli closed 10 years ago

tgiuli commented 10 years ago

I don't have a lot of detail here, but I have occasionally observed the following scenario:

openxc.sources.base.DataSourceError: Couldn't find a USB product 0x1 from vendor 0x1bc4

I typically unplug the VI from the OBD-II port, replug it, and then it usually seems to function just fine after repeating the above steps.

peplin commented 10 years ago

I haven't been able to replicate this - I'm wondering if you didn't have another terminal in the background that was already connected to the VI. If you look up in the stacktrace when it says "Couldn't find a USB product 0x1..." it should print the exact error. "Resource Busy" is one I see if something already has a lock on the USB device.