Simple_SISO_OFDM_USRP
Simple_SISO_OFDM_USRP copied to clipboard
Implement SISO OFDM with BPSK demodulation on USRP
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.
- Generate OFDM transmit samples
- Send samples via WARP or Simulation transmission
- Decode the received samples
- Calculate SNR/channels and plot
In the part of signal generation,
- Generate preambles
- Generate digital bits
- Modulate digital bits to frequency-domain samples
- Add pilot samples
- Convert frequency sample to time samples via FFT
- Insert CP (Cyclic Prefix)
- Reshape symbols to 1D samples
In the part of decoding,
- Packet detection
- CFO correction (useless in simulation)
- Channel estimation
- Remove CP (Cyclic Prefix)
- Convert time samples to frequency samples via FFT
- Decode frequency samples
- SFO correction
BPSK OFDM Simulation
NOTICE: The most of works can follow by my another repository - Simple_SISO_OFDM.
- USRP driver (API)
- About UHD
- USRP Hardware Driver
- C++ API
- USRP Hardware Driver and USRP Manual
- GitHub Repo - EttusResearch/uhd
- Locating devices
host/build/utils/uhd_find_devices --args "addr=192.168.10.14"- This program scans the network for supported devices and prints out a list of discovered devices and their IP addresses
- About UHD
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/examplesmake- The executable bin file should be in this folder after compile
- File (Source) directory
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 = 0to see the simulation result- Set
MOD_ORDER = 2to 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