问题标签 [redhawksdr]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
219 浏览

unit-testing - 如何在 REDHAWK 单元测试中使用 get 方法直接查询 USB 加密狗?

我正在尝试查询我的 USB 加密狗 (NooElec R820T SDR) 以确定它调谐到的频率。我想进行单元测试配置调用,以查看设备是否已正确调整并正常工作。我可以简单地使用:

设置值并打印出来。但是,我想问的是硬件而不是组件。RH 手册有这样的内容:

我认为这一点仍然只需要组件价值,而不是硬件本身。是否可以使用 RH 直接查询设备?

提前致谢。

0 投票
1 回答
113 浏览

redhawksdr - 有没有办法在运行时更改组件中的输出端口数?

在我的应用程序中,在用户指定配置文件之前,我不会知道组件的输出端口数。我试图通过将 .scd.xml 文件中的输出端口数保持为零来做到这一点。当我通过 IDE 在属性更改事件上选择配置文件时,我调用 releaseOutPorts() 并删除任何现有的端口对象。

在我的示例组件中,我通过创建新的 bulkio::OutFloatPort 对象来创建 N 个新输出端口,并以与在 USRP_UHD 组件中通过调用 ossie::corba::RootPOA()->activate_object(端口)并调用 registerOutPort。执行此操作时我没有收到任何错误,但我看不到端口显示在沙箱或 IDE 中。这是因为 .scd.xml 文件中没有提供端口信息而导致的问题吗?当组件被拖入黑板或加载到沙箱中时,任何人都可以深入了解当前如何枚举端口吗?

0 投票
2 回答
405 浏览

redhawksdr - REDHAWK IDE 沙箱未出现在 SCA Explorer 中

我在 CentOS 6.5 上使用 REDHAWK IDE 1.9.0 版,今天运行了由 OpenJDK 更新组成的软件更新。

在更新之前,我能够在 IDE 中看到沙盒和黑板。当我在更新后打开 IDE 一会儿时,沙箱就消失了。

我尝试安装 Java SE JRE 1.8.0_05 版并重新启动 REDHAWK IDE,但没有成功。

然后我尝试了一个全新的 IDE 安装,它成功地在启动 IDE 的两个不同时间显示了沙箱。虽然,在关闭了一个小时左右后,沙盒又不见了。

这听起来像一个java问题吗?如果不是,IDE 是否以某种方式破坏了自身?

请注意,在REDHAWK 不活动期间,我只使用文字处理器和网络浏览器。

编辑:在更新之前,我已经安装了最新的 GNU HAWK 组件,并且能够将各种 GNU HAWK 组件加载到黑板上,而沙盒仍然显示。

0 投票
1 回答
200 浏览

redhawksdr - 启动远程设备管理器

我正在运行一个在多台计算机上具有设备的波形。域管理器和设备管理器在一个 GPP(1) 上启动。设备管理器在另一个 GPP(2) 上启动。域管理器和设备管理器在 GPP 启动时启动。

我可以为操作员制定一个程序,即首先启动 GPP(2),然后启动 GPP(1)。但这种方法并不可取。我希望能够在域管理器启动后从 GPP(1) 启动 GPP(2) 上的设备管理器。

REDHAWK 是否有启动远程设备管理器的标准方法?

0 投票
2 回答
237 浏览

redhawksdr - 组件在哪里?

我在 RedHat 6.3 上使用 RED HAWK IDE 1.9.0 版。

安装 RedHawk 后,我看了视频http://www.youtube.com/watch?v=wN9p8EjiQs4

我尝试浏览该示例,但我注意到我缺少她拥有的大量组件,例如 add_const_ff、complex_to、noise_source、vector_sink、medianfilter。

我应该拥有它们吗?有我丢失的包裹吗?


添加东西以使检查器除我的问题之外。我试了,然后试了。要去试试。

0 投票
1 回答
357 浏览

redhawksdr - RedHawk 支持哪些目标操作系统

