SDR OGN flarm

From regional-training

This page is a preliminary release until I build a unit.

instructions

How to Run OGN FLARM and PiAware on the Same Raspberry Pi

To run OGN FLARM and PiAware on the same Raspberry Pi, you need to use a standard Raspberry Pi OS image and install the software packages for each application separately, as the dedicated PiAware image is designed for a single purpose.

Hardware Requirements

Two RTL-SDR Receivers: PiAware (for ADS-B at 1090 MHz) and OGN (for FLARM at 868 MHz in Europe, frequencies vary elsewhere) operate on different frequencies. Two Antennas: One for 1090 MHz and one for the OGN frequency. A Power Supply: A strong power supply is needed to power the two SDRs and the extra load on the CPU. Optional: A diplexer/splitter can be used with a single antenna if an appropriate LNA and filters are used, but using two separate antennas and SDRs is simpler for beginners.

basic instructions

sudo apt install git cmake build-essential libusb-1.0-0-dev librtlsdr-dev procserv telnet -y
cd ~
git clone https://github.com/glidernet/ogn-receiver.git
cd ogn-receiver
cmake .
make
  • service ?
sudo wget http://download.glidernet.org/common/service/rtlsdr-ogn -O /etc/init.d/rtlsdr-ogn
sudo wget http://download.glidernet.org/common/service/rtlsdr-ogn.conf -O /etc/rtlsdr-ogn.conf
sudo chmod +x /etc/init.d/rtlsdr-ogn
sudo update-rc.d rtlsdr-ogn defaults
  • serialise dongles

This is crucial. You need to ensure each software uses a different SDR dongle. Find the serial numbers of your dongles by running: bash rtl_eeprom -t Use code with caution.

You can change the serial number of one dongle using rtl_eeprom -s <new_serial_number>. Then, configure dump1090-fa and rtlsdr-ogn to use specific serial numbers in their respective configuration files (/etc/default/dump1090-fa and /etc/rtlsdr-ogn.conf) by adding the device-index or serial option.

Both services should now run concurrently, each using its dedicated SDR hardware. You can check their status via sudo systemctl status piaware and sudo service rtlsdr-ogn status.

bias-T

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

git clone https://github.com/rtlsdrblog/rtl_biast.git
cd rtl_biast
mkdir build
cd build
cmake ..
make
sudo make install # This installs the executable to /usr/local/bin, making it accessible from anywhere
  • enable /disable
rtl_biast -b 1
rtl_biast -b 0

replace the rtlsdr driver

  • purge the previous driver:
 sudo apt purge ^librtlsdr
 sudo rm -rvf /usr/lib/librtlsdr* /usr/include/rtl-sdr*
 /usr/local/lib/librtlsdr* /usr/local/include/rtl-sdr*
 /usr/local/include/rtl_* /usr/local/bin/rtl_*
  • Install the RTL-SDR Blog drivers:
sudo apt-get install libusb-1.0-0-dev git cmake
git clone https://github.com/rtlsdrblog/rtl-sdr-blog
cd rtl-sdr-blog
mkdir build
cd build
cmake ../ -DINSTALL_UDEV_RULES=ON
make
sudo make install
sudo cp ../rtl-sdr.rules /etc/udev/rules.d/
sudo ldconfig

Blacklist the DVB-T TV drivers

echo 'blacklist dvb_usb_rtl28xxu' | sudo tee --append
/etc/modprobe.d/blacklist-dvb_usb_rtl28xxu.conf
  • Reboot

(alternative) Installation If you rely on FlightRadar24 or FlightAware

Using ADSBExchange images you can update them directly using this method:

sudo apt update
sudo apt install libusb-1.0-0-dev git cmake
sudo apt install debhelper
git clone https://github.com/rtlsdrblog/rtl-sdr-blog
cd rtl-sdr-blog
sudo dpkg-buildpackage -b 

links

repos

ESP32