RaspberryPi 3 Model-BにRTL-SDRをインストールして、SDRサーバにする
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 country=JP network={ ssid="MySSID" psk="MyPASSWORD" }
$ sudo systemctl stop dphys-swapfile.service $ sudo systemctl disable dphys-swapfile.service $ sudo rm /var/swap
$ lsusb Bus 001 Device 004: ID 0bda:2838 Realtek Semiconductor Corp. RTL2838 DVB-T
$ rtl_test Found 1 device(s): 0: Realtek, RTL2838UHIDIR, SN: 00000001 Using device 0: Generic RTL2832U OEM usb_open error -3 Please fix the device permissions, e.g. by installing the udev rules file rtl-sdr.rules Failed to open rtlsdr device #0.こんなエラーが出るので、blacklistを作成する。
$ sudo nano /etc/modprobe.d/rtlsdr-blacklist.conf blacklist dvb_usb_rtl28xxu再起動して、もう一度rtl_testを実行
$ 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 [R82XX] PLL not locked! 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...Ctrl-Cで抜ける。
$ crontab -e @reboot /usr/bin/rtl_tcp -a 0.0.0.0