AirNav Systems Forum
AirNav Radar => AirNav Radar Discussion => Topic started by: cm1702 on June 02, 2022, 02:31:21 PM
-
Hi there,
I've been feeding FR24 for some Years with my Pi1, no problems. Yesterday I've installed the RBFeeder (with the instructions from the RB Website) and it works fine, but my Pi didn't uploaded Data to FR24 anymore. Today I've found out that the Pi will send only Data to the Tracking Page for the Feeder I started 1st on the Pi. So if I started RBFeeder before FR24, the Date goes to RB and the other way. Can someone tell me which setting I have to change to Feed both Websites?
Thanks!
-
Please see this thread it may help https://forum.radarbox24.com/index.php?topic=10201.0
Alan
-
thanks for the link but I don't find the mistake. Both Feeders are running, but my Pi isn't sending Data to them simultaneously :(
-
Unfortunatley I know nothing about Linux, hopefully abcd will come to your aid
Alan
-
Both FR24 and RB24 have integral dump1090. They both can be configured to either use their integral dump1090, or use another independently running dump1090.
It seems you have configured both to use their integral dump1090. Since there is only one dongle, the dump1090 of the one you start first grabs the dongle and works ok, while the dump1090 of other one is left without any dongle and fails.
Please post output of following two commands. These outputs will show config settings of FR24 and RB24:
cat /etc/fr24feed.ini
cat /etc/rbfeeder.ini
-
—- FR24 —-
receiver="dvbt"
fr24key="XXXXX"
host="192.168.XXXXX"
path="/usr/lib/fr24/dump1090"
bs="yes"
raw="no"
logmode="0"
windowmode="0"
logpath="/var/log/fr24feed"
mpx="no"
mlat="no"
mlat-without-gps="no"
—- RBFeeder —-
[client]
network_mode=true
log_file=/var/log/rbfeeder.log
disable_log=1
key=XXXXX
sn=XXXXX
lat=XXXX
lon=XXXX
alt=80
[network]
mode=beast
external_port=30005
external_host=127.0.0.1
[mlat]
autostart_mlat=true
#mlat_cmd=/usr/bin/python3.9 /usr/bin/mlat-client
[dump978]
#dump978_enabled=true
-
(1) Change fr24feed. ini
Issue following command:
sudo nano /etc/fr24feed.ini
In file opened, make changes as shown in red below:
receiver="avr-tcp"
fr24key="XXXXX"
host="127.0.0.1:30002"
path="/usr/lib/fr24/dump1090"
bs="no"
raw="no"
logmode="0"
windowmode="0"
logpath="/var/log/fr24feed"
mpx="no"
mlat="no"
mlat-without-gps="no"
Save file (press Ctrl and o keys together) and close file (press Ctrl and x keys together)
(2) Modify dump1090-mutability config to make it start automatically
Issue following command:
sudo nano /etc/default/dump1090-mutability
In file opened, scroll down & locate the line
START_DUMP1090="no"
Change "no" to "yes" so the line becomes:
START_DUMP1090="yes"
Save file (press Ctrl and o keys together) and close file (press Ctrl and x keys together)
(3) Reboot RPi
sudo reboot
(4) After reboot, check status of fr24feed and rbfeeder. Both should now be OK.
.
-
So I did the changes but unfortunately, it seams like it doesn't work :(
Can you tell me the Command to check the RBFeeder Status, I don't find it. The Webinterface says "online" but Packages "0".
FR24 says the following:
pi@raspberrypi:~ $ sudo fr24feed-status
[ ok ] FR24 Feeder/Decoder Process: running.
[ ok ] FR24 Stats Timestamp: 2022-06-04 16:55:08.
[ ok ] FR24 Link: connected [UDP].
[ ok ] FR24 Radar: T-EDDV147.
[ ok ] FR24 Tracked AC: 0.
[FAIL] Receiver: down ... failed!
[FAIL] FR24 MLAT: not running ... failed!
The Config-Files looks like this now:
--- FR24 ---
receiver="avr-tcp"
fr24key="XXXX"
host="127.0.0.1:30002"
path="/usr/lib/fr24/dump1090"
bs="no"
raw="no"
logmode="0"
windowmode="0"
logpath="/var/log/fr24feed"
mpx="no"
mlat="no"
mlat-without-gps="no"
---RBFeeder---
[client]
network_mode=true
log_file=/var/log/rbfeeder.log
disable_log=1
key=XXXX
sn=XXXX
lat=XXXX
lon=XXXX
alt=80
[network]
mode=beast
external_port=30005
external_host=127.0.0.1
[mlat]
autostart_mlat=true
#mlat_cmd=/usr/bin/python3.9 /usr/bin/mlat-client
[dump978]
#dump978_enabled=true
---dump1090---
START_DUMP1090="yes"
EDIT:
just saw this on the dump1090 Map: see Screenshot
EDIT2: I've found out that as soon as I change "DVBT" in the FR24Feed to something else it doesn't work anymore. DVBT works fine - but RBFeeder is still dead
-
To check your Dongle is healthy, please issue following 3 commands, and post output of last command below:
sudo apt install rtl-sdr
sudo systemctl stop dump1090-mutability
rtl_test -t
.
-
Found 1 device(s):
0: Realtek, RTL2838UHIDIR, SN: 00000001
Using device 0: Generic RTL2832U OEM
usb_claim_interface error -6
Failed to open rtlsdr device #0.
I guess the dongle receives signals as you can see in the Screenshot.
-
If you want both FR24 and RB24 to work, then you MUST change
(1) receiver="dvbt" to receiver ="avr-tcp"
AND
(2) START_DUMP1090="no" to START_DUMP1090="yes"
(3) must SAVE both files after making above changes
(4) REBOOT Pi
Please do it now even if FR24 stops. We will fix FR24 finally.
Using device 0: Generic RTL2832U OEM
usb_claim_interface error -6
Failed to open rtlsdr device #0.
Above shows that when you issued command "rtl_test -t", either dump 1090-mutability was using the dongle, or RB24's internal dump1090 or may be dump978-rb is using it if you installed dump978-rb by mistake.
Please post output of following command:
apt-cache policy dump978-rb
..
-
okay I've changed everything as advised.
I've also ran the "rtl_test -t" Command again after the changes, here is the new output:
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 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.
and here is the output after the new command:
dump978-rb:
Installed: (none)
Candidate: 1.0.1+stretch
Version table:
1.0.1+stretch 500
500 https://apt.rb24.com stretch/main armhf Packages
but now everything is dead (Screenshot)
-
Give following TWO IMPORTANT commands:
sudo usermod -a -G plugdev dump1090
sudo reboot
After reboot, check status by following commands:
Also post output of all these commands
sudo systemctl status dump1090-mutability
sudo systemctl status rbfeeder
sudo systemctl status fr24feed
sudo fr24-feed status
Also check map at
IP-of-Pi/dump1090/gmap.html
Clear Browser cache (Ctrl+Shift+Delete) and Reload Browser (Ctrl+F5)
.
-
I got this:
pi@raspberrypi:~ $ sudo usermod -a -G plugdev dump1090
usermod: user 'dump1090' does not exist
-
Ohhh I just now noticed you are using old version Raspbian Stretch
dump978-rb:
Installed: (none)
Candidate: 1.0.1+stretch
Version table:
1.0.1+stretch 500
500 https://apt.rb24.com stretch/main armhf Packages
And also that dump1090-mutabilty is old version 1.14 as new version 1.15~dev (EB_VER) is not available in Strtch. It is available in Buster and Bullseye only.
What are outputs of last two commands:
sudo systemctl stop fr24feed
apt-cache policy dump1090-mutability
sudo systemctl status dump1090-mutability
-
dump1090-mutability:
Installed: 1.14
Candidate: 1.14
Version table:
*** 1.14 100
100 /var/lib/dpkg/status
and
dump1090-mutability.service - LSB: dump1090 daemon (mutability variant)
Loaded: loaded (/etc/init.d/dump1090-mutability; generated; vendor preset: enabled)
Active: active (exited) since Sat 2022-06-04 20:04:31 UTC; 33min ago
Docs: man:systemd-sysv-generator(8)
Process: 214 ExecStart=/etc/init.d/dump1090-mutability start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/dump1090-mutability.service
Jun 04 20:04:27 raspberrypi systemd[1]: Starting LSB: dump1090 daemon (mutability variant)...
Jun 04 20:04:31 raspberrypi dump1090-mutability[214]: start-stop-daemon: user 'dump1090' not found
Jun 04 20:04:31 raspberrypi systemd[1]: Started LSB: dump1090 daemon (mutability variant).
-
Jun 04 20:04:31 raspberrypi dump1090-mutability[214]: start-stop-daemon: user 'dump1090' not found
OK create user dump1090 and assign it to group plugdev to be able to start dump1090-mutability and attach dongle to it
sudo useradd --system dump1090
sudo usermod -a -G plugdev dump1090
sudo reboot
After REBOOT, check dump1090 map, and status of fr24feed and rbfeeder
IP-of-Pi/dump1090/gmap.html
Ctrl+F5
sudo systemctl status rbfeeder
sudo systemctl status fr24feed
sudo fr24feed-status
-
it looks like it works!! Thank you so much for you help! :)
-
Unfortunatley I know nothing about Linux, hopefully abcd will come to your aid
Alan
Hi Alan
It is high time that you to buy a RPi and take a plunge into Linux.
Linux looks difficult but once you start, gradually you become comfortable with it.
When I purchased my first RPi 7 years ago, my knowledge of Linux and RPi was ZERO, but gradually I learned it, mostly by trial and errors.
Until you jump into water, you cant learn swimming ;)
Regards,
abcd
-
Yes have been thinking about it abcd
Alan