From: Kevin K. <kev...@go...> - 2010-04-25 16:25:55
|
Hi all, I'm having difficulty getting pyusb to find my HID usb device, here are the steps I have taken so far: Download & install pyusb-1.0.0-a0 (by unpacking & excuting python setup.py install from within cygwin) Download & unpack libusb10 (***2010.04.21 (r268)<http://libusb-winusb-wip.googlecode.com/files/libusb_2010.04.21.7z> ) * from http://libusb-winusb-wip.googlecode.com/files/libusb_2010.04.21.7z Copied libusb-1.0.dll from MinGW32\dll to windows/sytem32 Created a test program with the following: import usb.core import usb.util # Find our device dev = usb.core.find(find_all=True, idVendor=0xd209, idProduct=0x1501) # Was it found? if dev is None: raise ValueError('Device not found') print 'There are ' + str(len(dev)) + ' devices found. ' However when I run this it says 0 devices found, even though the device is recognised by windows device manager & I can use the game controller properties in control panel to see the device working. Can anybody see what I may have done wrong? p.s. if I remove the find_all parameter then I get the ValueError exception.... Thanks in advance, Kevin download & build On Sun, Apr 11, 2010 at 11:43 PM, Xiaofan Chen <xia...@gm...> wrote: > On Sun, Apr 11, 2010 at 10:40 PM, Kevin Kilroy <kev...@go...> > wrote: > > Hi all, > > > > I'm now using windows XP, however, when I now run the code, the app hangs > > after the call to set_configuration() > > > > If you are using the libusb01 backend, then you have to replace the > HID driver with the libusb-win32 device driver. > > If you are using the libusb10 backend under Windows XP, then > you do not need to replace the HID driver. libusb 1.0 Windows > backend supports HID. But then you need to download the > binary snapshots and put the DLL inside windows\system32 > directory (Please use the VC/DDK version). > > http://www.libusb.org/wiki/windows_backend > > -- > Xiaofan http://mcuee.blogspot.com > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > pyusb-users mailing list > pyu...@li... > https://lists.sourceforge.net/lists/listinfo/pyusb-users > |