SDRPlay


[ Пред. ] [ Содержание ] [ След. ]

SDRPlay


Created Суббота 09 марта 2019

The software needed to access the SdrPlay devices in Linux is SoapySDR,
the SDRPlay Driver for SoapySDR, and of course Cubic SDR.
Also needed is the binary driver (yes I know… ) API/HW Driver – v2.13 to be installed.
gr-sdrplay
1.Get API appropriate for your system https://www.sdrplay.com/downloads
2.Only if not previously installed... sudo apt-get install gnuradio
3.Only if not previously installed... sudo apt-get install swig git cmake libboost-all-dev
4.git clone https://gitlab.com/HB9FXQ/gr-sdrplay.git
cd gr-sdrplay && mkdir build && cd build
cmake .. && make && sudo make install && sudo ldconfig




https://primalcortex.wordpress.com/2016/06/15/cubicsdr-and-soapyremote-on-orange-pi-pc/
Installing SoapySDR Remote on the remote server
The remote server where my RTLSDR dongle is connected is an Orange Pi PC running Armbian. To let my desktop running CubicSDR program to access remotely the dongle, we need to install SoapySDR Remote that allows remote access to the SDR.
So at the remote server we need to obtain, build and install the following components:
SoapySDR – The abstraction layer
SoapyRTLSDR – The driver for our RTL USB dongle
SoapySDR Remote – The server for remotely access the RTL dongle
So basically the instructions are something like this:
mkdir ~/SDR && cd ~/SDR
git clone https://github.com/pothosware/SoapySDR.git
cd SoapySDR/ && mkdir build && cd build
cmake ../ -DCMAKE_BUILD_TYPE=Release
make -j2
sudo make install
sudo ldconfig
SoapySDRUtil --info
Building the SoapySDR remote:
cd ~/SDR
git clone https://github.com/pothosware/SoapyRemote.git
cd SoapyRemote/
cd build
cmake ..
make
sudo make install
and build the RTLSDR driver:
cd ~/SDR
sudo apt-get install librtlsdr-dev
git clone https://github.com/pothosware/SoapyRTLSDR.git
cd SoapyRTLSDR/
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make
sudo make install
sudo ldconfig
So at the end we should have the following outputs:
opi@opi:~# SoapySDRUtil --probe
######################################################
## Soapy SDR -- the SDR abstraction library
######################################################
Probe device
Found Rafael Micro R820T tuner
Found Rafael Micro R820T tuner
-- Device identification
driver=RTLSDR
hardware=RTLSDR
origin=https://github.com/pothosware/SoapyRTLSDR
rtl=0
-- Peripheral summary
Channels: 1 Rx, 0 Tx
Timestamps: NO
Other Settings:
* Direct Sampling - RTL-SDR Direct Sampling Mode
[key=direct_samp, default=0, type=string, options=(0, 1, 2)]
* Offset Tune - RTL-SDR Offset Tuning Mode
[key=offset_tune, default=false, type=bool]
* I/Q Swap - RTL-SDR I/Q Swap Mode
[key=iq_swap, default=false, type=bool]
-- RX Channel 0
Full-duplex: YES
Supports AGC: YES
Stream formats: CS8, CS16, CF32
Native format: CS8 [full-scale=128]
Stream args:
* Buffer Size - Number of bytes per buffer, multiples of 512 only.
[key=bufflen, units=bytes, default=16384, type=int]
* Buffer Count - Number of buffers per read.
[key=buffers, units=buffers, default=15, type=int] Antennas: RX
Full gain range: [0, 49.6] dB
TUNER gain range: [0, 49.6] dB Full freq range: [23.999, 1764] MHz
RF freq range: [24, 1764] MHz
CORR freq range: [-0.001, 0.001] MHz Sample rates: [0.25, 3.2] MHz
And SoapySDR should have the following configuration:
opi@opi:~# SoapySDRUtil --info
######################################################
## Soapy SDR -- the SDR abstraction library
######################################################
API Version: v0.5.0-gfec33c63
ABI Version: v0.5-2
Install root: /usr/local
Module found: /usr/local/lib/SoapySDR/modules/libremoteSupport.so
Module found: /usr/local/lib/SoapySDR/modules/librtlsdrSupport.so
Loading modules... done
Available factories...null, remote, rtlsdr,
So all we need is to start our server:
opi@opi:~# SoapySDRServer --bind
######################################################
## Soapy Server -- Use any Soapy SDR remotely
######################################################
ba73bc08-3d0f-1458-8337-93d5a4502801
Launching the server... tcp://[::]:55132
Server bound to [::]:55132
Launching discovery server...
Press Ctrl+C to stop the server
установка CubicSDR
https://github.com/cjcliffe/CubicSDR/wiki/Build-Linux
Build and install liquid-dsp
$ git clone https://github.com/jgaeddert/liquid-dsp
liquid-dsp$ cd liquid-dsp
liquid-dsp$ ./bootstrap.sh
liquid-dsp$ CFLAGS="-march=native -O3" ./configure --enable-fftoverride
liquid-dsp$ make -j4
liquid-dsp$ sudo make install
liquid-dsp$ sudo ldconfig
Build static wxWidgets:
Note: replace '~/Develop/wxWidgets-staticlib' with your own path if you prefer, remember it to be used later when building CubicSDR.
$ wget https://github.com/wxWidgets/wxWidgets/releases/download/v3.1.2/wxWidgets-3.1.2.tar.bz2 [ downloading.. ]
$ tar -xvjf wxWidgets-3.1.2.tar.bz2 [ unpacking.. ]
$ cd wxWidgets-3.1.2/
wxWidgets-3.1.2$ mkdir -p ~/Develop/wxWidgets-staticlib
wxWidgets-3.1.2$ ./autogen.sh
wxWidgets-3.1.2$ ./configure --with-opengl --disable-shared --enable-monolithic --with-libjpeg --with-libtiff --with-libpng --with-zlib --disable-sdltest --enable-unicode --enable-display --enable-propgrid --disable-webkit --disable-webview --disable-webviewwebkit --prefix=`echo ~/Develop/wxWidgets-staticlib` CXXFLAGS="-std=c++0x" [ configuring.. ]
wxWidgets-3.1.2$ make -j4 && make install
[ building and installed to ~/Develop/wxWidgets-staticlib in this example ]
Build CubicSDR
Note: add -DUSE_HAMLIB=1 to cmake command line to include hamlib support.
$ git clone https://github.com/cjcliffe/CubicSDR.git
CubicSDR$ cd CubicSDR && mkdir build && cd build
build$ cmake ../ -DCMAKE_BUILD_TYPE=Release -DwxWidgets_CONFIG_EXECUTABLE=~/Develop/wxWidgets-staticlib/bin/wx-config
build$ make
# You can now run the build from the folder, note if you're on 32-bit linux it will be in x86/
build$ cd x64/
x64$ ./CubicSDR
Install CubicSDR (and launcher)
build$ sudo make install
Un-install CubicSDR
build$ sudo make uninstall

Содержание