Device serial numbers [was: Clean up some of the dive computer nickname code]

Dirk Hohndel dirk at hohndel.org
Sat Jan 12 14:48:39 PST 2013


On Jan 12, 2013, at 2:33 PM, Linus Torvalds wrote:

> On Sat, Jan 12, 2013 at 1:47 PM, Tim Wootton <tim at tee-jay.demon.co.uk> wrote:
>> 
>> Mares Nemo Wide 2 :  6 digit numeric
> 
> The shearwater predator seems to be a 8-digit hex number judging by
> their manual.
> 
> The atomic aquatics seems to be two 4-digit decimal numbers with a
> dash in between.
> 
> Judging by some recalls on the net, some Oceanics have 4-digit
> numbers, some have six, and they seem to use hex numbers at least for
> their firmware release, but the serial numbers seem to be decimal.

Looking at http://www.oceanicaus.com.au/page.php?id=29 it seems that most current Oceanics / Aeris / Hollis computers should have <letter><letter><dash><six numbers> as format.

> Anyway, even when they are "numbers" it's clearly not possible to know
> how to format them. Hex or decimal? How many digits? Dashes?

Yes. Definitely. Back the backend might be able to figure this out for some computers. So your idea of having a callback that returns the string if we know how to create it is a good one.

/D


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4130 bytes
Desc: not available
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20130112/54773723/attachment-0001.bin>


More information about the subsurface mailing list