summaryrefslogtreecommitdiff
path: root/gr-uhd
diff options
context:
space:
mode:
authorNicholas Corgan <nick.corgan@ettus.com>2012-04-16 11:17:16 -0700
committerNicholas Corgan <nick.corgan@ettus.com>2012-04-16 11:17:16 -0700
commit85bc95b0f6d95ab78db229df1d3c2b74c632aff4 (patch)
treec77345cd4207fed84542dbf38a8ffaaa51a5414f /gr-uhd
parent847be64ac11f767a9ef631154ef88030e9d4d8ba (diff)
gr-uhd: uhd_rx_cfile outputs USRP configuration instead of args if user has that feature enabled
Diffstat (limited to 'gr-uhd')
-rwxr-xr-xgr-uhd/apps/uhd_rx_cfile22
1 files changed, 21 insertions, 1 deletions
diff --git a/gr-uhd/apps/uhd_rx_cfile b/gr-uhd/apps/uhd_rx_cfile
index fb639623e3..62874771c1 100755
--- a/gr-uhd/apps/uhd_rx_cfile
+++ b/gr-uhd/apps/uhd_rx_cfile
@@ -91,7 +91,27 @@ class rx_cfile_block(gr.top_block):
input_rate = self._u.get_samp_rate()
if options.verbose:
- print "Args: ", options.args
+ try:
+ info = self._u.get_usrp_info()
+
+ mboard_id = info.get("mboard_id").split(" ")[0]
+ if info.get("mboard_serial") == "":
+ mboard_serial = "no serial"
+ else:
+ mboard_serial = info.get("mboard_serial")
+
+ rx_id = info.get("rx_id").split(" ")[0]
+ if info.get("rx_serial") == "":
+ rx_serial = "no serial"
+ else:
+ rx_serial = info.get("rx_serial")
+ rx_antenna = info.get("rx_antenna")
+ rx_subdev_spec = info.get("rx_subdev_spec")
+
+ print "Motherboard: %s (%s)" % (mboard_id, mboard_serial)
+ print "Daughterboard: %s (%s, %s, %s)" % (rx_id, rx_serial, rx_antenna, rx_subdev_spec)
+ except:
+ print "Args: ", options.args
print "Rx gain:", options.gain
print "Rx baseband frequency:", n2s(tr.actual_rf_freq)
print "Rx DDC frequency:", n2s(tr.actual_dsp_freq)