summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-11-24 22:20:40 +0100
committerHarald Welte <laforge@gnumonks.org>2010-11-24 22:20:40 +0100
commiteb7319b3bf43c8e3727cea8ce2ebc949ab455fd5 (patch)
treeee19768395f69131be1406f3b1fdd9850c2e0cf9
parentd208f68e328e86a7ec813fc04dea1e1e4fe53fa4 (diff)
gsm_receive_usrp: add some debug output
-rwxr-xr-xgsm-receiver/src/python/gsm_receive_usrp.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/gsm-receiver/src/python/gsm_receive_usrp.py b/gsm-receiver/src/python/gsm_receive_usrp.py
index e221908..30cc6e3 100755
--- a/gsm-receiver/src/python/gsm_receive_usrp.py
+++ b/gsm-receiver/src/python/gsm_receive_usrp.py
@@ -3,7 +3,7 @@
#there are many underruns of buffer for samples from usrp's, many blocks of samples get lost and
#receiver isn't prepared for this situation too well
-from gnuradio import gr, gru, blks2
+from gnuradio import gr, gru, blks2, eng_notation
#, gsm
from gnuradio import usrp
from gnuradio.eng_option import eng_option
@@ -67,7 +67,9 @@ class gsm_receiver_first_blood(gr.top_block):
self.usrp.set_mux(usrp.determine_rx_mux_value(self.usrp, options.rx_subdev_spec))
# determine the daughterboard subdevice
self.subdev = usrp.selected_subdev(self.usrp, options.rx_subdev_spec)
+ print "Using Rx d'board %s" % (self.subdev.side_and_name(),)
input_rate = self.usrp.adc_freq() / self.usrp.decim_rate()
+ print "USB sample rate %s" % (eng_notation.num_to_str(input_rate))
# set initial values
if options.gain is None:
personal git repositories of Harald Welte. Your mileage may vary