Tagged: rtl-sdr

Getting the V3 Bias Tee to Activate on PiAware ADS-B Images

A few owners of our RTL-SDR V3 and/or our Triple Filtered ADS-B LNA (or other bias tee powered LNAs) have been having trouble getting the V3 bias tee to activate on the FlightAware PiAware Raspberry Pi image. The core stumbling point is that the PiAware image activates the dump1090 ADS-B decoder immediately upon boot. To activate the bias tee, the bias tee software requires access to the dongle which it cannot get since dump1090 is blocking it. So to get around this the bias tee must be activated first before dump1090 runs.

PiAware is FlightAware's Raspberry Pi image which feeds their flightaware.com flight tracking service using RTL-SDR dongles. By using our Triple Filtered ADS-B LNA, users can expect increased range and decoded messages, especially when using long runs of coax cable, and/or in environments with strong interfering signals.

In the instructions below we'll explain how to set up a PiAware image that automatically enables the Bias Tee upon boot.

Downloading the V3 Bias Tee Software onto PiAware

First we assume that you're starting fresh from a new PiAware image, so we need to enable WiFi and SSH connections which is part of the standard set up for PiAware. See the following links for instructions.

Enable WiFi via config file https://flightaware.com/adsb/piaware/build

Enable SSH by adding ssh file to boot https://flightaware.com/adsb/piaware/build/optional#password

 
Now log in to your PiAware machine using SSH and PuTTY (or any other terminal software) using username "pi" and password "flightaware".

Run the following commands to update and install some dependencies. 

sudo apt-get update
sudo apt-get install git cmake build-essential libusb-1.0-0-dev

 
Download and install the RTL-SDR V3 Bias Tee software.

cd ~
git clone https://github.com/rtlsdrblog/rtl_biast
cd rtl_biast
mkdir build
cd build
cmake .. -DDETACH_KERNEL_DRIVER=ON
make

Testing the Bias Tee

Over on his blog Akos has created a short guide to activating the bias tee manually, by first stopping dump1090, activating the bias tee, then restarting dump1090. It's a simple one line copy and paste job.

So after installing the rtl_biast software above you can use the following line to test the bias tee. After running this line the FlightAware service should be up and running again, with the bias tee and LNA activated.

sudo service dump1090-fa stop && cd ~/rtl_biast/build/src && ./rtl_biast -b 1 && sudo service dump1090-fa start

Automatically Starting the Bias Tee on Boot

Ideally we don't want to have to reactivate the bias tee manually every time the Raspberry Pi reboots. To make it automatic use the following instructions:

First create a service directory and configuration file

sudo mkdir /etc/systemd/system/dump1090-fa.service.d
sudo nano /etc/systemd/system/dump1090-fa.service.d/bias-t.conf

 
Then paste in the following

[Service]
ExecStartPre=/home/pi/rtl_biast/build/src/rtl_biast -b 1

 
Finally press Ctrl+X then Y to close and save. Now whenever PiAware reboots the bias tee should be automatically activated as this service runs before dump1090 is activated.

Credits:

Thanks to the discussion on the FlightAware forums and in particular user 'obj' for originally finding this automatic solution.

Creating a High Altitude Balloon Telemetry System with Raspberry Pi, RPiTX and RTL-SDR

The 2M TX Filter by ZR6AIC
The 2M TX Filter by ZR6AIC

Over on his blog ZR6AIC explains how he's created a full HAB (high altitude balloon) telemetry transmit and receive system using RPiTX and an RTL-SDR dongle running on a Raspberry Pi 3.

RPiTX is software that enables the Raspberry Pi to transmit any modulated signal over a wide range of frequencies using just a single GPIO pin. However, the transmission contains multiple harmonics and thus requires sufficient filtering in order to transmit legally within the 2M ham band. To solve this ZR6AIC uses a 2M Raspberry Pi Hat kit which he designed and created that contains two low pass filters as well at the option for an additional power amplifier.

The rest of ZR5AIC's post explains how his HAB telemetry system combines the Raspberry Pi 3, RPiTX 2M Hat, RTL-SDR, a GPS unit, battery, temperature sensor and optional camera into a full HAB transmitting system. He also explains the software and terminal commands that he uses which allows him to transmit via RPiTX a CW beacon and GPS and temperature sensor APRS telemetry data with the Direwolf software. Full instructions on setting up the alsa-loopback audio routing is also provided.

Launching the High Altitude Balloon.
Launching the High Altitude Balloon.

GUI for Controlling the R820T2 Filters and Registers

Recently a program called R820T2Tweak_Patched was released which is a GUI for GQRX that allows you to manually control not only the three RF gain settings on R820T2 RTL-SDRs, but also the four filter settings as well as the registers directly. The R820T2 is the most commonly found tuner chip on RTL-SDR dongles, and is generally considered the best for most applications. 

The GUI could be useful for advanced users wanting to experiment with the various lower level R820T2 register settings, or for anyone that wants ultimate control over the filters in the RTL-SDR. 

The software is based on the original R820Tweak which has the same features except the ability to control the registers directly.

R820Tweak_Patched GUI. Control Gain, Filters and Registers.
R820Tweak_Patched GUI. Control Gain, Filters and Registers.

