Hi,
I have a problem setting tx power in osmo-trx. I debugged and found that 
correct gain value is passed to uhd_device::setTxGain. But whatever value is 
set to usrp_dev->set_tx_gain, usrp_dev->get_tx_gain(chan) returns -28 db.
In uhd_device::setTxGain(double db, size_t chan) I put  a printf to see 
values.

        usrp_dev->set_tx_gain(db, chan);
        tx_gains[chan] = usrp_dev->get_tx_gain(chan); 
        printf("Written %f, read %f\n", db,tx_gains[chan]);fflush(stdout);

Written 21.000000, read -28.000000
Written 11.000000, read -28.000000
Written -35.000000, read -28.000000

But despite the read values, actually the power is somewhat changed. I plugged 
TX1 to spectrum analyzer and set TX gain from -35 to 21 in 2 db steps. Until 
-5 db the signal gradually increases, but from -5db to -3db it drops down to 
lowest. Is there something I should pay attention while using higher gain 
values. Meanwhile I do not play with RX gain or noise level, leave them at 
default values.

thanks
yavuz

Reply via email to