我没有使用过 RedHawk,但正在考虑使用它。阅读文档,RedHawk 似乎只支持在各种 Linux 上进行开发,但尚不清楚此限制是否也适用于目标执行环境。RedHawk 能否支持应用程序在非 Linux 目标硬件上运行(交叉编译、CoreFramework、远程调试……)?

0 投票
1 回答
258 浏览

redhawksdr - AudioSink 未知错误

我想构建一个 FM/AM 发射器/接收器来测试我在 Redhawk 上的 USRP,并从 GitHub Axios-Engineering 存储库下载了音频组件。我尝试构建我运行的这些波形:-SigGen、DataConverter 和 AudioSink;-AudioTestSource 和 AudioSink;在这两种情况下,我都收到了这个错误: ERROR:ApplicationFactory_impl - Failed to instantiate component: 'AudioTestSource' with component id: 'AudioTestSource_1:audioTesat_134_170515794_1 assigned to device: 'DCE:22e17539-e384-462f-8414-24024524a4da' in waveform 'audioTesat_134_170515794_1';'configure' failed with Unknown Exception error occurred near line:3275 in file:ApplicationFactory_impl.cpp; TRACE:PropertySet_impl - Query all properties TRACE:PropertySet_impl - Query returning 3 properties WARN:ApplicationFactory_impl - CF::ExecutableDevice::terminate failed for DCE:22e17539-e384-462f-8414-24024524a4da; CORBA::Exception name: InvalidProcess

我在 CentOS6.5、RedHawk 1.9 上工作,并安装并包含了每个库。

提前致谢

