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 when I try Ep.write('test') or Ep.read(1) I get this:

 

Traceback (most recent call last):

  File "<console>", line 1, in <module>

  File "C:\Python26\lib\site-packages\usb\core.py", line 276, in write

    return self.device.write(self.bEndpointAddress, data, self.interface,
timeout)

  File "C:\Python26\lib\site-packages\usb\core.py", line 593, in write

    intf = self._ctx.get_interface(self, interface)

  File "C:\Python26\lib\site-packages\usb\core.py", line 153, in
get_interface

    cfg = self.get_active_configuration(device)

  File "C:\Python26\lib\site-packages\usb\core.py", line 165, in
get_active_configuration

    bConfigurationValue=self.backend.get_configuration(self.handle)

  File "C:\Python26\lib\site-packages\usb\_debug.py", line 52, in do_trace

    return f(*args, **named_args)

  File "C:\Python26\lib\site-packages\usb\backend\libusb10.py", line 460, in
get_configuration

    _check(_lib.libusb_get_configuration(dev_handle, byref(config)))

WindowsError: exception: access violation reading 0x00000010

 

Any ideas?

 

Thanks so much.  I'm just starting to look at this but it would be
incredibly useful if I can get it to work.

 

Aaron

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users

Reply via email to