From: Wander L. C. <wan...@gm...> - 2012-12-16 12:50:54
|
2012/12/16 ragman <ga...@gm...>: > Hi Folks, > > USB newbie here. I'm trying to (understand and) read data from an > interrupt endpoint: > Endpoint Descriptor: > bLength 7 > bDescriptorType 5 > bEndpointAddress 0x81 EP 1 IN > bmAttributes 3 > Transfer Type Interrupt > Synch Type None > Usage Type Data > wMaxPacketSize 0x0008 1x 8 bytes > bInterval 8 > > using: > print dev.read(0x81,8,0,1000) > > But I'm getting timouts every time, no matter the timout setting. As > I'm still learning USB I'm guessing I misunderstand (most of it) > interuppt endpoints. > > busdog shows me that the native software reads 2 bytes device every 60 seconds. > Any help would be...helpful and much appreciated. > Did you issue a set_configuration()? -- Best Regards, Wander Lairson Costa |