GQRX and DSD : how ?

4,081 views
Skip to first unread message

Pawel Janowski

unread,
Jun 6, 2013, 6:29:30 AM6/6/13
to gq...@googlegroups.com
How connect audio stream (out from GQRX) to DSD (/dev/dsp) ?

With regards
Pawel

Pawel Janowski

unread,
Jun 6, 2013, 6:32:33 AM6/6/13
to gq...@googlegroups.com

Alexandru Csete

unread,
Jun 6, 2013, 8:35:45 AM6/6/13
to gq...@googlegroups.com
On Thu, Jun 6, 2013 at 12:29 PM, Pawel Janowski
<pawel.j...@gmail.com> wrote:
> How connect audio stream (out from GQRX) to DSD (/dev/dsp) ?

Hi Pawel,

This is not easy, if possible at all. Gqrx uses pulseaudio sound
system or optionally, gr-audio. /dev/dsp sounds like the legacy OSS
sound system and I don't think any Linux distribution support it any
longer.

The best solution would be to update DSD to support at least ALSA or
pulseaudio. I suppose that is not a realistic option.

It may be possible to make it work via the padsp wrapper:
http://linux.die.net/man/1/padsp
I have no idea how well it works.

Alex

Scott Prader

unread,
Jun 6, 2013, 10:52:16 AM6/6/13
to gq...@googlegroups.com

In theory, you could run a legacy version of Linux in a virtual machine or on another computer running OSS or OSS emulated through ALSA, and have the output speaker jack of the system running GQRX output to the input or line-in of the other system in order to use an OSS-compliant program to accept the audio stream.

-Scott

--
You received this message because you are subscribed to the Google Groups "Gqrx SDR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gqrx+uns...@googlegroups.com.
To post to this group, send email to gq...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gqrx/CAHG%3DS_cnWg6ahQo4rM8zYzc7kYre0nPiWEbnO3gi09%3D%2BSFRA_A%40mail.gmail.com?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Rob Frohne

unread,
Jun 6, 2013, 11:31:31 AM6/6/13
to gq...@googlegroups.com
Hi Pawel,

It might be possible by using the Jack Audio Connection Kit which gnuradio supports and a program I wrote that uses fifos to pipe the audio from jack to things like /dev/dsp.  My program is called jack-fifo and is available here.

73,

Rob
KL7NA
--
You received this message because you are subscribed to the Google Groups "Gqrx SDR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gqrx+uns...@googlegroups.com.
To post to this group, send email to gq...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.
 
 

-- 
Rob Frohne, PhD, PE
Professor
EF Cross School of Engineering
Walla Walla University
100 SW 4th Street
College Place, WA 99324
(509) 527-2075

Pawel Janowski

unread,
Feb 17, 2014, 4:51:05 AM2/17/14
to gq...@googlegroups.com
Rob,

I have 2 questions for You : 

1) where I find the jack.h file?
2) how it use (example commands) GQRX with DSD

regards
Paweł

Alexandru Csete

