Question: What does gain -10 actually mean?
Answer: Enable the tuner AGC.
Question: So that is the same as having GAIN="agc" in /etc/default/dump1090-mutability ??
Answer: Yes, if you look at the init script you will see that AGC is translated to -10 and if you look at the dump1090 source then you will see that -10 turns on AGC.
-10 is a special value meaning "turn on AGC" (for ADS-B, the AGC doesn't actually give auto-gain, just a high gain. Usually AGC will behave like "more gain than max")
-10 and agc are identical, they both end up passing "--gain -10" to dump1090, see the /etc/init.d/dump1090-mutability script:
Code:
pi@raspberrypi:~ $ cat /etc/init.d/dump1090-mutability #!/bin/sh ### BEGIN INIT INFO ............. ............. case "x$GAIN" in x|xmax) ;; xagc) ARGS="$ARGS --gain -10" ;; *) ARGS="$ARGS --gain $GAIN" ;; esac ............. .............
For regular gains, you want a positive value in the 0..50 range (nominally in dB). It will pick the closest gain step to the value you give. If you specify any negative number (other than -10), then the closest gain is 0dB: minimum gain!
AVAILABLE GAIN VALUES:
pi@raspberrypi:~ $ sudo systemctl stop dump1090-mutability
pi@raspberrypi:~ $ rtl_test
Found 1 device(s):
0: Realtek, RTL2838UHIDIR, SN: 00000001
Using device 0: Generic RTL2832U OEM
Found Rafael Micro R820T tuner
Supported gain values (29): 0.0 0.9 1.4 2.7 3.7 7.7 8.7 12.5 14.4 15.7 1 20.7 22.9 25.4 28.0 29.7 32.8 33.8 36.4 37.2 38.6 40.2 42.1 43.4 43.9 4 49.6
Sampling at 2048000 S/s.
Info: This tool will continuously read from the device, and report if
samples get lost. If you observe no further output, everything is fine.
Reading samples in async mode...
lost at least 16 bytes
^CSignal caught, exiting!
User cancel, exiting...
Samples per million lost (minimum): 0
pi@raspberrypi:~ $
pi@raspberrypi:~ $ rtl_test
Found 1 device(s):
0: Realtek, RTL2838UHIDIR, SN: 00000001
Using device 0: Generic RTL2832U OEM
Found Rafael Micro R820T tuner
Supported gain values (29): 0.0 0.9 1.4 2.7 3.7 7.7 8.7 12.5 14.4 15.7 1 20.7 22.9 25.4 28.0 29.7 32.8 33.8 36.4 37.2 38.6 40.2 42.1 43.4 43.9 4 49.6
Sampling at 2048000 S/s.
Info: This tool will continuously read from the device, and report if
samples get lost. If you observe no further output, everything is fine.
Reading samples in async mode...
lost at least 16 bytes
^CSignal caught, exiting!
User cancel, exiting...
Samples per million lost (minimum): 0
pi@raspberrypi:~ $
Leave a comment: