Simple pythonic wrapper for SoapySDR library
Project description
Simple pythonic wrapper for SoapySDR library
Requirements
Limitations
Only receiving is implemented. Transmission may be implemented in future.
Example
import simplesoapy import numpy # List all connected SoapySDR devices print(simplesoapy.detect_devices(as_string=True)) # Initialize SDR device sdr = simplesoapy.SoapyDevice('driver=rtlsdr') # Set sample rate sdr.sample_rate = 2.56e6 # Set center frequency sdr.freq = 88e6 # Setup base buffer and start receiving samples. Base buffer size is determined # by SoapySDR.Device.getStreamMTU(). If getStreamMTU() is not implemented by driver, # SoapyDevice.default_buffer_size is used instead sdr.start_stream() # Create numpy array for received samples samples = numpy.empty(len(sdr.buffer) * 100, numpy.complex64) # Receive all samples sdr.read_stream_into_buffer(samples) # Stop receiving sdr.stop_stream()
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
SimpleSoapy-1.5.1.tar.gz
(6.6 kB
view details)
File details
Details for the file SimpleSoapy-1.5.1.tar.gz
.
File metadata
- Download URL: SimpleSoapy-1.5.1.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14923538128676eb18d6f7e094c91d77e54a3d1199efdbf5b95520f94b15002e |
|
MD5 | 339ac232e7406335e14e072a5f2705b0 |
|
BLAKE2b-256 | f42e513dbf91a65f6783556efa90544b30d8c77390970ec7a3a04e3a9a1946f8 |