f4exb / sdrangel

SDR Rx/Tx software for Airspy, Airspy HF+, BladeRF, HackRF, LimeSDR, PlutoSDR, RTL-SDR, SDRplay and FunCube
GNU General Public License v3.0
2.96k stars 447 forks source link

TX interpolation >= 16x problem #1895

Open srcejon opened 1 year ago

srcejon commented 1 year ago

As was discussed on #1892, the M17 modulator did not appear to work with low baseband sample rate (<100k).

I suspect the problem is actually with interpolation when set to 16x or greater.

Here's a picture of TX and RX spectrum of the packet mod, with Int = 8 - which looks OK (and pretty similar to Int 1, 2 and 4)

image

And here it is with Int = 16

image

Which looks like it has a problem.

f4exb commented 1 year ago

"MyB210" suggests you are using a USRP here. I have tried with a HackRF Tx + RTL-SDR Rx combo and I do not notice the issue:

https://github.com/f4exb/sdrangel/assets/6192319/6a074c5d-d7ab-48f6-bb5c-7510129091fe

Also what modulator do you use? I have used the packet modulator in a loop transmission to obtain similar pulses.

srcejon commented 1 year ago

Yep, a USRP with with Packet Mod.

In usrpoutputthread.h

   Interpolators<qint16, SDR_TX_SAMP_SZ, 12> m_interpolators;

In hackrfoutputthread:

  Interpolators<qint8, SDR_TX_SAMP_SZ, 8> m_interpolators;

So different data-types / scaling may explain it.

srcejon commented 1 year ago

BladeRF uses the same interpolators, but I don't have one, to check if it has the problem.

Also, might need something with higher res ADC than RTL SDR to see the problem, as SNR needs to be more than 40dB.

f4exb commented 1 year ago

Yes I just tried with the BladeRF 2 at an interpolation of 16 and using the Aaronia RTSA as the receiver which cannot suspected of bad dynamic range. Even with a dynamic of 60dB on the spectrum no artifacts are visible.

image

srcejon commented 1 year ago

Ok, thanks. Will try to narrow it down some more here.

github-actions[bot] commented 10 months ago

This issue is going to be closed due to inactivity

sp5wwp commented 10 months ago

Are there any updates to this?

srcejon commented 10 months ago

Working on something else at the moment, I'm afraid.

sp5wwp commented 2 months ago

Is this bug still present?

srcejon commented 2 months ago

I suspect so, unfortunately.