gqrx-sdr / gqrx

Software defined radio receiver powered by GNU Radio and Qt.
http://gqrx.dk
GNU General Public License v3.0
3.09k stars 543 forks source link

Unable to decode digital modes with rtlsdr and fldigi #242

Closed enyone closed 9 years ago

enyone commented 9 years ago

Example video https://www.youtube.com/watch?v=6N-eit1EmY8

This applies nearly all digimodes (mostly bpsk).

vielmetti commented 9 years ago

I was able to get something to work using the WebSDR + fldigi combo, but not yet with gqrx. See

http://vielmetti.typepad.com/vacuum/2014/02/decoding-radio-digital-modes-without-a-radio-using-websdr-and-fldigi.html

csete commented 9 years ago

It's probably an issue with bad resampling somewhere but without knowing anything about the setup it's practically impossible to do anything about it. The video is nice but useless for debugging. A detailed description of the setup would be more useful.

vielmetti commented 9 years ago

For reference here's a second description by OZ9AEC of the connection between a websdr and fldigi:

http://www.oz9aec.net/index.php/component/content/article/63-sdr/290-fun-with-websdr-and-fldigi

In addition this tutorial by Jeff @heliosj228 has some commentary about using a named pipe as your messaging path between components:

https://heliosj.net/main/using_fldigi_to_listen_from_remote_sites

enyone commented 9 years ago
Found 1 device(s):
  0:  Realtek, RTL2838UHIDIR, SN: 00000001
Using device 0: Lifeview LV5TDeluxe
Found Fitipower FC0013 tuner
Linux rnetl34 3.13.0-37-generic #64-Ubuntu SMP Mon Sep 22 21:28:38 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
DISTRIB_ID=LinuxMint
DISTRIB_RELEASE=17.1
DISTRIB_CODENAME=rebecca
DISTRIB_DESCRIPTION="Linux Mint 17.1 Rebecca"
model name  : Intel(R) Core(TM) i7-3537U CPU @ 2.00GHz
linux; GNU C++ version 4.8.2; Boost_105400; UHD_003.005.005-0-unknown
Gqrx software defined radio receiver 
fldigi 3.22.04
pulseaudio 4.0
csete commented 9 years ago

Found 1 device(s): 0: Realtek, RTL2838UHIDIR, SN: 00000001 Using device 0: Lifeview LV5TDeluxe Found Fitipower FC0013 tuner

So, I think there you have the reason. I think rtlsdr devices are pretty bad for digital modes. In particular narrow band modes such as bpsk require good frequency accuracy and these cheap dongles have very poor oscillator.

I think you would have much better success if you tried with better hardware. I you google "gqrx fldigi" you will see many videos showing people doing what you are trying to do but using different hardware.

Various workarounds could be implemented in gqrx but I don't have time at the moment.

PS: I changed the title since it has nothing to do with the SSB demodulator in gqrx.

hexameron commented 9 years ago

This is a bug in fldigi. By default it resamples (using libsamplerate) from the "native" samplerate in your pulseaudio config (default 44100), even though pulseaudio ignores that and GQRX uses 48000.

You can change the default rate in the pulseaudio config from 44100 to 48000. Which is a pain, but nothing that to do with GQRX.

csete commented 9 years ago

@hexameron Thanks a lot for this info. Very informative!

hexameron commented 9 years ago

The change you need to make to Pulseaudio is given here: http://ubuntuforums.org/showthread.php?t=989456 , comment 3.

The Fldigi developers prefer Portaudio, so you could just install that. In Pulse mode Fldigi only resamples for the ppm correction, so the bad resampling happens between libpulse and the pulse server.

enyone commented 9 years ago

thanks and sorry about blaming gqrx