From: Szasz P. <sp...@sp...> - 2006-09-25 20:33:25
|
Tim Roberts wrote: > As Timo said, we can't tell anything without knowing what "check_e3" > does. But, if "check_e3" does a USB read request, then this is how it > is supposed to work. check_e3 basically reads 3 bytes at once and compares to the expected value. The main idea is it reads 3 bytes with one bulk_read. cehck_e6 reads 6 bytes with one bulk read. > There is no buffering of USB data, either in libusb or in the kernel. > No data gets transferred until you make a request, and when the request > is done, you own all of the data. If you need buffered access, then you > need to write a layer to do the buffering, kind of like fread and fwrite. So you mean if I read 3 bytes only, but the USB packet contained more bytes, the rest is simply lost? -- Best regards, Szasz Pal ---------------- Space Software Studio http://www.spacesoftwarestudio.com |