aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/python/usrp_mpm/periph_manager/n310.py
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2018-03-01 11:59:52 -0800
committerMartin Braun <martin.braun@ettus.com>2018-03-02 13:48:14 -0800
commitd15044982206030b8ecb104c37073cb6292e819e (patch)
tree1e0a76662e4768a64194c2c885d7e2ac4eb17bbd /mpm/python/usrp_mpm/periph_manager/n310.py
parentd04b6e3a62e2ad213ef3ac8ce80649d1932a6e04 (diff)
downloaduhd-d15044982206030b8ecb104c37073cb6292e819e.tar.gz
uhd-d15044982206030b8ecb104c37073cb6292e819e.tar.bz2
uhd-d15044982206030b8ecb104c37073cb6292e819e.zip
n310: Make MPM report FPGA version and description, UHD read it
The FPGA and MPM version as well as the description of the device ("N300-Series Device") and its name (its the hostname) are now properly reported coming from MPM, properly saved in the prop tree, and uhd_usrp_probe can nicely display them this way.
Diffstat (limited to 'mpm/python/usrp_mpm/periph_manager/n310.py')
-rw-r--r--mpm/python/usrp_mpm/periph_manager/n310.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/mpm/python/usrp_mpm/periph_manager/n310.py b/mpm/python/usrp_mpm/periph_manager/n310.py
index 07e432278..c491cf472 100644
--- a/mpm/python/usrp_mpm/periph_manager/n310.py
+++ b/mpm/python/usrp_mpm/periph_manager/n310.py
@@ -456,6 +456,7 @@ class n310(PeriphManagerBase):
# See PeriphManagerBase for documentation on these fields
#########################################################################
pids = [0x4242,]
+ description = "N300-Series Device"
mboard_eeprom_addr = "e0005000.i2c"
mboard_eeprom_max_len = 256
mboard_info = {"type": "n3xx",
@@ -782,8 +783,13 @@ class n310(PeriphManagerBase):
"""
Append the device info with current IP addresses.
"""
- return self._xport_mgrs['udp'].get_xport_info() \
+ device_info = self._xport_mgrs['udp'].get_xport_info() \
if self._device_initialized else {}
+ device_info.update({
+ 'fpga_version': "{}.{}".format(
+ *self.mboard_regs_control.get_compat_number())
+ })
+ return device_info
###########################################################################
# Clock/Time API