From 23e11875386ebae3651144529bfb4fdee86a5436 Mon Sep 17 00:00:00 2001 From: Brent Stapleton Date: Fri, 17 Nov 2017 11:04:49 -0800 Subject: mpm: discovery returns 'product' information - Added 'product' information to N310 - MPM discovery checks for 'product' field --- mpm/python/usrp_hwd.py | 3 ++- mpm/python/usrp_mpm/periph_manager/n310.py | 4 +++- 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', -- cgit v1.2.3