anything
AirNav RadarBox
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 


Author Topic: Feeding FR24 and Radarbox  (Read 776 times)

0 Members and 1 Guest are viewing this topic.

cm1702

  • New Member
  • *
  • Posts: 9
Feeding FR24 and Radarbox
« 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!

Runway 31

  • Moderator
  • Hero Member
  • *****
  • Posts: 32155
Re: Feeding FR24 and Radarbox
« Reply #1 on: June 02, 2022, 07:14:06 PM »
Please see this thread it may help https://forum.radarbox24.com/index.php?topic=10201.0

Alan

cm1702

  • New Member
  • *
  • Posts: 9
Re: Feeding FR24 and Radarbox
« Reply #2 on: June 02, 2022, 07:47:39 PM »
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 :(

Runway 31

  • Moderator
  • Hero Member
  • *****
  • Posts: 32155
Re: Feeding FR24 and Radarbox
« Reply #3 on: June 02, 2022, 08:44:47 PM »
Unfortunatley I know nothing about Linux, hopefully abcd will come to your aid

Alan

abcd567

  • Hero Member
  • *****
  • Posts: 644
  • CYYZ - Toronto
Re: Feeding FR24 and Radarbox
« Reply #4 on: June 04, 2022, 04:46:06 AM »
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:

Code: [Select]
cat /etc/fr24feed.ini

cat /etc/rbfeeder.ini

« Last Edit: June 04, 2022, 04:49:52 AM by abcd567 »

cm1702

  • New Member
  • *
  • Posts: 9
Re: Feeding FR24 and Radarbox
« Reply #5 on: June 04, 2022, 08:32:40 AM »
—- 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
« Last Edit: June 04, 2022, 09:34:58 AM by cm1702 »

abcd567

  • Hero Member
  • *****
  • Posts: 644
  • CYYZ - Toronto
Re: Feeding FR24 and Radarbox
« Reply #6 on: June 04, 2022, 11:12:42 AM »
(1) Change fr24feed. ini

Issue following command:

Code: [Select]

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:
Code: [Select]

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

Code: [Select]

sudo reboot



(4) After reboot, check status of fr24feed and rbfeeder. Both should now be OK.


.
« Last Edit: June 04, 2022, 11:39:56 AM by abcd567 »

cm1702

  • New Member
  • *
  • Posts: 9
Re: Feeding FR24 and Radarbox
« Reply #7 on: June 04, 2022, 05:04:04 PM »
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:

[email protected]:~ $ 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
« Last Edit: June 04, 2022, 06:18:44 PM by cm1702 »

abcd567

  • Hero Member
  • *****
  • Posts: 644
  • CYYZ - Toronto
Re: Feeding FR24 and Radarbox
« Reply #8 on: June 04, 2022, 06:24:28 PM »
To check your Dongle is healthy,  please issue following 3 commands, and post output of last command below:

Code: [Select]

sudo apt install rtl-sdr 

sudo systemctl stop dump1090-mutability 

rtl_test -t   



.

cm1702

  • New Member
  • *
  • Posts: 9
Re: Feeding FR24 and Radarbox
« Reply #9 on: June 04, 2022, 06:32:20 PM »
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.
« Last Edit: June 04, 2022, 06:35:11 PM by cm1702 »

abcd567

  • Hero Member
  • *****
  • Posts: 644
  • CYYZ - Toronto
Re: Feeding FR24 and Radarbox
« Reply #10 on: June 04, 2022, 07:24:38 PM »
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.

Quote

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

..
« Last Edit: June 04, 2022, 07:26:21 PM by abcd567 »

cm1702

  • New Member
  • *
  • Posts: 9
Re: Feeding FR24 and Radarbox
« Reply #11 on: June 04, 2022, 07:59:39 PM »
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:

Code: [Select]
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:

Code: [Select]
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)
« Last Edit: June 04, 2022, 08:06:22 PM by cm1702 »

abcd567

  • Hero Member
  • *****
  • Posts: 644
  • CYYZ - Toronto
Re: Feeding FR24 and Radarbox
« Reply #12 on: June 04, 2022, 08:21:43 PM »
Give following TWO IMPORTANT commands:

Code: [Select]
sudo usermod -a -G plugdev dump1090

sudo reboot 


After reboot, check status by following commands:
Also post output of all these commands

Code: [Select]

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)

.

cm1702

  • New Member
  • *
  • Posts: 9
Re: Feeding FR24 and Radarbox
« Reply #13 on: June 04, 2022, 08:23:55 PM »
I got this:

[email protected]:~ $ sudo usermod -a -G plugdev dump1090
usermod: user 'dump1090' does not exist

abcd567

  • Hero Member
  • *****
  • Posts: 644
  • CYYZ - Toronto
Re: Feeding FR24 and Radarbox
« Reply #14 on: June 04, 2022, 08:35:19 PM »
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:
Code: [Select]
sudo systemctl stop fr24feed

apt-cache policy dump1090-mutability 

sudo systemctl status dump1090-mutability   

« Last Edit: June 04, 2022, 08:41:38 PM by abcd567 »