From eb7319b3bf43c8e3727cea8ce2ebc949ab455fd5 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Wed, 24 Nov 2010 22:20:40 +0100 Subject: gsm_receive_usrp: add some debug output --- gsm-receiver/src/python/gsm_receive_usrp.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gsm-receiver/src/python') 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: -- cgit v1.2.3