Skip to content

SDRplay/RSPTCPServer

Repository files navigation

rsp_tcp

Note: This version is designed to work with the RSPduo and RSPdx (if you have any other RSP you can still use the build on our downloads page (https://www.sdrplay.com/downloads)

Note: This build needs the updated ExtIO control panel (https://www.sdrplay.com/software/SDRplay_ExtIO_TCP_1.2.zip)

This is a fork of the original rsp_tcp by F4FHH Nicolas with extensions to support all current RSP devices. Use the extended mode to access the full bit rate of the RSP and all of the RSP specific controls. By default the server supports the RTL TCP protocol.

February 2019: Added support for SDRplay API 3.07 (support all RSPs including RSPdx)

(c)2018 F4FHH Nicolas (f4fhh@ducor.fr). Licensed under the GNU GPL V3

a rtl_tcp compatible IQ server for the RSP range of SDRPlay SDR

rsp_tcp is a direct port of rtl_tcp for the RSP range of SDRPlay SDR.

As the rtl_tcp protocol is only 8 bits IQ, man will loose the major advantage of an RSP : its 14bits ADC, but :

  1. It will work with any rtl_tcp capable frontend (probably), see usage below
  2. As it's opensource, you could compile it on any Linux server

OPTIONS

 -a listen address
 -p listen port (default: 1234)
 -d RSP device to use (default: 1, first found)
 -P Antenna Port select (0/1/2, default: 0, Port A)
 -T Bias-T enable (default: disabled)
 -N Broadcast Notch enable (default: disabled)
 -R Refclk output enable (default: disabled)
 -f frequency to tune to [Hz]
 -s samplerate in Hz (default: 2048000 Hz)
 -n max number of linked list buffers to keep (default: 500)
 -v Verbose output (debug) enable (default: disabled)
 -E extended mode full RSP bit rate and controls (default: RTL mode)

USAGE

  • RTL Tuner AGC is mapped to RSP RF AGC
  • RTL AGC is mapped to LNAState (RTL AGC on = LNA enabled)
  • RTL RF gain is mapped to inverse gain reduction
  • RTL frequency correction is mapped to RSP setPPM
  • RTL sample rates >= 2Ms/s are mapped to the RSP sample rate, RTL sample rates < 2Ms/s use appropriate decimation

BUILDING

  mkdir build
  cd build
  cmake ..
  make
  sudo make install

NOTES

  • a RSP API version >=3.07 must be installed on the linux server, see sdrplay linux downloads
  • I try it with SDR# frontend only. Other tests are welcome.
  • It should compile and run on Raspbian (raspberry pi) (not tested)
  • It should compile on windows as the initial code from rtl_tcp does

TODO

  • Enhance the IF and RF gain management depending on bands
  • Enhance the re-quantization from 14/12/10 bits to 8 bits

HISTORY

  • Version 0.1.0: Initial build

CREDITS