Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Samsung smart tv unique device identifier

I'm trying to programmatically obtain some kind of unique device identifier from Samsung smart TV device.

The closest thing i found in documentation is GetDUID function on SAMSUNG-INFOLINK-NNAVI object, but it requires to provide mac address which confuses me as to what purpose of this function really is.

My question: how to obtain for example device serial number or other information that uniquely identifies it.

like image 804
WojtekT Avatar asked Aug 20 '12 13:08

WojtekT


Video Answer


2 Answers

Accordingly to SamsungDForum the way to get the DUID ("Device Unique ID") is:

In index.html add:

<object id='pluginNetwork' border=0 classid='clsid:SAMSUNG-INFOLINK-NETWORK'></object>
<object id='pluginObjectNNavi' border=0 classid='clsid:SAMSUNG-INFOLINK-NNAVI'></object>

And somewhere in your Javascriptː

var networkPlugin = document.getElementById('pluginNetwork');
var nnaviPlugin = document.getElementById('pluginObjectNNavi');
var deviceId = nnaviPlugin.GetDUID(networkPlugin.GetHWaddr());

I know that you've seen this, but I honestly don't think that there's other solution.

edit: Please check @IvanSolntsev answer if you're looking for a way to get the device ESN (Electronic Serial Number).

edit2: Updated DUID official documentation link.

like image 148
Rui Posse Avatar answered Nov 15 '22 09:11

Rui Posse


You could use GetESN function

in html:

<object id='pluginExternal' border=0 classid='clsid:SAMSUNG-INFOLINK-EXTERNALWIDGETINTERFACE'></object>

in javascript:

var ExternalWidgetInterface = document.getElementById('pluginExternal');
var sn = ExternalWidgetInterface.GetESN("NFLX");
like image 43
Ivan Solntsev Avatar answered Nov 15 '22 07:11

Ivan Solntsev