I need to get the CPE/RF MAC address of the STB, is there an API or standard RDK way to obtain this that will not be hardware specific?
Thanks
Joby
No labels
2 Comments
Unknown User (hteece)
Joby,
You could take a look at the ServiceManager.DeviceSettings API [this is JavaScript BTW]. There are functions there to get various system settings that should be hardware independent.
The SystemSettings API also seems to deliver the same data.
One word of caution: these script functions themselves do seem to be a little presumptuous. the ECM MAC code expects SNMP to be up and running on the CableCARD at 192.168.100.1 and the STB MAC Address of IP devices, or DEVICE_TYPE=="mediaclient" looks at the command line used to launch Linux for the phrase 'comcast.stbmacaddr'
2 Comments
Unknown User (hteece)
Joby,
You could take a look at the
ServiceManager.DeviceSettings
API [this is JavaScript BTW]. There are functions there to get various system settings that should be hardware independent.is a good starting point and take a look at
and in particular the
getEcmMac()
andgetMacAddress()
functions.You can call them like this:
or
The
SystemSettings
API also seems to deliver the same data.One word of caution: these script functions themselves do seem to be a little presumptuous. the ECM MAC code expects SNMP to be up and running on the CableCARD at 192.168.100.1 and the STB MAC Address of IP devices, or
DEVICE_TYPE=="mediaclient"
looks at the command line used to launch Linux for the phrase 'comcast.stbmacaddr'Howard.
Unknown User (jbett)
Thanks! I'll take a look