あっきぃ日誌

鉄道ブログのような技術系ブログのようななにか

Raspberry Pi TV HAT

ってのがリリースされたので、という話をraspi.jpに書いといたので見てね!!!!!

www.raspi.jp

こっちの記事はちょいおさわりした話。なんでもう持っているのかと言うのはもう毎度ですが、Raspberry Piモデレーターの太田さんのお手伝いです。

アンテナについて。変換コネクターは付属のものは日本では多分見かけないタイプのやつで、使えません。ただし、アキバとかでよく見るUSBワンセグチューナーの変換ケーブルが使えます。もしTV HATを使うならこのドングルを300円とかで買ってきてケーブルだけ使うみたいなやり方ができそうです。ロッドアンテナは、モノによるのかもしれませんが、なんか途中で出っ張っててつけられませんでした。

チップについて。SONYのCXD2880というものが使われています。SDRな方面だとRTL2832uというカニがポピュラーで、情報も豊富ですが、ツールもそれ用っぽいのであんまこのへんの情報は使えなさそうという感じです。SDR全然わからないんでもしかしたらなんかいけるのかもしれませんが。CXD2880自体はググるLinuxカーネルに取り込まれる感じのやり取りが見ることができます。なんかISDB-Tとか言う文字列が見えつつも問題があったらしく消えてしまってるのが気になります(別に普通にググって出てきただけなので……)。

ゆーてもなんか頑張れば見れたりするのかしらと思い、地デジの周波数で受信を試みましたがだめっぽそうです。以下はmumudvb( http://mumudvb.net/ )というツールで受信を試みた例。

$ cat chideji.conf
freq=539.143
bandwidth=6MHz
autoconfiguration=full

※539.143→テレ朝

$ sudo mumudvb -d -c ~/chideji.conf -s
MuMuDVB Version 1.7.3_20140822_master
 --- Build information ---
Built with CAM support.
Built with SCAM support.
Built with ATSC support.
Built with ATSC long channel names support.
Built with support for DVB API Version 5.4.
Built with support for DVB-T2.
---------
Originally based on dvbstream 0.6 by (C) Dave Chapman 2001-2004
Released under the GPL.
Latest version available from http://mumudvb.braice.net/
Project from the cr@ns (http://www.crans.org)
by Brice DUBOST (mumudvb@braice.net)

Info:  Main:  Full autoconfiguration, we activate SAP announces. if you want to deactivate them see the README.
Info:  Main:  Full autoconfiguration, we activate PAT rewriting. if you want to disable it see the README.
Info:  Main:  Full autoconfiguration, we activate SDT rewriting. if you want to disable it see the README.
Info:  Main:  ========== End of configuration, MuMuDVB version 1.7.3_20140822_master is starting ==========
Info:  Autoconf:  The autoconfiguration auto update is enabled. If you want to disable it put "autoconf_pid_update=0" in your config file.
WARN:  Main:  Can't create /var/run/mumudvb/channels_streamed_adapter0_tuner0: No such file or directory
WARN:  Main:  Can't create /var/run/mumudvb/channels_unstreamed_adapter0_tuner0: No such file or directory
Info:  Main:  Streaming. Freq 539143
Info:  Tune:  Using DVB card "Sony CXD2880" tuner 0
Info:  Tune:  Tuning DVB-T to 539143000 Hz, Bandwidth: 6000000
Info:  Tune:  FE_STATUS:
Info:  Tune:  Strength:      11687
Info:  Tune:  Strength:      11687
:
(中略)
:
Info:  Main:  Card not tuned after timeout - exiting

gqrx( http://gqrx.dk/ )っていうGUIで波形とか見られるツールもあるんですが、これはデバイスの選び方がわからないと言うか多分対応していないです。ただ、Raspberry Pi向けにdebパッケージを配ったりしててラズパイフレンドリーな雰囲気を感じるので、そのうち対応してくれたら道がひらけそうな感じもしています。

FMラジオとか聞けるのかしら。なんかナイスアイデアがあればぜひ。