On Tue, Jun 28, 2011 at 9:51 PM, Vishwanath Saragadam <vishwa....@gmail.com> wrote: > Hi, > > I am trying to read what my usb device is sending but am getting the > following error.please help.The endpoint,i confirmed is 1 >>>> import usb.core >>>> dev = usb.core.find(idVendor = 0x04d8) >>>> dev.set_configuration() >>>> dev.read(1,1) > > USBError: _usb_setup_async: invalid endpoint 0x01 >
Try 0x81. For libusb-win32, the endpoint address should include the direction bit. So EP 1 IN is 0x81 and EP 1 OUT is 0x01. -- Xiaofan ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 _______________________________________________ pyusb-users mailing list pyusb-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pyusb-users