Alan Stern wrote:
On Thu, 15 Jul 2004, John Que wrote:
Now I try to delve in 2 usb issues:
How can I recognize and EOF packet ? is it by testing it's first 8 bytes
(should be equal to 0)
and some value for the 9th byte ? (I saw it in some usb webcam driver code).
I don't know anything about webcams. For general USB devices, you can
tell which packet marks the end of a message because its .actual_length is
shorter than the maxpacket value. But I don't know if that's true so much
for iso streams.
Any such notions are device-specific. There's certainly no standard
encoding for ISO data, and there may not even be a notion of "EOF".
There is however the notion of a "sync frame" for ISO, not currently
used much (at all?) in Linux. See the USB 2.0 spec for details.
After all, what's a "file" ... when there's no filesystem?
- Dave
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel