Announcement

Collapse
No announcement yet.

How to Install ModeSMixer2 on RPi and get VRS like Range Plot

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • abcd567
    replied
    AcarsDeco2, ModeSDecco2, & ModeSMixer2

    Developer Sergsero's Google Drive is no more accessible since first week of April 2022.

    Fortunately I had earlier downloaded and saved these files on my PC before the said disappearance. I have uploaded these files to my Github site shortly after disappearance of Sergsero's Google Drive.

    These files can be downloaded from the page linked below:


    https://github.com/abcd567a/mm2/releases



    Screenshot_20220503-abcd567a-github.jpg
    Last edited by abcd567; 2022-05-03, 16:17.

    Leave a comment:


  • abcd567
    replied
    ModeSMixer2 Installation Script at Github


    Updated on February 23, 2021

    Change log:
    (1) The modesmixer2 is now run by user mm2 (previously it was run by user root).

    (2) The max range curve data file distances.json is created and owned by user mm2 and is located in folder /usr/share/mm2 (previously it was created and owned by user root and was located in root partition /distances.json )

    (3) The max range plot is persistant and survives restarts and reboots. To clear the curve and start fresh plotting, do following:
    Code:
    #You must stop mm2 before deleting the file distances.json. sudo systemctl stop mm2
    
    # Delete file distances.json
    
    sudo rm /distances.json #(For installations done BEFORE 23rd February 2021)
    
    sudo rm /usr/share/mm2/distances.json  #(For installations done ON or AFTER 23rd February 2021)
    
    # Restar modesmixer2
    sudo systemctl restart mm2
    Link to Github where installation guide and installation script for mm2 (modesmixer2) for various devices (Pi & PC), and various OS (Raspberry Pi 32-bit & 64-bit OS, Ubuntu20 x86_64, Debian10 x86_64, Kali Linux 2020 amd64, Arch Linux 2021 x86_64) are located:

    https://github.com/abcd567a/mm2



    Leave a comment:


  • abcd567
    replied
    Thanks to sergsero for advising yesterday that he has now made available the 64bit version of modesmixer2 (modesmixer2_64bit_rpi4_Raspberry_Pi_OS_20200426.tg z).

    https://radarspotting.com/forum/inde....html#msg46980

    Based on sergsero's advised, today I have added to my Github page, a bash script for automated installation of 64bit modesmixer2 on RPi4 running 64bit Raspberry Pi OS.

    Automated Installation Script:

    Code:
    sudo bash -c "$(wget -O - https://raw.githubusercontent.com/abcd567a/mm2/master/install-mm2-64bit.sh)"
    Instructions at Github:
    ModeSMixer2 installation script for RPi 2/3/4 and Raspbian Stretch/Buster - abcd567a/mm2

    Leave a comment:


  • Oblivian
    replied
    Name changed too

    So may see it now called "Raspberry Pi OS" more often.

    Changed to more in-house development team while other raspbian lines may differ.
    https://www.raspberrypi.org/forums/v...0cb7d#p1668466

    Leave a comment:


  • abcd567
    replied
    On 27th May 2020, Raspberry Pi foundation has released 64bit Raspbian which can be used on RPi3 and RPi4 as both have 64bit cpu.

    For those who are using 64 bit Raspbian on Pi3 or Pi4, the ModeSMixer2 (installed by automated script method given in First Post), will fail to start unless following workaround is done:

    Code:
    sudo mkdir libssl-armhf   
    wget http://ftp.us.debian.org/debian/pool/main/o/openssl/libssl1.1_1.1.1d-0+deb10u3_armhf.deb    
    sudo dpkg -x libssl1.1_1.1.1d-0+deb10u3_armhf.deb libssl-armhf    
    
    sudo cp libssl-armhf/usr/lib/arm-linux-gnueabihf/libssl.so.1.1 /usr/lib/arm-linux-gnueabihf/  
    sudo cp libssl-armhf/usr/lib/arm-linux-gnueabihf/libcrypto.so.1.1 /usr/lib/arm-linux-gnueabihf/  
    
    sudo systemctl restart mm2
    After above workaround, the ModeSMixer2 (installed by automated script of post #1) on 64 bit Raspbian works OK.
    Last edited by abcd567; 2020-06-04, 23:34.

    Leave a comment:


  • Mr Bits
    replied
    Has anyone been able to get modesmixer2 to work on Pi Zero please? Thank you

    Leave a comment:


  • abcd567
    replied
    Thanks Oblivian for changing title of this thread, and deleting the duplicate thread.

    Leave a comment:


  • abcd567
    replied
    Updated on August 13, 2019.
    In first post, added Automated Installation by bash script

    Leave a comment:


  • abcd567
    replied
    ylis

    Flightaware MLAT feedback results are available on two ports of dump1090-mutability/dump109p-fa: 30105 and 30106. The data formats are different, but both work OK for modeSMixer2. You can use any one of these.

    For FA mlat results feedback, using port 30103 is wrong. Dont use 30103.
    Last edited by abcd567; 2018-12-04, 23:17.

    Leave a comment:


  • ylis
    replied
    hi abcd567

    I became lost following the discussions above between the ADSB and MLAT ports ... hoping you can explain it bit further.

    My test setup is now Stretch and dump1090-mut v1.15dev and only the FR24 feed. The fr24feed.ini is:

    receiver="avr-tcp"
    fr24key="x"
    host="127.0.0.1:30002"
    bs="no"
    raw="no"
    logmode="0"
    procargs="--net--gain 40"
    windowmode="0"
    logpath="/var/log"
    mpx="no"
    mlat="yes"
    mlat-without-gps="yes"

    I created mm2.sh in /usr/share/mm2 and simply changed /home/pi to /usr/share in both Step 6 and Step 9.
    ( You might like to make a comment in your post about where to create the mm2 folder and then match the paths given in mm2.sh and rc.local to assist others ).

    Then after reading and digesting the discussion above about which ports to use - I changed the ADS-B port in line 2 to 30002 and deleted line 3 --inConnectId 127.0.0.1:30105:MLAT \
    I also noted that this was written as 30105 in one step and 30103 in another.

    And I have it working.

    To help my understanding - is there another port I can turn on to obtain the MLAT feed and reinstate the deleted line 3 ?

    Any other hints, advice and suggestions ?

    Thanks

    Leave a comment:


  • ylis
    replied
    OK - you have publicly shamed me into it.

    I gather its time I made the move to Stretch ....

    Leave a comment:


  • abcd567
    replied
    ylis
    Yes, the file is still in my dropbox and you can download it to your Pi by wget command.

    This file is for Jessie. Most people have already switched to Stretch. Are you still using Jessie?

    Leave a comment:


  • ylis
    replied
    Hi abcd567

    I'm was looking back over some of your great suggestions and thought I'd give this one a try on a quiet afternoon ...

    In the Alternative to Steps 1-4, which seems simpler, you say:
    #FOR JESSIE, Pi24, and 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"
    Can you confirm this file is still in the dropbox ?

    Cheers

    Leave a comment:


  • bhaal
    replied
    @abcd567

    For some reason I thought you were the author. My bad Ok, will go have a look at the threads, thanks for the heads up!

    Leave a comment:


  • abcd567
    replied
    @bhaal
    1. I dont think it is possible to get a meter style chart. Even if it is pssible, I am not aware of how to do it.

    2. ModeSMixer and ModeSDecoder are NOT Open Source, and hence I dont think teir source code will be available on GitHub.

    3. There has been much discussion of these programs over the last 4-5 years here:


      This thread in particular where the author pops in from time to time may answer your questions:


    4. Following is list of parameters/options. More details here: http://xdeco.org/?page_id=48.

      Code:
      cd mm2
      ./modesmixer2 --help
      
      ModeSMixer2 v.20170924
      Program options:
      
        -h [ --help ]             This help message 
        --inConnect arg           Input connector. Format: host:port
        --inConnectId arg         Input connector with ID. Format: host:port:id
        --inServer arg            Input server. Format: port
        --inServerId arg          Input server with Id. Format: port:id
        --inServerUdp arg         Input udp server. Format: port
        --inSerial arg            Input serial. Format: port[:speed[:flow_control]]
                                  FlowControl: none,software,hardware
        --outConnect arg          Output connector. Format: type:host:port
                                  Types: beast,avr,avrmlat,msg,sbs30006,beastmlat,msg
                                        mlat
        --outConnectId arg        Output connector with Id.
                                  Format: host:port[:name:lat:lon:TEXT:freq]
        --outConnectUdp arg       Output udp connector. Format: type:host:port
                                  Types: beast,avr,avrmlat,msg,sbs30006
        --outServer arg           Output server. Format: type:port
                                  Types: beast,avr,avrmlat,msg,sbs30006,sbs10001,fats
                                        v,beastmlat,msgmlat
        --globes arg              Enable Globe-S server. Format
                                  port:tablename:stationid
        --web arg                 Enable Web Server on port (default: off)
        --google-key arg          Google Maps key
        --web-auth arg            Enable web auth username:password (default: off)
        --disable-web-log         Disable Web Log (default: on)
        --silhouettes arg         Set Silhouettes directory
        --pictures arg            Set Aircraft Pictures directory
        --db arg                  Set DB Filename
        --dbro arg                Set DB filename for read-only using
        --keep                    Enable Beast output keepalive message
        --frdb arg                Set FlightRoute DB Filename
        --location arg            Receiver location Lat:Lon
                                  Example: 36.2:-15.3
        --add-reference-point arg Add a new reference point for calculating distance
                                  and azimuth to the map
                                  Example: 38.5:-12.6:[Label1] ...
        --add-points arg          Add  additional points (single or list) with
                                  coordinates to the map
                                  Example: 36.2:-15.3:[Label1] [38.5:-12.6:[Label1]]
                                  ...
        --localtime               Local Time in MSG format output (default: UTC)
        --filter-expire arg       Filter expire time, sec (default: 20)
        --filter-count arg        Filter min count (default: 6)
        --filter-time arg         Filter min time, sec (default: 60)
        --filter-nocountry        Disable ICAO Country filter (default: on)
        --filter-ic               Enable Interrogator Code filter (default: off)
        --filter-dup              Enable Duplicate filter (default: off)
        --flight-expire-time arg  Flight expire time, sec (default: 3600)
        --log-noconsole           Disable logging to console (default: on)
        --log-file arg            Enable logging to file (default: off)
        --log-level arg           Set logging level 0..5 (default: 4)
                                  0 disabled, 1 error, 2 warning, 3 notice, 4 info
                                  5 debug
      
        --metric                  Switch to metric system of distance measurement
                                  (default: imperial)

    Leave a comment:

Working...
X