Feed ADS-B Exchange with radarscape

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

  1. James

    James Guest

    ----

    The format of the data output can be found in this document
    The date in Port 30003 messages is always the Linux system date.
    The timestamp instead is a GPS timestamp when the configuration is set to GPS timestamps and system time when the Radarcape operates in legacy 12 MHz time stamp mode.

    Due to the low efficiency and high processor load caused by this protocol, please do not use Port 30003 unless really necessary.

    A better way of getting the same data is the deltaDB service.

    On Linux, a very simple method how to access the TCP stream of Port 30003 is socat:
    ---

    Ugh .... relying on users to keep system clocks correct sounds like a nightmare all over again. GPS time would be nicer option, but how many going actually configure it.


    So ... we can do this, VRS talks basestation.


    Any reason to use the Radarcape if you have a Pi as well?
     
  2. Talle

    Talle Member

    It looks like the damn thing has stopped working again. I just got an email stating "ADSBHub station 'ENNO_9' is inactive 1 day"

    ----
    [email protected]:~$ sudo service mlat-client status
    mlat-client.service - LSB: Multilateration client
    Loaded: loaded (/etc/init.d/mlat-client)
    Active: active (exited) since Sat 2019-02-02 15:25:08 UTC; 4 days ago
    Process: 350 ExecStart=/etc/init.d/mlat-client start (code=exited, status=0/SUCCESS)

    Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.
    [email protected]:~$
     
    Last edited: Feb 7, 2019
  3. Talle

    Talle Member

    Hmm, I am a bit confused. I think this is another feeding, which I setup when I installed the RPi with multi site feeding. I was then told to go to adsbx and make a account, and add a new receiver, which I did. And I think this is the one in question. Can I delete ENNO_9 from my account ? And is there any way to add surgravvegen_02 to my account ?
     
  4. MDA

    MDA Administrator Staff Member

    There is nothing like accounts on ADSBx. Just username in mlat script. If you want to use custom port and see your name there claim this port as described here: https://www.adsbexchange.com/how-to-feed/custom-feed-how-to/
    ADSBHub is another story, contact them and ask for solution.
     
  5. Talle

    Talle Member

    Sorry, sorry, sorry :) I now see that the email is from ADSBHub :)
     
  6. MrMac

    MrMac New Member

    The RadarCape is an excellent receiver which provides better timestamps and better reception of overlapping messages. It is fully compatible with Beast data format (well, Gunther INVENTED the Beast format).....

    So just use the correct port and Beast formats for the feed....

    /M
     
  7. James

    James Guest

    I've been talking with Gunther about adding beast output as a default feeder. Ball is in his court.

    Maybe if people start asking.
     
    E Kramers likes this.
  8. kabelwalter

    kabelwalter New Member

    I'd like to say Hello from Stuttgart, Germany!
    As I like to share my ADS-B data with your service I set up Saturday and Sunday "Scharnhausen-01" twice. On Saturday 14th Sept 2019 with RPi to see how things works. And on Sunday 15th Sept 2019 with my Radarcape (the original unrestricted Jetvision version).

    Now I'm not sure which one finally is the registered on your system?
    The RPi has no dump1090 installed but could take data from my Radarcape. I think it is much easier and "better" to share the data direct from the source Radarcape.

    I read James and MDA are very experienced with this matter.
    From the available ports I guess Port 10006 Binary formatted raw data with all Mode-S data formats (CRC pre-checked, no Mode-A/C) would be the most effective?
    This port 10006 I used during Setup your script onto the Radarcape.

    What can you "see" from me on your side? Do you receive also MLAT data from me?
    Is there a way to monitor what data you are receiving from me?
    Questions over questions from a newbie.

    EDIT: spelling mistakes corrected
     
    Last edited: Sep 18, 2019
  9. wiedehopf

    wiedehopf Administrator Staff Member

    The port the setup queries for is not the local but the server side port.
    (The naming is a little confusing)

    The local port which you need to change is currently not that easy to change.
    But i've made a pull request on github. After that change editing the configuration file will be sufficient.

    In regards to which port to use, i don't know that.
     
  10. kabelwalter

    kabelwalter New Member

    I executed the setup again with the default value 30005.
     
  11. wiedehopf

    wiedehopf Administrator Staff Member

    The code change that i wrote is not yet in the main repository.
    If you want to try, do the following:

    Code:
    cd /tmp
    git clone https://github.com/wiedehopf/adsb-exchange.git
    cd adsb-exchange
    sudo bash setup.sh
    
    Then edit /etc/default/adsbexchange:
    Code:
    sudo nano /etc/default/adsbexchange
    
    You are running this on the radarcape, then the IP will be 127.0.0.1, but you can also use another IP.
    According to https://wiki.jetvision.de/wiki/Radarcape:User_Services_and_Interfaces you should use port 10004, Mode AC messages are not useful to adsbexchange.

    In the line starting with INPUT= change 127.0.0.1:30005 to 127.0.0.1:10004
    You can also use another IP if the adsbexchange script is not running on the radarcape.

    Ctrl-O and Enter to save
    Ctrl-X to exit

    Then restart the adsbexchange services:
    Code:
    sudo systemctl restart adsbexchange-feed adsbexchange-mlat
    
    After about 5 minutes you should see the status change on this website:
    https://adsbexchange.com/myip/
     
    Last edited: Sep 17, 2019
  12. kabelwalter

    kabelwalter New Member

    Thank you wiedehopf!
    A connection is displayed on the myip page:

    Route: beast_front Port: 30005
    Backend: beast_back
    Connected: cons-10-51070
    Age: 35m30s

    Nevertheless I configured it to port 10006 for now. I guess the Radarcape wiki is not up to date.
    These are the TCP Data Ports available as I can read it on the status page of the internal Radarcape web server:
    Port 10002 Mirror of the data as it comes from the FPGA (see FPGA settings)
    Port 10003 Binary formatted raw data with all Mode-S and Mode-A/C data formats (CRC pre-checked)
    Port 10004 Binary formatted raw data with DF-11, DF-17 and DF-18 only
    Port 10005 Binary formatted raw data of aircrafts without position
    Port 10006 Binary formatted raw data with all Mode-S data formats (CRC pre-checked, no Mode-A/C)
    Port 30003
    Port 30002 (JSON format periodic output)

    However, my data (Scharnhausen-01) seems not to be used yet, because -for example- some airplanes on the ground of the Stuttgart airport are not displayed, which I can receive.
     
  13. James

    James Guest

    Use 10006 perhaps.
     
  14. kabelwalter

    kabelwalter New Member

    That's what I've already done...
     
  15. James

    James Guest

    What's your IP .. let me look at your actual data
     
  16. kabelwalter

    kabelwalter New Member

    213.153.90.177
     
  17. James

    James Guest

    echo "show sess all" | socat stdio unix-connect:/run/haproxy/admin.sock | grep "213.153.90.177" -B 4 -A 4

    0x60b3a00: [17/Sep/2019:06:00:21.710436] id=4700745 proto=tcpv4 source=213.153.90.177:44904
    flags=0xce, conn_retries=3, srv_conn=0x327eb10, pend_pos=(nil)
    frontend=MLAT_front (id=17 mode=tcp), listener=? (id=1) addr=167.114.60.74:31090
    backend=MLAT_back_4B (id=531 mode=tcp) addr=172.19.2.2:38930
    server=mlat-c (id=1) addr=172.19.4.5:31092
    --

    0x3dbbaf0: [17/Sep/2019:14:29:22.311051] id=5116075 proto=tcpv4 source=213.153.90.177:37208
    flags=0xce, conn_retries=3, srv_conn=0x3390460, pend_pos=(nil)
    frontend=beast_front (id=2 mode=tcp), listener=? (id=1) addr=167.114.60.74:30005
    backend=beast_back (id=539 mode=tcp) addr=172.19.2.2:60570
    server=cons-10-51030 (id=336) addr=172.19.5.10:51030



    Screenshot_2019-09-17_08-20-34.png
     
    wiedehopf likes this.
  18. wiedehopf

    wiedehopf Administrator Staff Member

  19. James

    James Guest

    How is it even doing MLAT? It should in theory but I have no idea.

    ping @MDA
     
  20. wiedehopf

    wiedehopf Administrator Staff Member

    It's beast messages on port 10006 and it's just compiling the mlat-client and running it.