From 512fd1151fe72bb8d8e45e371348bf0f71309192 Mon Sep 17 00:00:00 2001 From: Lane Kolbly Date: Wed, 3 Jun 2020 13:19:14 -0500 Subject: mpm: Return dboard_info in get_device_info Though this information is also returned via usrp_probe, it can be useful to provide this information to trackers which scrape the get_device_info RPC call. The dboard information is split up and cast to string just to simplify parsing on the receiving end. --- mpm/python/usrp_mpm/periph_manager/base.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'mpm') diff --git a/mpm/python/usrp_mpm/periph_manager/base.py b/mpm/python/usrp_mpm/periph_manager/base.py index 9e9ed3242..6031d6921 100644 --- a/mpm/python/usrp_mpm/periph_manager/base.py +++ b/mpm/python/usrp_mpm/periph_manager/base.py @@ -165,6 +165,11 @@ class PeriphManagerBase(object): except ImportError: version_string = "" mboard_info["mpm_sw_version"] = version_string + + for i,dboard_info in enumerate(dboard_infos): + mboard_info["dboard_{}_pid".format(i)] = str(dboard_info["pid"]) + mboard_info["dboard_{}_serial".format(i)] = dboard_info["eeprom_md"]["serial"] + return mboard_info @staticmethod -- cgit v1.2.3