Skip to content

About

Full-chain OOK digital communication system in GNU Radio featuring bit-accurate ASCII data recovery and AWGN channel simulation.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

14 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📡 OOK Modulation, Bitstream recovery and data transmission

This repository contains a full Loopback On - Off Keying (OOK) modulation, transmission and recovery system developed in GNU Radio. The project covers the entire signal processing chain: from baseband data generation to hardware-simulated channel effects and bit-accurate data recovery of ASCII - encoded payloads.

Figure 1: Full block path of Phase II and III

Key Features

  • Full loopback: Complete signal path: (Transmitter - Modulator - Channel - Demodulator / Receiver - Sink)
  • Hardware simulation: Channel model including AWGN (Additive White Gaussian Noise)
  • Smart recovery: Implementation of Thresholding with Hysteresis to combat noise.
  • Data integrity: Verified ASCII transmission (Vector Source to File Sink)

📊 Technical Specifications

Parameter Value Description
Sample Rate ($f_s$) 32 kHz Base clock for all processing blocks.
Carrier Frequency ($f_c$) 2 kHz Cosine wave used for the OOK "ON" state.
Bitrate ($R_b$) 320 bps Resulting data rate after interpolation ($N=100$).
Interpolation Factor ($N$) 100 Samples per symbol to ensure $f_c \gg R_b$.
Modulation Type OOK On-Off Keying (Binary ASK).

🏗️ System Architecture

The system is divided into three main phases:

1. Phase I: Basic Modulation using a Random Source. 2. Phase II: Transmitter architecture 3. Phase III: Receiver design featuring envelope detection, normalization, and decimation.

🚀 Quick Start

To run this project, you need GNU Radio 3.8+ and Python 3.

  1. Download the .grc or the .py file.
  2. Run the file, in my recomendation, download and run the .grc file to change the ASCII code to transmitt.
  3. Synchonize the Bitstream If you changed the ASCII code to one of your elecction or added more codes to transmitt, you need to synchonize again the bitstream.
  4. Ensure the file paths in the File sink blocks point to valid directories on your system.

Manual Bit Alignment

In order to synchronize it, a slicer and a counter is located in the bottom to modify the delay, it only works in that plot, to get it finally the ASCII at the end and in your file you need to abort the simulation and change the default value for the one that you get with the slicer QT GUI Range, once you run the simulation again the bitstream is goin to be synchronized since the beginning.

📖 Full Documentation

Read the Project Report to get a detailed description of the structure of this project such as mathematical breakdown, frequency hierarchy analysis and results verification.

About

Full-chain OOK digital communication system in GNU Radio featuring bit-accurate ASCII data recovery and AWGN channel simulation.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages