On 18/05/2021 18:33, Martin Braun wrote:
Hey Devin,
you don't need a calibrated receiver for a calibrated TX. I'll need to
get back to my setup to see if maybe there is a bug here and I simply
missed it because I had a lingering RX calibration file.
Devin,
sorry for the eternity between replies.
I tried again with a clear, empty cal directory. Then I re-ran
uhd_power_cal.py to create new data (I only calibrated a few points)
Then I tried tx_waveforms -- works fine.
I tried stripping it down to this Python script:
```
import uhd
import time
U = uhd.usrp.MultiUSRP("type=x300")
print("Flushing logs...")
time.sleep(.5)
U.set_tx_power_reference(-10)
```
(The sleep and print are to make sure I can exactly get the log messages
when the set_tx_power_reference() call starts).
This is what looks like:
```
[...]
Flushing logs...
[TRACE] [X300-CAL-TX] Looking for power cal data for
x3xx_pwr_generic_tx_tx+rx, serial 30ED045#0
[TRACE] [CAL::DATABASE] Checking for file at
/home/mbr0wn/.local/share/uhd/cal/x3xx_pwr_generic_tx_tx+rx_30ED045#0.cal
[TRACE] [CAL::DATABASE] Checking for file at
/home/mbr0wn/.local/share/uhd/cal/x3xx_pwr_generic_tx_tx+rx_30ED045#0.cal
[TRACE] [CAL::DATABASE] Checking for file at
/home/mbr0wn/.local/share/uhd/cal/x3xx_pwr_generic_tx_tx+rx_30ED045#0.cal
[TRACE] [CAL::DATABASE] Reading 472 bytes from
"/home/mbr0wn/.local/share/uhd/cal/x3xx_pwr_generic_tx_tx+rx_30ED045#0.cal"
[TRACE] [X300-CAL-TX] power cal data found for key
x3xx_pwr_generic_tx_tx+rx, key x3xx_pwr_generic_tx_tx+rx, serial 30ED045#0
[TRACE] [UBX] UBX TX Gain: 0.000000 dB, Code: 0, IO Bits 0x0000
[TRACE] [X300-CAL-TX] Desired power: -10 dBm -> desired gain: 0 dB;
Actual HW power: -6.57071 dBm -> actual HW gain: 0 dB, Actual total
power: -6.57071 dBm -> actual total gain: 0 dB
[TRACE] [RFNOC::GRAPH] Shutting down detail::graph...
[...]
```
In your logs, this is obviously not behaving the same way:
Actual TX Freq: 900.000000 MHz...
[TRACE] [X300-CAL-RX] Looking for power cal data for
x3xx_pwr_generic_rx_rx2, serial 311A8A8#0
[TRACE] [CAL::DATABASE] Checking for file at
/home/lb/.local/share/uhd/cal/x3xx_pwr_generic_rx_rx2_311A8A8#0.cal
ERROR: USRP does not have a reference power API on channel 0!
[TRACE] [X300-CAL-RX] No power cal data found for key
x3xx_pwr_generic_rx_rx2, key x3xx_pwr_generic_rx_rx2, serial
311A8A8#0
UHD is asking the RX power manager for cal data, when it's the TX power
manager who needs them. But I can't figure out why (nor can I reproduce it).
Can you run the Python script above, and paste the full logs? Maybe
that's more enlightening.
--M
_______________________________________________
USRP-users mailing list -- usrp-users@lists.ettus.com
To unsubscribe send an email to usrp-users-le...@lists.ettus.com