From: Xiaofan C. <xia...@gm...> - 2011-06-28 13:58:10
|
On Tue, Jun 28, 2011 at 9:51 PM, Vishwanath Saragadam <vis...@gm...> 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 |