Swap I & Q?

1,409 views
Skip to first unread message

n1gp

unread,
Dec 10, 2012, 7:28:27 AM12/10/12
to gq...@googlegroups.com
I've got an RTL stick that seems to have the I & Q reversed.

Is there a setting in Gqrx for swapping I & Q or a way to pass that in
via the I/O config?


Alexandru Csete

unread,
Dec 10, 2012, 8:03:19 AM12/10/12
to gq...@googlegroups.com
Hi

There is no I/Q swapping function in gqrx because that setting is only
relevant for devices that work as generic soundcard input device and
these are not yet supported in gqrx. For other devices such as rtl-sdr
the order of I and Q is well defined between the input driver and the
rest of the application. Therefore, if there is a device that needs
I/Q swapping it should be taken care of in the driver. I'm not saying
that I/Q swapping wouldn't be handy in gqrx, but it would be the wrong
place to fix this for rtl-sdr devices.

What is the exact model of your device?

Before we start looking for bugs in the driver, can you please ensure
that it really needs swapping? Please make sure that you are not
looking at an image or something similar.

Alex

n1gp

unread,
Dec 15, 2012, 5:42:06 PM12/15/12
to gq...@googlegroups.com
Thanks for you reply.

I need to do some more investigating. Will post back later...

n1gp

unread,
Dec 16, 2012, 9:22:36 PM12/16/12
to gq...@googlegroups.com

I did some more investigation tonight on this. It appears that I only have the need to
swap I & Q if I take the 124.487Mhz 1st IF out of my Icom IC-7000. If I try using a
direct antenna to the RTP stick it doesn't need the swap.

I have tested receiving the WX broadcasts on the 162Mhz band both direct antenna
and through my IC-7000.

I don't understand why the need to swap when using the Icom?

Robin Gape

unread,
Dec 16, 2012, 10:11:09 PM12/16/12
to gq...@googlegroups.com
It's probable that the local oscillator is inverting the 1st IF of your receiver. So lower frequencies become higher & vice versa, as a result of subtractive mixing. Then swapping I & Q undoes the earlier swapping.

HTH,

73, Robin, G8DQX
--
You received this message because you are subscribed to the Google Groups "Gqrx SDR" group.
To post to this group, send email to gq...@googlegroups.com.
To unsubscribe from this group, send email to gqrx+uns...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/gqrx/-/l0ZL4iCLThoJ.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Alexandru Csete

unread,
Dec 17, 2012, 6:14:43 AM12/17/12
to gq...@googlegroups.com
Ok, I didn't think of that possibility. I will add an I/Q swap option
asap and will let you know when it's done.

Alex

n1gp

unread,
Dec 17, 2012, 12:07:58 PM12/17/12
to gq...@googlegroups.com, robi...@googlemail.com
Thanks Robin, that's exactly what's happening!

Alexandru Csete

unread,
Dec 21, 2012, 8:11:25 PM12/21/12
to gq...@googlegroups.com
There is now an I/Q swapping option available under "Input controls"
If you can test it please let me know how it works for you.

Alex

n1gp

unread,
Dec 25, 2012, 7:34:19 PM12/25/12
to gq...@googlegroups.com
Yes Alex this works very nicely for me. When using my IC-7000's IF in to
the RTL I can swap the IQ and it works great. I go back to the antenna to
RTL and swap IQ back, works fine. Thank-you!

Alexandru Csete

unread,
Dec 26, 2012, 4:27:49 AM12/26/12
to gq...@googlegroups.com
Ok, thanks for the info Rick.
Just in case you missed that announcement, you can store the settings
in two different config files and choose one at startup using the -c
or --conf command line option. For example, if you save settings as
ic7000.conf you can start with it using:

$ gqrx -c ic7000.conf

This may become handy when you get an extra dongle.

Alex
Reply all
Reply to author
Forward
0 new messages