From: Weijun Z. <zh...@uc...> - 2003-03-10 07:00:47
|
I had a wierd problem and thought maybe somebody here know why or had similar expirence. The problem is that sometimes I got an extra byte from my usb device. The usb device generate 70 bytes every second and I use bulk read to read the data into host with Maximum packet size of 64 byte. Typically I got 64 bytes in the first read and 6 bytes in the following read when the data become available in the usb device and 0 bytes otherwise. But sometime I got 64 bytes in the first read and 7 bytes in the second read. I examined the received data. The last byte of the first read got repeated as the first byte in the second read in this case. It is unlikely a libusb problem but I still hope people here may had similar experience. Thanks. Weijun. |