<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>第3.1回 | ～下町物語～</title>
	<atom:link href="https://blog.rurineko.com/archives/tag/%E7%AC%AC3-1%E5%9B%9E/feed" rel="self" type="application/rss+xml" />
	<link>https://blog.rurineko.com</link>
	<description>入り組んだ現代社会に鋭いメスを入れ、おもしろおかしく書綴るブログである</description>
	<lastBuildDate>Fri, 06 Sep 2024 02:53:04 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://blog.rurineko.com/wp-content/uploads/2017/04/cropped-image2_9-32x32.jpg</url>
	<title>第3.1回 | ～下町物語～</title>
	<link>https://blog.rurineko.com</link>
	<width>32</width>
	<height>32</height>
</image> 
<atom:link rel="hub" href="https://pubsubhubbub.appspot.com"/>
<atom:link rel="hub" href="https://pubsubhubbub.superfeedr.com"/>
<atom:link rel="hub" href="https://websubhub.com/hub"/>
<atom:link rel="self" href="https://blog.rurineko.com/archives/tag/%E7%AC%AC3-1%E5%9B%9E/feed"/>
	<item>
		<title>本気でADS-B受信環境構築 第3．1回 #ADSB</title>
		<link>https://blog.rurineko.com/archives/19536</link>
					<comments>https://blog.rurineko.com/archives/19536#respond</comments>
		
		<dc:creator><![CDATA[rurineko]]></dc:creator>
		<pubDate>Thu, 05 Sep 2024 23:30:00 +0000</pubDate>
				<category><![CDATA[1.趣味関連]]></category>
		<category><![CDATA[ADS-B]]></category>
		<category><![CDATA[無線]]></category>
		<category><![CDATA[ADSB]]></category>
		<category><![CDATA[AiRNav]]></category>
		<category><![CDATA[Feed]]></category>
		<category><![CDATA[radarbox]]></category>
		<category><![CDATA[ラズパイ]]></category>
		<category><![CDATA[第3.1回]]></category>
		<guid isPermaLink="false">https://blog.rurineko.com/?p=19536</guid>

					<description><![CDATA[<p><span class="span-reading-time rt-reading-time" style="display: block;"><span class="rt-label rt-prefix">この記事を読む およそ時間</span> <span class="rt-time"> 3</span> <span class="rt-label rt-postfix">分</span></span>第3回の追加分で、軽微な所だけなので追加で記事をアップします。本番機も構築してきて、安定してきたのでAiRNav(radarbox)にFeed先を追加しましたのでその手順を追加します。 ラズパイにいつものようにログインし [&#8230;]</p>
<p>The post <a href="https://blog.rurineko.com/archives/19536">本気でADS-B受信環境構築 第3．1回 #ADSB</a> first appeared on <a href="https://blog.rurineko.com">～下町物語～</a>.</p>]]></description>
										<content:encoded><![CDATA[<span class="span-reading-time rt-reading-time" style="display: block;"><span class="rt-label rt-prefix">この記事を読む およそ時間</span> <span class="rt-time"> 3</span> <span class="rt-label rt-postfix">分</span></span>
<p>第3回の追加分で、軽微な所だけなので追加で記事をアップします。<br>本番機も構築してきて、安定してきたのでAiRNav(radarbox)にFeed先を追加しましたので<br>その手順を追加します。</p>



<p>ラズパイにいつものようにログインします。</p>



<figure class="wp-block-image size-full img-border"><img fetchpriority="high" decoding="async" width="796" height="301" src="https://blog.rurineko.com/wp-content/uploads/2024/09/SnapCrab_NoName_2024-9-5_12-32-19_No-00-1.jpg" alt="" class="wp-image-19543" srcset="https://blog.rurineko.com/wp-content/uploads/2024/09/SnapCrab_NoName_2024-9-5_12-32-19_No-00-1.jpg 796w, https://blog.rurineko.com/wp-content/uploads/2024/09/SnapCrab_NoName_2024-9-5_12-32-19_No-00-1-620x234.jpg 620w, https://blog.rurineko.com/wp-content/uploads/2024/09/SnapCrab_NoName_2024-9-5_12-32-19_No-00-1-400x151.jpg 400w, https://blog.rurineko.com/wp-content/uploads/2024/09/SnapCrab_NoName_2024-9-5_12-32-19_No-00-1-768x290.jpg 768w" sizes="(max-width: 796px) 100vw, 796px" /></figure>



<p>下記コマンドを実行します</p>



<pre class="wp-block-code"><code>$ sudo bash -c "$(wget -O - http://apt.rb24.com/inst_rbfeeder.sh)"

 Selecting previously unselected package sysuser-helper.
 Preparing to unpack .../sysuser-helper_1.3.5.1_all.deb ...
 Unpacking sysuser-helper (1.3.5.1) ...
 Selecting previously unselected package rbfeeder.
 Preparing to unpack .../rbfeeder_1%3a1.0.10+bullseye_arm64.deb ...
 Unpacking rbfeeder (1:1.0.10+bullseye) ...
 Setting up dh-sysuser (1.3.5.1) ...
 Setting up sysuser-helper (1.3.5.1) ...
 Setting up rbfeeder (1:1.0.10+bullseye) ...
 Checking if service is running and restart, if needed...
 Created symlink /etc/systemd/system/multi-user.target.wants/rbfeeder.service → /lib/systemd/system/rbfeeder.service.
 Processing triggers for man-db (2.9.4-2) ...
 <strong>Do you wish to install dump978-rb program? (y/n) n</strong>　※978MHzは受信ないのでNを入力
 
 ＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝
 !!!! IMPORTANT !!!!
 
 By default, RBFeeder is configured to connect to your local dump1090 instance (localhost,
 port 30005). If you want to use a USB RTL-SDR dongle instead, please run this command:
 
 sudo rbfeeder --set-network-mode off --no-start
 
 Then, restart the daemon:
 
 sudo systemctl restart rbfeeder
 
 After a few seconds, RBFeeder will connect to the AirNav servers and you can view your
 sharing-key with this command:
 
 sudo rbfeeder --showkey
 
 If you already have a sharing-key from previous a installation, you can set the same
 key using this command:
 
 sudo rbfeeder --setkey ‹your sharing key›
 
 Installation finished.
 ＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝</code></pre>



<h2 class="wp-block-heading">Feedが成功しているか確認</h2>



<p>下記のURLにアクセスして、アカウントを作成しておく<br><a href="https://www.radarbox.com" target="_blank" rel="noopener" title="">https://www.radarbox.com</a></p>



<p>ラズパイのConsoleから、下記の手順で確認する</p>



<pre class="wp-block-code"><code>Feedが成功していれば、下記を入力するとキーが表示される
$ sudo rbfeeder --showkey --no-start

rurineko@ads-b:~ $ sudo rbfeeder --showkey --no-start
==============================================================================
Sharing key: <strong>nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn</strong>
You can link this sharing key to your account at http://www.radarbox.com
Configuration file: /etc/rbfeeder.ini
==============================================================================
逆にkeyが表示されていない場合は、下記を確認する。
$ cat /var/log/rbfeeder.log

下記の様なログが出ていれば、FWなどで通信が阻害されてAIR NAV側のサーバへ接続出来ていない
<strong>&#91;2024-09-05 10:49:41]  ******** Statistics updated every 60 seconds ********
&#91;2024-09-05 10:49:41]  Packets sent in the last 60 seconds: 0, Total packets sent since startup: 0
&#91;2024-09-05 10:49:41]  Data sent: 0 B
&#91;2024-09-05 10:49:41]  Data received: 0 B
&#91;2024-09-05 10:49:53]  Can't connect to AirNav Server. Retry in 60 seconds.</strong></code></pre>



<p>次に下記のURLからキー情報を入力して紐付けを行う<br><a href="https://www.radarbox.com/sharing-data/claim" target="_blank" rel="noopener" title="">https://www.radarbox.com/sharing-data/claim</a></p>



<figure class="wp-block-image size-large img-border"><img decoding="async" width="940" height="342" src="https://blog.rurineko.com/wp-content/uploads/2024/09/SnapCrab_NoName_2024-9-5_12-41-26_No-00-940x342.jpg" alt="" class="wp-image-19538" srcset="https://blog.rurineko.com/wp-content/uploads/2024/09/SnapCrab_NoName_2024-9-5_12-41-26_No-00-940x342.jpg 940w, https://blog.rurineko.com/wp-content/uploads/2024/09/SnapCrab_NoName_2024-9-5_12-41-26_No-00-620x225.jpg 620w, https://blog.rurineko.com/wp-content/uploads/2024/09/SnapCrab_NoName_2024-9-5_12-41-26_No-00-400x145.jpg 400w, https://blog.rurineko.com/wp-content/uploads/2024/09/SnapCrab_NoName_2024-9-5_12-41-26_No-00-768x279.jpg 768w, https://blog.rurineko.com/wp-content/uploads/2024/09/SnapCrab_NoName_2024-9-5_12-41-26_No-00.jpg 1532w" sizes="(max-width: 940px) 100vw, 940px" /></figure>



<p>ピンクで囲った部分に上記で表示したKeyを入力して「CLAIN」のボタンを押す</p>



<p>次に受信場所を入力する画面になるので、緯度経度や地名で入力し<br>設定を行えば設定は完了です。</p>



<h3 class="wp-block-heading">送信FW開放</h3>



<p>いつもの事ですが、FWが稼働している環境では別途設定が必要があるかもです。<br>AIR NAV側に通信しているポートは、33755で接続されているようなので、<br>送信firewallを設定して通信を通す必要があるかも知れません。<br>普通の環境では、こちらの作業はおそらく必要無いです。</p>



<figure class="wp-block-image size-large img-border"><img decoding="async" width="940" height="939" src="https://blog.rurineko.com/wp-content/uploads/2024/09/SnapCrab_NoName_2024-9-5_13-16-37_No-00-940x939.jpg" alt="" class="wp-image-19544" srcset="https://blog.rurineko.com/wp-content/uploads/2024/09/SnapCrab_NoName_2024-9-5_13-16-37_No-00-940x939.jpg 940w, https://blog.rurineko.com/wp-content/uploads/2024/09/SnapCrab_NoName_2024-9-5_13-16-37_No-00-620x619.jpg 620w, https://blog.rurineko.com/wp-content/uploads/2024/09/SnapCrab_NoName_2024-9-5_13-16-37_No-00-400x399.jpg 400w, https://blog.rurineko.com/wp-content/uploads/2024/09/SnapCrab_NoName_2024-9-5_13-16-37_No-00-768x767.jpg 768w, https://blog.rurineko.com/wp-content/uploads/2024/09/SnapCrab_NoName_2024-9-5_13-16-37_No-00.jpg 1480w" sizes="(max-width: 940px) 100vw, 940px" /></figure>



<h3 class="wp-block-heading">ラズパイ上で確認</h3>



<p>下記のコマンドでログを見ることで、Feed状況を確認出来る。</p>



<pre class="wp-block-code"><code>$ cat /var/log/rbfeeder.log

黒字部分が、KBとかでなくてBとかになってると、何か設定がおかしくてFeedが正常ではない

&#91;2024-09-05 12:44:34]  ******** Statistics updated every 60 seconds ********
&#91;2024-09-05 12:44:34]  Packets sent in the last 60 <strong>seconds: 46</strong>, Total packets sent since startup: <strong>2301</strong>
&#91;2024-09-05 12:44:34]  Data sent: <strong>69.2 KB</strong>

★駄目なパターン(ヘッダーしか送信されていない)
=================================================================================
&#91;2024-09-05 10:59:52]  ******** Statistics updated every 60 seconds ********
&#91;2024-09-05 10:59:52]  Packets sent in the last 60 seconds: 1, Total packets sent since startup: 1
&#91;2024-09-05 10:59:52]  Data sent: <strong>33 B</strong>
&#91;2024-09-05 10:59:52]  Data received: <strong>37 B</strong>
&#91;2024-09-05 10:59:52]  Timeout waiting for new key. Will try again in 30 seconds.
=================================================================================

★だいたいこの辺りをチェックする
/etc/rbfeeder.ini
---------------------------
&#91;network]
mode=<strong>beast</strong>
external_port=<strong>30005</strong>
external_host=127.0.0.1
---------------------------</code></pre>



<h3 class="wp-block-heading">ブラウザー上で確認</h3>



<pre class="wp-block-code"><code>正常に設定ができていれば、下記のファイルに情報が書かれている

$ cat /etc/rbfeeder.ini

&#91;client]
network_mode=true
log_file=/var/log/rbfeeder.log

key=固有Key
sn=<strong>EXTID</strong>
lat=35.0000000000000000000
lon=139.000000000000000000
alt=??

&#91;network]
mode=beast
external_port=30005
external_host=127.0.0.1

&#91;mlat]
autostart_mlat=true
#mlat_cmd=/usr/bin/python3.9 /usr/bin/mlat-client

&#91;dump978]
#dump978_enabled=true

表示させたsnのEXTから始まるIDを下記のEXTID部分に入力しブラウザーで接続する
<a href="https://www.radarbox.com/stations/EXTID">https://www.radarbox.com/stations/&lt;EXTID</a>&gt;</code></pre>



<figure class="wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex">
<figure class="wp-block-image"><img decoding="async" src="https://blog.rurineko.com/wp-content/uploads/2017/04/cropped-image2_9.jpg" alt="サイトアイコン"/></figure>



<figure class="wp-block-image size-large img-border"><img loading="lazy" decoding="async" width="940" height="509" data-id="19540" src="https://blog.rurineko.com/wp-content/uploads/2024/09/SnapCrab_NoName_2024-9-5_12-50-53_No-00-940x509.jpg" alt="" class="wp-image-19540" srcset="https://blog.rurineko.com/wp-content/uploads/2024/09/SnapCrab_NoName_2024-9-5_12-50-53_No-00-940x509.jpg 940w, https://blog.rurineko.com/wp-content/uploads/2024/09/SnapCrab_NoName_2024-9-5_12-50-53_No-00-620x336.jpg 620w, https://blog.rurineko.com/wp-content/uploads/2024/09/SnapCrab_NoName_2024-9-5_12-50-53_No-00-400x217.jpg 400w, https://blog.rurineko.com/wp-content/uploads/2024/09/SnapCrab_NoName_2024-9-5_12-50-53_No-00-768x416.jpg 768w, https://blog.rurineko.com/wp-content/uploads/2024/09/SnapCrab_NoName_2024-9-5_12-50-53_No-00-1536x832.jpg 1536w, https://blog.rurineko.com/wp-content/uploads/2024/09/SnapCrab_NoName_2024-9-5_12-50-53_No-00-2048x1109.jpg 2048w" sizes="auto, (max-width: 940px) 100vw, 940px" /></figure>
</figure>



<p>ピンクの左枠内がFeedで受信したパケットなどの情報が表示されている。<br>中央上の□が、現在Feedで受信している飛行機・ヘリなどの情報が表示されている。<br>Feedが成功していないと、こちらには何も表示されていないので<br>rbfeeder.iniファイルを確認して、再度設定して下記コマンドを実行して状況確認してください。</p>



<pre class="wp-block-code"><code>$ sudo systemctl restart rbfeeder</code></pre>



<h2 class="wp-block-heading">総括</h2>



<p>これで、第3回に＋0.1回追加分についての記事は終わりです。<br>Feed先を3箇所に対してFeedを行って、3サービスともビジネスアカウント取得が<br>できたと思いますので、後は存分にお楽しみ頂けるかなと思います。</p>



<p>続きは、第6回防水ボックス内組込を、現在部材をそろえつつ書いて行っているので<br>そちらをお待ちください。ボックス内加工はほぼ終わっており<br>後は、運用中のラズパイをいったん止めて、ざっと組み込めば完了になる予定です。</p><p>The post <a href="https://blog.rurineko.com/archives/19536">本気でADS-B受信環境構築 第3．1回 #ADSB</a> first appeared on <a href="https://blog.rurineko.com">～下町物語～</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://blog.rurineko.com/archives/19536/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
