aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--host/lib/usrp/mpmd/mpmd_impl.hpp10
-rw-r--r--host/lib/usrp/mpmd/mpmd_mboard_impl.cpp1
-rw-r--r--host/lib/usrp/mpmd/mpmd_prop_tree.cpp2
3 files changed, 13 insertions, 0 deletions
diff --git a/host/lib/usrp/mpmd/mpmd_impl.hpp b/host/lib/usrp/mpmd/mpmd_impl.hpp
index 364978fd7..5b19bcc00 100644
--- a/host/lib/usrp/mpmd/mpmd_impl.hpp
+++ b/host/lib/usrp/mpmd/mpmd_impl.hpp
@@ -131,6 +131,12 @@ public:
_allow_claim_failure_flag = allow;
}
+ //! Read the device access token
+ std::string get_token()
+ {
+ return _token;
+ }
+
private:
/*! Reference to the RPC client that handles claiming
*/
@@ -165,6 +171,10 @@ private:
*/
uhd::task::sptr _claimer_task;
+ /*! A copy of the device access token
+ */
+ std::string _token;
+
/*! This flag is only used within the claim() function. Go look there if you
* really need to know what it does.
*/
diff --git a/host/lib/usrp/mpmd/mpmd_mboard_impl.cpp b/host/lib/usrp/mpmd/mpmd_mboard_impl.cpp
index 852ece5d3..9fa0d43de 100644
--- a/host/lib/usrp/mpmd/mpmd_mboard_impl.cpp
+++ b/host/lib/usrp/mpmd/mpmd_mboard_impl.cpp
@@ -379,6 +379,7 @@ uhd::task::sptr mpmd_mboard_impl::claim_device_and_make_task()
// Save token for both RPC clients
_claim_rpc->set_token(rpc_token);
rpc->set_token(rpc_token);
+ _token = rpc_token;
// Optionally clear log buf
if (mb_args.has_key("skip_oldlog")) {
try {
diff --git a/host/lib/usrp/mpmd/mpmd_prop_tree.cpp b/host/lib/usrp/mpmd/mpmd_prop_tree.cpp
index dc559f91b..556e2e48d 100644
--- a/host/lib/usrp/mpmd/mpmd_prop_tree.cpp
+++ b/host/lib/usrp/mpmd/mpmd_prop_tree.cpp
@@ -101,6 +101,8 @@ void mpmd_impl::init_property_tree(
.set(mb->device_info.get("fpga_version", "UNKNOWN"));
tree->create<std::string>(mb_path / "fpga_version_hash")
.set(mb->device_info.get("fpga_version_hash", "UNKNOWN"));
+ tree->create<std::string>(mb_path / "token").set(mb->get_token());
+ tree->create<uhd::device_addr_t>(mb_path / "args").set(mb->mb_args);
/*** Clocking *******************************************************/
tree->create<std::string>(mb_path / "clock_source/value")