From: <ste...@ka...> - 2006-11-30 08:03:57
|
Anand S Madhusoodanan a =E9crit : > I am afraid I do not understand the second question. Do you want me to > try and read from end point 0x1? The endpoint that I see is 0x81. > +bEndpointAddress: 81h > +bmAttributes: 02h > +Endpoint Type =3D BULK > +wMaxPacketSize: 64 > +bInterval: 0 > +bRefresh: 0 > +bSynchAddress: 0 Yes, have a look there : <http://www.beyondlogic.org/usbnutshell/usb5.htm#EndpointDescriptors> and search for bEndpointAddress. You will see that the bit 7 means it is an IN transaction. So, 0x81 means you are reading from endpoint 0x01. With libusb, this information (OUT/IN) is given by the name of the function you use (=5Fwrite/=5Fread), so you should just do usb=5Fbulk=5Fread(..., 0x01, ...). Goodbye, St=E9phane. |