Announcement

Collapse
No announcement yet.

Automated Installation of AcarSDeco2 on RPi

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

  • Automated Installation of AcarSDeco2 on RPi

    (1) Easy Installation - Just copy-paste one command to run bash script and it does everything.

    (2) Automatic start - systemd service automatically starts it at boot/reboot.

    (3) Easy monitoring & control - Provides commands systemctl status, systemctl stop, systemctl start, and systemctl restart.

    (4) Easy configuration - Provides a separate config file in simple format, each config item on a separate line, starting with --

    (5) Blacklisting of rtl-sdr - The installation script creates a blacklist file /etc/modprobe.d/blacklist-rtl-sdr.conf with required blacklist entries, preventing error: failed to connect/open rtl-sdr device.


    FOR DETAILED INSTRUCTIONS:
    https://github.com/abcd567a/ad2/blob/master/README.md



    UNINSTALL

    To uninstall and remove all files, issue following 4 commands:
    Code:
    sudo systemctl stop ad2
    sudo systemctl disable ad2
    sudo rm /lib/systemd/system/ad2.service
    sudo rm -rf /usr/share/ad2

    (1) Running AcarSDeco2 AND dump1090 on Same Pi

    (2) Running AcarSDeco2 AND ModeSDeco2 on Same Pi
    Last edited by abcd567; 2019-09-28, 21:17.

  • #2
    Running AcarSDeco2 AND dump1090 on Same Pi
    AcarSDeco2 requires a dedicated DVB-T dongle.

    If using the method given in first post above, you have installed AcarsDeco2 on a RPi which is already running dump1090 + one DVB-T dongle, then you will need to
    (1) Plugin a second dongle for AcarSDeco2
    (2) Serialize both dongles, one to serial-number 00000101 and other to serial-number 00000102
    (3) Configure AcarsDeco2 and dump1090-mutability (fr24feed in case of PI24 image)

    Steps (2) and (3) are described in detail below.

    Serialize Both Dongles
    Code:
    sudo apt-get update
    sudo apt-get install rtl-sdr
    
    rtl_eeprom -s 00000101 -d 0
    rtl_eeprom -s 00000102 -d 1
    After serialization, unplug, then replug both dongles.

    Use these serial numbers in config files of AcarSDeco2 & dump1090-mutability.

    Configure AcarsDeco2:
    Code:
    sudo nano /usr/share/ad2/ad2.conf
    Add following line below the last line:
    --device-serial 00000102



    Configure Decoder - Case-1:
    If you are using Raspbian image from
    raspberrpi.org/downloads/, and have installed dump1090-mutability by package install, then configure dump1090-mutability to use dongle with serial 00000101
    Code:
    sudo nano /etc/default/dump1090-mutability
    scroll down till you see this line
    DEVICE=0

    Change it to
    DEVICE=00000101

    Configure Decoder - Case-2:
    If you are using PI24 image from
    flightradar24.com/build-your-own, then add serial 00000101 in fr24feed configuration file, and fr24feed will pass this to dump1090-mutability to use dongle with serial 00000101

    Code:
    sudo nano /etc/fr24feed.ini
    scroll down till you see the following line:
    procargs="--gain -10"

    Add serial number to this line so it becomes as below:
    procargs="--gain -10 --device-index 00000101"


    If you do not find the line procargs="--gain -10" in the file, then below the last line add this line:
    procargs="--gain -10 --device-index 00000101"

    Reboot RPi after completing above steps
    Code:
    sudo reboot
    Last edited by abcd567; 2020-05-24, 21:22.

    Comment


    • #3
      Running AcarSDeco2 AND ModeSDeco2 on Same Pi

      If you want, AcarSDeco2 and ModeSDeco2 (Click Here) can be installed on the same RPi, provided:

      (1) Two DVB-T dongles are plugged into RPi, one for ModeSDeco2, other for AcarSDeco2.

      (2) The two dongles are serialized so that each software use its respective dongle+antenna. The dongles can be serialized, say 00000101 & 00000102. In addition, following to be added in config of the two softwares

      ModeSDeco2 config:
      --device-serial 00000101

      AcarSDeco2 config:
      --device-serial 00000102

      How to serialize dongles

      (1) Prepration
      Code:
      ## Install necessary tool
      sudo apt update
      sudo apt install rtl-sdr
      
      ## Stop all programs which use the dongle
      sudo systemctl stop md2 ad2
      (2) Serialize Dongle for ModeSDeco2
      Code:
      ## Plug the dvbt dongle you want to use for ModeSDeco2 (UNPLUG ALL OTHER Dongles)
      ## Issue following command. 
      ## The command will ask [y/n], type y for yes.
      
      rtl_eeprom -s 00000101
      
      ## Un-plug the dvb-t dongle
      (3) Serialize Dongle for AcarSDeco2
      Code:
      ## Plug the dvbt dongle you want to use for AcarSDeco2 (UNPLUG ALL OTHER Dongles)
      ## Issue following command. 
      ## The command will ask [y/n], type y for yes.
      
      rtl_eeprom -s 00000102
      
      ## Un-plug the dvb-t dongle
      (4) Now re-plug both dongles

      (5) Check that dongles have been correctly serialized
      Code:
      rtl_test -t
      (6) Reboot Pi to restore it to normal
      Code:
      sudo reboot
      Last edited by abcd567; 2019-09-28, 21:18.

      Comment

      Working...
      X