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: Unexpected USB behavior in new Powerbook



At 11:41 AM -0500 2/23/05, Juan Pablo Pertierra wrote:

it sent 7 data bytes of the device descriptor instead of the requested 8.

However, the mac then goes into a very strange infinite loop, sending:
SETUP
DATA0(empty)
SETUP
DATA1(empty)

My guess as to what's happening is the enumeration code doesn't check the length of data returned and assumes it got all 8 bytes. The 8th byte is the max packet size of endpoint zero, so it sets up endpoint zero as zero length, you're seeing it send the zero length packets. It takes a long time to transfer data with a zero max packetsize.


There was a similar bug I put in and later fixed in OS 9 a while ago.
--
Barry Twycross
email@hidden
                     ---
         USB, it's not a Dyslexic BUS.        (Thanks to TC.)
_______________________________________________
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: 
 >Unexpected USB behavior in new Powerbook (From: Juan Pablo Pertierra <email@hidden>)
 >Re: Unexpected USB behavior in new Powerbook (From: David Ferguson <email@hidden>)
 >Re: Unexpected USB behavior in new Powerbook (From: Juan Pablo Pertierra <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.