RF power spectrum from SDR output

9 visualizaciones (últimos 30 días)
Henrik Kahanpää
Henrik Kahanpää el 21 de Mzo. de 2023
Comentada: Henrik Kahanpää el 27 de Mzo. de 2023
I am using a Software-Defined Radio (SDR). How is power spectrum of the Radio Frequency (RF) signal calculated from the data outputted by the SDR, taking into account that the outputted samples are not taken from the RF signal but from the baseband signal instead? My Matlab version is 2021b, thus I do not get the timeStamps of the outputted data. I am using an Ettus USRP B210 radio, however I guess that the algorithm for calculating the RF power spectrum is independent of the SDR model.

Respuestas (1)

Naren
Naren el 27 de Mzo. de 2023
Hello Henrik,
To calculate the power spectrum of the RF signal from the baseband samples outputted by the SDR, you need to perform a process called upconversion. This involves mixing the baseband signal with a local oscillator (LO) signal at the frequency of interest, which translates the baseband signal up to the RF frequency range. Once the signal has been upconverted, you can then apply a power spectral density (PSD) estimation technique such as the periodogram, Welch's method or the multitaper method to calculate the power spectrum of the RF signal.
In MATLAB, you can use the Signal Processing Toolbox to perform the upconversion and PSD estimation. First, you need to generate the LO signal at the desired frequency using the cos and sin functions. Then, you can mix the baseband signal with the LO signal using the mixer function. Finally, you can apply a PSD estimation function such as pwelch or pmtm to calculate the power spectrum of the upconverted signal.
Note that the mixer function is not an in-built Matlab function, but rather a custom function that performs complex mixing of two signals. You can find implementations of this function in various SDR libraries or online

Categorías

Más información sobre Spectral Measurements en Help Center y File Exchange.

Productos


Versión

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by