【发布时间】:2013-11-22 02:02:55
【问题描述】:
我使用的是 Redhawk 1.9。我创建了一个虚拟组件使用的虚拟设备。我有一个包含虚拟设备的虚拟节点。具有虚拟分量的虚拟波形。我有两个问题:
- 在设备管理器控制台(从目标 SDR 在 IDE 中启动)我收到警告消息,表明设备无法连接到 IDM 通道。我检查以确保命名和事件服务仍然启动。我不确定要追查这个问题。我启动了设备管理器并在跟踪级别进行了日志记录,但我没有看到任何可以帮助我的东西。
INFO:DeviceManager - 使用 /nodes/DummyNode/DeviceManager.dcd.xml 启动设备管理器 INFO:DeviceManager_impl - 连接到域管理器 REDHAWK_DEV/REDHAWK_DEV 信息:DeviceManager - 启动 ORB! WARN:Device_impl - 无法连接到 IDM 通道 INFO:DeviceManager_impl - 在设备管理器 DummyNode 上注册设备 DummyDevice_1 INFO:DeviceManager_impl - 在设备管理器 DummyNode 上初始化设备 DummyDevice_1 INFO:DeviceManager_impl - 在域管理器上注册设备 DummyDevice_1
-
当我从 IDE 启动 Dummy Waveform 时,我收到 invalidCapacity 错误消息。虚拟组件使用虚拟设备。它查找属性 device_kind = dummy_device_kind。我覆盖了 DummyDevice 中的 allocateCapacity 方法以返回 true。我在 python 命令行中检查了 dummyDevice,并且 allocateCapacity 返回了 true。
错误信息:
NFO:DomainManager_impl - Installing application /waveforms/DummyWaveform/DummyWaveform.sad.xml
DEBUG:ComponentInfo - Loading component properties from /components/DummyComponent/DummyComponent.prf.xml
DEBUG:ComponentInfo - Parsing component properties
DEBUG:ApplicationFactory_impl - UsesDevice Impl Vec of length 1
DEBUG:ComponentImplementationInfo - Attempting to match allocation properties
DEBUG:ComponentImplementationInfo - Trying to match for property id DCE:cdc5ee18-7ceb-4ae6-bf4c-31f983179b4d
DEBUG:ComponentImplementationInfo - It's a matching prop
DEBUG:ApplicationFactory_impl - Trying to find the device
DEBUG:ApplicationFactory_impl - Device Allocation Failed.. need to clean up
DEBUG:ApplicationFactory_impl - --FAILED-- Allocation of component's implementation cpp of DummyComponent_1. Undoing allocate devices
ERROR:ApplicationFactory_impl - The following CORBA exception occurred: InvalidCapacity while creating the application
INFO:DomainManager_impl - Uninstalling application DCE:8d0a6e63-24f6-4766-9a3f-7db7fd516078
【问题讨论】:
-
分配错误失败,因为我没有定义以下分配属性:processor_name、os_name 和 os_version。 IDE 创建组件时,默认情况下需要这些属性。我能够通过使用跟踪级别的调试来解决这个问题。
-
我仍在研究为什么我的设备无法连接到 IDM 频道。
-
通过在节点中包含 GPP 来解决分配问题。请参阅以下问题的答案:“组件无法分配不是可执行设备的设备”2012 年 12 月 9 日
-
IDM 频道问题在后面的问题中得到解答:“无法连接到 IDM_Channel” - 2013 年 12 月 2 日
标签: redhawksdr