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

Dirk Hohndel dirk at hohndel.org
Sat Jan 12 16:01:57 PST 2013


On Jan 12, 2013, at 3:42 PM, Artur Wroblewski wrote:

> On Thu, Jan 10, 2013 at 8:51 AM, Jef Driesen <jefdriesen at telenet.be> wrote:
> [...]
>> The primary purpose of the serial number in the DC_EVENT_DEVINFO event
>> is to be able to uniquely identify individual devices (e.g. for use with
>> the fingerprint feature).
> 
> There is nothing, which prevents two dive computers from two different
> manufacturers, to have the same serial number, isn't it?
> 
> Not sure how it works for fingerprint feature, but IMHO it is worth keeping
> above in mind before someone starts to use the serial as device unique
> identifier.

Absolutely correct. So Subsurface uses the tuple <model,serial> as unique identifier.

/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/fb234fde/attachment.bin>


More information about the subsurface mailing list