So I’m trying to reduce the gain a bit on my flightaware tracker. I’m 7 miles from the airport.
I’m logged in an PI but the piaware.conf is owned by piaware, yet I can’t change to piaware username, and root is not available. either. ‘permission denied’
sudo piaware-config rtlsdr-gain 30 (replace 30 by the gain value you want to set)
sudo piaware-config -show rtlsdr-gain
sudo systemctrl restart dump1090-fa (must restart dump1090-fa to implement the new gain value)
sudo systemctrl status dump1090-fa -l
Any negative gain values (except -10) will set the gain to ZERO. Use positive numbers.
-10 is a special number which sets the gain to AGC (automatic gain control). The possible range is 0 to 49.6
however systemctrl does not work. Says command not found error
What I typed before “EXAMPLE”, and then you copied it, has an extra r (systemctrl instead of systemctl), It was originally my mistake, which you repeated.
Better copy-paste commands from below EXAMPLE, which were copy-pated ftom SSH console
When I do the changes as indicated above, it never accepts it in the system, either. It says it changes it, but when you do the long display of the information, it still says its -10.
you have to add spaces before and after all slashes / in the text like I have done in two lines below, else it will say “Forbidden”.
#! / bin / bash
/ lib / systemd / system / dump1090-fa.service
Make a test post and copy-paste above two lines and and hit “Preview” button, it will show ok.
Now remove spaces before and after the slashes / and again hit “Preview” button, and see what happens.
(1) Which image you have written to your microSD Card?
Piaware 3.5 image (SD Card)
OR
Raspbian Jessie image, then installed dump1090-fa and Piaware data feeder (add-on)
(2) After the command
sudo piaware-config rtlsdr-gain 40
did it say?
Set rtlsdr-gain to 40 in /boot/piaware-config.txt:xx
You got it wrong.
If it was Piaware 3.5 SD Card image, it will be “pi@piaware” , not “pi@raspberrypi”
Your install is Raspbian Jessie image with Piaware and dump1090-fa add-on
In this case sudo piaware-config command will be saved in piaware.conf file, but will NOT be transferred to dump1090-fa settings.
You have to edit file “dump1090-fa” and change gain setting.
(1) Give following command to open file dump1090-fa in editor nano
(2) In the file opened in nano, change gain -10 to 40 (Caution: do NOT use negative value **-**40).
RECEIVER_OPTIONS=“–device-index 0 --gain 40 --ppm 0 --net-bo-port 30005”
(3) Save file and close editor
(4) Now restart dump1090-fa:
sudo systemctl restart dump1090-fa
(5) Check status:
sudo systemctl status dump1090-fa -l
Last line of output will show gain actually set:
…
raspberrypi dump1090-fa[32553]: rtlsdr: tuner gain set to 40.2 dB
Besides changing, leaving for a few days in a “I have no idea what I am doing, so lets just hunt and hope” approach, does anyone have any idea what might work well?
I can see craft 175-220 miles at max. When some craft come overhead, less than ~4000 feet, within 1 mile, the RSSI goes down to (up to?) -1.6 and then I get a "not seen for x seconds).
When they get about a mile away, they pop back up.
If I have the craft selected, I can see it goes to -1.5-1.6, as soon as it falls back to -1.7 it gets goo data.
So besides hunt and peck, anyone have any real data on the best approach?
Reduce the gain by 6. You might well lose a little bit of range but the planes close by will be tracked all the way (or nearly you might need to reduce further).
What is your current gain setting? If you have not set anything yet start with 48 and try that.
Probably a stupid suggestion but wouldn’t it be possible to combine (VRS/modesmixer2) the data of 2 receivers at the same place, one at high gain with an outdoor antenna and the other at low gain with a small indoor antenna?
With VRS it’s very simple. You just choose another data source?
But you can also combine it just with dump1090-fa and socat.
You probably want to run 2 piaware and 3 dump1090-fa
There is info on how to do it spread around multiple threads.
I wanted to make a new HOWTO for that setup but i haven’t gotten around to it.
If you are looking to set it up with the 2 piaware and 3 dump1090-fa then i can try and write something preliminary up in the next couple of days.
The VRS version gets slightly more complicated if you want to run the 2nd dongle on the same pi as the first.
But running 2 dongles has been described i’m pretty sure.
I always keep a backup Pi & FA dongle at hand so I could use these for the short distance traffic and turn up the gain on my other Pi and merge both streams into one ‘wide dynamic gain’ receiver?
What about the mid-range traffic that will be detected by both receivers, will duplicated messages be filtered out? Will I have 3 separate feeds (A, B, A+B) going to FA or only the A+B feed and what about MLAT?