diff options
author | Lane Kolbly <lane.kolbly@ni.com> | 2020-06-03 13:19:14 -0500 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2020-06-05 15:03:08 -0500 |
commit | 512fd1151fe72bb8d8e45e371348bf0f71309192 (patch) | |
tree | 2a88acc3db61c8bebd341dacfb04aef45ca4083e /mpm | |
parent | 47fa25769d827bc8a9c7f5adf1ae3850ec7e5c50 (diff) | |
download | uhd-512fd1151fe72bb8d8e45e371348bf0f71309192.tar.gz uhd-512fd1151fe72bb8d8e45e371348bf0f71309192.tar.bz2 uhd-512fd1151fe72bb8d8e45e371348bf0f71309192.zip |
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.
Diffstat (limited to 'mpm')
-rw-r--r-- | mpm/python/usrp_mpm/periph_manager/base.py | 5 |
1 files changed, 5 insertions, 0 deletions
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 |