Results 1 to 5 of 5

Thread: How To Get VRS-Like Coverage Map on RPi

  1. #1
    Captain abcd567's Avatar
    Join Date
    Sep 2013
    Location
    Toronto CYYZ
    Posts
    2,104

    How To Get VRS-Like Coverage Map on RPi

    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
    ARM.jpg


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

    For Raspberry Pi 2/3 with Jessie
    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
    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_20170924.tgz
    OR
    modesmixer2_rpi2-3_deb9_20170924.tgz
    OR
    modesmixer2_rpi1_20170506.tgz

    Alternative to STEPS 1 to 4.
    I have 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

    Code:
    #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

    Code:
    #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

    Code:
    cd mm2
    sudo nano mm2.sh
    .

    For RPi 2/3

    COPY-PASTE following text to blank file mm2.sh

    Code:
    #!/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

    Code:
    #!/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.

    .

    For RPi 2/3
    COPY-PASTE following text to blank file mm2.sh

    Code:
    /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

    Code:
    /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

    Code:
    cd mm2
    sudo chmod +x mm2.sh
    STEP-8:
    To Manually Start modeSMixer2

    Code:
    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

    Code:
    sudo nano /etc/rc.local
    Add following line just above the last, single-worded line (i.e. above exit0 )
    Code:
     /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




    .
    Last edited by abcd567; 2018-05-10 at 00:51. Reason: To restore images

  2. #2
    Passenger
    Join Date
    May 2018
    Posts
    10
    I have a littte Question.
    How do you bypass the fact that all data are gone after each restart?

  3. #3
    Captain abcd567's Avatar
    Join Date
    Sep 2013
    Location
    Toronto CYYZ
    Posts
    2,104
    Conan_89
    All data (graphs, charts, range plot on map) get cleared at restart, and unfortunately there is no option to bypass this behaviour.

  4. #4
    Passenger
    Join Date
    Jun 2018
    Location
    Mainz, Germany
    Posts
    3
    Hi,
    When I try
    ./mm2.sh & disown
    to start, I always get the following error:
    error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such file or directory
    Last edited by Oblivian; 2018-06-13 at 09:45.

  5. #5
    Passenger
    Join Date
    May 2018
    Posts
    10
    oh, that's a pity, thank you for the answer.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •