Skip to content

luigifcruz/radio-core

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

29 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ“ป Radio Core

Real-world signal processing functions for Python.

Features

  • โš™๏ธ Compatible with the majority of SDRs via SoapySDR.
  • โšก๏ธ Accelerated on Nvidia GPUs with CUDA via CuPy and cuSignal.
  • ๐Ÿš€ Runs smoothly in the Raspberry Pi 4, Nvidia Jetson, and Apple Silicon.

Functions

Analog

  • PLL: Clock-recovery and phase estimation for real-valued signals.
  • WBFM: Demodulation of wideband FM stations with Stereo Support. Supports de-emphasis.
  • MFM: Demodulation of wideband FM stations without Stereo Support. Supports de-emphasis.
  • FM: Demodulation of FM transmissions.
  • Deemphasis: De-emphasize audio.
  • Decimate: Resample signal.
  • Bandpass: Filter signal with bandpass window.

Tools

  • Tuner: Channelize the input data into smaller channels.
  • Ringbuffer: Zero-copy variable length circular buffer implemented in Python.
  • Carrousel: Zero-copy fixed length circular buffer implemented in Python.
  • Chopper: Divide a larger array into smaller fixed side elements.
  • Buffer: Provide an array allocated in the GPU or CPU.

Examples

  • Receive FM: Receive and play single wideband FM radio station.
  • Multi FM: Receive multiple wideband FM radio stations. Broadcast audio via ZeroMQ.

Installation

System Dependencies

Ubuntu/Debian

After installing the base SoapySDR and its modules, install the direct dependencies with apt:

$ apt install libpulse-dev libsamplerate-dev libasound2-dev portaudio19-dev

Python

CPU

$ python -m pip install git+https://github.com/luigifcruz/radio-core.git

GPU (CUDA)

$ python -m pip install "git+https://github.com/luigifcruz/radio-core.git#egg=radiocore[cuda]"

Validated Radios

  • AirSpy HF+ Discovery
  • AirSpy R2
  • LimeSDR Mini/USB
  • PlutoSDR
  • RTL-SDR
  • SDRPlay

Hacking

If you are interested in the core DSP, you are in the right place! Feel free to tinker with the code and make your own application. If you just want to use to listen to some good music, try the CyberRadio Desktop App.

About

๐Ÿ“” Python based DSP for CyberRadio and PyRadio. Accelerated with #cuSignal and Numba.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages