Simple OFDM modem for transceiving datagrams
Find a file
2023-12-14 08:21:34 +01:00
.gitattributes only allow statistics on c++ language 2021-10-22 12:26:01 +02:00
.gitignore use a shortened systematic polar code and CA-SCL decoding 2021-09-03 20:52:09 +02:00
decode.cc added extended length constant 2023-12-14 08:21:34 +01:00
encode.cc set default CFO to 1500 Hz 2023-03-08 08:32:39 +01:00
freezer.cc added 1/2 and 1/3 rate codes 2023-01-04 12:13:04 +01:00
LICENSE Initial commit 2021-06-11 11:12:44 +02:00
Makefile added aarch64 example 2023-12-13 20:31:39 +01:00
polar_tables.hh added 1/2 and 1/3 rate codes 2023-01-04 12:13:04 +01:00
psk.hh keep limits symmetric so it doesn't interfere with scrambling 2023-12-13 20:27:44 +01:00
README.md only report, don't show diff 2023-01-04 15:39:06 +01:00

OFDM MODEM

Quick start:

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

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

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 uncoded.dat

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

arecord -c 1 -f S16_LE -r 8000 -d 5 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 uncoded.dat 2000 | ../disorders/multipath - - ../disorders/multipath.txt 10 | ../disorders/cfo - - 234.567 | ../disorders/sfo - - 147 | ../disorders/awgn - - -30 | ./decode - - | diff -q -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