[英]pyrtlsdr installation Windows 10
我正在嘗試安裝 pyrtlsdr,我首先安裝了 SDRUno 並檢查了我的 SDRPlay 是否已連接並且工作正常。 沒關系。 然后我嘗試在 Windows 10 上安裝 pyrtlsdr pip Python 3.11.0 [MSC v.1929 64 位 (AMD64)] 在 win32 上。
此示例出現以下錯誤:
from rtlsdr import RtlSdr
sdr = RtlSdr()
# configure device
sdr.sample_rate = 2.048e6 # Hz
sdr.center_freq = 70e6 # Hz
sdr.freq_correction = 60 # PPM
sdr.gain = 'auto'
print(sdr.read_samples(512))
錯誤:
C:\Users\python.exe C:\Users\PycharmProjects\sdr\01.py
Traceback (most recent call last):
File "C:\Users\01.py", line 3, in <module>
sdr = RtlSdr()
^^^^^^^^
File "C:\Users\anaconda3\envs\env1\Lib\site-packages\rtlsdr\rtlsdr.py", line 133, in __init__
self.open(device_index, test_mode_enabled, serial_number)
File "C:\Users\anaconda3\envs\env1\Lib\site-packages\rtlsdr\rtlsdr.py", line 171, in open
raise LibUSBError(result, 'Could not open SDR (device index = %d)' % (device_index))
rtlsdr.rtlsdr.LibUSBError: <LIBUSB_ERROR_IO (-1): Input/output error> "Could not open SDR (device index = 0)"
Process finished with exit code 1
我怎么解決這個問題?
pyrtlsdr 僅適用於 RTL2832u。 但是要與 SDRPlay 一起使用,您可以使用庫 gnuradio 或SoapySDR 。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.