<div dir="ltr">Thanks Gonzalo,<div><br></div><div>will use serial number as pointed by you.<div><br></div><div><br></div><div>and with reference to the points raised by James, we'll assume that we are running a single instance of sugar on a xo. ( we can surely make it better once the basic flow is there :-) )</div>
<div><div><br></div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jul 24, 2014 at 5:37 PM, Gonzalo Odiard <span dir="ltr"><<a href="mailto:godiard@sugarlabs.org" target="_blank">godiard@sugarlabs.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">If Sugar is used in a XO, there are a unique id and you can get it as here:<div><br></div><div><a href="https://github.com/sugarlabs/sugar/blob/master/extensions/cpsection/aboutcomputer/model.py#L52" target="_blank">https://github.com/sugarlabs/sugar/blob/master/extensions/cpsection/aboutcomputer/model.py#L52</a><br>

</div><div><br></div><div>Maybe in the case of non xos, you can use the mac address of the active network interface?</div><div><br></div><div>Gonzalo </div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
<div><div class="h5">On Thu, Jul 24, 2014 at 4:56 AM, James Cameron <span dir="ltr"><<a href="mailto:quozl@laptop.org" target="_blank">quozl@laptop.org</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div>On Thu, Jul 24, 2014 at 01:15:28PM +0530, Puneet Kaur wrote:<br>
> Can someone please tell that which number out of serial_number,<br>
> build_number and firmware_number would correspond to the Device's<br>
> Universally Unique Identifier ?<br>
><br>
</div>> I need a number which is unique to each device, need it to implement<br>
<div>> the cordova device plugin for sugar - subpart of the sugar cordova<br>
</div>> project these 3 numbers (serial_number, build_number and<br>
<div>> firmware_number) can be retrieved from<br>
> sugar/extensions/cpsection/aboutcomputer/mode.py , but which out of<br>
> these correspond to the unique number of each device ?<br>
<br>
</div>None of them do, because Sugar can be used on hardware which does not<br>
provide a serial number, and more than one instance of Sugar can be<br>
used on devices that do provide a serial number.  You must find<br>
another way to ensure uniqueness, such as registration to a central<br>
authority database.<br>
<br>
The aboutcomputer control panel section contains legacy code specific<br>
to the OLPC XO laptop.  You should not design on that basis alone.<br>
</div></div><span><font color="#888888"><div><div class="h5"><br>
--<br>
James Cameron<br>
<a href="http://quozl.linux.org.au/" target="_blank">http://quozl.linux.org.au/</a><br></div></div>
_______________________________________________<br>
Sugar-devel mailing list<br>
<a href="mailto:Sugar-devel@lists.sugarlabs.org" target="_blank">Sugar-devel@lists.sugarlabs.org</a><br>
<a href="http://lists.sugarlabs.org/listinfo/sugar-devel" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><span class="HOEnZb"><font color="#888888"><br>
</font></span></font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Gonzalo Odiard<br><br><div>SugarLabs - Software for children learning <br>
</div></div>
</font></span></div>
</blockquote></div><br></div>