I'm examining a GNU Radio Lab material:
Blad, Olofsson - 2011 - Software-Defined Radio Lab 1 Getting in Touch with
GNU Radio and the
USRP<http://dl.dropbox.com/u/11382666/Blad%2C%20Olofsson%20-%202011%20-%20Software-Defined%20Radio%20Lab%201%20Getting%20in%20Touch%20with%20GNU%20Radio%20and%20the%20USRP.pdf>

This uses LFRX/LFTX daughterboards and the following codes for transmitting
a signal (assume all variables are set correctly):

from gnuradio import usrp
# ... blahblah

subdev_spec = (0,0)
subdev = self.u.selected_subdev(subdev_spec)
self.u.set_mux(self.u.determine_tx_mux_value(subdev_spec))
self.u.tune(0, subdev, carrier)
subdev.set_gain(0)

Currently, however, I wanted to modify this codes for a RFX2400
daughterboard, and when I use that codes without any changes, it doesn't
work
I cannot see anything but noise with usrp_fft.py. Thus, I changed the codes
with the following:

from grc_gnuradio import usrp as grc_usrp
# ... blahblah
self.usrp_simple_sink_x_0 = grc_usrp.simple_sink_c(which=0, side="A")
self.usrp_simple_sink_x_0.set_interp_rate(500)
self.usrp_simple_sink_x_0.set_frequency(2.412*(10**9), verbose=False)
self.usrp_simple_sink_x_0.set_gain(0)
self.usrp_simple_sink_x_0.set_enable(True)
self.usrp_simple_sink_x_0.set_auto_tr(True)


And then it finally works fine.

Is there any difference between using usrp in gnuradio and usrp in
grc_gnuradio ?
And the former code is only working for LFRX/LFTX ? and the latter one is
working for other ones?

-- 
Seokseong Jeon, PhD Candidate
Communication & Networks Lab
IT Convergence Engineering (ITCE), POSTECH, Korea
+82 10 8338 1229, gee.songsong at gmail . com
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to