https://github.com/davidyslu/Simple_SISO_OFDM_USRP
Implement SISO OFDM with BPSK demodulation on USRP
https://github.com/davidyslu/Simple_SISO_OFDM_USRP
matlab ofdm usrp
Last synced: 8 months ago
JSON representation
Implement SISO OFDM with BPSK demodulation on USRP
- Host: GitHub
- URL: https://github.com/davidyslu/Simple_SISO_OFDM_USRP
- Owner: davidyslu
- License: gpl-3.0
- Created: 2018-04-15T16:15:29.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-04-16T03:20:23.000Z (about 7 years ago)
- Last Synced: 2025-02-07T16:12:14.455Z (over 1 year ago)
- Topics: matlab, ofdm, usrp
- Language: MATLAB
- Homepage:
- Size: 1.21 MB
- Stars: 16
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://warpproject.org/trac/wiki/WARPLab/Examples/OFDM) `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](https://github.com/yungshenglu/Simple_SISO_OFDM).
* The offical document of [USRP](https://www.ettus.com/content/files/07495_Ettus_N)
> **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](https://github.com/yungshenglu/Simple_SISO_OFDM).
* USRP driver (API)
* About UHD
* USRP Hardware Driver
* C++ API
* [USRP Hardware Driver and USRP Manual](http://files.ettus.com/manual)
* [GitHub Repo - EttusResearch/uhd](https://github.com/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
---
## 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](CONTRIBUTING.md) to join me. I am very welcome any issue!
* [David Lu](https://github.com/yungshenglu)
---
## 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](LICENSE)