编辑:这是日志 DEBUG:DCE:22e17539-e384-462f-8414-24024524a4da:Issuing event for DCE:9da85ebc-6503-48e7-af36-b77c7ad0c2b4 ({'fivemin': 0.34999999999999998, 'fifteenmin': 0.28000000000000003, 'onemin': 0.23000000000000001} != {'fivemin': 0.35999999999999999, 'fifteenmin': 0.28000000000000003, 'onemin': 0.28999999999999998}) DEBUG:DCE:22e17539-e384-462f-8414-24024524a4da:Issuing event for DCE:6565bffd-cb09-4927-9385-2ecac68035c7 (2966 != 2938) DEBUG:DCE:22e17539-e384-462f-8414-24024524a4da:Eventing for properties ['DCE:9da85ebc-6503-48e7-af36-b77c7ad0c2b4', 'DCE:6565bffd-cb09-4927-9385-2ecac68035c7'] DEBUG:DCE:22e17539-e384-462f-8414-24024524a4da:sendPropertiesEvent ['DCE:9da85ebc-6503-48e7-af36-b77c7ad0c2b4', 'DCE:6565bffd-cb09-4927-9385-2ecac68035c7'] DEBUG:DCE:22e17539-e384-462f-8414-24024524a4da:sendEvent CORBA.Any(CORBA.TypeCode("IDL:ExtendedEvent/PropertySetChangeEventType:1.0"), ossie.cf.ExtendedEvent.PropertySetChangeEventType(sourceId='DCE:22e17539-e384-462f-8414-24024524a4da', sourceName='', properties=[ossie.cf.CF.DataType(id='DCE:9da85ebc-6503-48e7-af36-b77c7ad0c2b4', value=CORBA.Any(CORBA.TypeCode("IDL:CF/Properties:1.0"), [ossie.cf.CF.DataType(id='fivemin', value=CORBA.Any(CORBA.TC_double, 0.35999999999999999)), ossie.cf.CF.DataType(id='fifteenmin', value=CORBA.Any(CORBA.TC_double, 0.28000000000000003)), ossie.cf.CF.DataType(id='onemin', value=CORBA.Any(CORBA.TC_double, 0.28999999999999998))])), ossie.cf.CF.DataType(id='DCE:6565bffd-cb09-4927-9385-2ecac68035c7', value=CORBA.Any(CORBA.TC_long, 2938))])) {} DEBUG:DCE:22e17539-e384-462f-8414-24024524a4da:load(/components/AudioTestSource/cpp/AudioTestSource, EXECUTABLE) DEBUG:DCE:22e17539-e384-462f-8414-24024524a4da:Creating dir components DEBUG:DCE:22e17539-e384-462f-8414-24024524a4da:Creating dir AudioTestSource DEBUG:DCE:22e17539-e384-462f-8414-24024524a4da:Creating dir cpp DEBUG:DCE:22e17539-e384-462f-8414-24024524a4da:File /components/AudioTestSource/cpp/AudioTestSource has reference count 0 and local file existence is False DEBUG:DCE:22e17539-e384-462f-8414-24024524a4da:Loading Tree /components/AudioTestSource/cpp/AudioTestSource components/AudioTestSource/cpp [CF.FileSystem.FileInformationType(name='AudioTestSource', kind=PLAIN, size=2378971L, fileProperties=[ossie.cf.CF.DataType(id='CREATED_TIME', value=CORBA.Any(CORBA.TC_ulonglong, 1400751415L)), ossie.cf.CF.DataType(id='MODIFIED_TIME', value=CORBA.Any(CORBA.TC_ulonglong, 1400751415L)), ossie.cf.CF.DataType(id='LAST_ACCESS_TIME', value=CORBA.Any(CORBA.TC_ulonglong, 1400751415L)), ossie.cf.CF.DataType(id='READ_ONLY', value=CORBA.Any(CORBA.TC_boolean, False)), ossie.cf.CF.DataType(id='IOR_AVAILABLE', value=CORBA.Any(CORBA.TypeCode("IDL:omg.org/CORBA/StringSeq:1.0"), []))])] DEBUG:DCE:22e17539-e384-462f-8414-24024524a4da:Reading file AudioTestSource -> components/AudioTestSource/cpp/AudioTestSource DEBUG:DCE:22e17539-e384-462f-8414-24024524a4da:Copy file /components/AudioTestSource/cpp/AudioTestSource -> /var/redhawk/sdr/dev/.DevMgr_wifiunipi-154-219.unipi.it/GPP_wifiunipi-154-219_unipi_it/components/AudioTestSource/cpp/AudioTestSource DEBUG:DCE:22e17539-e384-462f-8414-24024524a4da:execute(/components/AudioTestSource/cpp/AudioTestSource, [ossie.cf.CF.DataType(id='STACK_SIZE', value=CORBA.Any(CORBA.TC_ulong, 0L)), ossie.cf.CF.DataType(id='PRIORITY', value=CORBA.Any(CORBA.TC_ulong, 0L))], [ossie.cf.CF.DataType(id='NAMING_CONTEXT_IOR', value=CORBA.Any(CORBA.TC_string, 'IOR:010000002b00000049444c3a6f6d672e6f72672f436f734e616d696e672f4e616d696e67436f6e746578744578743a312e30000001000000000000007800000001010200100000003133312e3131342e3135342e31333400f90a00000e000000ff0086c67d5301001c7e0000000400000300000000000000080000000100000000545441010000001c00000001000000010001000100000001000105090101000100000009010100035454410800000086c67d5301001c7e')), ossie.cf.CF.DataType(id='COMPONENT_IDENTIFIER', value=CORBA.Any(CORBA.TC_string, 'AudioTestSource_1:Audio_test_waveform_142_114653655_1')), ossie.cf.CF.DataType(id='NAME_BINDING', value=CORBA.Any(CORBA.TC_string, 'AudioTestSource_1'))]) DEBUG:DCE:22e17539-e384-462f-8414-24024524a4da:Running /var/redhawk/sdr/dev/.DevMgr_wifiunipi-154-219.unipi.it/GPP_wifiunipi-154-219_unipi_it/components/AudioTestSource/cpp/AudioTestSource /var/redhawk/sdr/dev/.DevMgr_wifiunipi-154-219.unipi.it/GPP_wifiunipi-154-219_unipi_it DEBUG:DCE:22e17539-e384-462f-8414-24024524a4da:Popen /var/redhawk/sdr/dev/.DevMgr_wifiunipi-154-219.unipi.it/GPP_wifiunipi-154-219_unipi_it/components/AudioTestSource/cpp/AudioTestSource ['/var/redhawk/sdr/dev/.DevMgr_wifiunipi-154-219.unipi.it/GPP_wifiunipi-154-219_unipi_it/components/AudioTestSource/cpp/AudioTestSource', 'NAMING_CONTEXT_IOR', 'IOR:010000002b00000049444c3a6f6d672e6f72672f436f734e616d696e672f4e616d696e67436f6e746578744578743a312e30000001000000000000007800000001010200100000003133312e3131342e3135342e31333400f90a00000e000000ff0086c67d5301001c7e0000000400000300000000000000080000000100000000545441010000001c00000001000000010001000100000001000105090101000100000009010100035454410800000086c67d5301001c7e', 'COMPONENT_IDENTIFIER', 'AudioTestSource_1:Audio_test_waveform_142_114653655_1', 'NAME_BINDING', 'AudioTestSource_1'] DEBUG:DCE:22e17539-e384-462f-8414-24024524a4da:execute() --> 7456 DEBUG:DCE:22e17539-e384-462f-8414-24024524a4da:APPLICATIONS {7456: <subprocess.Popen object at 0x1248250>} DEBUG:DCE:22e17539-e384-462f-8414-24024524a4da:load(/components/AudioSink/cpp/AudioSink, EXECUTABLE) DEBUG:DCE:22e17539-e384-462f-8414-24024524a4da:Creating dir components DEBUG:DCE:22e17539-e384-462f-8414-24024524a4da:Creating dir AudioSink DEBUG:DCE:22e17539-e384-462f-8414-24024524a4da:Creating dir cpp DEBUG:DCE:22e17539-e384-462f-8414-24024524a4da:File /components/AudioSink/cpp/AudioSink has reference count 0 and local file existence is False DEBUG:DCE:22e17539-e384-462f-8414-24024524a4da:Loading Tree /components/AudioSink/cpp/AudioSink components/AudioSink/cpp [CF.FileSystem.FileInformationType(name='AudioSink', kind=PLAIN, size=1854013L, fileProperties=[ossie.cf.CF.DataType(id='CREATED_TIME', value=CORBA.Any(CORBA.TC_ulonglong, 1400751287L)), ossie.cf.CF.DataType(id='MODIFIED_TIME', value=CORBA.Any(CORBA.TC_ulonglong, 1400751287L)), ossie.cf.CF.DataType(id='LAST_ACCESS_TIME', value=CORBA.Any(CORBA.TC_ulonglong, 1400751287L)), ossie.cf.CF.DataType(id='READ_ONLY', value=CORBA.Any(CORBA.TC_boolean, False)), ossie.cf.CF.DataType(id='IOR_AVAILABLE', value=CORBA.Any(CORBA.TypeCode("IDL:omg.org/CORBA/StringSeq:1.0"), []))])] DEBUG:DCE:22e17539-e384-462f-8414-24024524a4da:Reading file AudioSink -> components/AudioSink/cpp/AudioSink DEBUG:DCE:22e17539-e384-462f-8414-24024524a4da:Copy file /components/AudioSink/cpp/AudioSink -> /var/redhawk/sdr/dev/.DevMgr_wifiunipi-154-219.unipi.it/GPP_wifiunipi-154-219_unipi_it/components/AudioSink/cpp/AudioSink DEBUG:DCE:22e17539-e384-462f-8414-24024524a4da:execute(/components/AudioSink/cpp/AudioSink, [ossie.cf.CF.DataType(id='STACK_SIZE', value=CORBA.Any(CORBA.TC_ulong, 0L)), ossie.cf.CF.DataType(id='PRIORITY', value=CORBA.Any(CORBA.TC_ulong, 0L))], [ossie.cf.CF.DataType(id='NAMING_CONTEXT_IOR', value=CORBA.Any(CORBA.TC_string, 'IOR:010000002b00000049444c3a6f6d672e6f72672f436f734e616d696e672f4e616d696e67436f6e746578744578743a312e30000001000000000000007800000001010200100000003133312e3131342e3135342e31333400f90a00000e000000ff0086c67d5301001c7e0000000400000300000000000000080000000100000000545441010000001c00000001000000010001000100000001000105090101000100000009010100035454410800000086c67d5301001c7e')), ossie.cf.CF.DataType(id='COMPONENT_IDENTIFIER', value=CORBA.Any(CORBA.TC_string, 'AudioSink_1:Audio_test_waveform_142_114653655_1')), ossie.cf.CF.DataType(id='NAME_BINDING', value=CORBA.Any(CORBA.TC_string, 'AudioSink_1'))]) DEBUG:DCE:22e17539-e384-462f-8414-24024524a4da:Running /var/redhawk/sdr/dev/.DevMgr_wifiunipi-154-219.unipi.it/GPP_wifiunipi-154-219_unipi_it/components/AudioSink/cpp/AudioSink /var/redhawk/sdr/dev/.DevMgr_wifiunipi-154-219.unipi.it/GPP_wifiunipi-154-219_unipi_it DEBUG:DCE:22e17539-e384-462f-8414-24024524a4da:Popen /var/redhawk/sdr/dev/.DevMgr_wifiunipi-154-219.unipi.it/GPP_wifiunipi-154-219_unipi_it/components/AudioSink/cpp/AudioSink ['/var/redhawk/sdr/dev/.DevMgr_wifiunipi-154-219.unipi.it/GPP_wifiunipi-154-219_unipi_it/components/AudioSink/cpp/AudioSink', 'NAMING_CONTEXT_IOR', 'IOR:010000002b00000049444c3a6f6d672e6f72672f436f734e616d696e672f4e616d696e67436f6e746578744578743a312e30000001000000000000007800000001010200100000003133312e3131342e3135342e31333400f90a00000e000000ff0086c67d5301001c7e0000000400000300000000000000080000000100000000545441010000001c00000001000000010001000100000001000105090101000100000009010100035454410800000086c67d5301001c7e', 'COMPONENT_IDENTIFIER', 'AudioSink_1:Audio_test_waveform_142_114653655_1', 'NAME_BINDING', 'AudioSink_1'] DEBUG:DCE:22e17539-e384-462f-8414-24024524a4da:execute() --> 7457 DEBUG:DCE:22e17539-e384-462f-8414-24024524a4da:APPLICATIONS {7456: <subprocess.Popen object at 0x1248250>, 7457: <subprocess.Popen object at 0x1248210>} DEBUG:DCE:22e17539-e384-462f-8414-24024524a4da:terminate(7456) DEBUG:DCE:22e17539-e384-462f-8414-24024524a4da:{7456: <subprocess.Popen object at 0x1248250>, 7457: <subprocess.Popen object at 0x1248210>} ERROR:DCE:22e17539-e384-462f-8414-24024524a4da:Child process 7457 terminated with signal 11 DEBUG:DCE:22e17539-e384-462f-8414-24024524a4da:unload(/components/AudioTestSource/cpp/AudioTestSource) DEBUG:DCE:22e17539-e384-462f-8414-24024524a4da:{} DEBUG:DCE:22e17539-e384-462f-8414-24024524a4da:terminate(7457) DEBUG:DCE:22e17539-e384-462f-8414-24024524a4da:{} DEBUG:DCE:22e17539-e384-462f-8414-24024524a4da:unload(/components/AudioSink/cpp/AudioSink) DEBUG:DCE:22e17539-e384-462f-8414-24024524a4da:{}

