I have a new FlightAware Pro Stick on its way. Somewhere I saw where I could change the gain, but how do I see what’s the gain is currently set to?
I’ve see references in other posts to a conf file but I don’t have a /etc/piaware.conf file. Nothing in /boot either. So where does Piaware store its configuration?
This is running Rasbian Stretch Lite released on 2018-03-13.
pi@raspberrypi:~ $ sudo cat /etc/piaware.conf
# This file configures piaware and related software.
# You can edit it directly or use piaware-config from the command line
# to view and change settings.
#
# If /boot/piaware-config.txt also exists, then settings present in
# that file will override settings in this file.
feeder-id xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx # updated by fa_piaware_config
allow-auto-updates yes # updated by fa_piaware_config
allow-manual-updates yes # updated by fa_piaware_config
pi@raspberrypi:~ $
#dump1090-fa configuration
#This is read by the systemd service file as an environment file,
#and evaluated by some scripts as a POSIX shell fragment.
#If you are using a PiAware sdcard image, this config file is regenerated
#on boot based on the contents of piaware-config.txt; any changes made to this
#file will be lost.
RECEIVER_OPTIONS="--device-index 0 --gain -10 --lat 43.xxxx --lon -79.xxxx --ppm 0 --net-bo-port 30005"
DECODER_OPTIONS="--max-range 360"
NET_OPTIONS="--net --net-heartbeat 60 --net-ro-size 1000 --net-ro-interval 1 --net-ri-port 0 --net-ro-port 30002 --$
JSON_OPTIONS="--json-location-accuracy 1"
In line starting with “RECEIVER_OPTIONS”, change the gain value to whatever value you desire:
Save (Ctrl+o) and Close (Ctrl+x) file.
Now restart dump1090-fa for new gain value to be implemented
I had already found that, but when I run piaware-config I get
“warning: /etc/piaware.conf: failed to read config file: couldn’t open “/etc/piaware.conf”: permission denied”
If I run sudo piaware-config It just goes back to a command prompt.
I mispoke earlier, there is a file /etc/piaware.conf, but if I do “sudo less /etc/piaware.conf”
This file configures piaware and related software.
You can edit it directly or use piaware-config from the command line
to view and change settings.
If /boot/piaware-config.txt also exists, then settings present in
that file will override settings in this file.
(END)
it has no settings and there is no /boot/piaware-config.txt file.
If you want to adjust GAIN in your install, then you have to forget piaware-config.
In your install, irrespective where piaware-config stores the gain value, piaware will NOT SET THE GAIN OF DUMP1090-FA.
The gain value in the file etc/default/dump1090-fa is the value which determines the gain. This value is controlled and over-written by piaware-conf ONLY in Piaware SD Card image, NOT in Stretch + Piaware add-on.
SHORT ANSWER:
Edit file /etc/default/dump1090-fa and set gain value there, and restart dump1090-fa.
any value from zero to 50 is valid. Any value between these limits you enter, the dump1090-fa will adjust gain to its neares value. For example maximum gain is 49.6. If you enter 50 or 51 or 49, dump1090-fa will set the gain to nearest value i.e. 49.6.
If a negative number is used such as -4 or -11, the gain will be set to ZERO.
The only negative value dump1090 accepts is -10. This does not mean gain is set to -10. The value -10 is a special value and it switches the dongle to AGC (Automatic Gain Control) mode.
Thanks for all the great info. The new FA dongle seems to be working slightly better than the NOOELEC that I had. I’m going to let it run for a while before I go making any changes.