“Remote SDR” is a web application for remotely controlling an amateur radio transceiver between 1 MHz and 6 GHZ. Its first application was the duplex control of a station allowing links to the geostationary satellite QO-100 / Es’Hail 2.
The set is made up of:
- a reception chain: SDR (Software Design Radio) + an Orange PI nano processor
- a transmitter channel: SDR + an Orange PI nano processor
- a PC or a tablet controlling the whole with “Remote SDR” running on a web browser like Chrome or Edge.
All the files constituting the application can be downloaded from Github F1ATB / Remote-SDR. It is a folder called “RemSDR” to put on the desktop of the user “sdr” of the Orange PI One Plus.
The 2 Orange Pi One Plus receive the same “RemSDR” folder. You can, if you wish, install this same folder on another server to launch the Remote SDR application.
Files and Folders
In order of importance, below are some explanations on the contents of “RemSDR”.
Program in python 3 which provides the basic functionality of a web server http: //
The web page to load from your PC, MAC or smartphone, to control the transmitter / receiver assembly. You can load this page from the orange pi of the receiver, transmitter or other server where you have installed the files.
The address is normally:
http: // IP_Orange_PI_address: 8000 / remote_sdr.html
Basically, the server listens to port 8000.
In this folder are the python programs. and the sources of the gnuradio-companion files of the receiver (remote_RX_SSB_v1.grc) and of the transmitter (remote_TX_SSB_v1.grc) before their compilation in python 2 to be executed.
remote_rx_audio.py, remote_rx_para.py and remote_rx_spectre.py allow the python 3 interface between the receiver encoded with gnuradio, remote_rx_ssb_v1.py and the web client as described here.
remote_tx_audio.py and remote_tx_para.py allow the python 3 interface between the transmitter encoded with gnuradio, remote_tx_ssb_v1.py and the web client as described here.
Test_Pin... used to test the output on a pin of the GPIO of an oscillator signal. This is a feature used for the security of the transmitter. The program is different for an Orange Pi One Plus H6 or an Orange PI PC2 H5.
This folder contains the style sheets allowing the layout of remote_sdr.html. At this level, you can change the layout and color of the elements that make up the web page.
This folder contains 2 important scripts allowing to launch in python 2 the signal processing of the receiver, remote_rx_ssb_v1.py or of the transmitter, remote_tx_ssb_v1.py. These scripts in perl are called by the remote_sdr.html web page which starts on the one hand the reception processing on the dedicated Orange PI and on the other side the transmission processing on the orange PI on the transmitter side. It is not possible to launch these processing applications when the Oranges PI is powered on because during the boot phase, we cannot connect to the USB port to which the SDR is connected.
When remote_sdr.html calls the perl script, a system command is executed to launch the python 2 processing applications on the Orange Pi. To have access to the USB port, you must give access privileges to the NOBODY user by removing the password request. This is the object of the python_web file which is copied into the /etc/sudoers.d folder at boot time. To find out more, ask Google for ‘sudo visudo’.
This file is the script which groups together all the commands to be executed during the Orange PI boot phase. It contains:
- redirection of all error messages to a temporary file /tmp/Start_servers.log
- launching the web server: server.py
- the launch of the 3 applications (remote_rx ….) in python3 interfacing the processing of the signal from the receiver to the web client
- the launch of the 2 applications (remote_tx ….) in python3 interfacing the signal processing from the transmitter to the web client
- the copy in /etc/sudoers.d of the python_web file giving the nopasswd privilege to Nobody.
This script, which is identical to the 2 Orange PIs, launches the interface applications required for the receiver and the transmitter. At this stage we do not know which one will work in reception and which in transmission. This is not a problem because these applications are not very resource intensive.
To start the script when the Orange PI is powered on, we add a command line to the /etc/rc.local file which gives its location.
$ sudo nano /etc/rc.local
To install the Remote SDR application on Orange PIs, you need to prepare their environments.
For the Armbian operating system, go to the Armbian website and download the version corresponding to the Orange Pi One Plus.
In the following post you will find the installation procedure for an Orange PI One Plus.
GNU RADIO – RTL-SDR – Hack RF
GNU Radio 3.7 and its graphic editor GnuRadio-Companion must be installed, as well as the drivers allowing you to connect an SDR such as RTL-SDR or Hack RF. The following post details the procedure.
For python 3, you must add the websockets library which allows exchanges with the web browser. First we install the pip installer.
sudo apt install python3-pip
Then we install setuptools:
sudo apt-get install python3-setuptools
Finally we install websockets:
sudo pip3 install websockets
Installation from a Remote SDR Image
The easiest way to avoid the hassle of a complicated installation is to burn an image to a 32 GB micro SD card of the entire system. In no time you will have an operational Remote SDR.
You can find the image on Github.
Posts on Remote-SDR
- Remote SDR – Purchase
- Remote SDR – Setup
- HackRF – Orange PI – GNURADIO Setup
- Remote SDR – Man Machine Interface
- Remote SDR – Signal Processing
- Remote SDR
- Web Client to GNU Radio
- GNU Radio to Web client
- Remote SSB Transmitter
- Remote SSB Receiver
- GPIO on Orange PI One Plus
- TCXO installation on HackRF
- Q0-100 Transceiver with 2 SDR