GithubHelp home page GithubHelp logo

texnofobix / modem Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aicodix/modem

0.0 0.0 0.0 55 KB

Simple OFDM modem for transceiving datagrams

License: BSD Zero Clause License

C++ 100.00%

modem's Introduction

OFDM MODEM

Getting source and dependencies:

git clone https://github.com/aicodix/modem
git clone https://github.com/aicodix/dsp
git clone https://github.com/aicodix/code

Building:

cd modem
mkdir build
cd build
cmake ..
cmake --build .

Quick start:

Create file uncoded.dat with 43040 bits of random data:

dd if=/dev/urandom of=uncoded.dat bs=1 count=5380

Encode file uncoded.dat to encoded.wav WAV audio file with 8000 Hz sample rate, 16 bits and only 1 (real) channel:

./encode encoded.wav 8000 16 1 2000 6 CALLSIGN uncoded.dat

Start recording to recorded.wav audio file and stop after 20 seconds:

arecord -c 1 -f S16_LE -r 8000 -d 20 recorded.wav

Start playing encoded.wav audio file:

aplay encoded.wav

Decode recorded.wav audio file to decoded.dat file:

./decode decoded.dat recorded.wav

Compare original uncoded.dat with decoded.dat:

diff -s uncoded.dat decoded.dat

Simulating

Prerequisite: disorders

Encode uncoded.dat to analytic audio signal, add multipath, CFO, SFO, AWGN, decode and compare:

./encode - 8000 16 2 2000 6 CALLSIGN uncoded.dat | ../disorders/multipath - - ../disorders/multipath.txt 10 | ../disorders/cfo - - 234.567 | ../disorders/sfo - - 147 | ../disorders/awgn - - -30 | ./decode - - | diff -s uncoded.dat -

Reading

  • Robust frequency and timing synchronization for OFDM
    by Timothy M. Schmidl and Donald C. Cox - 1997
  • On Timing Offset Estimation for OFDM Systems
    by H. Minn, M. Zeng, and V. K. Bhargava - 2000

modem's People

Contributors

xdsopl avatar texnofobix avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.