Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Reading less than the available bytes



email@hidden said:

> The problem is that, at least with synchronous calls, IOKit does not seem
> to like the fact that I ask for only 1 byte from the read pipe when there
> may be more available (even if I'm in a loop and will immediately be
> asking for another byte).  I get an IOReturnOverrun error.

This seems to indicate that even though we gave it a 1 byte buffer, the
device returned more than that (hence the overrun). The error does not come
from "IOKit" per se -- we are reporting what the OHCI controller told us.
I'm afraid that all the bytes that were transferred are gone, so you can't
get at them?

Can you look at the data on the bus and see what's going on?  It seems that
the device is sending as much data as it can.  Why don't you set the buffer
to be maxPacketSize and process however many bytes were sent?


-- 
Fernando Urbina                            mailto:email@hidden
USB Technology Team                           work: 719.534.9387
Apple Computer, Inc.                           fax: 719.532.0981
_______________________________________________
usb mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/usb
Do not post admin requests to the list. They will be ignored.

References: 
 >Reading less than the available bytes (From: email@hidden)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.