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 you install it on a RPi already running dump1090 and one DVB-T dongle, then you will need to plugin a second dongle for AcarSDeco2, and serialize both dongles, one serial-number 00000101 and other serial-number 00000102

    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 dump1090 and AcarSDeco2.

    dump1090-mutability
    Code:
    sudo nano /etc/default/dump1090-mutability
    scroll down till you see this line
    DEVICE=0

    Change it to
    DEVICE=00000101

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

    If you have not installed dump1090 and have installed only AcarSDeco2, then only one DVB-T dongle is required. In this case no need to serialize the dongle.
    Last edited by abcd567; 2019-09-28, 21:11.

    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