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

 

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.

 

Any ideas here?

 

 

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