USB_ENDPOINT_DESCRIPTOR oddness
From: Tom Udale (email_at_address.com)
Date: 06/15/04
- Next message: Robin: "Re: USB newbie: many questions (driver, class, etc.)"
- Previous message: Krishna Monian: "Querying for the case sensitive filename"
- Next in thread: Andy Leafe: "RE: USB_ENDPOINT_DESCRIPTOR oddness"
- Reply: Andy Leafe: "RE: USB_ENDPOINT_DESCRIPTOR oddness"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 15 Jun 2004 14:58:01 GMT
I am trying to read the wMaxPacketSize from the USB_ENDPOINT_DESCRIPTOR
of a device so that I can set the MaximumTransferSize to an integral
multiple of the wMaxPacketSize when I set up the interface and I am
getting some odd values.
The device in question has 4 alternate interfaces, each with 2
endpoints - the default control endpoint and a high-speed ISO endpoint.
The USB_ENDPOINT_DESCRIPTOR values for the control endpoint all look
quite reasonable, but the ISO pipe values are kind of cooked. In
particular, for the interfaces that are supposed to be full and half
bandwidth, the reported value of wMaxPacketSize is 5120 (which I believe
should never be higher than 3072) while the default interface (which I
believe should be using no bandwidth) is 384.
Now, my question is, is the data in USB_ENDPOINT_DESCRIPTOR directly
copied from the hardware device (in which case I should be talking to
the hardware guys), or is it massaged alot by usbdi (in which case I
could be calling usbdi incorrectly or there could be some other bug)?
Any ideas?
As an additionaly bit of data, when I actually select the full bandwidth
interface, the packet size I get from the USBD_PIPE_INFORMATION is
indeed 3072.
If this is a hardware problem, I am kind of surprised that USBDI is not
whining more severely early on given that the hardware is reporting
invalid values.
Regards,
Tom Udale
- Next message: Robin: "Re: USB newbie: many questions (driver, class, etc.)"
- Previous message: Krishna Monian: "Querying for the case sensitive filename"
- Next in thread: Andy Leafe: "RE: USB_ENDPOINT_DESCRIPTOR oddness"
- Reply: Andy Leafe: "RE: USB_ENDPOINT_DESCRIPTOR oddness"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|