0

分配 USRP 后,通过在波形 xml 文件中插入适当的代码,我将 USRP 的 dataShort_out 连接到 DataConverter 输入端口,例如 DataShort,但是监视这个端口我们什么也找不到,尽管分配似乎工作正常。从监控端口面板出现:Call/s = about 30; MB/s = 0;元素/s = 0;平均队列部门 = 2% 时间=0;附加找到我的波形的sad.xml:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE softwareassembly PUBLIC "-//JTRS//DTD SCA V2.2.2 SAD//EN" "softwareassembly.dtd">
<softwareassembly id="DCE:c679e5d8-3193-4a96-9cdb-9f28135f63c9" name="usrp_test_waveform">
  <componentfiles>
    <componentfile id="DataConverter_6b5c2ee8-0e91-4ed0-af3b-2677f27c21ed" type="SPD">
      <localfile name="/components/DataConverter/DataConverter.spd.xml"/>
    </componentfile>
    <componentfile id="TuneFilterDecimate_4552fe55-6bd9-4fd2-b0ce-ba184199263e" type="SPD">
      <localfile name="/components/TuneFilterDecimate/TuneFilterDecimate.spd.xml"/>
    </componentfile>
    <componentfile id="AmFmPmBasebandDemod_16af112f-1335-424c-a4d6-972c63f1bd43" type="SPD">
      <localfile name="/components/AmFmPmBasebandDemod/AmFmPmBasebandDemod.spd.xml"/>
    </componentfile>
    <componentfile id="multiply_const_ff_abfee3c0-41de-42a3-b3ae-b2ba1a2fca50" type="SPD">
      <localfile name="/components/gnuhawk/gr/multiply_const_ff/current/multiply_const_ff.spd.xml"/>
    </componentfile>
    <componentfile id="AudioSink_2e8025e4-743f-4387-b129-bb15a4e1992b" type="SPD">
      <localfile name="/components/AudioSink/AudioSink.spd.xml"/>
    </componentfile>
  </componentfiles>
  <partitioning>
    <componentplacement>
      <componentfileref refid="DataConverter_6b5c2ee8-0e91-4ed0-af3b-2677f27c21ed"/>
      <componentinstantiation id="DataConverter_1" startorder="4">
        <usagename>DataConverter_1</usagename>
        <findcomponent>
          <namingservice name="DataConverter_1"/>
        </findcomponent>
      </componentinstantiation>
    </componentplacement>
    <componentplacement>
      <componentfileref refid="TuneFilterDecimate_4552fe55-6bd9-4fd2-b0ce-ba184199263e"/>
      <componentinstantiation id="TuneFilterDecimate_1" startorder="5">
        <usagename>TuneFilterDecimate_1</usagename>
        <findcomponent>
          <namingservice name="TuneFilterDecimate_1"/>
        </findcomponent>
      </componentinstantiation>
    </componentplacement>
    <componentplacement>
      <componentfileref refid="AmFmPmBasebandDemod_16af112f-1335-424c-a4d6-972c63f1bd43"/>
      <componentinstantiation id="AmFmPmBasebandDemod_1" startorder="1">
        <usagename>AmFmPmBasebandDemod_1</usagename>
        <findcomponent>
          <namingservice name="AmFmPmBasebandDemod_1"/>
        </findcomponent>
      </componentinstantiation>
    </componentplacement>
    <componentplacement>
      <componentfileref refid="TuneFilterDecimate_4552fe55-6bd9-4fd2-b0ce-ba184199263e"/>
      <componentinstantiation id="TuneFilterDecimate_2" startorder="2">
        <usagename>TuneFilterDecimate_2</usagename>
        <findcomponent>
          <namingservice name="TuneFilterDecimate_2"/>
        </findcomponent>
      </componentinstantiation>
    </componentplacement>
    <componentplacement>
      <componentfileref refid="multiply_const_ff_abfee3c0-41de-42a3-b3ae-b2ba1a2fca50"/>
      <componentinstantiation id="multiply_const_ff_1" startorder="3">
        <usagename>multiply_const_ff_1</usagename>
        <findcomponent>
          <namingservice name="multiply_const_ff_1"/>
        </findcomponent>
      </componentinstantiation>
    </componentplacement>
    <componentplacement>
      <componentfileref refid="DataConverter_6b5c2ee8-0e91-4ed0-af3b-2677f27c21ed"/>
      <componentinstantiation id="DataConverter_2" startorder="0">
        <usagename>DataConverter_2</usagename>
        <findcomponent>
          <namingservice name="DataConverter_2"/>
        </findcomponent>
      </componentinstantiation>
    </componentplacement>
    <componentplacement>
      <componentfileref refid="AudioSink_2e8025e4-743f-4387-b129-bb15a4e1992b"/>
      <componentinstantiation id="AudioSink_1" startorder="6">
        <usagename>AudioSink_1</usagename>
        <findcomponent>
          <namingservice name="AudioSink_1"/>
        </findcomponent>
      </componentinstantiation>
    </componentplacement>
  </partitioning>
  <assemblycontroller>
    <componentinstantiationref refid="DataConverter_2"/>
  </assemblycontroller>
  <connections>
    <connectinterface id="usrpAllocation">
      <usesport>
        <usesidentifier>dataShort_out</usesidentifier>
        <deviceusedbyapplication usesrefid="DCE:18964b3d-392e-4b98-a90d-0569b5d46ffe"/>
      </usesport>
      <providesport>
        <providesidentifier>dataShort</providesidentifier>
        <componentinstantiationref refid="DataConverter_2"/>
      </providesport>
    </connectinterface>
    <connectinterface id="connection_1">
      <usesport>
        <usesidentifier>dataFloat_Out</usesidentifier>
        <componentinstantiationref refid="TuneFilterDecimate_1"/>
      </usesport>
      <providesport>
        <providesidentifier>dataFloat_In</providesidentifier>
        <componentinstantiationref refid="AmFmPmBasebandDemod_1"/>
      </providesport>
    </connectinterface>
    <connectinterface id="connection_2">
      <usesport>
        <usesidentifier>fm_dataFloat_out</usesidentifier>
        <componentinstantiationref refid="AmFmPmBasebandDemod_1"/>
      </usesport>
      <providesport>
        <providesidentifier>dataFloat_In</providesidentifier>
        <componentinstantiationref refid="TuneFilterDecimate_2"/>
      </providesport>
    </connectinterface>
    <connectinterface id="connection_3">
      <usesport>
        <usesidentifier>float_out</usesidentifier>
        <componentinstantiationref refid="multiply_const_ff_1"/>
      </usesport>
      <providesport>
        <providesidentifier>dataFloat</providesidentifier>
        <componentinstantiationref refid="DataConverter_1"/>
      </providesport>
    </connectinterface>
    <connectinterface id="connection_4">
      <usesport>
        <usesidentifier>dataFloat_Out</usesidentifier>
        <componentinstantiationref refid="TuneFilterDecimate_2"/>
      </usesport>
      <providesport>
        <providesidentifier>float_in</providesidentifier>
        <componentinstantiationref refid="multiply_const_ff_1"/>
      </providesport>
    </connectinterface>
    <connectinterface id="connection_5">
      <usesport>
        <usesidentifier>dataFloat_out</usesidentifier>
        <componentinstantiationref refid="DataConverter_2"/>
      </usesport>
      <providesport>
        <providesidentifier>dataFloat_In</providesidentifier>
        <componentinstantiationref refid="TuneFilterDecimate_1"/>
      </providesport>
    </connectinterface>
    <connectinterface id="connection_6">
      <usesport>
        <usesidentifier>dataShort_out</usesidentifier>
        <componentinstantiationref refid="DataConverter_1"/>
      </usesport>
      <providesport>
        <providesidentifier>audio_in</providesidentifier>
        <componentinstantiationref refid="AudioSink_1"/>
      </providesport>
    </connectinterface>
  </connections>
  <usesdevicedependencies>
        <usesdevice id="DCE:18964b3d-392e-4b98-a90d-0569b5d46ffe" 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="RX_DIGITIZER"/>
                <simpleref refid="FRONTEND::tuner_allocation::allocation_id" value="usrpAllocation"/>
                <simpleref refid="FRONTEND::tuner_allocation::center_frequency" value="102500000"/>
                <simpleref refid="FRONTEND::tuner_allocation::bandwidth" value="320000"/>
                <simpleref refid="FRONTEND::tuner_allocation::sample_rate" value="250000"/>
                <simpleref refid="FRONTEND::tuner_allocation::group_id" value=""/>
                <simpleref refid="FRONTEND::tuner_allocation::rf_flow_id" value=""/>
            </structref>
        </usesdevice>
    </usesdevicedependencies>
