fventuri / single-tuner-experiments

Some experiments with SDRplay RSPs in single tuner mode
GNU General Public License v3.0
4 stars 0 forks source link

RSP{1,1A,2,duo,dx} single tuner mode experiments

A collection of tools, programs, and scripts to experiment with the SDRplay RSPs in single tuner mode

single_tuner_recorder

A simple C program that records to file the I/Q stream from an RSP in single tuner mode; sample rate, decimation, IF frequency, IF bandwidth, gains, and center frequency are provided via command line arguments (see below).

To build it run these commands:

mkdir build
cd build
cmake ..
make (or ninja)

These are the command line options for single_tuner_recorder:

-s <serial number>
-r <RSP sample rate>
-d <decimation>
-i <IF frequency>
-b <IF bandwidth>
-g <IF gain reduction> ("AGC" to enable AGC)
-l <LNA state>
-D disable post tuner DC offset compensation (default: enabled)
-I disable post tuner I/Q balance compensation (default: enabled)
-y tuner DC offset compensation parameters <dcCal,speedUp,trackTime,refeshRateTime> (default: 3,0,1,2048)
-f <center frequency>
-x <streaming time (s)> (default: 10s)
-o <output file> ('SAMPLERATE' will be replaced by the estimated sample rate in kHz)
-L enable SDRplay API debug log level (default: disabled)
-T measure callback time difference only (no output) (default: disabled)
-H get histogram of sample values (no output) (default: disabled)

Here are some usage examples:

Copyright

(C) 2023 Franco Venturi - Licensed under the GNU GPL V3 (see LICENSE)