Merge remote-tracking branch 'origin/record-iq' into integration_2025_w32 (!3487)

T hacks: add new tracer ant0 and a tool to plot ofdm data from usrp or rfsim
(output or input)

The tool ant0 dumps IQ data to a file (or stdout) as float complex or short.
It is needed for a student's project. (Well, we could use record/extract, but
it's simpler.) The tool ofdm-plot is used to plot output or input signal from
gnb in the frequency domain. May be useful to debug, why not.
This commit is contained in:
Jaroslava Fiedlerova
2025-08-04 23:55:32 +02:00
5 changed files with 639 additions and 6 deletions
+8
View File
@@ -733,6 +733,10 @@ static int rfsimulator_write_internal(rfsimulator_state_t *t,
timestamp,
timestamp + nsamps,
signal_energy(samplesVoid[0], nsamps));
/* trace only first antenna */
T(T_USRP_TX_ANT0, T_INT(timestamp), T_BUFFER(samplesVoid[0], sampleToByte(nsamps, 1)));
return nsamps;
}
@@ -1073,6 +1077,10 @@ static int rfsimulator_read(openair0_device *device, openair0_timestamp *ptimest
*ptimestamp,
t->nextRxTstamp,
signal_energy(samplesVoid[0], nsamps));
/* trace only first antenna */
T(T_USRP_RX_ANT0, T_INT(t->nextRxTstamp), T_BUFFER(samplesVoid[0], sampleToByte(nsamps, 1)));
return nsamps;
}