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: ReadPipeT0 always wrong!



At 1:31 AM -0700 3/21/07, Michael Dautermann wrote:
On Mar 20, 2007, at 6:05 PM, Wang Yongqing wrote:

Garth Cummings <<mailto:email@hidden>email@hidden> wrote:

Hi Yongqing,

On Mar 19, 2007, at 6:44 PM, Wang Yongqing wrote:

/AgmIIMac/Src/usb.c:571:ReadUSB()?ReadPipeT0 wrong!
/AgmIIMac/Src/usb.c:572:ReadUSB()?iorv = e0004051


Have you looked up what the error?xe0004051 means? That should get you somewhere.



Hi Garth,

I have check the values of the kIOReturn, There is not my wrong number.
But when the Readpipe is wrong, I try to use USBDeviceReEnumerate,
my driver starts to work well and there is no problem when my ppc wakes up
from the hibernation mode.


Hello Yongqing,

It's the middle of the night in the U.S. and no developer (in their right mind) should be awake here :-) -- so I guess I could attempt to help you by providing another hint:

You'll find the error value for the failing ReadUSB function defined in <usb/USB.h>.

Take a look at that how the error is defined in that header file and you might get a good idea as to what is going wrong in your code.

m

In addition to what Michael has advised, the other thing to do is to attach a USB Analyzer and watch what is taking place on the USB bus, when the "Transaction Timeout" error occurs. It might be that the device is NAKing all IN requests. A USBProber dump will not show this. You can only see if this is happening with a USB Analyzer. Does the IN request have the correct values?

best wishes.
--
Sincerely,
Rich Kubota
email@hidden
(408) 974-6212
_______________________________________________
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: 
 >Re: ReadPipeT0 always wrong! (From: Wang Yongqing <email@hidden>)
 >Re: ReadPipeT0 always wrong! (From: Michael Dautermann <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.