gqrx icon indicating copy to clipboard operation
gqrx copied to clipboard

AGC state is not preserved when switching between demodulator modes

Open l29ah opened this issue 1 year ago • 5 comments

Observed on both 2.15.8 and today's master.

Repro:

  • set modulation to AM, squelch to -150dB
  • restart gqrx
  • start capture
  • observe no audio, neither in the audio plot, nor in your headphones screenshot

Workaround:

  • switch modulation to WFM
  • switch back to AM

l29ah avatar Jul 08 '22 11:07 l29ah

Hello. There is no bug. You have the AGC disabled and have set gain to 0 db. You should enable the AGC to listen to AM signals or set the gain manually.

vladisslav2011 avatar Jul 08 '22 20:07 vladisslav2011

AGC is disabled and gain is set to 0dB for WFM as well, yet i hear them perfectly, and after hearing WFM i can hear AM, so there is certainly an inconsistent behavior.

l29ah avatar Jul 09 '22 01:07 l29ah

I agree. I have opened a PR to fix this inconsistent behavior https://github.com/gqrx-sdr/gqrx/pull/1096. This PR (sequence) implements new constant complexity AGC algorithm and enables AGC for all demodulators. It helps when some NFM stations use narrow deviation while others are using wide on the same frequency.

vladisslav2011 avatar Jul 31 '22 11:07 vladisslav2011

Repro:

  • set modulation to AM, squelch to -150dB
  • restart gqrx
  • start capture
  • observe no audio, neither in the audio plot, nor in your headphones

Workaround:

  • switch modulation to WFM
  • switch back to AM

I was able to reproduce this on the latest version (2.16). In fact, the expected behaviour in this case should be that the audio is very quiet even after switching back from WFM, because AGC is disabled. But it seems like switching from WFM to AM (or other narrow-band modes) causes the AGC to incorrectly switch to "Medium".

argilo avatar Apr 28 '23 21:04 argilo

This looks to be a long-standing bug. It's present in Gqrx 2.6 (released in 2016).

argilo avatar Apr 28 '23 21:04 argilo