Re: [Libphidget-devel] serial numbers
Status: Alpha
Brought to you by:
jstrohm
|
From: <fit...@ph...> - 2002-09-12 02:18:32
|
No maximum size. It's defined in hardware as a string, so it would be the
maximum length of a string in USB. Probably 255 bytes or something. In
Windows, I'm representing the serial number with a long.
Vadim, we fetch a string, which is always string descriptor #3, for serial
number, and then we parse this string to get the number. This is the asm
declaration for the string.
USBStringDescription3:
db Ch ; Length, db is a byte
db 03h ; 3 is a string descriptor
dsu "00001"; ; string, defined in Unicode.
So you see that I'm using 5 digits only. There is nothing to prevent me
from stretching this when I reach 99,999. Be nice if that change didn't
break code.
Chester
>
>
> For USB devices (phidget in particular) what is the maximum size of a
> serial number?
>
>
>
> -------------------------------------------------------
> In remembrance
> www.osdn.com/911/
> _______________________________________________
> Libphidget-devel mailing list
> Lib...@li...
> https://lists.sourceforge.net/lists/listinfo/libphidget-devel
>
|