RTL2832U:在 Windows 上使用 GNC 构建 FM 接收器

RTL2832U: Building a FM Receiver with GNC on Windows

我使用 SDRSharp 已经有一段时间了,收听各种电台,我想透露更多关于如何使用 GNURadio 创建工具的信息。

我下载了 GNURadio Companion 3.8.0.0 和 运行 通过了前三节课。

我正在使用上述 V3 RTL-SDR Dongle 学习官方 GNURadio.Wiki 的课程 (RTL2832U R820T2 TCX0 + BIAST + HF)

我在按照课程创建 FM 接收器时遇到了问题。 由于我的硬件与课程使用的硬件不同,我确实对流程图的参数进行了一些修改。

  1. 我使用了 2.4e6 (2.4 MS/s) 的采样率,这是所述加密狗的最大稳定采样率
  2. 我使用 RTL-SDR 源块而不是 UHD 块
  3. 我将停止频率设置为 2e9,因为此加密狗不会高达 6GHz

进行这些更改后,我假设一切都已设置,并且 Generate/Execute 流程图。 我收到以下错误:

Executing: C:\Program Files\GNURadio-3.8\gr-python27\python.exe -u D:\GNURadio\TutorialsFromGNUDotOrg\FM_Radio_Receiver.py

gr-osmosdr 7da9989b (0.1.5git) gnuradio 3.8.0.0
built-in source types: file osmosdr rtl rtl_tcp uhd hackrf bladerf airspy redpitaya spyserver 
[INFO] [UHD] Win32; Microsoft Visual C++ version 14.0; Boost_106000; UHD_3.14.1.HEAD-0-g0347a6d8
[ERROR] [X300] X300 Network discovery error receive_from: An existing connection was forcibly closed by the remote host
[ERROR] [UHD] Device discovery error: receive_from: An existing connection was forcibly closed by the remote host

我知道我可以在 SDRSharp 上调到有问题的频率。 我也知道应该使用 RTL-SDR Source 块作为文档说明:

 * RTL2832U based DVB-T dongles through librtlsdr

我开始想,也许我没有这个图书馆? 然后我打开终端并输入 python 我继续检查是否安装了 librtlsdr 输入:

import librtlsdr 

我收到一个导入错误,1No module named librtlsdr I assume this is the problem, so I proceed topip install librtlsdr` 我收到了:

ERROR: Could not find a version that satisfies the requirement librtlsdr (from versions: none)
ERROR: No matching distribution found for librtlsdr

最新的 GNU 3.8.0.0 使用的是 Python (Python 2.7.10),我的 PIP 错误显示:

DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support

这个缺少的库是问题所在吗?如果是,我如何导入它以便 GNC 可以按预期工作?

为了给您更好的回答,请回答以下问题: - 你在用什么OS? - 你是如何加载 GNU Radio 3.8 的? - 您是否尝试过使用 pip3 和 python3? 尝试 运行 https://wiki.gnuradio.org/index.php/ModuleNotFoundError

中的程序

你说 "I downloaded GNURadio Companion 3.8.0.0",但你没有说出它的来源。 您是使用 GNURadio Companion 3.8.0.0 自己构建流程图,还是加载 https://raw.githubusercontent.com/gnuradio/gr-tutorial/master/examples/tutorial6/gr-tutorial-broadcast-fm-rx.grc ?它是为 GR 3.7 编写的。

试试这个: - 终止 SDRSharp - 弹出你的加密狗 - 重启你的电脑 - 连接加密狗 - 再试一次

对于遇到此问题的用户,请务必输入设备参数。 这不是图书馆的问题。消息

[ERROR] [UHD] Device discovery error: receive_from: An existing connection was forcibly closed by the remote host

是因为找不到设备。

我必须在设备参数部分设置 rtl=0。请参见下面的流程图。

新问题,如何确定输入的设备参数?