2011/6/3 Elab :
> I only have one device set up with libusb, but to be sure I have changed
> the code to
>
> import usb.core as core
> usbDevice = core.find(idVendor=0x06C2, idProduct=0x0039)
> if usbDevice != None:
> usbDevice .set_configuration()
> rawRead = usbDevice .read(0x81, 8)
>
I only have one device set up with libusb, but to be sure I have changed
the code to
import usb.core as core
usbDevice = core.find(idVendor=0x06C2, idProduct=0x0039)
if usbDevice != None:
usbDevice .set_configuration()
rawRead = usbDevice .read(0x81, 8)
print('Raw: ' + str(rawRead)
2011/6/2 Elab :
[snip]
> My code is simply:
>
> import usb.core as core
>
> usbDevice = core.find()
How can you be sure your device has been returned here?
> usbDevice.set_configuration()
> rawRead = usbDevice.read(0x81, 5, 0, 100)
> print(rawRead)
>
Wander
Hi. I am trying to connect to a USB device running PyUSB 1.0.0-a1,
libusb-win32 1.2.4.0, under a Windows 7(x86) administrator and python
2.7.1. I have created and installed a .inf file from libusb. Whenever
I try to run a script to read the device, I get an exception reading:
WindowsError: exc
Thankyou so much, that was simple enough.
Aaron
-Original Message-
From: wander.lairson [mailto:wander.lair...@gmail.com]
Sent: Thursday, February 17, 2011 3:42 PM
To: pyusb-users@lists.sourceforge.net
Subject: Re: [pyusb-users] WindowsError: exception: access violation reading
2011/2/17 Aaron Murdoch :
> I installed pyusb on Windows XP SP3 32bit then installed libusb1.0 and then
> libusb-win32.
>
>
>
> I can detect usb devices and read their descriptions using
>
>
>
> dev = usb.core.find(…)
>
> dev.idVendor
>
> ect.
>
>
>
> I can even get down to the endpoints of the USB
I installed pyusb on Windows XP SP3 32bit then installed libusb1.0 and then
libusb-win32.
I can detect usb devices and read their descriptions using
dev = usb.core.find(.)
dev.idVendor
ect.
I can even get down to the endpoints of the USB devices:
Ep = dev[0][(0,0)][0]
But wh