USRP_UHD Redhawk的源和接收器 [英] USRP_UHD source and sink for redhawk

查看:145
本文介绍了USRP_UHD Redhawk的源和接收器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从github存储库中安装了最新版本的Redhawk(v1.9.0)和USRP_UHD( https://github.com/RedhawkSDR/USRP_UHD ),但我不知道如何构建USRP源/接收器. 这些组件在某些存储库中已经可用了吗? 如果没有,有人可以帮助我构建这些源/接收器吗?

I install last version of Redhawk (v1.9.0) and USRP_UHD from github repository (https://github.com/RedhawkSDR/USRP_UHD) but I have no idea how to build a USRP source/sink. Are already available these component in some repository? If not,someone can help me to build these source/sink??

预先感谢

胭脂红

推荐答案

正如John C所说,为了控制USRP_UHD设备,必须对其中一个调谐器执行分配.在RedHawk 1.9中,执行此操作的步骤如下:

As John C said, in order to control the USRP_UHD Device, you must perform an allocation onto one of the tuners. In RedHawk 1.9, the steps to do this are as follows:

  1. 打开您要在其中执行分配的波形并查看* .sad.xml文件
  2. 在连接"部分下方(</connections>标记之后)添加以下内容:

  1. Open the waveform in which you would like to perform the allocation and view the *.sad.xml file
  2. Below the connections section (after the </connections> tag) add the following:

<usesdevicedependencies> <usesdevice id="DCE:@UUID@" type="usesUSRP"> <propertyref refid="DCE:cdc5ee18-7ceb-4ae6-bf4c-31f983179b4d" value="FRONTEND"/> <propertyref refid="DCE:0f99b2e4-9903-4631-9846-ff349d18ecfb" value="USRP"/> <structref refid="FRONTEND::tuner_allocation"> <simpleref refid="FRONTEND::tuner_allocation::tuner_type" value="@TUNER_TYPE@"/> <simpleref refid="FRONTEND::tuner_allocation::allocation_id" value="usrpAllocation"/> <simpleref refid="FRONTEND::tuner_allocation::center_frequency" value="99100000"/> <simpleref refid="FRONTEND::tuner_allocation::bandwidth" value="1000000"/> <simpleref refid="FRONTEND::tuner_allocation::sample_rate" value="1000000"/> <simpleref refid="FRONTEND::tuner_allocation::group_id" value=""/> <simpleref refid="FRONTEND::tuner_allocation::rf_flow_id" value=""/> </structref> </usesdevice> </usesdevicedependencies>

<usesdevicedependencies> <usesdevice id="DCE:@UUID@" type="usesUSRP"> <propertyref refid="DCE:cdc5ee18-7ceb-4ae6-bf4c-31f983179b4d" value="FRONTEND"/> <propertyref refid="DCE:0f99b2e4-9903-4631-9846-ff349d18ecfb" value="USRP"/> <structref refid="FRONTEND::tuner_allocation"> <simpleref refid="FRONTEND::tuner_allocation::tuner_type" value="@TUNER_TYPE@"/> <simpleref refid="FRONTEND::tuner_allocation::allocation_id" value="usrpAllocation"/> <simpleref refid="FRONTEND::tuner_allocation::center_frequency" value="99100000"/> <simpleref refid="FRONTEND::tuner_allocation::bandwidth" value="1000000"/> <simpleref refid="FRONTEND::tuner_allocation::sample_rate" value="1000000"/> <simpleref refid="FRONTEND::tuner_allocation::group_id" value=""/> <simpleref refid="FRONTEND::tuner_allocation::rf_flow_id" value=""/> </structref> </usesdevice> </usesdevicedependencies>

在连接"部分(在<connections>标记之后)添加以下内容:

In the connections section, (after the <connections> tag) add the following:

<connectinterface id="usrpAllocation"> <usesport> <usesidentifier>dataShort_out</usesidentifier> <deviceusedbyapplication usesrefid="DCE:@SAME_UUID_AS_ABOVE@"/> </usesport> <providesport> <providesidentifier>@INPUT_PORT_NAME@</providesidentifier> <componentinstantiationref refid="@NAME_OF_COMPONENT_IN_WAVEFORM@"/> </providesport> </connectinterface>

<connectinterface id="usrpAllocation"> <usesport> <usesidentifier>dataShort_out</usesidentifier> <deviceusedbyapplication usesrefid="DCE:@SAME_UUID_AS_ABOVE@"/> </usesport> <providesport> <providesidentifier>@INPUT_PORT_NAME@</providesidentifier> <componentinstantiationref refid="@NAME_OF_COMPONENT_IN_WAVEFORM@"/> </providesport> </connectinterface>

保存波形并将其安装在SDRROOT中

Save the waveform and install it in SDRROOT

第二步,您实际要做的是指定波形取决于特定设备.依赖关系由usesdevice ID唯一标识.在这里,您应该将@ UUID @替换为在终端中运行uuidgen命令的输出.接下来,您必须确定波形所依赖的设备,这是通过FRONTEND和USRP属性引用完成的.最后,您必须指定分配给设备的参数,以便它将为您设置调谐器.如果要接收数据,请将@ TUNER_TYPE @替换为RX_DIGITIZER,如果要传输数据,则替换为TX.分配ID可以保持不变,除非您打算在设备上进行多次分配.在这种情况下,每个分配必须具有唯一的分配ID.其余参数很容易解释,尽管应注意,center_frequency参数应以Hz为单位指定,并且sample_rate参数是复数采样率.

In the second step, what you are actually doing is specifying that the waveform depends on a certain device. The dependency is uniquely identified by the usesdevice id. Here you should replace @UUID@ with the output of running the uuidgen command in a terminal. Next, you must identify which device the waveform depends on, which is accomplished with the FRONTEND and USRP property references. Finally, you have to specify the parameters of the allocation to the device so that it will set the tuner up for you. Replace @TUNER_TYPE@ with RX_DIGITIZER if you would like to receive data, or TX if you would like to transmit data. The allocation id can remain as it is, unless you intend to have multiple allocations onto the device. In this case, you must have a unique allocation id for each allocation. The rest of the parameters are fairly self explanatory, although it should be noted that the center_frequency parameter should be specified in Hz, and sample_rate paramter is the complex sample rate.

在第三步中,您正在做的是将设备连接到波形中的组件. connectinterface ID应该与第二步中的分配ID相匹配,而applicationusedbyapplicationUsesrefsid应该与第二步中的usesdevice ID相匹配. @ INPUT_PORT_NAME @应该与组件上输入端口的名称匹配,而@ NAME_OF_COMPONENT_IN_WAVEFORM @应该与要连接的组件的用法名称匹配.

In the third step, what you are doing is connecting the device to a component in your waveform. The connectinterface id should match the allocation id from the second step, and the deviceusedbyapplication usesrefid should match the usesdevice id from the second step. The @INPUT_PORT_NAME@ should match the name of an input port on your component and the @NAME_OF_COMPONENT_IN_WAVEFORM@ should match the usagename of the component you want to connect to.

这篇关于USRP_UHD Redhawk的源和接收器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