Page 5 of 12 FirstFirst ... 34567 ... LastLast
Results 41 to 50 of 120

Thread: How to Install dump1090-mutability_1.15~dev on RPi

  1. #41
    Captain abcd567's Avatar
    Join Date
    Sep 2013
    Location
    Toronto CYYZ
    Posts
    2,839
    RTL-SDR V3 Dongle
    Enabling Auto Switch-ON of Bias-T in dump1090-mutability v1.15~dev.


    There is a method posted on the RTL-SDR Blog on April 28, 2018, which is applicable to Piaware/dump1090-fa and uses bias-t start command through file dump1090-fa.service.


    This method does not apply to dump1090-mutability v1.15~dev, as the dump1090-mutability.service files are automatically generated by "systemd-sysv-generator", and all the changes made by user are overwritten at restart / reboot.

    The dump1090-mutability.service starts dump1090-mutability through the file /etc/init.d/dump1090-mutability, which is not overwritten at reboot/restart. I have therefore added bias-t start and logging script in that file, and it works OK.

    STEP-1:

    Build package rtl_biast

    Code:
    #First installed Packages needed to build and to fulfill dependencies 
    
    sudo apt-get install git  
    sudo apt-get install cmake 
    sudo apt-get install libusb-1.0 
    
    #Now build rtl_biast 
    git clone https://github.com/rtlsdrblog/rtl_biast 
    cd rtl_biast 
    sudo mkdir build 
    cd build  
    sudo cmake .. -DDETACH_KERNEL_DRIVER=ON
    sudo make 
    
    #TEST-1 
    cd src 
    ./rtl_biast -b 1 
    usb_claim_interface error -6 
    
    #TEST-2 
    sudo systemctl stop dump1090-mutability 
    ./rtl_biast -b 1 
    Found Rafael Micro R820T tuner

    STEP-2:

    (1) Open file /etc/init.d/dump1090-mutability in editor.

    Code:
    sudo nano /etc/init.d/dump1090-mutability
    (2) In the file opened, scroll down to following portion of code
    (You can quickly reach there by pressing Ctrl+w, then typing do_start then pressing Enter Key).

    Code:
    # Function that starts the daemon/service 
    # 
    do_start() 
    { 
    
         #      Return 
         #      0 if daemon has been started 
         #      1 if daemon was already running 
         #      2 if daemon could not be started
    (3) Insert following 2 lines
    Code:
    /home/pi/rtl_biast/build/src/rtl_biast -b 1 >> /var/log/biast.log 2>&1 
    
    date >> /var/log/biast.log
    The lines should be inserted at location shown below:


    Code:
    # Function that starts the daemon/service 
    # 
    do_start() 
    {
    
              /home/pi/rtl_biast/build/src/rtl_biast -b 1 >> /var/log/biast.log 2>&1 
              date >> /var/log/biast.log  
    
             #   Return        
             #      0 if daemon has been started 
             #      1 if daemon was already running 
             #      2 if daemon could not be started
    (4) Save file (Ctrl+o) and Close editor (Ctrl+x)

    (5) Reload daemon to incorporate changes, then restart dump1090-mutability.
    Code:
    sudo systemctl daemon-reload 
    sudo systemctl restart dump1090-mutability
    Check log
    Code:
    cat /var/log/biast.log 
    Found Rafael Micro R820T tuner 
    Tue May 1 14:25:06 EDT 2018
    .

    Explanation of code:
    "/home/pi/rtl_biast/build/src/rtl_biast -b 1" switches on the bias t
    ">> /var/log/biast.log 2>&1" sends output (stdout+stderr) to file /var/log/biast.log
    "date >> /var/log/biast.log" timestamps the log

    .

    If you are interested only in switching-on the bias-t, and are not interested in creating biast log, then only one short line (i.e. /home/pi/rtl_biast/build/src/rtl_biast -b 1) need to be added as shown below:

    Code:
    # Function that starts the daemon/service 
    #
    do_start() 
    { 
             /home/pi/rtl_biast/build/src/rtl_biast -b 1 
    
             #   Return 
             #      0 if daemon has been started 
             #      1 if daemon was already running 
             #      2 if daemon could not be started
    Last edited by abcd567; 2019-07-25 at 01:36.

  2. #42
    Purser
    Join Date
    Jan 2015
    Location
    T-EGKK39
    Posts
    112
    Thanks again abcd for a very useful guide. Just swapped my Pi Zero with a 3B+ and used your guide to configure the new Pi. The only info I had to search for was how to transfer the sharing keys from old Pi to new Pi so I could keep the same accounts:

    Fr24's is "fr24key" from the /etc/fr24feed.ini file
    PiAware is the /var/cache/piaware/feeder_id file
    PFClient is the "sharecode" in the /etc/pfclient-config.json file

    I installed the new Pi, stopped the feeders on the old one and then transferred the keys across.

  3. #43
    Captain abcd567's Avatar
    Join Date
    Sep 2013
    Location
    Toronto CYYZ
    Posts
    2,839
    elljay

    The built from this page is actually dump1090-mutability ver 1.15~dev, and Flightaware has nothing to do with it. Therefore Flightaware will NOT upgrade it, and it will continue to work ok.

    The dump1090 Flightawsre are going to upgrade is their brand of dump1090 called dump1090-fa, which you dont have.

    They will also upgrade the Piaware data feeder which you have installed as per Flightaware page https://flightaware.com/adsb/piaware/install. It will be upgraded only IF YOU WANT. You can enable or disable updating by commands given below..

    If you are using Stretch, upgrade is ok. If you are using Jessie, better dont upgrade


    For Auto Update:
    The auto update will take place only if you have enabled auto-updates by following command:

    Code:
    #To enable auto update:
    sudo piaware-config allow-auto-updates yes 
    
    #To disable auto update:
    sudo piaware-config allow-auto-updates no

    For Manual Update:
    You can manually issue update command from your Flightaware "My ADS-B" page if you enable manual update by issueing following command:

    Code:
    #To enable manual update:
    sudo piaware-config allow-manual-updates yes 
    
    #To disable manual update:
    sudo piaware-config allow-manual-updates no
    Last edited by abcd567; 2018-09-27 at 04:05.

  4. #44
    Captain abcd567's Avatar
    Join Date
    Sep 2013
    Location
    Toronto CYYZ
    Posts
    2,839
    .
    "READ AND SET GAIN FROM BROWSER / DUMP1090-MUTABILITY MAP"


    Step-by-step posted today: Post #7 on Page #1

    .

  5. #45
    Captain abcd567's Avatar
    Join Date
    Sep 2013
    Location
    Toronto CYYZ
    Posts
    2,839
    Hi Peter
    When one browses the post #7 on page #1, the procedure looks lengthy and complicated. However it is actually 4 simple steps

    (1) Install necessary package by apt-get command.

    (2) Create a new file in folder "html", and copy-paste code in new file and save it.

    (3) Create a new folder "gain" and a new file inside it, and copy-paste code in new file and save it.

    (4) Open crontab file and copy-paste into it single line of code to start the setgain at reboot, save crontab file, and reboot Pi.

    After above 4 steps you can get the "Set Gain" button and Drop-down list in a browser at following address:

    IP-of-Pi/dump1090/gain.php

    If someone wants to embed the "Set Gain" Button and Drop-down in dump1090 Map, following 2 additional steps are required:

    (1) Make a backup copy of file gmap.html
    (2) Open file gmap.html in nano editor, copy-paste 3 lines of code, save file. Reload dump1090 Map by Ctrl+F5.

    .
    Last edited by abcd567; 2018-10-10 at 09:05.

  6. #46
    Captain abcd567's Avatar
    Join Date
    Sep 2013
    Location
    Toronto CYYZ
    Posts
    2,839
    UPDATE

    Posted Yesterday 14.10.2018:
    How-to Add "Received Signal Strength Indicator" (RSSI) Column in Aircraft Table of dump1090-mutability.
    Post #10 on Page #1


    Posted Last Week 10.10.2018:
    READ & SET GAIN FROM BROWSER / DUMP1090 MAP
    Post #7 on Page #1

    .

  7. #47
    Passenger
    Join Date
    Apr 2018
    Posts
    14
    Quote Originally Posted by abcd567 View Post
    UPDATE

    Posted Yesterday 14.10.2018:
    How-to Add "Received Signal Strength Indicator" (RSSI) Column in Aircraft Table of dump1090-mutability.
    Post #10 on Page #1


    Posted Last Week 10.10.2018:
    READ & SET GAIN FROM BROWSER / DUMP1090 MAP
    Post #7 on Page #1

    .
    Hi Thanks for this help I did a fresh reinstall and it's all working, @ylis I used the raspian stretch image from the raspberry pi foundation this time, I dont get the ADSB receiver project page or the PiAware local page (http://ipofmypi:8080/)

    Only issue I had was piaware didnt apply my existing key, I followed this link: https://discussions.flightaware.com/...17-07-16/19811

    sudo piaware-config feeder-id mypiawarehexid

    after restarting then I was refeeding there

  8. #48
    Passenger
    Join Date
    Nov 2018
    Posts
    1
    Quote Originally Posted by abcd567 View Post

    Posted Yesterday 14.10.2018:
    How-to Add "Received Signal Strength Indicator" (RSSI) Column in Aircraft Table of dump1090-mutability.
    The function to sort on column header click is missing. Add this to line 848 of script.js:

    Code:
    function sortByRSSI()  { sortBy('rssi', compareNumeric,   function(x) { return x.rssi; }); }

  9. #49
    Captain abcd567's Avatar
    Join Date
    Sep 2013
    Location
    Toronto CYYZ
    Posts
    2,839
    Quote Originally Posted by thutson View Post
    The function to sort on column header click is missing. Add this to line 848 of script.js:

    Code:
    function sortByRSSI()  { sortBy('rssi', compareNumeric,   function(x) { return x.rssi; }); }
    Thanks lot thutson. I have missed your post earlier. Saw it just now and added sort function STEP-2, item 2.3

  10. #50
    Captain abcd567's Avatar
    Join Date
    Sep 2013
    Location
    Toronto CYYZ
    Posts
    2,839
    Scroggie

    Yes, it can be done in following two ways. You have done it by method (b).

    (a) sudo dpkg-reconfigure dump1090-mutability
    (b) sudo nano etc/default/dump1090-mutability


    It is given in STEP (7) of first post

    STEP (7): DUMP1090-MUTABILITY POST INSTALLATION CONFIGURATION

    Code:
    sudo dpkg-reconfigure dump1090-mutability
    For most settings, accept default settings by pressing "Enter".
    For following settings, enter values as shown:
    (a) RTL-SDR dongle to use: 0
    (b) Your receiver's Latitude (in decimal format): xx.xxxx
    (c) Your receiver's Longitude (in decimal format): yy.yyyy
    (d) Interface address to bind to (blank for all interfaces): remove default 127.0.0.1 and leave blank.

    For advance users: Alternatively, you can change the settings by editing the configuration file shown below:

    Code:
    sudo nano /etc/default/dump1090-mutability 
    #after making changes, save file (Ctrl+o) and exit (Ctrl+x) 
    #restart dump1090-mutability sudo /etc/init.d/dump1090-mutability restart 
    #alternative command to restart dump1090-mutability sudo service dump1090-mutability restart

Posting Permissions

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