Originally designed for EU DAB/DVB-T coverage it was discovered that by using the appropriate WinUSB driver the extensive frequency range could be opened up and tuned manually with software. The Realtek RTL2832U+R820T is just one such SDR and this model is the number one choice for enthusiasts, primarily because of its sensitivity around 1090. The default driver assumes you'll just be using the RTL-SDR for watching TV or radio but we want to be able to control it to do much more. Plug in the stick, Windows should automatically install the REALTEK 2832U driver Now from inside the SDR# directory, run Zadig which will do the driver swapping for us. Mar 06, 2020 pyrtlsdr. A Python wrapper for librtlsdr (a driver for Realtek RTL2832U based SDR's) Description. Pyrtlsdr is a simple Python interface to devices supported by the RTL-SDR project, which turns certain USB DVB-T dongles employing the Realtek RTL2832U chipset into low-cost, general purpose software-defined radio receivers.
Latest versionReleased:
A Python wrapper for librtlsdr (a driver for Realtek RTL2832U based SDR's)
Project description
A Python wrapper for librtlsdr (a driver for Realtek RTL2832U based SDR's)
pyrtlsdr is a simple Python interface to devices supported by the RTL-SDR project, which turns certain USB DVB-T donglesemploying the Realtek RTL2832U chipset into low-cost, general purpose software-defined radio receivers. It wraps many of thefunctions in the librtlsdr library including asynchronous read supportand also provides a more Pythonic API.
- Documentation:
- Releases:
- Source code and project home:
- Releases for
librtlsdr
:
pyrtlsdr can be installed by downloading the source files and running python setup.py install
, or using pip andpip install pyrtlsdr
.
All functions in librtlsdr are accessible via librtlsdr.py and a Pythonic interface is available in rtlsdr.py (recommended).Some documentation can be found in docstrings in the latter file.
Examples
Simple way to read and print some samples:
Plotting the PSD with matplotlib:
Resulting Plot:
See the files 'demo_waterfall.py' and 'test.py' for more examples.
Rtl2838 Driver
Handling multiple devices:
(added in v2.5.6)
Note
Most devices by default have the same serial number: '0000001'. This can be setto a custom value by using the rtl_eeprom utility packaged with librtlsdr
.
Two new submodules are available for testing: rtlsdraio, which adds native Python 3 asynchronous support (asyncio module), and rtlsdrtcp which adds a TCP server/client for accessing a device over the network. See the respective modules in the rtlsdr folder for more details and feel free to test and report any bugs!
rtlsdraio
Note that the rtlsdraio module is automatically imported and adds stream()
and stop()
methods to the normal RtlSdr
class. It also requires the new async
/await
syntax introduced in Python 3.5+.
The syntax is basically:
rtlsdrtcp
The RtlSdrTcpServer
class is meant to be connected physically to an SDR dongle and communicate with an instance of RtlSdrTcpClient
. The client is intended to function as closely as possible to the base RtlSdr class (as if it had a physical dongle attatched to it).
Both of these classes have the same arguments as the base RtlSdr
class with the addition of hostname
and port
:
TCP Client Mode
On platforms where the librtlsdr
library cannot be installed/compiled, it is possible to import the RtlSdrTcpClient
only by setting the environment variable 'RTLSDR_CLIENT_MODE'
to 'true'
. If this is set, no other modules will be available.
Feature added in v0.2.4
- Windows/Linux/OSX
- Python 2.7.x/3.3+
- Optional: NumPy (wraps samples in a more convenient form)
matplotlib is also useful for plotting data. The librtlsdr binaries (rtlsdr.dll in Windows and librtlsdr.so in Linux)should be in the pyrtlsdr directory, or a system path. Note that these binaries may have additional dependencies.
There are a few remaining functions in librtlsdr that haven't been wrapped yet. It's a simple process if there's an additionalfunction you need to add support for, and please send a pull request if you'd like to share your changes.
Some operating systems (Linux, OS X) seem to result in libusb buffer issues when performing small reads. Try reading 1024(or higher powers of two) samples at a time if you have problems.
If you're having librtlsdr import errors:
- Windows: Make sure all the librtlsdr DLL files (librtlsdr.dll, libusb-1.0.dll) are in your system path, or the same folderas this README file. Also make sure you have all of their dependencies (e.g. libgcc_s_dw2-1.dll or possibly the Visual Studio runtime files). If rtl_sdr.exeworks, then you should be okay. Also note that you can't mix the 64 bit version of Python with 32 bit builds of librtlsdr, and vice versa.
- Linux: Make sure your LD_LIBRARY_PATH environment variable contains the directory where the librtlsdr.so.0 library is located. You can do this in a shell with (for example):
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
. See this issue for more details.
All of the code contained here is licensed by the GNU General Public License v3.
Credit to dbasden for his earlier wrapper python-librtlsdr and all thecontributers on GitHub.
Copyright (C) 2013 by Roger https://github.com/roger-
Release historyRelease notifications | RSS feed
0.2.92
0.2.91
0.2.9
0.2.8
0.2.7
Melodyne 4 free download mac free. 0.2.6
0.2.5
0.2.4
Rtl2832u Usb Driver
0.2.3
Realtek Rtl2832u Sdr Software
0.2.2
0.2.1
0.2.0
Rtl2838uhidir Windows 10
0.1.1
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size pyrtlsdr-0.2.92-py2.py3-none-any.whl (25.4 kB) | File type Wheel | Python version py2.py3 | Upload date | Hashes |
Filename, size pyrtlsdr-0.2.92.tar.gz (27.1 kB) | File type Source | Python version None | Upload date | Hashes |
Hashes for pyrtlsdr-0.2.92-py2.py3-none-any.whl
Realtek Rtl2832u Windows Driver
Algorithm | Hash digest |
---|---|
SHA256 | 8c72e897108ea061e63daf4b741da5abb8b005d0fc53fc22edafe65b10f2c089 |
MD5 | 621c9f57f4b96f0fc2d4e4a3690945a1 |
BLAKE2-256 | db886855834021364b38885e9aed0f231fc10d5f419bc3446e1d2bf39b9405d0 |
Hashes for pyrtlsdr-0.2.92.tar.gz
Realtek Rtl2832u Driver Windows 10
Algorithm | Hash digest |
---|---|
SHA256 | 3eac9faa8e0a230ded44c0479ef68c90d6e3c534701c355784b50199008a4759 |
MD5 | 05f8b845757087181a16181410baa0b8 |
BLAKE2-256 | 2fc4c977ef62ba6880b1a8cf14cad141eb514216f5617eae3fc25fe830494a06 |