Main Content

Common Problems and Fixes

sdrinfo在调用步骤后返回空消息

Problem

Functionsdrinfo返回一个空单元格数组

Possible Solution

这radio may not be connected or configured correctly. Follow these steps to reconfigure the port and radio:

  1. Connect the radio

  2. 安装USB驱动程序。

    On the MATLAB®Hometab, in theEnvironment部分,单击Add-Ons>Manage Add-Ons

  3. Hardware Setupdialog will open at theConnect Hardware步。按照屏幕上的设置步骤安装驱动程序并测试无线电连接。成功测试无线电连接后,关闭“设置”对话框。

  4. 在MATLAB命令提示下,运行sdrsetup

sdrinfo returns only three radio settings

Problem

Functionsdrinfo不会返回指定设备的所有无线电设置。

Possible Solution

sdrinforeturns all valid radio fields that are applicable, as long as the System object™ or block is not open (unlocked). If the block or System object is currently running,sdrinforeturns only the top three fields:radioname,,,,放射贴,,,,and放射分辨率

如果是这种情况,您可以执行以下操作之一:

  • 释放系统对象

  • 停止模型模拟

  • 关the block mask

SDRINFO将无线电ID返回为“ VM”

Problem

在Zadig软件窗口中,据报道USB驱动程序为RTL2838UHIDIR。当您将鼠标悬停在供应商ID字段上(“ USB ID”行第一个文本字段)时,它将供应商报告为“ VM”。

Possible Solution

当Vmplayer在Windows上运行时,有时可能会发生此问题®。关闭Vmplayer,然后重试。您可以正确识别RTL-SDR无线电后,可以启动VMPlayer。

Cannot find radio

Problem

RTL-SDR收音机已连接到您的计算机,但是运行时sdrinfo,它返回空或RTL-SDR系统对象的信息方法返回“找不到无线电”。

Possible Solution

Unplug the radio and then plug the radio back in again. Be sure to use the same USB slot.

金宝apphangs when radio is removed during simulation

Problem

Simulink hangs if the RTL radio is removed while running a simulation.

Possible Solution

您必须终止MATLAB会话并重新启动。

In the future, do not remove an RTL radio while it is in use.

Kernel driver is active, or device is claimed by second instance of librtlsdr

Problem

Sometimes the digital TV (DVB) driver takes over. If this is the case, you may see this message in the command shell:

内核驱动程序处于活动状态,或者设备由librtlsdr的第二个实例声明。在第一种情况下,请分离或黑名单或黑名单的内核模块(DVB_USB_RTL28XXU),或在编译时启用自动分离。USB_Claim_interface错误-6

Possible Solution

