一行代碼速查命令功能
apropos uhd_
uhd_find_devices: 能夠打印輸出連接至 PC 的 USRP 設備基本信息。
uhd_find_devices --args="addr=192.168.10.2" #表示僅查找連接至 PC,IP 地址為 192.168.10.2 的 USRP 設備;
uhd_find_devices --args==type=usrp2 #表示僅查找連接至 PC 的 USRP2。
uhd_usrp_probe: 能夠打印輸出連接至 PC 的 USRP 設備詳細信息。
uhd_rx_cfile: 一個基於 GNU Radio 的 Python 程序,能夠將USRP 接收到的信號采樣后的數據直接儲存到 PC。
locate uhd_rx_cfile sudo uhd_rx_cfile –f 2.45G ~/bin/test_uhd_cfile.bin
uhd_fft: 一個基於 GNU Radio 的 Python 程序,能夠將 USRP2接收到的信號做 FFT 運算后以圖形界面顯示。
uhd_fft -h uhd_fft -f 2.45G
benchmark_tx.py: 一個基於 GNU Radio 的 Python 程序,能夠發送GMSK,BPSK 等調制信號的數據包。
locate benchmark_tx /usr/share/gnuradio/examples/digital/ofdm/benchmark_tx.py -h #your location which locate command find
sudo /usr/share/gnuradio/examples/digital/ofdm/benchmark_tx.py -f 935M --tx-gain=30 -v #表示以管理員權限運行程序,以中心頻率為 935MHz 發送比特率為 100Kbps 的 GMSK調制信號,射頻子板發送增益值為 30 的內插。
- uhd_fft - 一個用來在給定頻點用來顯示被連接的 UHD 設備(比如,一台 USRP)的頻譜用的簡易頻譜分析儀工具。它也可被用作 瀑布圖(waterfall plot)或者示波器(oscilloscope)。
- uhd_rx_cfile - 使用被連接的 UHD 設備來記錄 I/Q 采樣的數據流。采樣的數據被寫入文檔之中可被用來日后使用 GNU Radio 或者其它工具諸如 Octave 或 Matlab 進行離線分析用。
- uhd_rx_nogui - 使用音頻設備接收並偵聽載入的信號(incoming signals)。它可被用來進行對 AM 及 FM 信號進行解調。
- uhd_siggen{_gui}.py - 簡易的信號發生器,用它可以產生大多數常規信號(sine, sweep, square, noise)。
- gr_plot* - 這是一套可用來顯示預先錄制的采樣文檔的套件工具。用它可以展示這些信號的頻譜(spectra)、功率譜密度(PSD)及時域展現(time-domain representations)。
還有一些gnuradio的繪圖函數:gr_plot_psd_c
~/src/uhd/host/utils: include useful tools such as usrp2_recovery.py
~/src/uhd/host/examples: examples for USRP Hardware Driver(UHD)
/usr/share/gnuradio/examples or /home/labuser/src/gnuradio/gr-audio/examples and /home/labuser/src/gnuradio/gr-utils: 使用gnuradio-examples/ 和 gr-utils/下面的例程
Presentations on GNU Radio implementations and applications
GNU Radio教程:http://www.white-alone.com/GNURadio%E6%95%99%E7%A8%8B_1/, http://www.white-alone.com/GNURadio%E6%95%99%E7%A8%8B_3/
Reference
USRP for 802.11: https://github.com/bastibl/gr-ieee802-11
An IEEE 802.11a/g/p OFDM Receiver for GNU Radio
SDR WiFi平台 gr-ieee802-11 軟件無線電實現802.11協議
http://microembedded.cn/html/support/doc/n210/n210install.html