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

  1. 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.

    components/generic/servicemanager/src/services/devicesettingservice.cpp

    is a good starting point and take a look at

    components/generic/sysint/lib/rdk/getDeviceDetails.sh

    and in particular the getEcmMac() and getMacAddress() functions.

    You can call them like this:

    ServiceManager.getServiceForJavaScript("deviceSettingService").getDeviceInfo("ecm_mac")

    or

    ServiceManager.getServiceForJavaScript("deviceSettingService").getDeviceInfo("macAddress")

    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.

  2. Thanks! I'll take a look