yungshenglu / Simple_SISO_OFDM_USRP

Implement SISO OFDM with BPSK demodulation on USRP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple SISO OFDM over USRP

In this repository, we are going to implement SISO OFDM with BPSK demodulation on USRP by using the example code on WARPLab wl_example_siso_ofdm_txrx.m. Besides, you can get more information about SISO OFDM with BPSK demodulation from my previous repository - Simple SISO OFDM.

  • The offical document of USRP

NOTCIE: This repository is the assignment in NCTU course "Wireless Communication Systems 2018". If you are taking this course, please do not duplicate from this repository. All rights reserved.


Description

The sample code wl_example_siso_ofdm_txrx.m follows the following steps.

  1. Generate OFDM transmit samples
  2. Send samples via WARP or Simulation transmission
  3. Decode the received samples
  4. Calculate SNR/channels and plot

In the part of signal generation,

  1. Generate preambles
  2. Generate digital bits
  3. Modulate digital bits to frequency-domain samples
  4. Add pilot samples
  5. Convert frequency sample to time samples via FFT
  6. Insert CP (Cyclic Prefix)
  7. Reshape symbols to 1D samples

In the part of decoding,

  1. Packet detection
  2. CFO correction (useless in simulation)
  3. Channel estimation
  4. Remove CP (Cyclic Prefix)
  5. Convert time samples to frequency samples via FFT
  6. Decode frequency samples
  7. SFO correction

BPSK OFDM Simulation

NOTICE: The most of works can follow by my another repository - Simple_SISO_OFDM.


Execution

Environment

Compilation

  • How to add a new file and compile
    • File (Source) directory
      • Use built in Makefile
      • Put your files in ~/uhd/host/examples/
      • Add your filenames to the CmakeList.txt in ~/uhd/host/examples
    • Compile (Binary) directory
      • cd ~/uhd/host/build/examples
      • make
      • The executable bin file should be in this folder after compile

Execution

  • USRP server
    • mkdir wcs_trace
    • Transimitter: ./single_tx --f=2.49 --i=128
    • Receiver: ./single_rx --f=2.49 --i=128
    • Received data in ./wcs_trace/rx_signals.bin

BPSK OFDM over USRP

  • Tx repetitively sends 50 symbols
  • USE_WARPLAB_TXRX = 0 to see the simulation result
  • Set MOD_ORDER = 2 to use BPSK modulation
  • Rx receives at least one batch of 50 symbols
  • MATLAB offline decoding

Contributor

NOTICE: You can follow the contributing process CONTRIBUTING.md to join me. I am very welcome any issue!


License

NOTCIE: This repository is the assignment in NCTU course "Wireless Communication Systems 2018". If you are taking this course, please do not duplicate from this repository. All rights reserved.

GNU GENERAL PUBLIC LICENSE Version 3

About

Implement SISO OFDM with BPSK demodulation on USRP

License:GNU General Public License v3.0


Languages

Language:MATLAB 78.1%Language:C++ 21.9%