From 2c9fe05fa8590033cfe0fcdfcb809560a91b4204 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Wed, 8 Nov 2017 16:06:31 -0800 Subject: mpmd: Use the get_last_error feature from the RPC client The RPC client will now query the MPM server for details when an error occured. --- host/lib/usrp/mpmd/mpmd_mboard_impl.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'host/lib/usrp/mpmd/mpmd_mboard_impl.cpp') diff --git a/host/lib/usrp/mpmd/mpmd_mboard_impl.cpp b/host/lib/usrp/mpmd/mpmd_mboard_impl.cpp index d06f25939..1b3251464 100644 --- a/host/lib/usrp/mpmd/mpmd_mboard_impl.cpp +++ b/host/lib/usrp/mpmd/mpmd_mboard_impl.cpp @@ -31,7 +31,7 @@ namespace { const size_t MPMD_DEFAULT_INIT_TIMEOUT = 30000; //! Default timeout value for RPC calls (ms) const size_t MPMD_DEFAULT_RPC_TIMEOUT = 2000; - + //! Default session ID (MPM will recognize a session by this name) const std::string MPMD_DEFAULT_SESSION_ID = "UHD"; @@ -75,7 +75,10 @@ mpmd_mboard_impl::mpmd_mboard_impl( const device_addr_t &mb_args_, const std::string& rpc_server_addr ) : mb_args(mb_args_) - , rpc(uhd::rpc_client::make(rpc_server_addr, MPM_RPC_PORT)) + , rpc(uhd::rpc_client::make( + rpc_server_addr, + MPM_RPC_PORT, + MPM_RPC_GET_LAST_ERROR_CMD)) { UHD_LOGGER_TRACE("MPMD") << "Initializing mboard, connecting to RPC server address: " -- cgit v1.2.3