USRP相关报错解决办法

简介: USRP相关报错解决办法

前言

在进行 USRP 开发时遇到了一些报错,这里做个记录解决问题的方法。


一、本地环境

  • 电脑操作系统:Windows11
  • MATLAB 版本:MATLAB 2021a
  • USRP 型号:USRP-N320
  • USRP 固件版本:UHD_3.15.0.0-vendor

二、相关报错信息

报错1:

Checking radio connections…

---------- begin libuhd error output ----------

Exception caught in safe-call.

in __cdecl ctrl_iface_impl<0>::~ctrl_iface_impl(void)

at B:\3p\sources\UHD\lib\rfnoc\ctrl_iface.cpp:52

this->send_cmd_pkt(0, 0, true); -> EnvironmentError: IOError: Block ctrl (CE_01_Port_40) packet parse error - EnvironmentError: IOError: Expected packet index: 425 Received index: 426

---------- end libuhd error output ----------

discover radio!

警告: SerialNum 属性与 System object 的此配置无关。

位置:matlab.system.SystemProp/setProperties

位置: comm.internal/SDRuBase

位置: comm/SDRuTransmitter

位置: test (第 24 行)

报错2:

Checking radio connections…

---------- begin libuhd error output ----------

Exception caught in safe-call.

in __cdecl lmx2592_impl::~lmx2592_impl(void)

at B:\3p\sources\UHD\lib\usrp\common\lmx2592.cpp:155

_regs.powerdown = 1; commit(); -> EnvironmentError: IOError: Block ctrl (CE_01_Port_40) packet parse error - EnvironmentError: IOError: Expected packet index: 376 Received index: 375

---------- end libuhd error output ----------

警告: An error occurred: Could not execute UHD driver command in ‘createDriver_c’: Could not create a UHD driver using IP addr ‘192.168.10.2’. Attach a device at the

specified address, correct the specified address to match an already attached device, or continue to work in off-line mode.

Error from UHD: EnvironmentError: IOError: Block ctrl (CE_01_Port_40) packet parse error - EnvironmentError: IOError: Expected packet index: 375 Received index: 376.

位置:coder.internal.warning (第 8 行)

位置: reportSDRuStatus (第 104 行)

位置: findsdru (第 205 行)

位置: mytransmitter (第 127 行)

错误使用 mytransmitter (第 146 行)

no discover radio!

报错3:

错误使用 comm.SDRuTransmitter/stepImpl

Transmit unsuccessfully: Could not execute UHD driver command in ‘sendData_c’: EnvironmentError: IOError: Block ctrl (CE_01_Port_40) packet parse error -

EnvironmentError: IOError: Expected packet index: 451 Received index: 452

出错 test (第 35 行)

tx(modSignal);

错误 3 可以尝试释放资源,再次运行。

二、解决办法

1、更换电脑操作系统

实验室一台 Win10 台式电脑可以正常驱动 USRP 工作且不报错,我的电脑操作系统是 win11,因此怀疑是操作系统的原因,因此安装了个 win10 的虚拟机进行开发 USRP,果不其然,问题游刃而解

2、升级最新版固件

可以尝试一下将 MATLAB 升级到 2023b,然后也将 USRP 的固件烧录成和 MATLAB 对应的版本 UHD_4.2.0.0-vendor

目录
相关文章
|
6月前
MacBook终端安装tree命令(保证好使)
MacBook终端安装tree命令(保证好使)
|
1天前
Sentieon安装时jemalloc error解决办法 - 蓝易云
如果以上步骤无法解决问题,建议你联系Sentieon的技术支持,他们可能会提供更具体的解决方案。
10 1
|
2天前
|
安全 数据安全/隐私保护
推荐5款我每次系统重装必装的软件
你电脑中用的最久的软件是哪些?以下是否有你曾经使用过的软件呢?工欲善其事,必先利其器,今天继续分享五款实用的办公软件。
27 1
|
12月前
|
测试技术 Android开发
Magisk模块-神仙自动救砖-防冻版(玩机必备)
模块功能 由某些面具模块导致你手机无法开机的情况,刷入该模块后,你无需手动任何设置自动帮你禁用所有面具模块,让你成功开机。 效果:加入完整测试用例,模块块非常稳定,现有代码不要随意更改,有测试安装10和安卓11。
4110 0
Magisk模块-神仙自动救砖-防冻版(玩机必备)
cups 2.4.1编译办法
cups 2.4.1编译办法
122 0
gstreamer正确的结束办法
gstreamer正确的结束办法
155 0
|
Windows
串口大师提示找不到串口的解决办法,增加注册表项目。
          今天进行串口调试提示找不到串口,查了注册表发现串口的注册值:\Device\ProlificSerial2 ,值COM4,但是串口大师还是找不到串口,注册表中没有项目,解决办法如下: 1 。新建一个TXT文档,键入以下内容: Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\HARDWARE\
2662 0
|
Web App开发 JavaScript 前端开发
Google浏览器Chrome安装失败,错误代码0xa0430721解决办法(★亲测可行★)
Google浏览器Chrome安装失败,错误代码0xa0430721解决办法(★亲测可行★)
585 0
|
Java Linux Shell
jemalloc编译出错?没事,这里有成功的linux环境的编译及使用方案(★firecat推荐★)
jemalloc编译出错?没事,这里有成功的linux环境的编译及使用方案(★firecat推荐★)
690 0