FlightAware Discussions

FlightFeeder Anomalies

I just saw this message:

Your SD card’s ‘/’ partition is at 100% of capacity. If you haven’t done so, consider running ‘sudo raspi-config’, pick option 1 to expand its filesystem to occupy the entire SD card. Alternatively it may need a bigger SD card.
FF

Is the microSD card out of order?

Internal (in-memory) filesystem filled up (due to some unexpectedly high volume logging - will need to look at that later). I rebooted it remotely, should fix the problem for now.

1 Like

Strange port numbers:

[2021-04-13 18:04 MSK] mlat-client(3584): Accepted Beast-format results connection from ::ffff:192.168.0.254:34836
[2021-04-13 18:04 MSK] mlat-client(3584): Accepted Beast-format results connection from ::ffff:192.168.0.254:34840
[2021-04-13 18:06 MSK] mlat-client(3584): Beast-format results connection with ::ffff:192.168.0.254:34836: connection lost
[2021-04-13 18:06 MSK] mlat-client(3584): Beast-format results connection with ::ffff:192.168.0.254:34840: connection lost
[2021-04-13 18:06 MSK] mlat-client(3584): Accepted Beast-format results connection from ::ffff:192.168.0.254:34862
[2021-04-13 18:06 MSK] mlat-client(3584): Accepted Beast-format results connection from ::ffff:192.168.0.254:34860
[2021-04-13 18:08 MSK] mlat-client(3584): Beast-format results connection with ::ffff:192.168.0.254:34860: connection lost
[2021-04-13 18:08 MSK] mlat-client(3584): Beast-format results connection with ::ffff:192.168.0.254:34862: connection lost
[2021-04-13 18:09 MSK] mlat-client(3584): Accepted Beast-format results connection from ::ffff:192.168.0.254:34884
[2021-04-13 18:09 MSK] mlat-client(3584): Accepted Beast-format results connection from ::ffff:192.168.0.254:34886


[2021-04-13 20:51 MSK] Started faup1090 (pid 909) to connect to beast-splitter
[2021-04-13 20:51 MSK] mlat-client(876): Accepted Beast-format results connection from ::ffff:192.168.0.254:37134
[2021-04-13 20:51 MSK] mlat-client(876): Accepted Beast-format results connection from ::ffff:192.168.0.254:37138
[2021-04-13 20:51 MSK] 4 msgs recv’d from beast-splitter (3 in last 1m); 4 msgs sent to FlightAware
[2021-04-13 20:54 MSK] mlat-client(876): Accepted Beast-format results connection from ::ffff:192.168.0.254:37184
[2021-04-13 20:54 MSK] mlat-client(876): Accepted Beast-format results connection from ::ffff:192.168.0.254:37180
[2021-04-13 20:56 MSK] mlat-client(876): Beast-format results connection with ::ffff:192.168.0.254:37184: connection lost
[2021-04-13 20:56 MSK] mlat-client(876): Beast-format results connection with ::ffff:192.168.0.254:37180: connection lost
[2021-04-13 20:56 MSK] mlat-client(876): Accepted Beast-format results connection from ::ffff:192.168.0.254:37210
[2021-04-13 20:56 MSK] mlat-client(876): Accepted Beast-format results connection from ::ffff:192.168.0.254:37208
[2021-04-13 20:58 MSK] mlat-client(876): Beast-format results connection with ::ffff:192.168.0.254:37210: connection lost
[2021-04-13 20:59 MSK] mlat-client(876): Accepted Beast-format results connection from ::ffff:192.168.0.254:37236
[2021-04-13 20:59 MSK] mlat-client(876): Accepted Beast-format results connection from ::ffff:192.168.0.254:37238
[2021-04-13 21:01 MSK] mlat-client(876): Beast-format results connection with ::ffff:192.168.0.254:37236: connection lost

That’s an IPv4 connection from something on your local network. The port number is the remote port number, not the port number on the FlightFeeder. Do you maybe have VRS or something on .254 configured to connect? (If so, it seems broken, it sets up two connections then drops them both 2 minutes later, then repeats)

I am experimenting with script combine1090 by @ wiedehopf

192.168.0.119 - FlightFeeder
192.168.0.254 - Openwrt router

With the help of a script, I try to forward from two Flightfeeder ports (30005, 30105) to one external VPS port (31031, VirtualRadar).

