Automated Installation of ModeSMixer2 on RPi

ab cd

Senior Member
If you dont want to run VRS on Windows/Mac computer, you can still generate VRS-like coverage plot, as well as Charts by running modeSMixer2 on your RPi.

AUTOMATED INSTALL ON RPi 2/3/4 Raspbian Stretch / Buster
(for manual method, see next post)

Advantages of Automated install
(1) Easy Installation
- Just copy-paste one command to run bash script and it does everything.

(2) Automatic start - systemd service automatically starts it at boot/reboot.

(3) Easy monitoring & control - Provides commands systemctl status, systemctl stop, systemctl start, and systemctl restart.

(4) Easy configuration - Provides a separate config file in simple format, each config item on a separate line. ### FOR

DETAILED INSTRUCTIONS FOR AUTOMATED INSTALL:
https://github.com/abcd567a/mm2/blob/master/README.md

NOTE: ModeSMixer2 and dump1090-fa (or mutability) can be installed on the same RPi without any conflict.

.
MAP WITH VRS-LIKE COVERAGE PLOT

IMG_20180206_121400.jpg



CHARTS
ModeSMixer2 - Charts.png
 
Last edited:
MANUAL METHOD
If you dont want to run VRS on Windows/Mac computer, you can still generate VRS-like coverage plot, as well as Charts by running modeSMixer2 on your RPi.

STEP-1:
Go to following page:
http://xdeco.org/?page_id=30

At top you will find ModeSDeco2❌. Ignore it.
Scroll down further, till you see ModeSMixer2 ✔. This is what you need.
Scroll down a little further till you see ARM sign

arm-1.jpg


On Windows/Mac Desktop/Laptop, download one of the following which matches your OS:

For Raspberry Pi 2/3, Jessie

modesmixer2_rpi2-3_deb8_20190223.tgz

OR

For Raspberry Pi 2/3/4, Stretch & Buster

modesmixer2_rpi2-3_deb9_20190223.tgz

STEP-2:
In Pi, create a new folder mm2
Code:
sudo mkdir mm2


STEP-3:
On Windows / Mac computer, download and install file transfer App Filezilla.

https://filezilla-project.org/download.php?show_all=1

STEP-4:
Using Filezilla, upload from Windows/Mac computer, to Pi’s folder mm2, the downloaded file


modesmixer2_rpi2-3_deb8_20190223.tgz

OR

modesmixer2_rpi2-3_deb9_20190223.tgz

STEP-5:
Unzip the uploaded file
Code:
cd mm2
sudo tar xvzf modesmixer2_rpi2-3_deb8_20190223.tgz
#OR
sudo tar xvzf modesmixer2_rpi2-3_deb9_20190223.tgz


STEP-6:
Inside folder mm2, create a new file mm2.sh
Code:
cd mm2
sudo nano mm2.sh

Add following two lines to blank file
Code:
#!/bin/sh
./modesmixer2  --inConnectId 127.0.0.1:30005:ADS-B  --inConnectId 127.0.0.1:30106:MLAT --web 8787 --location xx.xxxx:yy.yyyy

Save file (Ctrl+o) and close file (Ctrl+x)

Note: Replace xx.xxxx by your latitude, and yy.yyyy by your longitude

STEP-7:
Make file mm2.sh executeable
Code:
cd mm2
sudo chmod +x mm2.sh


STEP-8:
Run the modeSMixer2
Code:
cd mm2
./mm2.sh & disown


STEP-9:
Exit terminal
The script will keep running even after closing the terminal due to & disown in the above command. You can stop it by reboot, or by command sudo killall mm2.sh or by command sudo killall modesmixer2.

STEP-10:
Go to page ip-of-pi:8787. This will show Charts. To see map, Click item Map on menu bar.

On map, you will see range plot being built, like VRS.

On map, the MLAT plane are shown green (if you are feeding Flightaware and get mlat feedback), and ADS-B planes are shown white.
.
 
Last edited:
Back
Top