7. テスト
■ rtl-sdrのテスト
sudo rtl_test
■ 実行結果
pi@raspberrypi ~/rtl-sdr/build $ sudo rtl_test
Found 1 device(s):
0: Realtek, RTL2838UHIDIR, SN: 00000001
Using device 0: Generic RTL2832U OEM
Found Rafael Micro R820T tuner
Supported gain values (29): 0.0 0.9 1.4 2.7 3.7 7.7 8.7 12.5 14.4 15.7 16.6 19.7 20.7 22.9 25.4 28.0 29.7
32.8 33.8 36.4 37.2 38.6 40.2 42.1 43.4 43.9 44.5 48.0 49.6
Sampling at 2048000 S/s.
Info: This tool will continuously read from the device, and report if
samples get lost. If you observe no further output, everything is fine.
Reading samples in async mode...
lost at least 164 bytes
2014/9/26 7
8. FMラジオを試してみる!
■ rtl-sdrのテスト
sudo src/rtl_fm -M fm -f 106.7M -s 170k -A fast -r 44100 -l 0 -E deemp | sudo aplay -t raw -r 44100 -c 1 -f
S16_L
■ 結果
pi@raspberrypi ~/rtl-sdr/build $ sudo src/rtl_fm -M fm -f 78.9M -s 170k -A fast -r 44100 -l 0 -E deemp | sudo
aplay -t raw -r 44100 -c 1
Found 1 device(s):
0: Realtek, RTL2838UHIDIR, SN: 00000001
Using device 0: Generic RTL2832U OEM
Found Rafael Micro R820T tuner
Tuner gain set to automatic.
Tuned to 79155000 Hz.
Oversampling input by: 6x.
Oversampling output by: 1x.
Buffer size: 8.03ms
Exact sample rate is: 1020000.026345 Hz
Sampling at 1020000 S/s.
Output at 170000 Hz.
Playing raw data 'stdin' : Unsigned 8 bit, Rate 44100 Hz, Mono
underrun!!! (at least 6.612 ms long)
underrun!!! (at least 8.504 ms long)
underrun!!! (at least 9.857 ms long)
何故か「underrun!!!」が発生して、
まともに音が出ない!
「underrun!!! rtl_fm」で検索すると
色々と出てくるが、英文なのでよー
わからん! ┐( ̄ヘ ̄)┌
2014/9/26 8
9. いよいよADS-B受信!
■ 参考にしたページに沿って「dump1090」をインストール。
git clone git://github.com/MalcolmRobb/dump1090.git
cd dump1090
make
■ そして実行!
./dump1090 --interactive --net
Hex Mode Sqwk Flight Alt Spd Hdg Lat Long Sig Msgs Ti/
-------------------------------------------------------------------------------
861B6C S 35000 6 10 10
840DD8 S VNL102 37000 510 058 31.451 131.069 6 117 1
8990D0 S EVA191 39975 436 237 31.534 130.698 11 601 1
8990C9 S EVA131 36000 422 233 31.564 130.380 7 339 11
2014/9/26 9