The script has been changed because in its original form it does not work on my router.

cat combine1090.sh

#!/bin/sh
SOURCES=192.168.0.119
PORTS=30005
PORTSMLAT=30105
TARGET=VirtualRadarServer:31031

opts="-d"
retry=15
tcpopts="keepalive,keepidle=30,keepintvl=30,keepcnt=2,connect-timeout=30,retry=2,interval=15"


echo -n "Starting data redirection with socat for combine1090:    "

date
sleep 1

while true
do
        
 echo "Redirecting: SOURCE: $SOURCES:$PORTS TARGET: $TARGET"
        
 socat $opts -u TCP:$SOURCES:$PORTS,$tcpopts TCP:$TARGET,$tcpopts
        
 echo "Lost Connection: SOURCE: $SOURCES:$PORTS TARGET: $TARGET"
        
 sleep $retry
 sleep 20

done&
sleep 1


while true
do
        
 echo "Redirecting: SOURCE: $SOURCES:$PORTSMLAT TARGET: $TARGET"
        
 socat $opts -u TCP:$SOURCES:$PORTSMLAT,$tcpopts TCP:$TARGET,$tcpopts
        
 echo "Lost Connection: SOURCE: $SOURCES:$PORTSMLAT TARGET: $TARGET"
        
 sleep $retry
 sleep 20
done&

while true
do
sleep 1024
done&

wait
exit 0

VRS can’t accept two connections on the same port if i remember correctly.
You’ll have to make 2 receivers that listen on two ports and handle it by combining the two receivers in VRS.

However, the VRS map shows planes in MLAT and ADSB. There are some oddities and while I can not say whether it works correctly or not.
MLAT:

It might disconnect the old connection upon the other connection connecting.
So they alternate back and forth leading to it flipping.

opts="-d -d"

Add a second -d and run the script by hand you’ll see what it does.

1 Like

with opts="-d -d"

Redirecting: SOURCE: 192.168.0.119:30005 TARGET: VirtualRadarServer:31031
2021/04/03 21:43:57 socat[1284] N opening connection to AF=2 192.168.0.119:30005
2021/04/03 21:43:57 socat[1284] N opening connection to AF=2 VirtualRadarServerIP:31031
2021/04/03 21:43:57 socat[1284] N starting data transfer loop with FDs [5,5] and [6,6]
2021/04/03 21:43:58 socat[1284] E write(6, 0x6e4010, 32): Broken pipe
2021/04/03 21:43:58 socat[1284] N exit(1)
Lost Connection: SOURCE: 192.168.0.119:30005 TARGET: VirtualRadarServer:31031
Redirecting: SOURCE: 192.168.0.119:30005 TARGET: VirtualRadarServer:31031
2021/04/03 21:43:58 socat[1286] E write(6, 0xc02010, 55): Connection reset by peer
Lost Connection: SOURCE: 192.168.0.119:30005 TARGET: VirtualRadarServer:31031
2021/04/03 21:44:00 socat[910] E write(6, 0x9ed010, 11): Broken pipe
Lost Connection: SOURCE: 192.168.0.119:30105 TARGET: VirtualRadarServer:31031
Redirecting: SOURCE: 192.168.0.119:30005 TARGET: VirtualRadarServer:31031
2021/04/03 21:44:33 socat[1404] N opening connection to AF=2 192.168.0.119:30005
2021/04/03 21:44:33 socat[1404] N opening connection to AF=2 VirtualRadarServerIP:31031
2021/04/03 21:44:33 socat[1404] N starting data transfer loop with FDs [5,5] and [6,6]
2021/04/03 21:44:33 socat[1404] E write(6, 0x8aa010, 23): Broken pipe
2021/04/03 21:44:33 socat[1404] N exit(1)
Lost Connection: SOURCE: 192.168.0.119:30005 TARGET: VirtualRadarServer:31031
Redirecting: SOURCE: 192.168.0.119:30005 TARGET: VirtualRadarServer:31031
2021/04/03 21:44:33 socat[1409] E write(6, 0x48d010, 23): Connection reset by peer
Lost Connection: SOURCE: 192.168.0.119:30005 TARGET: VirtualRadarServer:31031
Redirecting: SOURCE: 192.168.0.119:30105 TARGET: VirtualRadarServer:31031

