2011/12/24 Stephen Conley <conle...@me.com>:
> 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 attempted to run the following:
>
>
>
> import usb.core
>
> import usb.util
>
> import sys
>
>
>
> dev = usb.core.find(idVendor=0x091e, idProduct=0x0003)
>
>
>
> if dev is None:
>
>     raise ValueError('Device not found')
>
>
>
> dev.set_configuration()
>
>
>
> try:
>
>    ret = dev.write(0x03, 5, 0, 10000)
>
> except Exception as e:
>
>     print e.__str__()
>
>
>
> 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)?
>

I never heard about such issue. Anyway, this seems that more a libusb
stuff than PyUSB...

>
>
> Just for fun I tried using the detach kernel driver function...
> detach_kernel_driver(0x03) but it failed looking for a module
> (detach_kernel_driver_np) that only exists under unix.
>

detach_kernel_driver makes only sense on Unix indeed...

>
>
> Any ideas here?
>

Unfortunately, no ideas...



-- 
Best Regards,
Wander Lairson Costa

------------------------------------------------------------------------------
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

Reply via email to