Skip to main content

Remote control of a Raspberry Pi SDR over a network

Most SDR can be remote controlled very easily, I do see a lot of weird software to do this and it is often not required! If you have installed rtl-sdr then you have everything that you need. No other software is needed on the server other than the rtl-sdr drivers. This is assuming you have an RT-SDR V3, NooElec SmartSDR or similar. Though it should work with any Realtek RTL2838U receiver.

This is so easy, but I always forget how to do it. All you need installed on your remote SDR is rtl_sdr and your drivers. then type in a terminal 

rtl_tcp -a 192.168.0.41 

(replace 192.168.0.41 with your ip), don't miss the '-a'. To find your ip simply type

ifconfig



This will start the TCP server and reveal the remote connection string to be entered into GQRX or any SDR software. In my case the returned string was rtl_tcp=192.168.0.41:1234


Then go to your PC, laptop or whatever you want to access the remote Pi from, start GQRX and go to device setting, select RTL Spectrum server and enter that same string 

rtl_tcp=192.168.0.41:1234 

(replace your own ip and port number) . Don't worry if GQRX selects 'Other' so long as the string is still intact as it will still work.

Adding settings to GQRX

If you re using SDR++ you can select rtl_tcp as the device and 192.168.0.41 (replace with your ip) and 1234 in the port number (unless rtl_tcp said differently.

Settings added to SDR++

You may experience some delays, so set the bandwidth to say 1Mhz and use ethernet where possible, other than that it is just like being there!

Now we want it to start rtl_tcp every time the PI is started, so add the lines like below. 

* note I added sleep=20 as I am using wifi, if you are using ethernet then sleep 10 should be enough. It is important that we have a network connection before starting the server!


sleep 20

_IP=$(hostname -I) || true

if [ "$_IP" ]; then

  printf "My IP address is %s\n" "$_IP"

      /usr/local/bin/rtl_tcp -a $_IP &

fi

exit 0

then type

sudo reboot


and try connecting from your SDR software.

It should also be possible to do this from a server installation with no GUI to save overheads, maybe even on a Pi3 or Zero?









Comments

Popular posts from this blog

Setting up a PI-Star MMDVM hotspot node with a Raspberry PI

 The first thing is to download the Pi-Star software from https://www.pistar.uk/downloads/ , at time of writing the current version is Pi-Star_RPi_V4.1.5_21-Jun-2021.zip ,but you should get the latest available. I used a Raspberry PI 3B but it is possible to use a PI Zero W or other model. You should then use either Etcher, or the Raspberry Pi imager to copy the image to your SD card, which should be at least 4GB and Class 10 or better, I used a 16GB simply because they are available for little money these days. Simply put the SD card into your PI and attach a monitor and keyboard via USB connection. The PI should boot with the usual rainbow screen, the default login is pi-star and the password raspberry. We will change these soon. To find out what IP address your pi is on type ifconfig and hit return. If you are connected via ethernet you will be able to type http://pi-star.local into a browser and access the dashboard as below - This will redirect after 10 seconds and you will be pre

Baofeng UV-S9 - a practical user guide

Having bought one of these transceivers recently I was firstly disappointed in the User Manual, it is in extremely small print, barely 4 point and my first searches online brought a pdf of the same manual scanned badly which was not much of an improvement. Also it is a reference guide rather than a how-to. I think many people would prefer to learn how to use the radio as well as which buttons to press with context. I am only covering the basics as I think once you know those then you will figure out the rest using the two manuals I have linked to below. So here we go! The Baofeng UV-S9 Transceiver, around £25 on Ebay Caution, two things are very important to know before we begin. Firstly it is illegal to transmit on any band that you do not hold a license for. You must check with your licencing authority, which in the UK is Ofcom https://www.ofcom.org.uk. PMR446 is not currently legal for a radio which does not have a fixed antenna and it is illegal to use a Baofeng for this purpose. A

Xiegu G1M - FT8 and CAT control imcompatibility

 So, having set up WSJT-X and made up cables for the Xiegu G1M I did manage to make a couple of contacts, well four to be exact I had difficulty keeping Transmit mode open and there was some weird VFO A-B switching and delays happening. I was starting to get pissed off.  I had been using the WSJT-X config set up Icom IC-7000 and IC-765 Pro as other people where doing the same, not very satisfactory and very frustrating. After much digging I managed to find out more info on the Xiegu forum at https://groups.io/g/XIEGU-G1M/message/461 . Seems that FLRIG was more suitable that the built in controller in WSJT-X, so I downloaded it from  http://www.w1hkj.com/  and installed it prior to running WSJT-X. After an hour or more of trying other peoples recommendations of Icoms and other rigs I started afresh. To control a Xiegu we need Xiegu thinking. Of course the G1M isn't listed in the devices yet, but the G90 is. Surely we could make that work as most manufacturers use a specific chip in