Redirecting: SOURCE: 192.168.0.119:30105 TARGET: VirtualRadarServer:31031
2021/04/03 22:09:16 socat[6161] N opening connection to AF=2 VirtualRadarServerIP:31031
2021/04/03 22:09:16 socat[6161] N starting data transfer loop with FDs [5,5] and [6,6]
Redirecting: SOURCE: 192.168.0.119:30005 TARGET: VirtualRadarServer:31031
2021/04/03 22:09:17 socat[6167] N opening connection to AF=2 192.168.0.119:30005
2021/04/03 22:09:17 socat[6167] N opening connection to AF=2 VirtualRadarServerIP:31031
2021/04/03 22:09:17 socat[6167] N starting data transfer loop with FDs [5,5] and [6,6]
2021/04/03 22:09:18 socat[6167] E write(6, 0x850010, 16): Broken pipe
2021/04/03 22:09:18 socat[6167] N exit(1)
Lost Connection: SOURCE: 192.168.0.119:30005 TARGET: VirtualRadarServer:31031
Redirecting: SOURCE: 192.168.0.119:30005 TARGET: VirtualRadarServer:31031
2021/04/03 22:09:22 socat[6181] E write(6, 0x8d2010, 17): Connection reset by peer
Lost Connection: SOURCE: 192.168.0.119:30005 TARGET: VirtualRadarServer:31031
Redirecting: SOURCE: 192.168.0.119:30005 TARGET: VirtualRadarServer:31031
2021/04/03 22:09:53 socat[6275] N opening connection to AF=2 192.168.0.119:30005
2021/04/03 22:09:53 socat[6275] N opening connection to AF=2 VirtualRadarServerIP:31031
2021/04/03 22:09:53 socat[6275] N starting data transfer loop with FDs [5,5] and [6,6]
2021/04/03 22:09:53 socat[6275] E write(6, 0xa63010, 23): Broken pipe
2021/04/03 22:09:53 socat[6275] N exit(1)
Lost Connection: SOURCE: 192.168.0.119:30005 TARGET: VirtualRadarServer:31031
Redirecting: SOURCE: 192.168.0.119:30005 TARGET: VirtualRadarServer:31031
2021/04/03 22:09:57 socat[6292] E write(6, 0xc0b010, 16): Broken pipe
Lost Connection: SOURCE: 192.168.0.119:30005 TARGET: VirtualRadarServer:31031

2021/04/03 22:14:00 socat[7061] N opening connection to AF=2 VirtualRadarServerIP:31031
2021/04/03 22:14:00 socat[7061] N starting data transfer loop with FDs [5,5] and [6,6]
2021/04/03 22:14:00 socat[7061] E write(6, 0x8b2010, 23): Broken pipe
2021/04/03 22:14:00 socat[7061] N exit(1)
Lost Connection: SOURCE: 192.168.0.119:30005 TARGET: VirtualRadarServer:31031
Redirecting: SOURCE: 192.168.0.119:30005 TARGET: VirtualRadarServer:31031
2021/04/03 22:14:04 socat[7076] E write(6, 0x704010, 39): Connection reset by peer
Lost Connection: SOURCE: 192.168.0.119:30005 TARGET: VirtualRadarServer:31031
Redirecting: SOURCE: 192.168.0.119:30105 TARGET: VirtualRadarServer:31031
2021/04/03 22:14:27 socat[7162] N opening connection to AF=2 192.168.0.119:30105
Redirecting: SOURCE: 192.168.0.119:30105 TARGET: VirtualRadarServer:31031
2021/04/03 22:14:27 socat[7162] N opening connection to AF=2 VirtualRadarServerIP:31031
2021/04/03 22:14:28 socat[7162] N starting data transfer loop with FDs [5,5] and [6,6]
Redirecting: SOURCE: 192.168.0.119:30005 TARGET: VirtualRadarServer:31031
2021/04/03 22:14:35 socat[7189] N opening connection to AF=2 192.168.0.119:30005
2021/04/03 22:14:35 socat[7189] N opening connection to AF=2 VirtualRadarServerIP:31031
2021/04/03 22:14:35 socat[7189] N starting data transfer loop with FDs [5,5] and [6,6]
2021/04/03 22:14:35 socat[7189] E write(6, 0x4c3010, 23): Broken pipe
2021/04/03 22:14:35 socat[7189] N exit(1)
Lost Connection: SOURCE: 192.168.0.119:30005 TARGET: VirtualRadarServer:31031
Redirecting: SOURCE: 192.168.0.119:30005 TARGET: VirtualRadarServer:31031
2021/04/03 22:14:39 socat[7203] E write(6, 0xaec010, 16): Connection reset by peer
Lost Connection: SOURCE: 192.168.0.119:30005 TARGET: VirtualRadarServer:31031

