discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss-gnuradio] Difference between usrp in gnuradio and usrp in grc_g


From: Songsong Gee
Subject: [Discuss-gnuradio] Difference between usrp in gnuradio and usrp in grc_gnuradio
Date: Sun, 25 Mar 2012 16:48:17 +0900

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

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]