Unload or blacklist the kernel module. The listed steps are for manual unloading and blacklisting the kernel module.

  • 卸载内核模块:

    sudo rmmod dvb_usb_rtl28xxu rtl2832

    This is a temporary solution, as the system will load the driver again the next time you remove and then replace the USB device.

  • To blacklist the kernel module, create a file in/etc/modprobe.d,,,,with a。conf扩展(例如,”no-rtl.conf") and include this content:

    黑名单DVB_USB_RTL28XXU黑名单RTL2832黑名单RTL2830

    这exact method depends on your Linux®distribution. The example shown is for Arch Linux.

    如果您不打算将设备用于电视接收(尽管您可以随时选择将来删除黑名单),则此解决方案更加方便。如果选择此方法,则可能必须先卸载驱动程序,如果已使用。

  • To remove the blacklist file:

    • 删除黑名单文件:sudo rm -f /etc/modprobe.d/no-rtl.conf

    • 拔下电源并插入收音机。

笔记

您还可以使用RTL-SDR支持软件包安装程序来卸载内核模块和黑名单。金宝app

On the MATLABHometab, in theEnvironment部分,单击Add-Ons>Manage Add-Ons。选择the support package then click the Setup button, ().

Package Manager in Use

Problem

This error occurs when another package manager, such as Synaptic, is in use. The message you see might be similar to the following:

无法获得锁定/var/lib/dpkg/lock-打开(11:资源暂时不可用)无法锁定管理目录(/var/lib/dpkg/),是另一个过程使用吗?

Possible Solution

To install the support package, close all other package manager software running on your system.

Setup Warns "Xcode not Found" or "Xcode Command Line Tools not Found"

Problem

Xcodesoftware and Command Line Tools are required for setup and installation on Mac OS X systems. If the installer cannot find theXcode命令行工具,您将看到“找不到XCode命令行工具”警告。

Possible Solution

按照以下步骤安装Xcode软件nd Command Line Tools.

  1. Click Cancel to exit the installation process.

  2. 安装Xcode软件。

    安装Xcode软件

  3. Install theXcodeCommand Line Tools.

    Install Command Line Tools (OS X version 10.8 and earlier)

  4. Restart the hardware setup.

    On the MATLABHometab, in theEnvironment部分,单击Add-Ons>Manage Add-Ons。选择the support package then click the Setup button, ().

笔记

If you install the Command Line Tools and you still get the "Xcode Command Line Tools not Found" warning, and you have more than one version of Xcode installed, you need to make sure that you select the path to the Xcode version you intend to use with the support package when you install the Command Line Tools.

  1. 在终端窗口中,输入以下内容:

    xcode-select --print-path

    此命令显示使用XCode版本的路径。

  2. To change the path to the Xcode version you want to use, enter the following:

    xcode-select --switchxcode_path

    在哪里xcode_path是您要使用的Xcode版本的路径。

    安装命令行工具时,请确保启动本步骤中指定的XCode版本。

  3. Install Command Line Tools (OS X version 10.8 and earlier)

    安装命令行工具时,首先确保启动上一步中指定的XCode版本。

    1. Start Xcode.

    2. 选择Xcode>Preferences

    3. 选择Downloadstab.

    4. Click install next to Command Line Tools.

  4. 重新启动安装程序。

    On the MATLABHometab, in theEnvironment部分,单击Add-Ons>Manage Add-Ons。选择the support package then click the Setup button, ().

找不到无线电

Problem

After installation or when calling thesdrinfo功能,找不到无线电。这可能是因为某些USB 3控制器与RTL-SDR无线电不兼容。

Possible Solution

Try a different port. Your hardware configuration may require you to plug the RTL-SDR device into a USB 2 port.

无效的MEX文件错误

Problem

When attempting to use a MEX-file you created, an error message indicates you are missing thelibmwsdrrdriver.dlllibrary. For example, you get a message similar to this one when attempting to runfoo

>>foo
无效的mex-file“ foo.mex':缺少依赖的共享库:'foo.mex'要求的“ libmwsdrriver.dll”。

Possible Solution

At the MATLAB command prompt run:

sdrsetup
找到并设置RTL-SDR无线电的Communication金宝apps Toolbox™支持包

For more information, seesdrsetup

Test connection fails and displays 'Error Code -12' message

Problem

当测试连接在硬件设置过程中失败时,会发生此错误。您可能还会在使用此错误消息后看到此错误消息sdrinfo命令。

Error Code -12

Possible Solution

由于USB连接问题,发生此错误。可能的解决方案包括金宝搏官方网站:

  • If you are using Windows and are using Zadig software to install the driver, try selecting either theRTL283UHIDIRorRTL2832Uinterfaces (if they are available) instead of "Bulk-In, Interface (Interface 0)". When you select thehinusboption on the right pane, you might get a warning that a System File is going to be changed while installing the driver. By installing the SDR drivers using Zadig software, you overwrite the default drivers for the device. Depending on how your operating system is set up, you might receive this warning before the start of the installation.

  • If you do not findRTL283UHIDIRorRTL2832U列表中的接口,导航到“选项”,并确保您选择“列出所有设备”,然后清除“忽略轮毂或复合父母”复选框。

  • If you are using a USB 3.0 port, try plugging the RTL-SDR radio into a USB 2.0 port or try testing the connection on another computer if possible.

  • Unplug the RTL-SDR radio and verify that it disappears from the list. Replug and verify that it again appears in the list.

  • 在MATLAB命令提示符中输入这些命令:

    rehashtoolboxrehashtoolboxcache

笔记

If the hardware setup process does not start the Zadig software, you can start it manually by using this command at the command prompt:

C:\ProgramData\MATLAB\SupportPackages\\3P.instrset\zadig.instrset\... ... zadig\zadig-.exe