Lost Connection: SOURCE: 192.168.0.119:30005 TARGET: VirtualRadarServer:31031
Redirecting: SOURCE: 192.168.0.119:30005 TARGET: VirtualRadarServer:31031
2021/04/03 22:26:27 socat[9457] N opening connection to AF=2 192.168.0.119:30005
2021/04/03 22:26:27 socat[9457] N opening connection to AF=2 VirtualRadarServerIP:31031
2021/04/03 22:26:27 socat[9457] N starting data transfer loop with FDs [5,5] and [6,6]
2021/04/03 22:26:27 socat[9457] E write(6, 0x6a7010, 16): Connection reset by peer
2021/04/03 22:26:27 socat[9457] N exit(1)
Lost Connection: SOURCE: 192.168.0.119:30005 TARGET: VirtualRadarServer:31031
Redirecting: SOURCE: 192.168.0.119:30005 TARGET: VirtualRadarServer:31031
2021/04/03 22:26:32 socat[9468] E write(6, 0x8eb010, 16): Broken pipe
Lost Connection: SOURCE: 192.168.0.119:30005 TARGET: VirtualRadarServer:31031
2021/04/03 22:26:51 socat[9156] E write(6, 0xb00010, 11): Broken pipe
Lost Connection: SOURCE: 192.168.0.119:30105 TARGET: VirtualRadarServer:31031
2021/04/03 22:26:51 socat[9155] E write(6, 0xb94010, 11): Broken pipe
2021/04/03 22:26:51 socat[9155] N exit(1)
Lost Connection: SOURCE: 192.168.0.119:30105 TARGET: VirtualRadarServer:31031
Redirecting: SOURCE: 192.168.0.119:30005 TARGET: VirtualRadarServer:31031
2021/04/03 22:27:02 socat[9571] N opening connection to AF=2 192.168.0.119:30005
2021/04/03 22:27:02 socat[9571] N opening connection to AF=2 VirtualRadarServerIP:31031
2021/04/03 22:27:03 socat[9571] N starting data transfer loop with FDs [5,5] and [6,6]
2021/04/03 22:27:03 socat[9571] E write(6, 0x80b010, 16): Broken pipe
2021/04/03 22:27:03 socat[9571] N exit(1)
2021/04/03 22:31:12 socat[10377] N opening connection to AF=2 VirtualRadarServerIP:31031
2021/04/03 22:31:12 socat[10377] N starting data transfer loop with FDs [5,5] and [6,6]
2021/04/03 22:31:12 socat[10377] E write(6, 0xa64010, 32): Broken pipe
2021/04/03 22:31:12 socat[10377] N exit(1)
Lost Connection: SOURCE: 192.168.0.119:30005 TARGET: VirtualRadarServer:31031
Redirecting: SOURCE: 192.168.0.119:30005 TARGET: VirtualRadarServer:31031
2021/04/03 22:31:16 socat[10388] E write(6, 0x5a8010, 16): Broken pipe
Lost Connection: SOURCE: 192.168.0.119:30005 TARGET: VirtualRadarServer:31031
Redirecting: SOURCE: 192.168.0.119:30005 TARGET: VirtualRadarServer:31031
2021/04/03 22:31:47 socat[10485] N opening connection to AF=2 192.168.0.119:30005
2021/04/03 22:31:47 socat[10485] N opening connection to AF=2 VirtualRadarServerIP:31031
2021/04/03 22:31:47 socat[10485] N starting data transfer loop with FDs [5,5] and [6,6]
2021/04/03 22:31:47 socat[10485] E write(6, 0x54d010, 16): Broken pipe
2021/04/03 22:31:47 socat[10485] N exit(1)
Lost Connection: SOURCE: 192.168.0.119:30005 TARGET: VirtualRadarServer:31031
Redirecting: SOURCE: 192.168.0.119:30005 TARGET: VirtualRadarServer:31031
2021/04/03 22:31:51 socat[10499] E write(6, 0x79e010, 17): Connection reset by peer
Lost Connection: SOURCE: 192.168.0.119:30005 TARGET: VirtualRadarServer:31031
2021/04/03 22:32:03 socat[10156] E write(6, 0x614010, 11): Broken pipe
Lost Connection: SOURCE: 192.168.0.119:30105 TARGET: VirtualRadarServer:31031
2021/04/03 22:32:03 socat[10155] E write(6, 0x5c8010, 11): Broken pipe
2021/04/03 22:32:03 socat[10155] N exit(1)
Lost Connection: SOURCE: 192.168.0.119:30105 TARGET: VirtualRadarServer:31031
Redirecting: SOURCE: 192.168.0.119:30005 TARGET: VirtualRadarServer:31031
2021/04/03 22:47:17 socat[13472] E write(6, 0x446010, 16): Broken pipe
Lost Connection: SOURCE: 192.168.0.119:30005 TARGET: VirtualRadarServer:31031
2021/04/03 22:47:37 socat[13159] E write(6, 0x7fa010, 11): Broken pipe
2021/04/03 22:47:37 socat[13159] N exit(1)
Lost Connection: SOURCE: 192.168.0.119:30105 TARGET: VirtualRadarServer:31031
2021/04/03 22:47:37 socat[13160] E write(6, 0x5cb010, 11): Broken pipe
Lost Connection: SOURCE: 192.168.0.119:30105 TARGET: VirtualRadarServer:31031
Redirecting: SOURCE: 192.168.0.119:30005 TARGET: VirtualRadarServer:31031
2021/04/03 22:47:46 socat[13572] N opening connection to AF=2 192.168.0.119:30005
2021/04/03 22:47:46 socat[13572] N opening connection to AF=2 VirtualRadarServerIP:31031
2021/04/03 22:47:46 socat[13572] N starting data transfer loop with FDs [5,5] and [6,6]
2021/04/03 22:47:47 socat[13572] E write(6, 0x510010, 17): Broken pipe
2021/04/03 22:47:47 socat[13572] N exit(1)
Lost Connection: SOURCE: 192.168.0.119:30005 TARGET: VirtualRadarServer:31031
Redirecting: SOURCE: 192.168.0.119:30005 TARGET: VirtualRadarServer:31031
2021/04/03 22:47:52 socat[13592] E write(6, 0xac1010, 16): Connection reset by peer
Lost Connection: SOURCE: 192.168.0.119:30005 TARGET: VirtualRadarServer:31031
Redirecting: SOURCE: 192.168.0.119:30105 TARGET: VirtualRadarServer:31031
Redirecting: SOURCE: 192.168.0.119:30105 TARGET: VirtualRadarServer:31031
2021/04/03 22:48:12 socat[13659] N opening connection to AF=2 192.168.0.119:30105
2021/04/03 22:48:12 socat[13659] N opening connection to AF=2 VirtualRadarServerIP:31031
2021/04/03 22:48:12 socat[13659] N starting data transfer loop with FDs [5,5] and [6,6]
Redirecting: SOURCE: 192.168.0.119:30005 TARGET: VirtualRadarServer:31031
2021/04/03 22:48:22 socat[13690] N opening connection to AF=2 192.168.0.119:30005
2021/04/03 22:48:22 socat[13690] N opening connection to AF=2 VirtualRadarServerIP:31031
2021/04/03 22:48:22 socat[13690] N starting data transfer loop with FDs [5,5] and [6,6]
2021/04/03 22:48:24 socat[13690] E write(6, 0xb0c010, 16): Broken pipe
2021/04/03 22:48:24 socat[13690] N exit(1)
Lost Connection: SOURCE: 192.168.0.119:30005 TARGET: VirtualRadarServer:31031

It’s exactly as i told you …
VRS can’t do two connections on one receiver listen port.
I have zero interest in discussing this, the log above was for your benefit to realize VRS is screwing it up.

Use two receivers with separate ports …

If you still have disconnection issues after that it’s probably network instability.

Edit: Seems it’s both and ADS-B and MLAT data input are indeed alternating like predicted.

Yesterday I decided to look at the running processes on the router. And found that the script would run about 10 times. :man_facepalming:

However, I decided to use two VRS ports. The experiment continues.

1 Like