RTL-SDRをGNU Radioで使う2014/03/22 22:53

GNU-Radioを使った受信環境だが,FCDが燃えたので,RTL-SDRを試している。

お約束?のFM受信に,下記フローグラフを参照して,挑戦してみた。

実行するとエラーが表示される。udevルールの更新が必要とのこと。

gr-osmosdr v0.0.2-60-g084d193a (0.0.3git) gnuradio 3.6.5.1
built-in source types: file fcd rtl rtl_tcp rfspace
...
usb_open error -3
Please fix the device permissions, e.g. by installing the udev rules file rtl-sdr.rules

FATAL: Failed to open rtlsdr device.

rtl-sdrの配布フィアルにあるrtl-sdr.rulesの中からR820Tを探して,/etc/udev/rules.d/20-rtlsdr.rulesを作成して,下記コマンドで 新しいルールを適用 するが,症状にカイゼンなし。

% sudo /sbin/udevadm control --reload-rules

rtl-sdrのドキュメントによると In order to be able to use the dongle as a non-root user, you may install the appropriate udev rules file by calling cmake with -DINSTALL_UDEV_RULES=ON argument in the above build steps. とのことで,rtl-sdr->gr-osmosdrをmakeし直して,認識した。

Using device #0 Realtek RTL2838UHIDIR SN: 00000001
Found Rafael Micro R820T tuner
Exact sample rate is: 1000000.026491 Hz

が,FFTウインドなどGUIパーツを表示すると,エラーになる。

Using Volk machine: sse4_2_64_orc
The program 'python2.7' received an X Window System error.

ビデオカードの撤去前には見なかった現象で?になる。ググると設定ファイルの変更でOKらしい。

<install_prefix>/etc/gnuradio/conf.d/gr-wxgui.conf の style = auto -> nongl で解決。内蔵ビデオはGLに未対応だが,AUTOを名乗るなら自動でnonglと判別して欲しい,ぞ。