Pi Aware 6, with auto gain

Hi Flightaware staff,

Must be getting close to Pi Aware 6, with auto gain release … :thinking: :thinking:

This one you have already built and installed on Debian Bullseye arm64 on RPI Model 4:

It already has adaptive gain control:

pi@rpi2-20210823:~$ sudo systemctl status dump1090-fa  

● dump1090-fa.service - dump1090 ADS-B receiver (FlightAware customization)
     Loaded: loaded (/lib/systemd/system/dump1090-fa.service; enabled; vendor preset: enabled)
     Active: active (running) since Sun 2021-08-29 17:51:03 EDT; 2h 36min ago
       Docs: https://flightaware.com/adsb/piaware/
   Main PID: 4302 (dump1090-fa)
      Tasks: 3 (limit: 2001)
     Memory: 10.6M
        CPU: 1h 31min 52.974s
     CGroup: /system.slice/dump1090-fa.service
             └─4302 /usr/bin/dump1090-fa --quiet --device-type rtlsdr --device-index 00001090 --gain 60 --adaptive-range --fix --lat 43.5xxx --lon -79.6xxx>

Aug 29 18:51:34 rpi2-20210823 dump1090-fa[4302]: adaptive: changing gain from 58.6dB (step 29) to 49.6dB (step 28) because: probing dynamic range gain lower>
Aug 29 18:51:34 rpi2-20210823 dump1090-fa[4302]: rtlsdr: tuner gain set to 49.6 dB (gain step 28)
Aug 29 18:51:44 rpi2-20210823 dump1090-fa[4302]: adaptive: available dynamic range (38.2dB) >= required dynamic range (30.0dB), stopping downwards scan here
Aug 29 19:51:44 rpi2-20210823 dump1090-fa[4302]: adaptive: start periodic scan for acceptable dynamic range at increased gain
Aug 29 19:51:44 rpi2-20210823 dump1090-fa[4302]: adaptive: changing gain from 49.6dB (step 28) to 58.6dB (step 29) because: periodic re-probing of dynamic r>
Aug 29 19:51:44 rpi2-20210823 dump1090-fa[4302]: rtlsdr: tuner gain set to about 58.6 dB (gain step 29) (tuner AGC enabled)
Aug 29 19:51:54 rpi2-20210823 dump1090-fa[4302]: adaptive: available dynamic range (28.8dB) < required dynamic range (30.0dB), switching to downward scan
Aug 29 19:51:54 rpi2-20210823 dump1090-fa[4302]: adaptive: changing gain from 58.6dB (step 29) to 49.6dB (step 28) because: probing dynamic range gain lower>
Aug 29 19:51:54 rpi2-20210823 dump1090-fa[4302]: rtlsdr: tuner gain set to 49.6 dB (gain step 28)
Aug 29 19:52:04 rpi2-20210823 dump1090-fa[4302]: adaptive: available dynamic range (38.2dB) >= required dynamic range (30.0dB), stopping downwards scan here

Just curious, are you aware of dump978 also having auto gain? I have a Mode-S Beast for my 1090 stuff and only use a RTL for my 978 (at my home site, my office site uses RTLs for both and I am excited to see if that makes much difference there since my office is at the airport).

No, I did not built and install dump978-fa ver 6~dev. I built and installed dump978-fa ver 5.0

I did built and install piaware ver 6.0~dev and dump1090-fa ver 6.0~dev

 

I will try to build dump978-faver 6.0 and see

Ahh but this is not the Flightaware version, that was the question.

You are wrong and you are right.

You are wrong that it is not Flightaware version, as the source code is from Flightaware Github repository.

You are right as ver 6.0~dev is NOT Officially released version.

1 Like

 

OK, built and installed dump978-fa ver 6.0~dev.

pi@rpi2-20210823:~$ apt-cache policy dump978-fa
dump978-fa:
  Installed: 6.0~dev
  Candidate: 6.0~dev
  Version table:
 *** 6.0~dev 100
        100 /var/lib/dpkg/status

 

Sorry, it does NOT have adaptive gain.

The default gain setting is:
SoapySDR: using maximum manual gain 49.6 dB

 

pi@rpi2-20210823:~$ sudo systemctl status dump978-fa

● dump978-fa.service - dump978 ADS-B UAT receiver
     Loaded: loaded (/lib/systemd/system/dump978-fa.service; enabled; vendor preset: enabled)
     Active: active (running) since Sun 2021-08-29 21:41:20 EDT; 1min 33s ago
       Docs: https://flightaware.com/adsb/piaware/
   Main PID: 385 (dump978-fa)
      Tasks: 4 (limit: 2001)
     Memory: 21.4M
        CPU: 25.172s
     CGroup: /system.slice/dump978-fa.service
             └─385 /usr/bin/dump978-fa --sdr driver=rtlsdr,serial=00000978 --format CS8 --raw-port 30978 --json-port 30979

Aug 29 21:41:26 rpi2-20210823 dump978-fa[385]: Found Rafael Micro R820T tuner
Aug 29 21:41:27 rpi2-20210823 dump978-fa[385]: Exact sample rate is: 2083333.135571 Hz
Aug 29 21:41:27 rpi2-20210823 dump978-fa[385]: [R82XX] PLL not locked!
Aug 29 21:41:27 rpi2-20210823 dump978-fa[385]: SoapySDR: using maximum manual gain 49.6 dB
Aug 29 21:41:27 rpi2-20210823 dump978-fa[385]: SoapySDR: using stream setting buffsize=262144
Aug 29 21:41:27 rpi2-20210823 dump978-fa[385]: [::]:30978: accepted a connection from [::1]:43348
Aug 29 21:41:27 rpi2-20210823 dump978-fa[385]: 0.0.0.0:30979: accepted a connection from 127.0.0.1:39480
Aug 29 21:41:27 rpi2-20210823 dump978-fa[385]: Allocating 15 zero-copy buffers
Aug 29 21:41:27 rpi2-20210823 dump978-fa[385]: [::]:30978: accepted a connection from [::1]:43374
Aug 29 21:41:37 rpi2-20210823 dump978-fa[385]: 0.0.0.0:30978: accepted a connection from 10.0.0.22:37482

Thanks for testing. I figured 978 won’t get it for a while but wasn’t sure.

6.0 is now available for download

2 Likes

We will be making the announcement shortly here and on social media, but yes. PiAware 6 is available for upgrades and downloads.

2 Likes

Do we know if auto gain is automatically applied or do we need to do something in a setting?

1 Like

It will not be automatically applied to existing installs that are upgrading. We did not want to mess with your configurations. Instructions on how to apply it are forthcoming.

6 Likes

The instructions say to go to /etc/default/dump1090-fa to set adaptive gain however that command on SSH comes back with permission denied :thinking:

Did you try sudo nano /etc/default/dump1090-fa ?

Thank you. I have now successfully edited it to yes.

Untitled

It looks to me as though you have a piaware image, not a package install.
Note the line telling you the file you have edited will be overwritten.
The file you want to edit for the piaware image is /boot/piaware-config.txt

Thank you for the advice I have now edited and saved it

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.