How-to install AcarsDeco2 on a Rasberry PI already running dump1090

How-to Install AcarsDeco2 on Pi2 or Pi3 already running Raspbian Stretch and dump1090 (mutability or fa)

STEP-1, ALTERNATIVE-1

1.1.1 - Download on Desktop/Laptop, the AcarsDeco2 file from http://xdeco.org/?page_id=30

Raspberry Pi 2/3 (Broadcom SoC BCM2836/37 ARMv7 Quad Core) Raspbian GNU/Linux 9.0 (Stretch):
acarsdeco2_rpi2-3_deb9_20180603.tgz

1.1.2 - Copy the downloaded file acarsdeco2_rpi2-3_deb9_20180603.tgz to RPi’s folder /home/pi using WinSCp or FileZilla

1.1.3 - In RPi, create a folder acars to hold AcarsDeco2 files, and move the file acarsdeco2_rpi2-3_deb9_20180603.tgz into it

pi@raspberrypi:~ $ sudo mkdir acars  
pi@raspberrypi:~ $ sudo mv acarsdeco2_rpi2-3_deb9_20180603.tgz  acars/  

.

STEP-1, ALTERNATIVE-2

1.2.1 - In RPi, create a folder acars to hold AcarsDeco2 files

pi@raspberrypi:~ $ sudo mkdir acars 

.
1.2.2 - I have uploaded acarsdeco2_rpi2-3_deb9_20180603.tgz to my DropBox account. Using wget command, you can directly download it from my Drop-Box to RPi and save it in newly created folder acars

pi@raspberrypi:~ $ sudo wget -O  acars/acarsdeco2_rpi2-3_deb9_20180603.tgz  "https://www.dropbox.com/s/q5tjkkrodsyert7/acarsdeco2_rpi2-3_deb9_20180603.tgz?dl=1"  

.

STEP-2

2.1 - Move into folder acars

pi@raspberrypi:~ $ cd acars

2.2 - Extract downloaded .tgz file

pi@raspberrypi:~/acars $ sudo tar xzvf acarsdeco2_rpi2-3_deb9_20180603.tgz
acarsdeco2
acarsdeco2.readme
acars_signals_sdrsharp_ppm_error_corr_1.jpg
LICENSE.MIT
datasets/
datasets/aircrafts_p.txt
datasets/acars_mls.txt
datasets/aircrafts_s.txt
datasets/airlines.txt

.

STEP-3

3.1 - Serializ two DVB-T / Prostick dongles
Dongle 1 (for dump1090-mutability): Serial # 00000000
Dongle 2 (for AcarsDeco2): Serial # 00000001

Instruction to serialize are here:
How to Change Serial Number of Dongle - ADSB 1090 + UAT 978 Dongles Plugged Into Same Pi

3.2 - Plug Both Dongles in Pi

3.3 - Reboot Pi

sudo reboot

.

STEP-4

Check what AcarsDeco2 has detected as DVB-T / Prostick dongles available and their serial numbers

pi@raspberrypi:~ $ cd acars

pi@raspberrypi:~/acars $ ./acarsdeco2 --device-list
AcarSDeco2 v.20180603
Available Devices:
 0 mnf: Realtek prod: RTL2832U serial: 00000000
 1 mnf: Realtek prod: RTL2832UFA serial: 00000001

.

STEP-5; Run AcarSDeco2 Manually

pi@raspberrypi:~/acars $ ./acarsdeco2 --device-index 1 --gain 49.6 --freq 131550000 131725000 --http-port 8686 &
[1] 981
pi@raspberrypi:~/acars $ AcarSDeco2 v.20180603
Using device:  1 mnf: Realtek prod: RTL2832UFA serial: 00000001
Sampling rate: 1400000.018544 sps
Supported Gains (dB):  0.0 0.9 1.4 2.7 3.7 7.7 8.7 12.5 14.4 15.7 16.6 19.7 20.7 22.9 25.4 28.0 29.7 32.8 33.8 36.4 37.2 38.6 40.2 42.1 43.4 43.9 44.5 48.0 49.6
Freq: 131.637 MHz
Freq Correction: 0 ppm
Gain: 49.6 dB
Trying to use 16 buffers in memory explicitly allocated to support zero-copy

.

STEP-6 : Automated start at boot / reboot

6.1 - Create a blank file ad2.sh, make it executable, and open it for editing

pi@raspberrypi:~ $ cd acars
pi@raspberrypi:~/acars $ sudo touch ad2.sh
pi@raspberrypi:~/acars $ sudo chmod +x  ad2.sh
pi@raspberrypi:~/acars $ sudo nano ad2.sh

6.2 - Copy-paste following code in new blank file ad2.sh

/home/pi/acars/./acarsdeco2 \
 --device-index 1 \
 --gain 49.6 \
 --freq 131550000 131725000 \
 --http-port 8686 \

6.3 - Save (Ctrl+o) and Close (Ctrl+x)

6.4 - Open file rc.local for editing

sudo nano /etc/rc.local

6.5 - Copy-paste following line in file rc.local just above last line (i.e. just above exit 0)

/home/pi/acars/ad2.sh &

6.6 - Save (Ctrl+o) and Close (Ctrl+x)

STEP-7

IP-OF-PI:8686

.
.

LOG

.
.

FLIGHTS

1 Like