Re: [Libphidget-devel] serial numbers
Status: Alpha
Brought to you by:
jstrohm
|
From: Vadim T. <vt...@fr...> - 2002-09-12 07:10:16
|
fit...@ph... wrote: > > > > > > > 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. > > > > Will a serial ever be anything more than a number, making full use of > > unicode? > > I don't see any reason to complicate matters. So, it should be safe to > use the straightforward algorithm that you have right now. Just a thought: why does the serial number have to be a number, no matter how coded? Give you an example: az93c12 - what's wrong with this number? What's the primary purpose of the serial number? Let me guess: unique identifier? I sincerely hope that you will run out of serial numbers ;) > Chester --vt |