Hi,
To make a long story short, in Windows, libusb needs a driver attached, so
makes no sense a function to detach the driver.
Em 17/05/2012 16:01, "greg yurikov" escreveu:
> I'm using the libusb1.2.4.9 win32 backend I think. I downloaded the .zip
> file found here:
>
> https://sourceforge.net/p
Ah! Windows (didn't notice that at first), it isn't implemented (and isn't
possible). I posted a similar question a while back. The response
I received is worth reading.
Chris
On Thu, May 17, 2012 at 2:00 PM, greg yurikov wrote:
> I'm using the libusb1.2.4.9 win32 backend I think. I downloaded
I'm using the libusb1.2.4.9 win32 backend I think. I downloaded the .zip file
found here:
https://sourceforge.net/projects/libusb-win32/files/libusb-win32-snapshots/20110713/
In the zip were the following files:
libusb-win32-devel-filter-1.2.4.9.exe
libusb-win32-src-1.2.4.9.zip
libusb-win32-b
On Thu, May 17, 2012 at 11:40 AM, greg yurikov wrote:
>
>
> I get this error:
>
> File "test.py", line 20, in
> if device.is_kernel_driver_active(0):
> File "C:\Python26\lib\site-packages\usb\core.py", line 704, in
> is_kernel_driver_active
> return self._ctx.backend.is_kernel_d
When running the following code:
import sys
import usb.core
import usb.util
VENDOR_ID = 0x1bcf
PRODUCT_ID = 0x0007
DATA_SIZE = 8
# find the MagTek reader
device = usb.core.find(idVendor=VENDOR_ID, idProduct=PRODUCT_ID)
if device is None:
sys.exit("Could not find device.")
# make sure th