On Wed, Jan 16, 2013 at 5:38 AM, Stenquist, Carl
<carl.stenqu...@renesas.com> wrote:
> I used Zadig to install the driver "WinUSBv6.1" and sure enough, my device 
> plops
> up in Device manager (Win7) saying it is a "Universal serial bus device" with 
> the correct VID and PID.
>
> Looking more closely in Dev. Mgr, by right-clicking on the device, I see it 
> is using drivers
> C:\Windows\System32\drivers\winusb.sys
> C:\Windows\System32\drivers\WdfCoInstaller01009.dll
> C:\Windows\System32\drivers\winusbcoinstaller2.dll

Good. So the driver installation is now okay.

> But after this, I can no longer access the device from my Python code.
>
> I am using pyusb-1.0.0a2.

You need libusb-1.0.dll inside a Python accessible directory.

> Am I supposed to use the libusb-1.0.dll driver that is in the Zadig install 
> folder?
> How do I use it? I don't know how to make an .INF file for it without 
> spending a
> few days on that (with no known outcome).  And using that driver is not what 
> the
> help for Zadig says:
> https://github.com/pbatard/libwdi/wiki/Zadig
>
> Any ideas how to use PyUSB with libusbx?

If you use 32bit Windows, you can put 32bit libusb-1.0.dll inside
windows\system32.

If you use 64bit Windows, you can put 64bit libusb-1.0.dll inside
windows\system32 (for 64bit Python) and 32bit libusb-1.0.dll
inside windows\syswow64.
Ref: http://en.wikipedia.org/wiki/WoW64

libusbx binary distributions provide both the 32bit and 64bit
libusb-1.0.dll for both MSVC and MinGW. Both should work
with Python.
URL: http://sourceforge.net/projects/libusbx/files/releases/1.0.14/Windows/


-- 
Xiaofan

------------------------------------------------------------------------------
Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS
and more. Get SQL Server skills now (including 2012) with LearnDevNow -
200+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only - learn more at:
http://p.sf.net/sfu/learnmore_122512
_______________________________________________
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users

Reply via email to