这是节点日志: INFO:DomainManager_impl - Installing application /waveforms/Audio_test_waveform/Audio_test_waveform.sad.xml DEBUG:ComponentInfo - Loading component properties from /components/AudioTestSource/AudioTestSource.prf.xml DEBUG:ComponentInfo - Parsing component properties DEBUG:ComponentInfo - Loading component properties from /components/AudioSink/AudioSink.prf.xml DEBUG:ComponentInfo - Parsing component properties DEBUG:ApplicationFactory_impl - UsesDevice Impl Vec of length 0 DEBUG:ApplicationFactory_impl - Trying to find the device DEBUG:ImplementationInfo - Attempting to match allocation properties DEBUG:ImplementationInfo - Done matching allocation properties DEBUG:ApplicationFactory_impl - Assigned component AudioTestSource_1 to DCE:22e17539-e384-462f-8414-24024524a4da DEBUG:ApplicationFactory_impl - **PASSED** COMP INST_ID:AudioTestSource_1 IMPL:cpp DEBUG:ApplicationFactory_impl - UsesDevice Impl Vec of length 0 DEBUG:ApplicationFactory_impl - Trying to find the device DEBUG:ImplementationInfo - Attempting to match allocation properties DEBUG:ImplementationInfo - Done matching allocation properties DEBUG:ApplicationFactory_impl - Assigned component AudioSink_1 to DCE:22e17539-e384-462f-8414-24024524a4da DEBUG:ApplicationFactory_impl - **PASSED** COMP INST_ID:AudioSink_1 IMPL:cpp ERROR:ApplicationFactory_impl - Failed to instantiate component: 'AudioSink' with component id: 'AudioSink_1:Audio_test_waveform_142_114653655_1 assigned to device: 'DCE:22e17539-e384-462f-8414-24024524a4da' in waveform 'Audio_test_waveform_142_114653655_1';'configure' failed with Unknown Exception error occurred near line:3275 in file:ApplicationFactory_impl.cpp; WARN:ApplicationFactory_impl - CF::ExecutableDevice::terminate failed for DCE:22e17539-e384-462f-8414-24024524a4da; CORBA::Exception name: InvalidProcess ERROR:ApplicationFactory_impl - Error in application creation; Failed to instantiate component: 'AudioSink' with component id: 'AudioSink_1:Audio_test_waveform_142_114653655_1 assigned to device: 'DCE:22e17539-e384-462f-8414-24024524a4da' in waveform 'Audio_test_waveform_142_114653655_1';'configure' failed with Unknown Exception error occurred near line:3275 in file:ApplicationFactory_impl.cpp; INFO:DomainManager_impl - Uninstalling application DCE:bfa10c69-0965-493a-b6ca-20e8895a6ae2

