Hi, On Tue, Feb 11, 2003 at 07:51:45AM +0100, Daniel Dencker wrote: > I have some problems when trying to use the usb_bulk_read function. -1 > is returned. The problem is probably on the target side, > but to be sure I wonder if you could please confirm that I am using the > function in the right way. > > *dev = the handle returned by usb_open > ep = The endpoint address, e.g. 0x82 > *bytes = The the returned data. > size = The number of bytes I would like the function to return. > timeout = E.g. 100
timeout is in miliseconds, so if the device is slow, you may need to increase that value. Use usb_strerror to find out the exact error. You can enable debugging with usb_set_debug(level). Also have a look at syslog for any unusual messages. > Control transfers are running, but when calling usb_bulk_read no > information is received by the H8. If the read runs into a timeout, that usually just means that the device didn't send any data. Bye, Henning ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
