Warning: cannot set option 'rtlsdr-device-index', option only supported on PiAware or FlightFeeder SD card images

following this guide Easiest way to add 978 - #2 by abcd567

i am trying to add serialized configs for the pro stick , its set to 00001090 my other rtl dongle is set to 00000978

i am getting this error,

pi@raspberrypi:~ $ sudo piaware-config uat-sdr-device driver=rtlsdr,serial=00000978
warning: cannot set option ‘uat-sdr-device’, option only supported on PiAware or FlightFeeder SD card images
pi@raspberrypi:~ $ sudo piaware-config rtlsdr-device-index 00001090 warning: cannot set option ‘rtlsdr-device-index’, option only supported on PiAware or FlightFeeder SD card images
pi@raspberrypi:~ $

did you follow all 3 commands ?

sudo piaware-config uat-receiver-type sdr
sudo piaware-config rtlsdr-device-index 00001090
sudo piaware-config uat-sdr-device driver=rtlsdr,serial=00000978

Also see [Package Install] How to Install and Configure Piaware on Raspberry Pi OS Image / RPi point 6 if you are not using a SD image

i am not using the image, so i looked at point 6 how to configer piaware on raspberry.

i did the

sudo sed -i ‘s/–device-index [^ ]* /–device-index 00001090 /’ /etc/default/dump1090-fa

but its not adding it to my config???

What happens if you manually edit the config file ?

How to Set / Change Configuration Values?

If you want to change any of the settings listed on page https://flightaware.com/adsb/piaware/advanced_configuration 264, you can do this by using following method:

#Set the value
sudo piaware-config [PARAMETER]  [VALUE]

#Restart piaware to implement the value
sudo systemctl restart piaware

#Now check file /etc/piaware.conf to make sure new setting has been saved
sudo cat /etc/piaware.conf

#Or set the parameter in the config file itself:
Sudo nano /etc/piaware-config
#copy/paste
uat-receiver-type sdr
rtlsdr-device-index 00001090
uat-sdr-device driver=rtlsdr,serial=00000978

save the file, reboot and check the status

ok i added those values to /etc/piaware.conf

i am now error:
pi@raspberrypi:~ $ sudo systemctl status dump978-fa

