diff options
author | Ben Reynwar | 2012-04-30 09:20:59 -0700 |
---|---|---|
committer | Ben Reynwar | 2012-04-30 09:20:59 -0700 |
commit | 2817cf14147d6da2e7ef051fbbbf8228fd1c07ba (patch) | |
tree | 0695ce3bcdbd75784198c28e6cb963c99ae5d0f6 /gr-uhd/apps/uhd_rx_cfile | |
parent | e7f45e3c513242706a9e4aa36e99e33e79e66d4f (diff) | |
parent | d7ecbd12be995ad6db7a53a5d6dd3fcb205c07ea (diff) | |
download | gnuradio-2817cf14147d6da2e7ef051fbbbf8228fd1c07ba.tar.gz gnuradio-2817cf14147d6da2e7ef051fbbbf8228fd1c07ba.tar.bz2 gnuradio-2817cf14147d6da2e7ef051fbbbf8228fd1c07ba.zip |
Merge branch 'master' of http://gnuradio.org/git/gnuradio
Diffstat (limited to 'gr-uhd/apps/uhd_rx_cfile')
-rwxr-xr-x | gr-uhd/apps/uhd_rx_cfile | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/gr-uhd/apps/uhd_rx_cfile b/gr-uhd/apps/uhd_rx_cfile index fb639623e..62874771c 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) |