Created by Unknown User (jbett), last updated by Anonymous on Jun 28, 2017
1 minute read
Hi,
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)
Jul 23, 2014
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)
Jul 23, 2014Joby,
You could take a look at the
ServiceManager.DeviceSettingsAPI [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:
ServiceManager.getServiceForJavaScript("deviceSettingService").getDeviceInfo("ecm_mac")or
ServiceManager.getServiceForJavaScript("deviceSettingService").getDeviceInfo("macAddress")The
SystemSettingsAPI 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)
Jul 23, 2014Thanks! I'll take a look