unread,
Feb 17, 2014, 5:59:44 AM2/17/14
to gq...@googlegroups.com
Last week I have managed to run dsd (https://github.com/szechyjs/dsd)
through padsp and using /dev/dsp as I/O device. I was using an FT-817
receiver but it might also work with the pulseaudio output from gqrx.
The command I was using:

padsp -- dsd -fd -i /dev/dsp -o /dev/dsp

Alex
> https://groups.google.com/d/msgid/gqrx/842cc648-d287-4ecb-a683-506836e69e62%40googlegroups.com.

Clayton Smith

unread,
Feb 17, 2014, 7:48:22 AM2/17/14
to gq...@googlegroups.com
By the way, I have encapsulated DSD in a GNU Radio block:


I imagine it wouldn't be hard to extend gqrx to use that block for digital voice receiving.

Regards,
Clayton VE3IRR


Alexandru Csete

unread,
Feb 17, 2014, 8:27:43 AM2/17/14
to gq...@googlegroups.com
On Mon, Feb 17, 2014 at 1:48 PM, Clayton Smith <arg...@gmail.com> wrote:
> By the way, I have encapsulated DSD in a GNU Radio block:
>
> https://github.com/argilo/gr-dsd
>
> I imagine it wouldn't be hard to extend gqrx to use that block for digital
> voice receiving.

Hi Clayton,

Thanks for the info. It looks great and I will take a look at it. DSD
is quite difficult to use right now because of the OSS interface.

I'd like to have digital voice support in gqrx... in time... there a
few obstacles that need to be overcome first. Most notably, I don't
want to promote any ambe-based DV system until we have a well
functioning codec2 alternative. So I am working on replacing ambe with
codec2 in dstar systems and once that is in place I will be more open
to officially include DSD support.

Alex

Pawel Janowski

unread,
Feb 17, 2014, 2:58:19 PM2/17/14
to gq...@googlegroups.com
Alex - Is it possible to make external jack or similar to 3rd part software to decode audio ?
ex. multimon-ng or dsd  - for external audio should be as /dev/stdout or something ?

With Regards
Paweł

Alexandru Csete

unread,
Feb 17, 2014, 3:46:34 PM2/17/14
to gq...@googlegroups.com
On Mon, Feb 17, 2014 at 8:58 PM, Pawel Janowski
<pawel.j...@gmail.com> wrote:
> Alex - Is it possible to make external jack or similar to 3rd part software
> to decode audio ?
> ex. multimon-ng or dsd - for external audio should be as /dev/stdout or
> something ?

Pawel,

The reason I mentioned padsp is because then you can try to capture
the audio output of gqrx through the pulseaudio mixer. I have
described this in the early days of gqrx, when people were throwing
rotten eggs at me for using pulseaudio instead of ALSA:
http://www.oz9aec.net/index.php/gnu-radio/gnu-radio-blog/463-gqrx-and-pulseaudio

Since then I have found out why people hate pulseaudio, but that is
really a different issue...

Another possibility might be to use the new network interface, see:
http://gqrx.dk/doc/streaming-audio-over-udp

I'm not sure how to connect this to jack or dsd though; perhaps through socat?

Alex

Pawel Janowski

unread,
Feb 19, 2014, 3:19:59 AM2/19/14
to gq...@googlegroups.com
Alex : I found this : http://www.qsl.net/kb9mwr/projects/voip/dstar/ - Its maybe useful for You.

Pawel, SQ7MRU

Alexandru Csete

unread,
Feb 19, 2014, 7:35:30 AM2/19/14
to gq...@googlegroups.com
On Wed, Feb 19, 2014 at 9:19 AM, Pawel Janowski
<pawel.j...@gmail.com> wrote:
> Alex : I found this : http://www.qsl.net/kb9mwr/projects/voip/dstar/ - Its
> maybe useful for You.

Thanks.
FYI, I have successfully built and tested gr-dsd by Clayton.

Alex

Mohammad Bahathir Hashim

unread,
Nov 21, 2014, 10:33:01 PM11/21/14
to gq...@googlegroups.com
If you are uisng GQRX v2.3.x or git_latest version, you can try this.It works on my GNU/Linux Slackware64

$ mkfifo pipe.raw
$ dsd -i pipe.raw -w out.wav

# On other terminal
$ nc -lup 7355 > pipe.raw

Start  GQRX v2.3, start the DSP, tune to the freq, and click "Stream audio to UDP".... and.. enjoy....
Make sure the gqrx audio sampling rate is at 48000.

You can test the UDP streaming...
$ nc -lup 7355 | aplay -t raw -c 1 -r 48k -f S16_LE
or just want to know whether gqrx sending data or not..
$ nc -lup 7355 | strings

Hope the tips are  helpful.


DSD : Digital Speech Decoder 1.7.0-dev (build:v1.6.0-79-g60807e0)
netcat : netcat (The GNU Netcat) 0.7.1
GQRX : Gqrx software defined radio receiver v2.3.1-41-g8256

Thank you.
73,
9W2GNU

Mohammad Bahathir Hashim

unread,
Nov 21, 2014, 11:35:34 PM11/21/14
to gq...@googlegroups.com
Or cam be simplified like this.

$ nc -lup 7355 | dsd -i - -w dsd.wav
or
$ nc -lup 7355 | dsd -i /dev/stdin -w dsd.wav

Use ffmpeg's ffplay to playback the dsd.wav. The ffplay will 'wait' until the new decoded signal is appended by the dsd.

Thank you.

Simon Kennedy

unread,
Nov 22, 2014, 4:25:03 AM11/22/14
to gq...@googlegroups.com
There is also a version of gqrx available as a pybombs recipe (gqrx-digital) which includes DSD as a modulation type in addition to NFM, USB etc.
It works well, I have been using it in the past week to monitor a local amateur digital repeater. 
However, it is branched off a version of gqrx a few versions old.

Regards
Simon.

--
You received this message because you are subscribed to the Google Groups "Gqrx SDR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gqrx+uns...@googlegroups.com.
To post to this group, send email to gq...@googlegroups.com.

adrian @localhost

unread,
Nov 27, 2014, 8:39:15 AM11/27/14
to gq...@googlegroups.com
Thanks for the report. I'm not sure I'm happy with Pybombs adding my little fork to their repo, as it's just experimental code. However, I have no problem with people using it. 
I don't intend to upgrade the version of gqrx at this moment, although I might do so after I add support for Kristoff's gmsk/codec2 modem.
If Alexandru wants to integrate the shoutcast streaming code from my branch, he is more than welcome to do so. I understand that gr-dsd has some issues with proprietary technology, that is exactly why I did not submit a pull request.

Cheers,
Adrian
Reply all
Reply to author
Forward
0 new messages