UHD Start
UHD 是 Ettus Resarch 产品的
Universal Hardware Driver (通用硬件驱动)的缩写。它适用所有的主要的平台(Linux, Windows, 和 Mac);可通过
GCC, Clang, 和 MSVC
编译器构建。
UHD 的旨意是为 Ettus Research
目前和未来的产品提供宿主驱动(host
driver)和 API。这样用户便可独立使用
UHD 驱动或灵活同第三方应用诸如:Gnuradio,
Labview, 或 Simulink 相配合。下面是针对配合 GNURadio 的指导。
如若独立使用 UHD 或配合
Gnuradio,预构的二进制数据包也无从寻觅。这样的话便需编译 UHD。具体请参阅下面的 构建指导(build
instructions)。
获取源码 - Get the source
git clone git://code.ettus.com/ettus/uhd.git
Git 协议(Git Protocol)如若被贵公司或学校的防火墙屏蔽?那么请试试下面 Http
镜像站点。同时告知系统管理员。该镜像站点每日更新。
git clone http://github.com/EttusResearch/UHD-Mirror.git
构建请参阅 构建指导(build
instructions)。
下载
- Download
文档 - Documentation
Gnuradio + UHD
The gr-uhd component of
Gnuradio comes with a set of source and sink blocks for UHD as well as block
wrappers for the Gnuradio-Companion. To get the gr-uhd blocks, you will need to
checkout the next branch on git://gnuradio.org/gnuradio.git
From a checked out Gnuradio
repository, run the following commands:
git branch --track next origin/next
git checkout next
If your Gnuradio prefix and
lib_suffix are different than the settings configured for UHD, you will need to
set your PKG_CONFIG_PATH environment variable before configuring Gnuradio.
Example:
-- Setting the default path
--
export
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:${PKG_CONFIG_PATH}
-- Setting a custom path
--
export
PKG_CONFIG_PATH=<prefix>/lib<lib_suffix>/pkgconfig:${PKG_CONFIG_PATH}
After configuring Gnuradio,
make sure that gr-uhd is one of the enabled components. Proceed to build and
install as usual.
Discussions
注:UHD Start(英文原文出处,以上翻译整理仅供参考! email: support@microembedded.com)