Flightrader24他

feedソフトを正式版に更新したら繋がらなくなった('A`)
メッセージを見るとバンドルのdump1090を使え、とのこと


pi@raspberrypi ~ $ cat /var/log/fr24feed.log
[main][i]Version: 1.0.14-6/generic
[main][i]Built on 20150727-0858 (r:master-264558c.git/Linux/armv7l)
[main][i]Copyright 2008-2015 (c) Piotr Pawluczuk
[main][i]Flightradar24 AB(http://flightradar24.com)
[main][i]DNS mode: LIBC
[e]To run MLAT please set receiver=dvbt and use dump1090 utility bundled with fr24feed


とりあえず指示通りreceiverをdvbtへ変更
pi@raspberrypi ~$ cat /etc/fr24feed.ini
receiver="dvbt"


今度はdump1090が落ちる
pi@raspberrypi ~ $ cat /var/log/fr24feed.log
[feed][n]ping 3
[mlat][i]Pinging the server
[mlat][i]Stats 0/0
[reader][i][0]Connecting to Generic receiver via (exe:///usr/lib/fr24/dump1090 --raw --mlat)
[reader][i][0]Connected to the receiver, authenticating
[reader][i][0]Authenticated, processing messages
[reader][i][0]Connection terminated
[main][i]Terminating child process 3726 with SIGETERM


どうも今まで動いてたdump1090とバンドル版がバッティングしてるっぽいので、古い方をkill
pi@raspberrypi ~ $ ps -auxf
pi 3111 30.5 1.3 15784 6872 pts/2 Rl 13:01 4:14 \_ ./dump1090 --ppm 50 --quiet --net


FR24へはfeedできるようになったが、同時feedのFlightAwareに繋がらなくなるヽ(`Д´)ノ
バンドル版dump1090のオプションが変わったためと思われる
pi@raspberrypi ~ $ ps -auxf
root 3963 51.5 1.3 15852 6848 ? Rl 13:16 2:08 \_ /usr/lib/fr24/dump1090 --raw --mlat


pi@raspberrypi ~ $ cat /tmp/piaware.out
mlat(2384): Beast-format results connection with localhost:30004: connection lost
lost connection to dump1090 via faup1090
reconnecting to dump1090
no ADS-B data program seen listening on port 30005 for 0 seconds, next check in 60s
mlat(2384): Connection to localhost:30005 lost: [Errno 111] Connection refused
mlat(2384): Reconnecting in 30.0 seconds
mlat(2384): Beast-format results connection with localhost:30004: [Errno 111] Connection refused


pi@raspberrypi ~ $ netstat -an
稼働中のインターネット接続 (サーバと確立)
Proto 受信-Q 送信-Q 内部アドレス 外部アドレス 状態
tcp 0 0 0.0.0.0:30053 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:30001 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:30002 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:8754 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:30003 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:30004 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:30005 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN


dump1090の引数を追加して30004にもfeed、ついでに受信周波数の補正も
pi@raspberrypi ~$ cat /etc/fr24feed.ini
procargs="--ppm 50 --net --net-beast"


両方feedできるようになった
pi@raspberrypi ~ $ service fr24feed status
[ ok ] FR24 Feeder/Decoder Process: running.
[ ok ] FR24 Link: connected [UDP].
[ ok ] FR24 Radar: T-RJxxx.
[ ok ] FR24 Tracked AC: 55.
[ ok ] Receiver: connected (144658 MSGS/0 SYNC).
[ ok ] FR24 MLAT: ok [UDP].
[ ok ] FR24 MLAT AC seen: 54.


pi@raspberrypi ~ $ tail -10 /var/log/fr24feed.log
[mlat][i]Pinging the server
[feed][i]sent 33 AC in 1 packet
[mlat][i]Stats 32583/459
[feed][i]removed 1 of 53 AC
[feed][i]sent 33 AC in 1 packet


pi@raspberrypi ~ $ sudo piaware-status
dump1090 is running.
faup1090 is running.
piaware is running.
dump1090 is listening for connections on port 30005.
faup1090 is connected to port 30005.
piaware is connected to FlightAware.
dump1090 is producing data on port 30005.


pi@raspberrypi ~ $ tail -10 /tmp/piaware.out
mlat(2384): Aircraft: 50 known, 10 requested by server
8517 msgs recv'd from dump1090 (823 in last 5m); 8517 msgs sent to FlightAware
9429 msgs recv'd from dump1090 (912 in last 5m); 9429 msgs sent to FlightAware
10394 msgs recv'd from dump1090 (965 in last 5m); 10394 msgs sent to FlightAware
mlat(2384): Receiver connection: ready
mlat(2384): Server connection: ready
mlat(2384): Receiver: 76.5 msg/s received 1.3kB/s from receiver
mlat(2384): Server: 0.0 kB/s from server 0.0kB/s TCP to server 0.3kB/s UDP to server
mlat(2384): Results: 4.1 positions/minute


ついでにPlaneFinderにもfeed
登録は前にしていたがイマイチfeedが不安定だったので、今回beast@30005に修正
無効なデータでもfeed自体はできるのでエラーが分かり辛い
pi@raspberrypi ~ $ cat /var/log/pfclient/pfclient-log_1438227020.log
Failed to open connection to socket: Connection refused (errno: 111)
Failed connection to all provided addresses
Successfully uploaded data
TCP connection established
Successfully uploaded data


シンプルすぎるstatus表示(笑)
pi@raspberrypi ~ $ service pfclient status
Running