Skip to content

Instantly share code, notes, and snippets.

@tstellanova
Last active October 16, 2021 04:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tstellanova/9130da4da29dce7d856a6002272919ab to your computer and use it in GitHub Desktop.
Save tstellanova/9130da4da29dce7d856a6002272919ab to your computer and use it in GitHub Desktop.
Setup an Armbian-based adbsexchange feeder with both 1090 and 978 MHz support

1090 Support

Install prerequisites:

sudo apt-get install rtl-sdr lighttpd
sudo apt-get install build-essential debhelper librtlsdr-dev pkg-config dh-systemd libncurses5-dev libbladerf-dev
sudo apt install libhackrf-dev liblimesuite-dev libbladerf-dev  

Build dump1090-fa from source:

git clone https://github.com/flightaware/dump1090
cd dump1090  
make BLADERF=no HACKRF=no LIMESDR=no

Install dump1090:

sudo dpkg-buildpackage -b --no-sign 
cd ../
sudo dpkg -i dump1090-fa_*.deb
sudo reboot

The reboot is required because we need to add the SDR USB device to the plugdev group, in order to access it from dump1090.

After reboot, check the lighthttpd-served web page at eg http://hostname.local/skyaware/

Optional - Alternative local web dashboard

Install tar1090 web view

sudo bash -c "$(wget -nv -O - https://github.com/wiedehopf/tar1090/raw/master/install.sh)"

The end of the install script provides the web dashboard url, eg: http://myhost.local/tar1090/

Install ADSBExchange feeder

wget -O /tmp/axfeed.sh https://adsbexchange.com/feed.sh
sudo bash /tmp/axfeed.sh

after this a local dashboard should be available at: http://myhost.local/adsbx/

978 Support

Prerequisites:

sudo apt-get install \
  build-essential \
  debhelper \
  dh-systemd \
  libboost-system-dev \
  libboost-program-options-dev \
  libboost-regex-dev \
  libboost-filesystem-dev \
  libsoapysdr-dev \
  soapysdr-module-rtlsdr 

Build and install dump978-fa:

git clone https://github.com/flightaware/dump978
cd dump978
sudo apt-get install libboost-system-dev libboost-program-options-dev libboost-regex-dev libboost-filesystem-dev libsoapysdr-dev

sudo dpkg-buildpackage -b
sudo dpkg -i ../dump978-fa_*.deb 
sudo vi /etc/default/dump978-fa 

Add the driver=rtlsdr,serial=978

Feed 978 data to adsbexchange:

wget -O /tmp/ax978.sh https://adsbexchange.com/978.sh
sudo bash /tmp/ax978.sh

Troubleshooting

dump978-fa problems

Configuration error: No matching SoapySDR device found (cause:SoapySDR::Device::make() no match) in dump978 is due to missing soapysdr-module-rtlsdr package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment