U2->set_tx_center_freq(freq, &tr) setting failing

Hi,

The Tx center frequency setting failing in the gnuradio-3.2.2 stable
release, when i try on my USRP2 to
transmit samples onto other USRP2 box. Even without specifying the -f
freq option also failing at this for
setting the default value setting. Could some body help me out, any fix
i need to take, if it was not in the
3.2.2 release.

=============gnuradio-3.2.2/usrp2/host/apps/tx_samples.cc=====================
if (!u2->set_tx_center_freq(freq, &tr)){
fprintf(stderr, “set_tx_center_freq(%g) failed\n”, freq);
return 1;
}

best regards,
srinivas.

On Fri, Jan 08, 2010 at 07:06:18AM +0530, srinivas naga vutukuri wrote:

=============gnuradio-3.2.2/usrp2/host/apps/tx_samples.cc=====================
if (!u2->set_tx_center_freq(freq, &tr)){
fprintf(stderr, “set_tx_center_freq(%g) failed\n”, freq);
return 1;
}

best regards,
srinivas.

What daughterboard are you using?
What is the value of freq?

Eric

Daughter Board: RFX 1800
what is the range i should have to provide? I tried orbritarily 1,100
(Internally what value it takes, ex: 1 means 1GHz or 1 means 1Hz).

best regards,
srinvias.

Hi,

if you’re trying to tune to 1100 Hz this should be too low for an rfx
1800.

With that daughterboard try somethinf around 1800 whithout commas.
I don’t know if this format is supported.

2010/1/8 srinivas naga vutukuri [email protected]

On Fri, Jan 08, 2010 at 11:00:22AM +0100, Hanno Jung wrote:

Hi,

if you’re trying to tune to 1100 Hz this should be too low for an rfx 1800.

With that daughterboard try somethinf around 1800 whithout commas.
I don’t know if this format is supported.

set_tx_center_freq expects a frequency in Hz.

Most of the python executables will accept a frequency expressed with
a trailing SI suffix. E.g., 1800M 1.8G.

You can ask what the valid tuning range is using:

double min = u2->tx_freq_min();
double max = u2->tx_freq_max();

If you’re using the usrp2, you may find it helpful to look at the
doxygen generated docs:

http://gnuradio.org/doc/doxygen/classusrp2_1_1usrp2.html

http://gnuradio.org/doc/doxygen/modules.html

Eric