To: Whoever else uses PyUSB with libusbx. Tormod, Xiaofan, Thanks for your replies (below).
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 But after this, I can no longer access the device from my Python code. I am using pyusb-1.0.0a2. 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? Regards, Carl Stenquist Staff AE, Renesas Electronics America Inc. ---------------------------------------------------------------------- Date: Wed, 19 Dec 2012 07:06:26 -0800 From: "Stenquist, Carl" <carl.stenqu...@renesas.com> Subject: [pyusb-users] libusbx Dear PyUSB group, How can I find info on using libusbx together with PyUSB? I have successfully (for the most part) used the old libusb0.dll, but how install and use libusbx with PyUSB? There must be some info written on this from PyUSB perspective (?) but I have not found it. Regards, Carl Stenquist Staff AE, Renesas Electronics America Inc. ----------------------------- Date: Wed, 19 Dec 2012 21:59:46 +0100 From: Tormod Volden <lists.tor...@gmail.com> Subject: Re: [pyusb-users] libusbx To: pyusb-users@lists.sourceforge.net On Wed, Dec 19, 2012 at 4:06 PM, Stenquist, Carl wrote: > Dear PyUSB group, > > How can I find info on using libusbx together with PyUSB? I have successfully > (for the most part) used the old libusb0.dll, but how install and use libusbx > with PyUSB? There must be some info written on this from PyUSB perspective > (?) but I have not found it. Hi Carl, There should not be anything PyUSB specific about installing libusbx. Once you have libusbx installed for your device, pyusb will pick it up as it would pick it up through libusb (same libusb1 backend) or libusb-win32 (libusb0 backend). Or to put it another way, please refer to libusb(x) and WinUSB documentation and make sure you can access your device with libusbx (using for instance the sample applications xusb etc), before you try pyusb on it. Of course, I am talking about pyusb 1.0a3 here. For pyusb 0.4 you would have to use libusb-compat together with libusbx, but there should be no reason to use pyusb 0.4 since pyusb 1.0a3 even allows the 0.4 API through its legacy module. Best regards, Tormod ------------------------------ Message: 4 Date: Thu, 20 Dec 2012 09:50:11 +0800 From: Xiaofan Chen <xiaof...@gmail.com> Subject: Re: [pyusb-users] libusbx To: pyusb-users@lists.sourceforge.net Message-ID: <cagjspua3a-oojs6mstyaynhmut1n+f6br+ytsw6yfvw4kjp...@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 On Wed, Dec 19, 2012 at 11:06 PM, Stenquist, Carl <carl.stenqu...@renesas.com> wrote: > Dear PyUSB group, > > How can I find info on using libusbx together with PyUSB? I have > successfully (for the most part) used the old libusb0.dll, but how > install and use libusbx with PyUSB? There must be some info written on > this from PyUSB perspective (?) but I have not found it. As mentioned by Tormod, there is not much pyusb specific thingy about using libusbx. I assume you are talking about Windows in the following reply. For Linux, it should be easier to use libusbx with pyusb. 1) In order to use libusbx, you need to install a supported driver. You should use Zadig to do that. And then you can use xusb (libusbx sample) to test the installation. https://github.com/libusbx/libusbx/wiki/Windows-Backend 2) Take note libusbx does not offer an installer like libusb-win32 to put its dll (libusb-1.0.dll) to a place Python can find it. So you need to do that by yourself. libusb-win32's inf-wizard will install the driver and the dll to the proper system directory. -- Xiaofan Disclaimer: This message and any files or text attached to it are intended only for the recipients named above and contain information that may be confidential or privileged. If you are not an intended recipient, you must not forward, copy, use or otherwise disclose this communication or the information contained herein. In the event you have received this message in error, please notify the sender immediately by replying to this message, and then delete all copies of it from your system. Thank you. ------------------------------------------------------------------------------ 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