Feed ADS-B Exchange with radarscape

Discussion in 'Feeding' started by Talle, Jan 31, 2019.

  1. MDA

    MDA Administrator Staff Member

    Re-run installer or edit:
    Code:
    sudo nano adsb-exchange/adsbexchange-mlat_maint.sh
    Replace unerlined by proper values, port number should be in range 10002-10005 (play with settings):
    Code:
    /usr/bin/mlat-client --input-type dump1090 --input-connect localhost:30005
    After saving changes restart mlat-client
    Code:
    sudo service mlat-client restart
    Underline doesn't work in code section, dump1090 and 30005 in example code
     
  2. Talle

    Talle Member

    Hmmm.... I am sorry, but I really don't know what I am doing now. And I am starting to feel that I should stop before I render my radarscape in a non-working condition :)

    There is no directory which is named adsb-exchange as far as I can tell. Where should this directory be located ?

    When I executed the installer I never got a question about data format or something ?
     
  3. MDA

    MDA Administrator Staff Member

    OK, let's start over :).
    You downloaded mlat-client using:
    Code:
    sudo apt-get install git
    git clone https://github.com/adsbxchange/adsb-exchange.git
    cd adsb-exchange
    chmod +x setup.sh
    sudo ./setup.sh
    This code creates adsb-exchange folder.
    After setup file
    adsbexchange-mlat_maint.sh
    is created in this folder.
    Can't you find it?
     
  4. Talle

    Talle Member

    Nope, but I really don't know where to look for it (and the locate command is not working). Its not in the root
     
  5. Talle

    Talle Member

    I found it. Its located in the "root" directory, which is not accessible as long as I am not logged in as root. Maybe this has something to do with the case ?
     
  6. MDA

    MDA Administrator Staff Member

    If you installed it as root... Can be the reason.
     
  7. Talle

    Talle Member

    The file is like this:

    #!/bin/sh

    while true

    do

    sleep 30

    /usr/bin/mlat-client --input-type dump1090 --input-connect localhost:30005 $

    done


    What should I edit it to read ?
     
  8. Talle

    Talle Member

    Hmm, is there any way to "uninstall" it again, and then reinstall it as the user "debian" ?
     
  9. MDA

    MDA Administrator Staff Member

    Is it all in this script?
    Normally uninstall looks like:
    Code:
    sudo rm -rf adsb-exchange
    Log in as root and try it (without sudo).
     
  10. Talle

    Talle Member

    Done, looks like it is working now I think ?
     
  11. MDA

    MDA Administrator Staff Member

    Connected with no syncs.
    I found some more info about configuration.
    Description: Receiver type:

    This setting sets the type of receiver that Mode S messages will

    be read from.

    .

    dump1090:

    dump1090 (MalcolmRobb or mutability fork), or anything else

    that can generate Beast-format messages with a 12MHz clock.

    beast:

    The Mode-S Beast.

    radarcape_gps:

    Radarcape with GPS timestamps (preferred).

    radarcape_12mhz:

    Radarcape with legacy 12MHz timestamps.

    sbs:

    Kinetic Avionics SBS-1/SBS-3 systems.

    Type: select

    Choices: dump1090, beast, radarcape_gps, radarcape_12mhz, sbs

    Default: dump1090



    Template: mlat-client/input-hostport

    Description: Input host: port for Mode S traffic:

    The multilateration client needs to read Mode S messages from a

    receiver such as dump1090. Here you can configure the host and port that the

    receiver is running on.

    .

    For dump1090, you need Beast-format output. This is usually available on port 30005.

    For Radarcapes, use port 10002.

    For SBS, use port 30006.

    Type: string

    Default: localhost:30005

    Template: mlat-client/input-type
     
  12. Talle

    Talle Member

    Hmm, and in plain english, where should I go, and what should I do ? :-D

    My adsbexchange-mlat_maint.sh looks like this:


    #!/bin/sh

    while true

    do

    sleep 30

    /usr/bin/mlat-client --input-type dump1090 --input-connect localhost:30005 $

    done
     
  13. MDA

    MDA Administrator Staff Member

    Script content should look like:
    Code:
    #!/bin/sh
    while true
      do
        sleep 30
        /usr/bin/mlat-client --input-type radarcape_gps --input-connect localhost:10002 --lat xx.xxxx --lon yy.yyyy --alt zzz --user Surgravvegen_02 --server feed.adsbexchange.com:31090 --no-udp --results basestation,listen,31003
      done
    Enter your coordinates, save and reboot.
     
  14. Talle

    Talle Member

    done
     
  15. MDA

    MDA Administrator Staff Member

    It works
    upload_2019-2-2_16-19-38.png
     
  16. Talle

    Talle Member

    Finally ! Thank you for your help ! :)
     
  17. MDA

    MDA Administrator Staff Member

    This is only step 1.
    Now we have to find a way to modify adsbexchange-netcat_maint.sh script for Radarcape.
    But this will need help from James (he has to give you a special port for specific data format).
     
  18. Talle

    Talle Member

    Ok, the radarcape is now offline due to some hardware change (antenna cable routing etc). So the feed is done with Surgravvegen_01 (RPi) for the next hours (maybe until monday)
     
  19. James

    James Guest

    What format does radarcape output? Any reason not to feed direct from the Pi using the dump1090 output?
     
  20. MDA

    MDA Administrator Staff Member