Need to adjust the Gain

I missed those commands in the online reading.

however systemctrl does not work. Says command not found error… though the config command did work, I changed it from -10 to -5 and rebooted the PI.

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

The right command is systemctl without r

Ohyeah…I made sure I spelled it right too. I’m confused as you are.

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

[quote=“abcd567”]

AH ok yeah now it works =)

As “test” text goes, when I type my entire text I got an error message. Why?

Forbidden

You don’t have permission to access /posting.php on this server.

sudo piaware-config rtlsdr-gain 40

dump1090-fa --device-index 0 --gain -10 –

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.

I haven’t messed with it since.

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

pi@raspberrypi:~ $ sudo piaware-config rtlsdr-gain 40
Set rtlsdr-gain to 40 in / etc / piaware.conf:11

pi@raspberrypi:~ $ sudo systemctl restart dump1090-fa

pi@raspberrypi:~ $ sudo systemctl status dump1090-fa -l

● dump1090-fa.service - dump1090 ADS-B receiver (FlightAware customization)
Loaded: loaded ( / lib / systemd / system / dump1090-fa.service; enabled)
Active: active (running) since Sun 2017-07-09 18:18:33 CEST; 8s ago
Docs: https: / / flightaware.com/adsb/piaware/
Main PID: 2142 (dump1090-fa)
CGroup: / system.slice / dump1090-fa.service
└─2142 / usr/bin / dump1090-fa --device-index 0 --gain -10 --ppm 0 --net-bo-port 30005 --max-range 360 --net --net-heartbeat 60 --net-ro-size 1000 --net-ro-interval 1 --net-ri-port 0 --net-ro-port 30002 --net-sbs-port 30003 --net-bi-port 30004,30104 --net-bo-port 30005 --json-location-accuracy 1 --write-json / run / dump1090-fa --quiet

Jul 09 18:18:33 raspberrypi systemd[1]: Started dump1090 ADS-B receiver (FlightAware customization).
Jul 09 18:18:33 raspberrypi dump1090-fa[2142]: Sun Jul 9 18:18:33 2017 CEST dump1090-fa 3.5.0 starting up.
Jul 09 18:18:33 raspberrypi dump1090-fa[2142]: rtlsdr: using device #0: Generic RTL2832U (Realtek, RTL2832U, SN 00001000)
Jul 09 18:18:33 raspberrypi dump1090-fa[2142]: Found Rafael Micro R820T tuner
Jul 09 18:18:33 raspberrypi dump1090-fa[2142]: rtlsdr: enabling tuner AGC

3.5 SD Card, Piaware image

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



pi@raspberrypi:~ $ sudo nano/etc/default/dump1090-fa


(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?

The signal is getting too strong.

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 :wink:

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.

One Pi, Two Dongles, Two Maps, Two Receivers

.

[u]INDEPENDENT[/u] AND [u]AGGREGATED[/u] SETUPS OF 2 INSTANCES OF DUMP1090

.

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?

if you have 3 RPi’s (A, B, A+B), the feed to Flightaware will be only from those RPi’s on which you install Piaware data feeder.

However if you have installed Piaware data feeder on RPi A+B, then you will have to turn MLAT off on this RPi. In case you dont turn off MLAT, the Flightaware System will detect merged feed and will disable MLAT

For non-merged RPi’s A & B, you can feed Flightaware with MLAT turned ON.

Yeah i feed both dongles to FA separately and then on one of the 2 computers i have a net-only dump1090 running that combines all the data into one view.

Basically you have your ordinary dump1090-fa and piaware installation on both computers.

Then on the one you want the composite view you add a net-only version of dump1090 and use socat to feed it all the data.