USRP_UHD不提供数据

时间:2014-05-22 08:27:17

标签: redhawksdr usrp

在分配USRP之后,通过在波形xml文件中插入适当的代码,我将USRP的dataShort_out连接到DataConverter输入端口,例如DataShort,但是监视这个端口,我们发现没有任何事情,分配似乎工作正常。从监视器端口面板出现:呼叫/ s =约30; MB / s = 0;元素/ s = 0;平均队列dept = 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>

1 个答案:

答案 0 :(得分: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端口,并将结果与​​我上面发布的结果进行比较。如果值相似,那么您遇到的问题很可能是您删除的其中一个组件的结果。

有关您的环境的一些其他信息也可能有助于确定问题。您使用的是哪些版本(OS,Redhawk,FrontendInterfaces,USRP_UHD等)。您使用的是什么型号的USRP?