Convert downloaded IQ files.
IQ files are stored in for example raw 32bit IQ samples and a sample rate of 192 kHz. There are a number of ways to decode this binary data. Two potential options for reading raw samples are tools like SDR#, GQRX or GNU Radio.
Convert GNUradio files for SDR# on Windows
- Convert the binary file into a SDR# compatible .wav file using the “SoX” tool. SoX is a command line utility for sound files, which can be downloaded from Sourceforge. Once the software is extracted, open command prompt to run the SoX executable included in the extracted directory with these commands.
An IQ file 32bit and a sample rate of 192 kHz
sox -e float -t raw -r 112500 -b 32 -c 2 [path to downloaded IQ file.bin] -t wav -e float -b 32 -c 2 -r 112500 [path to output file.wav]
-r: Sampling rate (192 kHz)
-b: Bit rate original 32bit data is required to be converted to SDR# compatible 16bit data
-e: Data representation: Floating point
-c: Channel: 2ch for representing I-phase and Q-phase data
- Download SDR# (Windows SDR Software Package) from Airspy. Installation is not required for this software. Instead, you can just run the SDRSharp.exe file included in the package. In order to run our data, please choose the converted wav file by choosing “File player” in the “Source” option in SDR#.
- Our recommendation is to use the “File Player” plugin in SDR#, which can describe waterfall thumbnails of an entire file and also expand capability. You can find instructions for adding this tool on this RTL-SDR.com blog post. Please note that in the process of the installation, you will need to add the “magic line” into FrontEnds.xml file, since this is the file which is called from <frontendPlugins> section in the SDRSharp.exe.Config text file.
Replay a GNU Radio
- GNU Radio is an open source SDR development toolkit available on almost any OS. You can find the GNU Radio installation guide here.
- You can play an IQ data file with file sink directly. Here is an example flowchart:
- Select a “File Source” block, drag it into your work area, and choose a IQ file.
- If you play it as real speed, you also need to create a “Throttle” block using the same method and set the sample rate to 192 kHz.
- The “Multiply Const” amplifier block acts like a volume control. If you feel that the signal level is too high, please add this block and set a value less than 1.
- “QT GUI Sink” is a utility sink block. When you select this block, you can view spectrum, time-domain waveform, waterfall, and constellation graphs.
Source: Stellar station decoding downloaded IQ file