Skip to main content

A library for QPSK demodulation

Project description

qpsk_demod

Perform Quadrature Phase Shift Keying (QPSK) demodulation on the received signal.

Parameters:
r (array-like): The received modulated signal.
fc (float): Carrier frequency.
of (int): Oversampling factor, determining the number of samples per symbol.

Returns:
tuple:
    a_hat (numpy.ndarray): The estimated binary data stream.
    x (numpy.ndarray): The demodulated in-phase component.
    y (numpy.ndarray): The demodulated quadrature component.

This function performs the following steps:
1. Demodulates the in-phase (I) and quadrature (Q) components from the received signal.
2. Applies a low-pass filter to extract the baseband signal.
3. Downsamples the filtered signals to the symbol rate.
4. Estimates the binary data stream by thresholding the demodulated signals.

Example:
>>>import qpsk_demod as qd
>>> r = np.array([0.5, -0.5, 1.0, -1.0, 0.5, -0.5, -1.0, 1.0])
>>> fc = 100
>>> of = 4
>>> a_hat, x, y = qd.qpsk_demod(r, fc, of)

Installation

pip install qpsk-demod

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

qpsk_demod-0.1.0.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

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

qpsk_demod-0.1.0-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file qpsk_demod-0.1.0.tar.gz.

File metadata

  • Download URL: qpsk_demod-0.1.0.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.2

File hashes

Hashes for qpsk_demod-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1d634a5c39bc1c74a89735af7cf44ff8930c2b51eea053963ba56abf594befb2
MD5 080bb2e5662fe202fd1ff0e3f34bfc24
BLAKE2b-256 f26f5b7924bdbf3e29d272fe85c3cde85ff53478565345115d95eccf328cdff6

See more details on using hashes here.

File details

Details for the file qpsk_demod-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: qpsk_demod-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.2

File hashes

Hashes for qpsk_demod-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1a1ca53ed2e24e441408e46ab56f1303945a7fcd0901424dfe74c2a16466e658
MD5 87021471254db9b2845feb3550b3b6f2
BLAKE2b-256 1622bbbb89d14faccdb283c64dfd166165bb1875626c18004ea0cfbc753f716e

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