</softwareassembly>
4

1 回答 1

0

我试图在 REDHAWK 1.9 中重现该问题,但没有任何运气。我通过从波形中删除除第一个 DataConverter 组件之外的所有连接和组件来简化您的波形。我还保留了 USRP_UHD 分配以及 USRP_UHD 和 DataConverter 之间的连接。这侧重于 USRP_UHD 设备,而不会从已删除的组件中引入潜在问题。在我的测试中,数据从 USRP_UHD 设备按预期通过 DataConverter 流动。监控 USRP_UHD 的dataShort_out端口会产生以下结果:

Calls/s: 0.9
MB/s: 0.9
Elements/s: 460,000
Average Queue depth: 0%
Time: 0

你监控的是哪个端口?考虑到选择的采样率为 250 kHz 并且每个采样由两个short int 元素组成,这些值是合理的。

我建议你像我一样简化你的波形,看看问题是否仍然存在。确保在启动波形后启动它。监控 USRP_UHD 的dataShort_out端口并将结果与​​我上面发布的结果进行比较。如果值相似,则您遇到的问题可能是您删除的组件之一造成的。

有关您的环境的一些附加信息也可能有助于识别问题。您使用的是什么版本(操作系统、Redhawk、FrontendInterfaces、USRP_UHD 等)。您使用的是什么型号的 USRP?

于 2014-06-19T12:23:25.450 回答