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: ReadPipeAsync error = $e00002e8



It usually means that you need to make your Read request buffers a multiple of "MaxPacketSize" of your endpoint.   The device is allowed to return up to MaxPacketSize bytes in response to an IN token.  When the USB host controller receives this, and your buffer is not that large, it can either put the data in the buffer, returning all yourequested, along with an error, or it can throw all the data away and just return the error.     So, if you want to get all the data from your device it sends, always make your requests a multiple of MaxPacketSize bytes.

David Ferguson
USB Software Team
Apple

On Mar 26, 2007, at 5:36 PM, email@hidden wrote:

I did look up the error code in ioReturn.h and found that 0x2e8 is kIOReturnOverrun. The buffer that I allocated for the read did not have any data in it though and the number of bytes returned was zero.

Does that mean that I need to allocate a larger buffer for the async read? Or do I need to queue up several async reads?

Thanks for any help, Ajay Nath
 
-----Original Message-----
From: email@hidden
To: email@hidden
Cc: email@hidden
Sent: Mon, 26 Mar 2007 5:45 PM
Subject: Re: ReadPipeAsync error = $e00002e8


On Mar 26, 2007, at 2:07 PM, email@hidden wrote:

Does anyone have any ideas about how to solve this problem?

Did you look up what that error code means? ;-)

--gc
____________________________________________________________________
Garth Cummings  email@hidden
Sr. Software Engineer
Apple Developer Technical Support


WWDC 2007 • June 11-15 • Moscone West • San Francisco, CA


=

Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Usb mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Usb mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/usb/email@hidden

This email sent to email@hidden

References: 
 >ReadPipeAsync error = $e00002e8 (From: email@hidden)
 >Re: ReadPipeAsync error = $e00002e8 (From: Garth Cummings <email@hidden>)
 >Re: ReadPipeAsync error = $e00002e8 (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.