0 投票
1 回答
151 浏览

redhawksdr - Maven 构建 eclipse-gov.redhawk.core,nxm-ui 存储库

这个问题是对 Netrunner 的问题的跟进根据 Eric Englund 的回复,我能够通过创建我自己的 jacorb 的 OSGi 包、在本地安装并相应地更新 mil.jpeojtrs.sca/releng 中的 pom.xml 文件来打包和安装 mil.jpeojtrs.sca。

但是,Netrunner 在尝试安装 gov.redhawk.core 时也会出现同样的问题... nxm-ui 存储库指向 redhawk.sdr.org 存储库:

与 jacorb 不同,我找不到可以捆绑的等效包。正如 Netrunner 所问,这是一个独特的、REDHAWK 开发的软件包吗?如果是这样,是否可以在 github 上访问它,以便我们也可以在必要时构建自己的包?如果没有,您能否为我们指出一个等效的包?

0 投票
1 回答
203 浏览

redhawksdr - 带有 RTLTcpSource 组件的“播放端口”不产生音频

我正在使用来自 Axios 的名为“RTLTcpSource”的组件https://github.com/Axios-Engineering/acquisition-components使用 RTL2820T USB 加密狗进行监听。使用端口 ComplexIQ_Float 可以毫无问题地绘制端口数据(和 FFT)。

数据显然在那里,但我无法输出任何类型的音频。我已经针对 AudioTestSource 组件对其进行了测试,该组件提供了所需的音频输出。我还使用 DataWriter 将音频输出到文件,然后通过 VLC 播放(播放良好)。

我想知道我可以对 RTLTcpSource 进行哪些调整来赋予它这种能力。我还使用此视频中的方法尝试获取音频输出,但无法播放端口数据:https ://www.youtube.com/watch?v=wN9p8EjiQs4

我在 CentOS 6.4 上使用 RH 1.84。

提前感谢您的任何提示。

0 投票
1 回答
218 浏览

redhawksdr - USRP_UHD 不提供数据

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