If you have NOT installed any decoder (such as dump1090-fa, readsb, dump1090-mutability etc) and are using rbfeeder's built-in decoder dump1090-rb, then you can make dump1090-rb configurable by following method. This will enable you to set gain to your desired value (1) You have to do nothing except to copy-paste following bash command in Terminal / PuTTY and press the Enter Key. The bash command will do everything automatically
sudo bash -c "$(wget -O - https://github.com/abcd567a/temp/raw/main/make-dump1090-rb-configurable.sh)"
(2) After the script completes installation, REBOOT your Pisudo reboot
(3) Edit file /etc/default/dump1090-rb to change gain setting from default 49.6 to whatever value you desire (between 0 and 60).
sudo nano /etc/default/dump1090-rb
(4) After editing and saving file /etc/default/dump1090-rb, restart dum1090-rb by following commandsudo systemctl restart dump1090-rb
(5) Check status of dump1090-rb by following command:sudo systemctl status dump1090-rb
NOTE:If user wants to use
automatic gain control (also known as adaptive gain control), he can activate it by adding following two lines at the bottom of file /etc/default/dump1090-rb
--adaptive-range
--adaptive-burst
After adding these two lines, Save & Close file, and restart dump1090-rb
HOW TO REMOVE ABOVE MODIFICATIONS AND REVERT TO ORIGINAL SETUP?Issue following SEVEN (7) Commands (Do not miss any command)sudo systemctl stop dump1090-rb
sudo systemctl disable dump1090-rb
sudo rm /lib/systemd/system/dump1090-rb.service
sudo rm /etc/default/dump1090-rb
sudo rm -rf /usr/lib/dump1090-rb
sed -i 's/^network_mode=.*/network_mode=false/' /etc/rbfeeder.ini
sudo reboot
DETAILED EXPLANATION OF THE MODIFICATIONS DONE BY BASH SCRIPTIf you have not installed any type of decoder (such as dump1090-fa or dump1090-mutability, or readsb etc), you can use rbfeeder's built-in decoder
dump1090-rb .
To use rbfeeder's built-in decoder
dump1090-rb, you have to use following setting in file
/etc/rbfeeder.ini network_mode=falseHowever the Radarbox24 Software Developers have not provided facility for user to change the gain setting.
In view of above difficulty, I have wrtten a script which does following modifications automatically:
(1) In file /etc/rbfeeder.ini changes setting:From
network_mode=false
To
network_mode=true
(2) Creates following systemd service file: /lib/systemd/system/dump1090-rb.service
This systemd service file automatically starts dump1090-rb at boot and reboot. It also provides following commands, enabling user to manually stop, restart, and check status.
sudo systemctl status dump1090-rb
sudo systemctl restart dump1090-rb
sudo systemctl stop dump1090-rb
(3) Creates following user-editable cofig file for dump1090-rb config parameters:/etc/default/dump1090-rb
The default contents of this user-editable file are as follows:
--gain 49.6
--device 0
--net
--net-ri-port 30001
--net-ro-port 30002
--net-sbs-port 30003
--net-bi-port 30004,30104
--net-bo-port 30005
--quiet
--write-json /var/run/dump1090-rb
--mlat
--forward-mlat
--modeac
--fix
--gnss
(a) User can change default gain valu 49.6 to whatever value he wants (between 0 and 60) .
(b) If using more than one dongle, the user can change device index/serial from default "--device 0" to "--device nnnn" where nnnn is the serial number to which he has serialized his dump1090 dongle.
(c) User can add immediately below last line, following two lines:
--lat xx.xxxx
--lon yy.yyyy
(Replace xx.xxxx and yy.yyyy by your actual latitude and longitude)
(d) User can switch from a fixed value of gain to
automatic adaptive gain control by adding following two lines in the file /etc/default/dump1090-rb
--adaptive-burst
--adaptive-range
.