Last active
June 3, 2023 21:04
-
-
Save varnav/6564ead7c95b703c89b4d5e3391b2434 to your computer and use it in GitHub Desktop.
This script will install number of feeders to receive, decode and feed ACARS and VDL messages
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -ex | |
# This script will install number of feeders to receive, decode and feed ACARS and VDL messages | |
# Optimized for Raspberry Pi | |
# See: https://app.airframes.io/about | |
if [ "$EUID" -ne 0 ] | |
then echo "Please run as root" | |
exit | |
fi | |
apt-get update | |
apt-get install -y cmake rtl-sdr git cmake libusb-1.0-0-dev libtool librtlsdr-dev build-essential libglib2.0-dev pkg-config librtlsdr-dev libxml2-dev libzmq3-dev python3-zmq libsqlite3-dev sqlite3 | |
ldconfig | |
cd /usr/src | |
git clone git://git.osmocom.org/rtl-sdr.git | |
cd rtl-sdr | |
mkdir build | |
cd build | |
cmake ../ -DINSTALL_UDEV_RULES=ON -DDETACH_KERNEL_DRIVER=ON | |
make -j3 | |
make install | |
ldconfig | |
cd /usr/src/rtl-sdr | |
cp rtl-sdr.rules /etc/udev/rules.d/ | |
cd /usr/src | |
git clone --depth=1 https://github.com/szpajder/libacars | |
cd libacars | |
mkdir build | |
cd build | |
cmake ../ | |
make -j3 | |
make install | |
ldconfig | |
cd /usr/src | |
git clone --depth=1 https://github.com/TLeconte/vdlm2dec.git | |
cd vdlm2dec | |
mkdir build | |
cd build | |
cmake .. -Drtl=ON | |
make -j3 | |
make install | |
cd /usr/src | |
git clone --depth=1 https://github.com/TLeconte/acarsdec.git | |
cd acarsdec | |
mkdir build | |
cd build | |
cmake .. -Drtl=ON | |
make -j3 | |
make install | |
cd /usr/src | |
git clone --depth=1 https://github.com/szpajder/dumpvdl2.git | |
cd dumpvdl2 | |
mkdir build | |
cd build | |
cmake ../ | |
make -j3 | |
make install | |
cd .. | |
cp etc/dumpvdl2.service /etc/systemd/system/ | |
cp etc/dumpvdl2 /etc/default/ | |
systemctl daemon-reload | |
cd ~ | |
wget https://github.com/varnav/BaseStation.sqb/releases/download/latest/BaseStation.sqb.tar.xz | |
tar xf BaseStation.sqb.tar.xz | |
echo "Sample commands for USA: | |
acarsdec -v -i JD-KJFK0-ACARS -j feed.acars.io:5550 -r 0 130.025 130.450 | |
vdlm2dec -v -G -i JD-KJFK0-VDL2 -j feed.acars.io:5555 -r 0 136.650 136.800 136.975 | |
dumpvdl2 --rtlsdr 0 --gain 20 --station-id JD-KJFK0-VDL2 --msg-filter all,-avlc_s,-acars_nodata,-gsif,-x25_control,-idrp_keepalive,-esis --bs-db ~/BaseStation.sqb 136650000 136700000 136975000 | |
" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment