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: IOUSBDevice->DeviceRequest( ) times out



I assume you mean you are testing a device to see if it responds to USB device requests, and you're trying to do it from your driver.

First - you need to look at what's going out on the bus. Is the device responding, or is it NAKing? Check that the request is well formed -- particularly check that the wValue field (descriptor type & index) is in the correct USB bus order (little endian - normally displayed on a CATC as <index><type> (ie 0x0001), but specified on the big-ending Macintosh as <type><index> (0x0100). This is only specified in the USB spec as "descriptor type in the high byte, and index in the low byte".

If that's what's happening you need to fix your device's firmware to respond with STALL any request for an unknown descriptor type (like 0!), you should do this for any bRequests, indecies out of range, etc.

Hopefully that will help.

David Ferguson
USB Software Team
Apple Computer




At 6:12 PM -0500 3/28/05, Brian Jorgage wrote:
I am testing my driver to see if it can run through all the standard
device requests supported by IOUSBDevice->DeviceRequest().  I am
running into problems with "bRequest=GET_DESCRIPTOR".  Return code
keeps coming back as 0xE0004051 - "transaction timed out".  I get the
same result whether I am querying a device descriptor or a
configuration descriptor.

Does anyone know how to fix this ?  Is it an issue w/the device
state ?  Is it a synchronous/asynchronous issue ?  Just as an FYI,
IOUSBDevice->GetConfigurationDescriptor() works fine.

Brian Jorgage


_______________________________________________ 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

_______________________________________________ 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: 
 >IOUSBDevice->DeviceRequest( ) times out (From: "Brian Jorgage" <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.