● dump978-fa.service - dump978 ADS-B UAT receiver
Loaded: loaded (/lib/systemd/system/dump978-fa.service; enabled; vendor pr>
Active: activating (auto-restart) (Result: exit-code) since Sat 2022-05-28>
Docs: PiAware - ADS-B and MLAT Receiver - FlightAware
Process: 781 ExecStart=/usr/share/dump978-fa/start-dump978-fa (code=exited,>
Main PID: 781 (code=exited, status=1/FAILURE)
CPU: 791ms
lines 1-7/7 (END)

my dongles are properly serialized:

pi@raspberrypi:~ $ rtl_test -t
Found 2 device(s):
0: Realtek, RTL2838UHIDIR, SN: 00000978
1: Realtek, RTL2832U, SN: 00001090

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 16.6 19.7 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 44.5 48.0 49.6
[R82XX] PLL not locked!
Sampling at 2048000 S/s.
No E4000 tuner found, aborting.

this is my config:

pi@raspberrypi:~ $ sudo nano /etc/piaware.conf
GNU nano 5.4 /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.

allow-auto-updates yes # updated by fa_piaware_config
allow-manual-updates yes # updated by fa_piaware_config
feeder-id 9493bce0-f0d1-458d-9efa-5916a15ee4f9 # updated by fa_piaware_config
#uat-receiver-type sdr # updated by fa_piaware_config
uat-receiver-type sdr
rtlsdr-device-index 00001090
uat-sdr-device driver=rtlsdr,serial=00000978

1 Like

pi@raspberrypi:~ $ piaware-config
allow-auto-updates yes # value set at /etc/piaware.conf:7
allow-manual-updates yes # value set at /etc/piaware.conf:8
feeder-id 9493bce0-f0d1-458d-9efa-5916a15ee4f9 # value set at /etc/piaware.conf:9
rtlsdr-device-index 00001090 # value set at /etc/piaware.conf:12
uat-receiver-type sdr # value set at /etc/piaware.conf:11
uat-sdr-device driver=rtlsdr,serial=00000978 # value set at /etc/piaware.conf:13
pi@raspberrypi:~ $

i unplugged the dongle and plugged it back in, restarted dump978

now getting a claim error

pi@raspberrypi:~ $ 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 Sat 2022-05-28 00:41:01 PDT; 2s ago
Docs: PiAware - ADS-B and MLAT Receiver - FlightAware
Main PID: 1536 (dump978-fa)
Tasks: 1 (limit: 415)
CPU: 747ms
CGroup: /system.slice/dump978-fa.service
└─1536 /usr/bin/dump978-fa --sdr driver=rtlsdr,serial=00000978 --format CS8 --raw-port 30978 --json-port 30979

May 28 00:41:01 raspberrypi systemd[1]: Started dump978 ADS-B UAT receiver.
May 28 00:41:01 raspberrypi dump978-fa[1536]: raw-port: listening for connections on 0.0.0.0:30978
May 28 00:41:01 raspberrypi dump978-fa[1536]: raw-port: listening for connections on [::]:30978
May 28 00:41:01 raspberrypi dump978-fa[1536]: json-port: listening for connections on 0.0.0.0:30979
May 28 00:41:01 raspberrypi dump978-fa[1536]: json-port: listening for connections on [::]:30979
May 28 00:41:02 raspberrypi dump978-fa[1536]: Found Rafael Micro R820T tuner
May 28 00:41:02 raspberrypi dump978-fa[1536]: Found Rafael Micro R820T tuner
May 28 00:41:03 raspberrypi dump978-fa[1536]: usb_claim_interface error -6
May 28 00:41:03 raspberrypi dump978-fa[1536]: SoapySDR: using maximum manual gain 49.6 dB
May 28 00:41:03 raspberrypi dump978-fa[1536]: SoapySDR: using stream setting buffsize=262144

Config for “Raspberry Pi OS” with package install of piaware, dump1090-fa, and dump978-fa

Dongles serialized as 00001090 & 00000978

 

sudo piaware-config uat-receiver-type sdr  

sudo sed -i 's/^RECEIVER_SERIAL=.*/RECEIVER_SERIAL=00001090/' /etc/default/dump1090-fa   

sudo sed -i 's/driver=rtlsdr[^ ]* /driver=rtlsdr,serial=00000978 /' /etc/default/dump978-fa   

sudo reboot  

 

ok no longer getting the claim error but lots of input overruns (sample data dropped)

pi@raspberrypi:~ $ ^C
pi@raspberrypi:~ $ 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 Sat 2022-05-28 01:36:14 PDT; 6min ago

Main PID: 347 (dump978-fa)
Tasks: 4 (limit: 415)
CPU: 2min 21.644s
CGroup: /system.slice/dump978-fa.service
└─347 /usr/bin/dump978-fa --sdr driver=rtlsdr,serial=00000978 --format CS8 --raw-port 30978 --json-port 30979

May 28 01:36:21 raspberrypi dump978-fa[347]: SoapySDR: using maximum manual gain 49.6 dB
May 28 01:36:21 raspberrypi dump978-fa[347]: SoapySDR: using stream setting buffsize=262144
May 28 01:36:22 raspberrypi dump978-fa[347]: [::]:30978: accepted a connection from [::1]:46842
May 28 01:36:37 raspberrypi dump978-fa[347]: SoapySDR: 4 recent input overruns (sample data dropped)
May 28 01:37:08 raspberrypi dump978-fa[347]: SoapySDR: 7 recent input overruns (sample data dropped)
May 28 01:37:15 raspberrypi dump978-fa[347]: [::]:30978: accepted a connection from [::1]:46844
May 28 01:37:23 raspberrypi dump978-fa[347]: SoapySDR: 7 recent input overruns (sample data dropped)
May 28 01:37:38 raspberrypi dump978-fa[347]: SoapySDR: 2 recent input overruns (sample data dropped)
May 28 01:37:57 raspberrypi dump978-fa[347]: SoapySDR: 1 recent input overruns (sample data dropped)
May 28 01:38:12 raspberrypi dump978-fa[347]: SoapySDR: 1 recent input overruns (sample data dropped)
pi@raspberrypi:~ $

its a pi zero, should i try this on something like a pi 4 ?

well installed this on a pi 4

now i get connection reset by peer for dump978-fa

pi@raspberrypi:/var/log $ 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 Sat 2022-05-28 02:41:38 PDT; 32min ago
Docs: PiAware - ADS-B and MLAT Receiver - FlightAware
Main PID: 493 (dump978-fa)
Tasks: 4 (limit: 3720)
CPU: 2min 36.965s
CGroup: /system.slice/dump978-fa.service
└─493 /usr/bin/dump978-fa --sdr driver=rtlsdr,serial=00000978 --format CS8 --raw-port 30978 --json-port 30979

May 28 02:41:40 raspberrypi dump978-fa[493]: [R82XX] PLL not locked!
May 28 02:41:40 raspberrypi dump978-fa[493]: SoapySDR: using maximum manual gain 49.6 dB
May 28 02:41:41 raspberrypi dump978-fa[493]: SoapySDR: using stream setting buffsize=262144
May 28 02:41:41 raspberrypi dump978-fa[493]: Allocating 15 zero-copy buffers
May 28 02:41:41 raspberrypi dump978-fa[493]: [::]:30978: accepted a connection from [::1]:37196
May 28 02:53:57 raspberrypi dump978-fa[493]: [::1]:37196: connection closed
May 28 02:53:57 raspberrypi dump978-fa[493]: [::]:30978: accepted a connection from [::1]:37198
May 28 02:53:57 raspberrypi dump978-fa[493]: [::]:30978: accepted a connection from [::1]:37200
May 28 02:55:33 raspberrypi dump978-fa[493]: [::]:30978: accepted a connection from [::1]:41105
May 28 02:55:33 raspberrypi dump978-fa[493]: [::1]:41105: connection error: Connection reset by peer

that looks pretty normal.

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