Thank you very much and my best regards

Michel Allaire

-----Message d'origine-----
De : Xiaofan Chen [mailto:xiaof...@gmail.com] 
Envoyé : 2 mars 2015 20:20
À : pyusb-users@lists.sourceforge.net
Objet : Re: [pyusb-users] No backend available with windows 7

On Tue, Mar 3, 2015 at 2:40 AM, Michel Allaire <michel....@videotron.ca> wrote:
> But it seems that I can't access the list devices on the bus with the 
> following script:
>
> import usb.core
> import usb.util
>
> list_dev = usb.core.find(find_all=True) n = 0 for dev in list_dev:
>     n = n+1
>     print (n, "  " , dev)
>
>
> Could it be because I did not specified any filter or .INF file since 
> I want to scan the bus myself to connect to microcontrollers in a 
> arbitrary number and USB ready

Yes. If you use libusb-win32 under Windows, you have to have one supported 
device with libusb0.sys driver.

If you use libusb-1.0 backend (libusb Windows backend), then you do not need to 
have a device with a supported driver (eg WinUSB) to find the device, but then 
you need to have such a device if you want to do more than that (read/write 
endpoint, etc).

> Will this behavior also exists on my target operating system with will 
> be Linux running on à Raspberry PI.

No. Linux is different since libusb uses usbfs under Linux (you do need to 
detach non-usbfs driver first).



--
Xiaofan

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored 
by Intel and developed in partnership with Slashdot Media, is your hub for all 
things parallel software development, from weekly thought leadership blogs to 
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users


------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users

Reply via email to