Re: [pyusb-users] invalid endpoint for reading

2011-06-28 Thread Xiaofan Chen
On Tue, Jun 28, 2011 at 9:51 PM, Vishwanath Saragadam 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(

[pyusb-users] invalid endpoint for reading

2011-06-28 Thread Vishwanath Saragadam
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) Traceback (most recent call last): File "", line