aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/python
diff options
context:
space:
mode:
authorBrent Stapleton <brent.stapleton@ettus.com>2017-11-17 11:04:49 -0800
committerMartin Braun <martin.braun@ettus.com>2017-12-22 15:05:06 -0800
commit23e11875386ebae3651144529bfb4fdee86a5436 (patch)
treea5a838c596387a26c98970d200ed2e4e9cd5d32b /mpm/python
parent07ef7e3e61e9cd38a3155468aef4a3d43a81b6b9 (diff)
downloaduhd-23e11875386ebae3651144529bfb4fdee86a5436.tar.gz
uhd-23e11875386ebae3651144529bfb4fdee86a5436.tar.bz2
uhd-23e11875386ebae3651144529bfb4fdee86a5436.zip
mpm: discovery returns 'product' information
- Added 'product' information to N310 - MPM discovery checks for 'product' field
Diffstat (limited to 'mpm/python')
-rwxr-xr-xmpm/python/usrp_hwd.py3
-rw-r--r--mpm/python/usrp_mpm/periph_manager/n310.py4
2 files changed, 5 insertions, 2 deletions
diff --git a/mpm/python/usrp_hwd.py b/mpm/python/usrp_hwd.py
index 4149ff40d..bc8b1e749 100755
--- a/mpm/python/usrp_hwd.py
+++ b/mpm/python/usrp_hwd.py
@@ -139,7 +139,8 @@ def main():
mgr = periph_manager(args)
discovery_info = {
"type": mgr.get_device_info().get("type", "n/a"),
- "serial": mgr.get_device_info().get("serial", "n/a")
+ "serial": mgr.get_device_info().get("serial", "n/a"),
+ "product": mgr.get_device_info().get("product", "n/a")
}
if args.init_only:
mgr.init(args.default_args)
diff --git a/mpm/python/usrp_mpm/periph_manager/n310.py b/mpm/python/usrp_mpm/periph_manager/n310.py
index e2d5b261c..ecce1bd77 100644
--- a/mpm/python/usrp_mpm/periph_manager/n310.py
+++ b/mpm/python/usrp_mpm/periph_manager/n310.py
@@ -452,7 +452,9 @@ class n310(PeriphManagerBase):
pids = [0x4242,]
mboard_eeprom_addr = "e0005000.i2c"
mboard_eeprom_max_len = 256
- mboard_info = {"type": "n3xx"}
+ mboard_info = {"type": "n3xx",
+ "product": "n310"
+ }
mboard_max_rev = 3 # 3 == RevD
mboard_sensor_callback_map = {
'ref_locked': 'get_ref_lock_sensor',