Re: [pyusb-users] invalid endpoint

2011-06-28 Thread wander.lairson
2011/6/28 Vishwanath Saragadam : > Hi, >     as xiaofan pointed out, i tried 0x81 but got the following error: > dev.read(0x81,1) > Try, say, dev.read(0x81, 64) > -- > BY: > > S.R.V.Vishwanath, > Student, > B.Tech(Electrical), > IITM. > 09444357552. > > > -

[pyusb-users] invalid endpoint

2011-06-28 Thread Vishwanath Saragadam
Hi, as xiaofan pointed out, i tried 0x81 but got the following error: >>> dev.read(0x81,1) Traceback (most recent call last): File "", line 1, in dev.read(0x81,1) File "E:\Python27\lib\site-packages\usb\core.py", line 637, in read self.__get_timeout(timeout) File "E:\Python27\l

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