如何测试
USRP
准备:
- 安装操作系统: 需选择 OS 或 LiveDVD (到 http://www.microembedded.com/_d269873813.htm 下载 ISO 后烧制包含 GNURadio 的 BootDVD - GNURadio LiveDVD)
- 安装 GNU Radio: 创建指导
- (可选) 阅读硬件平台文档: USRP2 介绍 USRP 文档
背景阅读: Blossom Research, LLC Ettus Research LLC - 相关下载 Datasheet
- (可选) 阅读驱动(driver)代码
同 USRP 相关联的代码:
/usrp
firmware(固件): USB 控制器的 8051, 大多数以 .c
和 .a51 形式编写; FPGA: 对于 FPGA, 大多数以 .v (似乎 fpga 内仅仅含有 SRAM ,
因而它需每次为 FPGA 下载程序) 形式编写; host: 相关 PC 大多数以 .cc
形式编写:
/gr-usrp
子板驱动: 大多数以 .py 和 .cc
形式编写;
/gnuradio-example/python/usrp
对单个 USRP 板使用例程: 都以 .py
形式编写;
/gnuradio-example/python/multi-usrp
对以多个 USRP 的使用例程: 都以 .py 形式编写。
开始测试:
- 如何上电开始:
步骤1. 在插入 USB 电缆之前,
打开两个终端. 步骤2. 需实时查看所有记录信息: 键入 tail -f /var/log/messages (检查 USB
驱动安装正常)
如何停止及断电:
步骤1.
停止程序. 步骤2. 断开 USB 连接,
断电。 - USRP 第一次不带子板上电,需要运行什么脚本测试?
http://gnuradio.microembedded.com/wiki/udevconfig gnuradio\gnuradio-examples\python\usrp\usrp_siggen.py
& usrp_fft.py - 如何测试子板的发射和接受?
天线连接在 Tx/Rx SMA 而不是 Rx2! RX2
受开关控制并且缺省处于 “off" 状态! Tx 和 RX 不能由电缆相连!需要大约 40-50 DB 的衰减器!!
- /gnuradio-examples/python/usrp/usrp_siggen.py and usrp_fft.py
to observe signal
- /gnuradio-examples/python/digital/benchmark_tx.py and
benchmark_rx.py to test data transmission.
板件之间至少需要 3 M 的距离。
--/home/james/gnuradio/gnuradio-examples/python/digital/README
- 用 tx_voice.py 和 rx_voice.py 测试 voice 发射.
- 还有一些宣称 /gnuradio-examples/python/usrp/usrp_nbfm_ptt.py
双工测试语音呼叫,我还没调通。
测试声音:
- gnuradio-examples\python\audio\dial_tone.py as tutorial
- gnuradio-examples\python\audio\audio_copy.py
gnuradio-examples\python\audio\audio_to_file.py gnuradio-examples\python\audio\audio_play.py - gnuradio-examples\python\digital_voice\encdec.py to test by one
USRP
- gnuradio-examples\python\digital\tx_voice.py
gnuradio-examples\python\digital\rx_voice.py to test by two
USRP
测试数据:
- gnuradio-examples\python\digital\benchmark_tx.py
- gnuradio-examples\python\digital\benchmark_rx.py to test by two
USRP
其它:
- http://www.nabble.com/High-packet-error-and-reception-problems-with-RFX-2400-t3522095.html
./benchmark_tx.py
-f 2412M --bitrate 500k -v --tx-amplitude=30000 usrp_siggen.py 和
usrp_oscope.py ./benchmark_rx.py -f 2412M --bitrate 100k -v
--rx-gain=75 --in digital folder - http://staff.washington.edu/jon/gr-osx/gr-osx-usrp.html#using
benchmark_usb.py
评估 USB 通量 usrp_siggen.py 信号发生器 usrp_oscope.py 示波器
(screenshot) usrp_fft.py 频谱分析仪 (screenshot)
|
|