網(wǎng)站開發(fā)網(wǎng)絡(luò)課程網(wǎng)絡(luò)營銷的平臺有哪些
文章目錄
- 前言
- 一、本地環(huán)境
- 二、相關(guān)報錯信息
- 二、解決辦法
- 1、更換電腦操作系統(tǒng)
- 2、升級最新版固件
前言
在進行 USRP 開發(fā)時遇到了一些報錯,這里做個記錄解決問題的方法。
一、本地環(huán)境
- 電腦操作系統(tǒng):Windows11
- MATLAB 版本:MATLAB 2021a
- USRP 型號:USRP-N320
- USRP 固件版本:UHD_3.15.0.0-vendor
二、相關(guān)報錯信息
報錯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 的此配置無關(guān)。位置: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、更換電腦操作系統(tǒng)
實驗室一臺 Win10 臺式電腦可以正常驅(qū)動 USRP 工作且不報錯,我的電腦操作系統(tǒng)是 win11,因此懷疑是操作系統(tǒng)的原因,因此安裝了個 win10 的虛擬機進行開發(fā) USRP,果不其然,問題游刃而解。
2、升級最新版固件
可以嘗試一下將 MATLAB 升級到 2023b,然后也將 USRP 的固件燒錄成和 MATLAB 對應(yīng)的版本 UHD_4.2.0.0-vendor
我的qq:2442391036,歡迎交流!