Re: [pyusb-users] Help with reading data from HID device

2010-04-26 Thread Xiaofan Chen
On Mon, Apr 26, 2010 at 7:43 AM, Xiaofan Chen wrote: > When I tested pyusb with Cygwin, I  build libusb-1.0 within > Cygwn and not using the snapshots. It seems to me Cygwin > is looking for cyusb-1.0.dll and not libusb-1.0.dll. > It works for me. Here is the log with an HID device: Microchip PI

Re: [pyusb-users] Help with reading data from HID device

2010-04-25 Thread Xiaofan Chen
On Mon, Apr 26, 2010 at 7:43 AM, Xiaofan Chen wrote: > When I tested pyusb with Cygwin, I  build libusb-1.0 within > Cygwn and not using the snapshots. It seems to me Cygwin > is looking for cyusb-1.0.dll and not libusb-1.0.dll. > > You may want to try this out. > Or you can use the native Win32

Re: [pyusb-users] Help with reading data from HID device

2010-04-25 Thread Xiaofan Chen
On Mon, Apr 26, 2010 at 12:25 AM, Kevin Kilroy wrote: > 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 & u

Re: [pyusb-users] Help with reading data from HID device

2010-04-25 Thread Kevin Kilroy
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)

Re: [pyusb-users] Help with reading data from HID device

2010-04-11 Thread Xiaofan Chen
All in all, you will be annoyed the lack of a generic cross-platform HID library and Python wrapper. Actually there was no native HID python wrapper under Windows for a long time until now. http://old.nabble.com/Python-HID-wrapper-for-Win32-td13329336.html Long long ago people asked for it (at lea

Re: [pyusb-users] Help with reading data from HID device

2010-04-11 Thread Xiaofan Chen
On Sun, Apr 11, 2010 at 10:40 PM, Kevin Kilroy 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 drive

Re: [pyusb-users] Help with reading data from HID device

2010-04-11 Thread Wander Lairson
Did you install libusb-win32? Wander 2010/4/11 Kevin Kilroy : > Hi all, > > I'm now using windows XP, however, when I now run the code, the app hangs > after the call to set_configuration() > > Any ideas? > > Thanks in advance, > > Kevin. > > On Sun, Apr 11, 2010 at 12:57 PM, Xiaofan Chen wrote:

Re: [pyusb-users] Help with reading data from HID device

2010-04-11 Thread Kevin Kilroy
Hi all, I'm now using windows XP, however, when I now run the code, the app hangs after the call to set_configuration() Any ideas? Thanks in advance, Kevin. On Sun, Apr 11, 2010 at 12:57 PM, Xiaofan Chen wrote: > On Sun, Apr 11, 2010 at 6:43 PM, Kevin Kilroy > wrote: > > I'm now trying on U

Re: [pyusb-users] Help with reading data from HID device

2010-04-11 Thread Xiaofan Chen
On Sun, Apr 11, 2010 at 6:43 PM, Kevin Kilroy wrote: > I'm now trying on Ubuntu (8.04 64bit) & I'm now receiving this error: > > >  File "test.py", line 13, in >     dev.set_configuration() >   File "/usr/lib/python2.5/site-packages/usb/core.py", line 511, in > set_configuration >     self._ctx.m

Re: [pyusb-users] Help with reading data from HID device

2010-04-11 Thread Kevin Kilroy
Hi all, I'm now trying on Ubuntu (8.04 64bit) & I'm now receiving this error: File "test.py", line 13, in dev.set_configuration() File "/usr/lib/python2.5/site-packages/usb/core.py", line 511, in set_configuration self._ctx.managed_set_configuration(self, configuration) File "/usr/

Re: [pyusb-users] Help with reading data from HID device

2010-04-10 Thread Xiaofan Chen
On Sun, Apr 11, 2010 at 6:02 AM, Marcus Foster wrote: > "/Library/Python/2.6/site-packages/usb/core.py" > sounds like Mac OSX > In that case, it is a bit complicated. libusb 0.1 and libusb 1.0 do not work under Mac OS X with the HID device. You have to write a codeless kext to prevent the kernel

Re: [pyusb-users] Help with reading data from HID device

2010-04-10 Thread Marcus Foster
"/Library/Python/2.6/site-packages/usb/core.py" sounds like Mac OSX On Sat, Apr 10, 2010 at 9:50 PM, Wander Lairson wrote: > Hello Kevin, > > What OS are you using? > > Wander > > 2010/4/10 Kevin Kilroy : > > Hi, > > > > I have an HID device that I am trying to read from, but I am receiving > the

Re: [pyusb-users] Help with reading data from HID device

2010-04-10 Thread Wander Lairson
Hello Kevin, What OS are you using? Wander 2010/4/10 Kevin Kilroy : > Hi, > > I have an HID device that I am trying to read from, but I am receiving the > following error: > > usb.core.USBError: Access denied (insufficient permissions) > > Here is a snippet from my code: > > import usb > import

[pyusb-users] Help with reading data from HID device

2010-04-10 Thread Kevin Kilroy
Hi, I have an HID device that I am trying to read from, but I am receiving the following error: usb.core.USBError: Access denied (insufficient permissions) Here is a snippet from my code: import usb import usb.core myVendorId = 53769 myProductId = 5377 dev = usb.core.find(idVendor=myVendorId,