Skip to main content

A Python package for software-defined radio

Project description

sdr

The sdr library is a Python 3 package for software-defined radio (SDR).

The goal of sdr is to provide tools to design, analyze, build, and test digital communication systems in Python. The library relies on and is designed to be interoperable with NumPy, SciPy, and Matplotlib. Performance is also very important. So, where possible, Numba is used to accelerate computationally-intensive functions.

Additionally, the library aims to replicate relevant functionality from Matlab's Communications and DSP Toolboxes.

We are progressively adding functionality to the library. If there is something you'd like to see included in sdr, please open an issue on GitHub.

Enjoying the library? Give us a :star: on GitHub!

Documentation

The documentation for sdr is located at https://mhostetter.github.io/sdr/latest/.

Installation

The latest version of sdr can be installed from PyPI using pip.

python3 -m pip install sdr

Features

View all available classes and functions in the API Reference.

  • Digital signal processing: Finite impulse response (FIR) filters, infinite impulse response (IIR) filters, polyphase interpolator, polyphase decimator, polyphase resampler, Farrow arbitrary resampler, complex mixing, real/complex conversion.
  • Sequences: Barker, Zadoff-Chu.
  • Modulation: Phase-shift keying (PSK), $\pi/M$ PSK, offset QPSK, rectangular pulse shape, half-sine pulse shape, raised cosine pulse shape, root raised cosine pulse shape, Gaussian pulse shape, binary and Gray symbol mapping, differential encoding.
  • Synchronization: Numerically-controlled oscillators (NCO), direct digital synthesizers (DDS), loop filters, closed-loop PLL analysis.
  • Measurement: Energy, power, voltage, bit/symbol error rate, error vector magnitude (EVM).
  • Conversions: Between linear units and decibels. Between $E_b/N_0$, $E_s/N_0$, and $S/N$.
  • Simulation: Binary symmetric channel (BSC), binary erasure channel (BEC), discrete memoryless channel (DMC), additive white Gaussian noise (AWGN), frequency offset, sample rate offset, IQ imbalance.
  • Link budgets: Channel capacities, free-space path loss, antenna gains.
  • Data manipulation: Packing and unpacking binary data, hexdumping binary data.
  • Plotting: Time-domain, raster, periodogram, spectrogram, constellation, symbol map, eye diagram, bit error rate (BER), symbol error rate (SER), impulse response, step response, magnitude response, phase response, phase delay, group delay, and zeros/poles.

Examples

There are detailed examples published at https://mhostetter.github.io/sdr/latest/examples/pulse-shapes/. The Jupyter notebooks behind the examples are available for experimentation in docs/examples/.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sdr-0.0.7.tar.gz (3.7 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sdr-0.0.7-py3-none-any.whl (74.0 kB view details)

Uploaded Python 3

File details

Details for the file sdr-0.0.7.tar.gz.

File metadata

  • Download URL: sdr-0.0.7.tar.gz
  • Upload date:
  • Size: 3.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for sdr-0.0.7.tar.gz
Algorithm Hash digest
SHA256 21f3d54e4fd5febf93e18a3c9d82a48c1b25f99c9c42e3ed339938b5cfb1a3fe
MD5 4149cc8f18b4ca5d521d383648a824fc
BLAKE2b-256 7696957fca647b888a788fd7d32005cf774f65b5709137add6868cdf9ba58d50

See more details on using hashes here.

File details

Details for the file sdr-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: sdr-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 74.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for sdr-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 49db2ad63d7f27595ff16a685bd663da903b608fe0aba5917c2f42341db48026
MD5 a18a001f29536e11ffdd8abf2f13e370
BLAKE2b-256 6beaa8cc96896be9ef38f6738dc105f6e6989bc09e5d0658033d82b1a67d6b3b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page