Hi everyone,

I'm standing a little bit on the other side of the road - I am currently
developing a USB HID. Things work with Windows 98 and XP, but with Linux
(both 2.4.24 and 2.6.3) I get errors when it tries to receive the device
descriptor. 2.4.24 tells me:

usb.c: USB device descriptor short read (expected 18, got 2)

and 2.6.3 gives a similar, though not as informant message (something like:
Error reading device descriptor on device)

which is kind of weird, since my device definitely sends out 18 bytes... in
two 8 byte packets followed by a 2 byte packet. I'm checking this on the LCD.

Since Windows does things OK, I'm just wondering what to blame - is my
device too slow? Does Linux send out the requests faster than Windows? Or is
there a bug in Linux taking the last packet size for the entire packet size?
I've been looking around in usb.c and adding a few debug messages here and
there, but I didn't gain any interesting information from them...

I also tried deactivating the first test when reading only 8 Bytes from the
device to get the maximum endpoint packet size and setting maximum packet
size manually - and it seems as if I got the entire descriptor without
errors, but the next descriptor, the configuration descriptor, fails in that
case with a similar error (...short read (expected 25, got 9))

Hope anyone can point me to the right direction...

TIA, Heiko
-- 


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to