Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need to unplug/replug after every use #2

Closed
smunaut opened this issue Nov 25, 2015 · 2 comments
Closed

Need to unplug/replug after every use #2

smunaut opened this issue Nov 25, 2015 · 2 comments

Comments

@smunaut
Copy link

smunaut commented Nov 25, 2015

Hi,

First, thanks for this utility, really useful :)

Now, I'm having an issue with it is that after using it, I need to unplug and replug the board or I get a "timeout" error from PyUSB the second time I try.

ATM I've resolved it by doing a .reset() on the board.dev before quitting but that seems a bit brute-force.

I'm using Python 3.4 and git master of pyusb.

Cheers,

Sylvain

@martynjriley
Copy link

Hi,

You have another thanks for this utility.

The utility also works well for me. However, I have the same problem as Sylvain and have also considered the .reset() solution. I have tried both Python 3.3 and 3.4 with the same result. I note that there does seem to be some issues with libusb so I'm not sure whether the problem is related to PyUSB or libusb.

Cheers,

Martyn

@davidcarne
Copy link
Owner

Hi Folks,

Can you let me know what platform you're using? Ideally, host platform (linux, windows, OSX), libusb version, and pyusb version?

You can find the pyusb version by running python and typing usb.__version__ .

You can find the libusb version with the following commands:

-pkg-config libusb-1.0 --modversion
-pkg-config libusb --modversion

I can't recreate this on linux / libusb1 / pyusb 1.0 .

davidcarne added a commit that referenced this issue Feb 9, 2017
Reset device before doing anything (Fix #2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants