I can try to test it with ... proposed patch :-D

Yes please.

Do you have a reference where I can get more information about it?

http://en.wikipedia.org/wiki/Binary-coded_decimal
might be what you want.

P:  Vendor=10d6 ProdID=1100 Rev= 1.00

In plain hex, these three numbers are x 10D6 1100 0100.

See that? The hex that prints mangled as "Rev= 1.00" or as "Rev= 01.00" crossed the USB cable as the four nybbles x0100.

By the rules of two's complement, x0100 = 256. By the rules of BCD, x0100 = 0100 and you put the decimal point where you please, yielding any of .0100 0.100 01.00 010.0 0100., also 0.00100, etc. By the rules of USB BCD, you put the decimal point in the middle, yielding 01.00.

Where Linux says Vendor ProdID Rev, Windows says VID PID. Usb.org says idVendor idProduct bcdDevice. All those words are names for the same numbers. For your sample, x10D6 is the idProduct = VID = Vendor, x1100 is the idVendor = PID = ProdID, and x0100 is the bcdDevice = Rev.

Incidentally, the bcdUSB contained in that same "device descriptor" struct is a revision of something else entirely, having been brought to you by the same Usb.org people who say their Full Speed is slower than their Hi Speed.

... you patched ...
10d6, 1100, 0000-9999

Your sample represents a group of devices all of which share the bcdDevice of x0100.

The value x0100 is found in the range x0000..x9999. All USB bcd values should appear in the range x0000..x9999, so that range is functionally equivalent to the range x0000..xFFFF, i.e., no restriction at all, just as if you referred to the device by idVendor idProduct alone in a Windows .inf file, without considering the bcdDevice.

... What you should have patched is ...
10d6 1100 0100-0100

The value x0100 and only the value x0100 is found in the more narrow range of x0100..x0100.

... The "Rev" is the bcdDevice number, and is the range in question.

That make sense?

What I don't understand why I should use 0100 instead of 1100?

Does anything remain unclear?


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to