Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: RTl_SDR v3 bias tee power on/off

  1. #11
    Passenger jackthom's Avatar
    Join Date
    May 2018
    Location
    Ponteland, Northumberland, EGNT
    Posts
    23
    I have a setup using dump1090-mutability 1.15 which is not started by fr24feed (I can't get it to take control) and has to be set to start at boot...

    Code:
    sudo nano /etc/default/dump1090-mutability
    #changed "no" to "yes"
    START_DUMP1090="yes"
    Is there some alternative way of switching on the bias tee, or alternatively how might fr24feed be encouraged to control the startup of dump1090-mutability?

    My sincere apologies if this has been covered before but I haven't been able to find a fix so far.
    Last edited by jackthom; 2018-09-05 at 11:12.

  2. #12
    Captain abcd567's Avatar
    Join Date
    Sep 2013
    Location
    Toronto CYYZ
    Posts
    2,671
    Copy of my post #103 dated 2018-05-04 in the thread "How to Install dump1090-mutability_1.15~dev on RPi"

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

  3. #13
    Passenger jackthom's Avatar
    Join Date
    May 2018
    Location
    Ponteland, Northumberland, EGNT
    Posts
    23
    LNA working perfectly with bias tee, thank you again abcd567.
    Last edited by jackthom; 2018-09-06 at 11:41.

  4. #14
    Passenger
    Join Date
    Jan 2019
    Posts
    15
    Hello, so it mean the biast-t don't start with RP-Pi?
    So if my electricity power off, I must into RP to switch on manualy?
    Thanks

  5. #15
    Passenger
    Join Date
    Jan 2019
    Posts
    4
    For me the thing that worked is:
    Code:
    sudo crontab -e
    And than I added:
    Code:
    @reboot sudo service dump1090-fa stop && cd ~/rtl_biast/build/src && ./rtl_bias$
    This made the setup finally work, even after a power off and reboot.

  6. #16
    Captain
    Join Date
    Apr 2018
    Posts
    604
    The bias-t needs to be activated on every boot.

    Depending on which dump1090 you use there are other methods this can be accomplished.
    For dump1090-fa a method is described here: https://www.rtl-sdr.com/getting-the-...-ads-b-images/

    This will also work for non piaware images running dump1090-fa.

Posting Permissions

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