Last updated:Feb 27, 2018 (Added PI 1 B+ in first post)
If you don’t want to run 24/7 your Windows/Mac + VRS, you can still generate VRS-like coverage plot, as well as Charts by running modeSMixer2 right in your RPi which is already running 24/7. No need to run Windows/Mac 24/7.
STEP-1:
Go to following page:
http://xdeco.org/?page_id=30
At top you will find ModeSDeco2 . Ignore it, you dont need it.
Scroll down till you see ModeSMixer2 . This is what you need.
Scroll down a little further till you see ARM sign
On Windows/Mac Desktop/Laptop, download one of the following which matches your OS:
For Raspberry Pi 2/3 with Jessie (also for Piaware SD card image)
modesmixer2_rpi2-3_20170924.tgz
OR
For Raspberry Pi 2/3 with Stretch
modesmixer2_rpi2-3_deb9_20170924.tgz
OR
For Raspberry Pi 1 B+ with Jessie
modesmixer2_rpi1_20170506.tgz
STEP-2:
In Pi, create a new folder mm2
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_20170924.tgz
OR
modesmixer2_rpi2-3_deb9_20170924.tgz
OR
modesmixer2_rpi1_20170506.tgz
EDIT Feb 08, 2018: Alternative to STEPS 1 to 4.
I have now uploaded the modeSMixer2 files to my Dropbox account. From there, it can be downloaded directly on Pi using wget
command as follows. No need for Filezilla
#Create a folder mm2 to hold ModeSMixer2 files
sudo mkdir mm2
#Download ModeSMixer file directly to mm2 folder of Pi
#Use one of the following commands according to your OS
#FOR **Pi 2/3** with JESSIE or Piaware SD card image
sudo wget -O mm2/modesmixer2_rpi2-3_20170924.tgz "https://www.dropbox.com/s/fm8zclxxq0kg8u4/modesmixer2_rpi2-3_20170924.tgz?dl=1"
#FOR Pi 2/3 with STRETCH
sudo wget -O mm2/modesmixer2_rpi2-3_deb9_20170924.tgz "https://www.dropbox.com/s/vzuviwuy0610tu5/modesmixer2_rpi2-3_deb9_20170924.tgz?dl=1"
#FOR Pi 1 B+ with JESSIE or Piaware SD card image
sudo wget -O mm2/modesmixer2_rpi1_20170506.tgz "https://www.dropbox.com/s/hpt66mrk81w9fjo/modesmixer2_rpi1_20170506.tgz?dl=1"
.
STEP-5:
Unzip the downloaded file
#Move to folder mm2
cd mm2
#Give one of the following 2 commands according to the file you have downloaded
#For RPi 2/3 with JESSIE
sudo tar xvzf modesmixer2_rpi2-3_20170924.tgz
#FOR RPi 2/3 with STRETCH
sudo tar xvzf modesmixer2_rpi2-3_deb9_20170924.tgz
#For RPi 1 B+ with JESSIE
sudo tar vxzf modesmixer2_rpi1_20170506.tgz
STEP-6:
Inside folder mm2, create a new file mm2.sh
cd mm2
sudo nano mm2.sh
.
For RPi 2/3
COPY-PASTE following text to blank file mm2.sh
#!/bin/sh
cd /home/pi/mm2/
./modesmixer2 --inConnectId 127.0.0.1:30005:ADSB --inConnectId 127.0.0.1:30105:MLAT --web 8787 --location xx.xxxx:yy.yyyy
#In above code, replace xx.xxxx by your latitude, and yy.yyyy by your longitude
.
For RPi 1 B+
COPY-PASTE following text to blank file mm2.sh
#!/bin/sh
cd /home/pi/mm2/
./modesmixer2_rpi1 --inConnectId 127.0.0.1:30005:ADSB --inConnectId 127.0.0.1:30105:MLAT --web 8787 --location xx.xxxx:yy.yyyy
#In above code, replace xx.xxxx by your latitude, and yy.yyyy by your longitude
.
Alternatively, instead of above text, copy-paste following text to file mm2.sh.
This text is broken into parts for ease of viewing/future editing, but still works OK.
(THANKS to @evangelyul for this tip)
.
For RPi 2/3
COPY-PASTE following text to blank file mm2.sh
/home/pi/mm2/modesmixer2 \
--inConnectId 127.0.0.1:30005:ADSB \
--inConnectId 127.0.0.1:30105:MLAT \
--web 8787 \
--location xx.xxxx:yy.yyyy \
.
For RPi 1 B+
COPY-PASTE following text to blank file mm2.sh
/home/pi/mm2/modesmixer2_rpi1 \
--inConnectId 127.0.0.1:30005:ADSB \
--inConnectId 127.0.0.1:30105:MLAT \
--web 8787 \
--location xx.xxxx:yy.yyyy \
.
STEP-7:
Make file mm2.sh
executeable
cd mm2
sudo chmod +x mm2.sh
STEP-8:
To Manually Start modeSMixer2
cd mm2
./mm2.sh & disown
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 modesmixer2
STEP-9:
To Automatically start ModeSMixer2 at boot/reboot:
Open file rc.local for editing
sudo nano /etc/rc.local
Add following line just above the last, single-worded line (i.e. above exit0
)
/home/pi/mm2/mm2.sh &
Save (Ctrl+o) and close file (Ctrl+x)
Now the ModeSMixer2 will automatically start at Boot / Reboot.
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 planes are shown green, and ADS-B planes are shown white.
.
.
MAP WITH VRS-LIKE COVERAGE PLOT
.
.
CHARTS