Thomas N1SPY Demonstrates Receiving SSTV Images from the ISS

Earlier in the month the International Space Station (ISS) was transmitting SSTV images down to the earth for anyone to receive an decode. The ISS does this several times a year to commemorate special space related events, such as the day Yuri Gagarin (first man in space) was launched.

In the video Thomas explains why the ISS does this, how to track the ISS, and then he demonstrates actually receiving and decoding the signal. Thomas uses an Airspy HF+ to receive the signal on 145.8 MHz, however an RTL-SDR could do the same job. For decoding he uses the MMSSTV software.

For new on when the ISS might transmit SSTV again, keep at eye on the ARISS Blog, and the ISS Ham Twitter page.

2018: Thomas N1SPY receives SSTV signals from the ISS

Tysonpower Reviews our Triple Filter ADS-B LNA

Thank you to YouTuber 'Tysonpower' who is known for making various RF related videos as he has recently reviewed our Triple Filtered ADS-B LNA on his blog and on YouTube. Note that his video is in German, but it contains English subtitles. In the review he compares our LNA against a more expensive ADS-B LNA and found that it performs just as good, if not better in some cases. 

Our ADS-B LNA uses a triple filter design, as well as a two stage LNA which aims to significantly cut out interference from out of band signals which could overload the LNA and/or SDR dongle. It also has a low noise figure and high output gain of 27dB which is great for reducing losses on long runs of coax cable. More information about our LNA on the release post, and it can be purchased from our store.

[EN subs] Top ADSB LNA für nur 25€ - RTL-SDR Blog LNA

Part III of Calibrating your RTL-SDR with QIRX SDR Now Uploaded

Earlier in the month we posted about Clem's three part series on how his QIRX SDR software can be used to accurately calibrate an RTL-SDR using DAB signals. Back then only parts I and II had been released. Now part III has been released, and in the article he explains why it is beneficial to calibrate the frequency error, and also the sampling rate when attempting to decode DAB signals..

Clem begins by explaining how DAB signals work and why it is important to have accurate frequency calibration when receiving DAB. Later he goes on to explain the effect of sampling rate errors due to frequency inaccuracy on received DAB signals. He shows the effect of gradually increasing the sample rate error on the ability of the algorithms to decode DAB signals.

Comparing constellations with sampling rate error correction turned on and off.
Comparing constellations with sampling rate error correction turned on and off.

OH2BNF’s Plan for a Large Scale Raspberry SDR (LSR-SDR) Based on RTL-SDR Dongles

Thanks to OH2BNF for writing in and sharing his plan to build a "Large Scale Raspberry SDR" (LSR-SDR), which will be based on RTL-SDR dongles. To create the LSR-SDR he plans to take a 19" rack which can support up to 40 Raspberry Pi 3's, plus up to 160 USB devices, and turn it into a massive SDR array. The rack is key as it allows for simple power management of all the Pi's and other devices to be connected.

OH2BNF plans to connect 20 or so RTL-SDRs, with some operating individually and with others operating coherently via a common external oscillator. The rack may also contain some transceivers, an ICOM IC-7300, antenna switches, upconverters, LNAs and other hardware too. Once completed he hopes to move the system to a low RFI environment and operate the unit entirely remotely. With this he hopes to solve his local RFI issues. He also writes regarding applications:

Primary objectives are to incorporate automated adaptivity to the system at large – for example leveraging on band condition information, WSPR (Weak Signal Propagation Report) & friends, automated signal detection and decoding, great flexibility in terms of individual cluster nodes being able to fast respond to various needs and tasks, strong emphasis in parallel processing where applicable depending on the problem type and dataset, support for multiple end users benefiting from the computing and reception capacity of the cluster – to name the most significant.

It's an interesting idea for sure, and we hope to see some updates from OH2BNF in the future.

The Raspberry Pi 19" Rack
The Raspberry Pi 19" Rack

The Lego Pi RTL-SDR FM Radio

Thank you to RTL-SDR.com reader 'JJ' for writing in with a submission for his Lego Pi Radio. JJ's Lego Pi Radio consists of a Raspberry Pi and RTL-SDR and is designed to be an FM Radio, MP3 and internet radio player all in one, with a cute enclosure made out of Lego bricks. The radio is controlled by an external numpad which allows for a number of presets to be chosen from.

The internet radio and MP3 players are handled in software by VLC player and a script written by JJ is used to map the numpad to RTL-SDR FM presets, or MP3 and internet radio functions. The whole unit is run headless and if anything needs to be updated such as internet radio links, JJ simply accesses the unit via an SSH shell. JJ also writes how he had to try 3 different brands of speakers before he found one that could be driven directly from the Pi with adequate sound quality. In the future he hopes to add a bluetooth remote.

One problem that JJ found was that the standard rtl_fm did not produce high quality audio. Fortunately he found the NGSoftFM software which is capable of outputting high quality FM stereo sound and is compatible with RTL-SDR dongles.

In the past we've seen a similar project that was implemented on a BeagleBone Black. The idea in that project was to switch between FM and internet radio depending on the reception quality.