Hi - I have a Python app talking to a Garmin GPS and it's actually working. What I am wondering is how should we deal with the read statement, without knowing if there is data to read.
Basically I have a loop that continuously polls the in (both interrupt and bulk) ports looking for data to read. If nothing is there an exception is generated (timeout exception) which I catch and continue looping. Is there a better way? -----Original Message----- From: Xiaofan Chen [mailto:xiaof...@gmail.com] Sent: Saturday, December 24, 2011 3:53 PM To: pyusb-users@lists.sourceforge.net Subject: Re: [pyusb-users] Garmin GPS On Sun, Dec 25, 2011 at 3:49 AM, Stephen Conley <conle...@me.com> wrote: > Hi - new to PyUSB and attempting to read GPS info from Garmin USB GPS. > I am using the Windows 7 (64 bit) and have installed libusb0. The > Garmin driver also appears to be connected to the GPS. > > I get the error: > > [Errno None] libusb0-dll:err [claim_interface] could not claim > interface 0, win error: The requested resource is in use. > > I have read on the byte forum that Garmin GPS units don't work with > PyUSB on Windows because of some quirk in the way the drivers are > installed. Is that true and is there a work around (short of not using PyUSB)? > How did you install libusb-win32? What is the output of testlibusb-win.exe? Are you using the filter driver? If that does not work, try to use the device driver mode and it should work. -- Xiaofan ---------------------------------------------------------------------------- -- Write once. Port to many. Get the SDK and tools to simplify cross-platform app development. Create new or port existing apps to sell to consumers worldwide. Explore the Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join http://p.sf.net/sfu/intel-appdev _______________________________________________ pyusb-users mailing list pyusb-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pyusb-users ------------------------------------------------------------------------------ Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual desktops. With this all-in-one solution, easily deploy virtual desktops for less than the cost of PCs and save 60% on VDI infrastructure costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox _______________________________________________ pyusb-users mailing list pyusb-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pyusb-users