Getting stereo/IQ samples from soapyaudio

363 views
Skip to first unread message

Ryan Suchocki

unread,
Sep 30, 2021, 4:52:59 PM9/30/21
to Gqrx SDR
I'm trying to use GQRX to view baseband IQ via a soundcard using soapyaudio.
Using the device string:
device_id=0,driver=audio,soapy=0
results in a waterfall mirrored over 0Hz, as if it's only getting real samples.

The following output from SoapySDRUtil makes me think that I need to somehow pass the "stream args" "chan=stereo_iq" into soapyaudio.

Is there any way of doing that via GQRX?

SoapySDRUtil --probe
######################################################
##     Soapy SDR -- the SDR abstraction library     ##
######################################################

Probe device

----------------------------------------------------
-- Device identification
----------------------------------------------------
  driver=Audio
  hardware=Audio
  device_id=0
  origin=https://github.com/pothosware/SoapyAudio

----------------------------------------------------
-- Peripheral summary
----------------------------------------------------
  Channels: 1 Rx, 0 Tx
  Timestamps: NO
  Other Settings:
     * Stereo Sample Offset - Offset stereo samples for off-by-one audio inputs.
       [key=sample_offset, default=0, type=string, options=(-2, -1, 0, 1, 2)]

----------------------------------------------------
-- RX Channel 0
----------------------------------------------------
  Full-duplex: NO
  Supports AGC: YES
  Stream formats: CS8, CS16, CF32
  Native format: CS16 [full-scale=65536]
  Stream args:
     * Channel Setup - Input channel configuration.
       [key=chan, default=mono_l, type=string, options=(mono_l, mono_r, stereo_iq, stereo_qi)]
  Antennas: RX
  Full gain range: [0, 0] dB
  Full freq range: [0, 6000] MHz
    RF freq range: [0, 6000] MHz
  Sample rates: 0.008, 0.016, 0.02205, 0.032, 0.0441, 0.048, 0.096 MSps



Roger David Powers

unread,
Oct 1, 2021, 11:18:02 AM10/1/21
to gq...@googlegroups.com
You should be able to just put it right after 'soapy=0' in your gqrx device string, with commas to separate and without extra quotes.

For instance, from some of my notes, I was able to get the audio driver to use the rigctrl library with the following stuff in the device string.

default_input=True,default_output=False,device_id=0,driver=audio,soapy=0,rig=2509,rig_rate=0,rig_port=/dev/rig

So you should try something like:



--
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 view this discussion on the web visit https://groups.google.com/d/msgid/gqrx/8f5c7811-eb31-47c4-8a42-1aa2ad483586n%40googlegroups.com.

Roger David Powers

unread,
Oct 1, 2021, 11:22:35 AM10/1/21
to Gqrx SDR
[ Sorry, hit 'send' too soon ]

You should be able to just put it right after 'soapy=0' in your gqrx device string, with commas to separate and without extra quotes.

For instance, from some of my notes, I was able to get the soapy audio driver to use the rigctrl library with the following stuff in the device string.

default_input=True,default_output=False,device_id=0,driver=audio,soapy=0,rig=2509,rig_rate=0,rig_port=/dev/rig

So you should try something like:

device_id=0,driver=audio,soapy=0,chan=stereo_iq

in the device string in the I/O Devices menu.

Regards,
RDP



On Thursday, September 30, 2021, 04:53:02 PM EDT, Ryan Suchocki <ryan.s...@gmail.com> wrote:


Reply all
Reply to author
Forward
0 new messages