== SDR in ORBIT: Spectrum Sensing == [[TOC(Other/Summer/2015*, depth=3)]] === Introduction === Spectrum sensing is the systematic scanning of the available radio frequency spectrum for areas of high usage. Our project involves the use of Universal Software Radio Peripherals (USRPs) in ORBIT to detect which frequencies are in use at any given time. Using GNURadio and MATLAB/Octave for signal processing, we aim to detect with optimal speed and efficiency the frequency of any signal transmitted from an unknown source. Accomplishing this goal will help to identify available bands in the frequency spectrum, giving opportunities for more efficient usage. === Team === {{{#!comment * Christina Baaklini, Electrical and Computer Engineering, Rutgers University * Michael Collins, Electrical and Computer Engineering, Rutgers University * Nicole !DiLeo, Electrical and Computer Engineering, Rutgers University }}} {{{ #!html
Christina Baaklini
Electrical and Computer Engineering
Rutgers University
Michael Collins
Electrical and Computer Engineering
Rutgers University
Nicole DiLeo
Electrical and Computer Engineering
Rutgers University


Project guided by Wade Trappe, Dola Saha, and Ivan Seskar.
}}} === Current Objectives === * Knowledge of basic Digital Signal Processing concepts. * Knowledge of filter design. * Utilization of ORBIT. * Writing/editing scripts. * Saving from console to local devices. * Running experiments on the grid. * Utilization of MATLAB to process signals. * Fast Fourier Transform (FFT). * Inverse Fast Fourier Transform (IFFT). === Weekly Progress === Weeks 1-2 ([[http://www.orbit-lab.org/raw-attachment/wiki/Other/Summer/2015/aSDR2/Spectrum%20Sensing%20Weeks%201-2.pdf|Presentation]]) * Formation of project group. * Development of project goals. * Preliminary research on software-defined radio. Week 3 ([[http://www.orbit-lab.org/raw-attachment/wiki/Other/Summer/2015/aSDR2/Spectrum%20Sensing%20Week%203.pdf|Presentation]]) * Research on analog-to-digital conversion. * Familiarization with Fast Fourier Transform (FFT) in MATLAB. * USRP Tutorials using ORBIT. Week 4 ([[http://www.orbit-lab.org/raw-attachment/wiki/Other/Summer/2015/aSDR2/Spectrum%20Sensing%20Week%204.pdf|Presentation]]) * Research on filter design. * !Writing/Modification of OEDL scripts. See [#Exp1 Experiment 1]. * Development of a MATLAB script for signal visualization. Week 5 ([[http://www.orbit-lab.org/raw-attachment/wiki/Other/Summer/2015/aSDR2/Spectrum%20Sensing%20Week%205.pdf|Presentation]]) * Introduction of FPGA into the project. * Use of OML to gather raw IQ samples from USRPs. * Development of a MATLAB spectrogram script. Week 6 ([[http://www.orbit-lab.org/raw-attachment/wiki/Other/Summer/2015/aSDR2/Spectrum%20Sensing%20Week%206.pdf|Presentation]]) * FPGA Programming Using VHDL. * Experimentation on the ORBIT Grid. See [#Exp2 Experiment 2]. * Filtering and Peak-Finding in MATLAB. Week 7 in progress. === Experiments === {{{#!html
Figure 1. Waterfall plot and animated power vs. frequency plot generated using wiserd FFT data.
}}} ==== Experiment 1: Signal Transmission and Processing with USRP2 and wiserd [=#Exp1] In this experiment we modify the [[http://www.orbit-lab.org/wiki/Tutorials/k0SDR/Tutorial05#SpectrumsensingwithUSRP2andwiserdOEDLandOML|Spectrum sensing with USRP2 and wiserd (OEDL and OML)]] tutorial. [[BR]][[BR]] The tutorial uses two USRPs: one transmitter and one receiver. The transmitter starts at 798 MHz and increases to 802 MHz over a span of 5 seconds. The receiver has a carrier frequency of 800 MHz and bandwidth of 5 MHz. [[BR]][[BR]] As our first experiment we modified the tutorial. We increase the sampling rate to 10 MHz, so we can accurately receive frequencies up to 5 MHz greater or lesser than the receiver's carrier frequency. We then randomly select frequencies from 796 to 804 MHz to transmit for one second each. [[BR]][[BR]] Using OML, we save the receiver readings to a file for processing in MATLAB/Octave. Using a MATLAB script, we generate a waterfall plot of the data, along with an animated power vs. frequency plot. [[BR]][[BR]] {{{#!html
Figure 2. Waterfall plot generated from raw IQ samples.
}}} '''Update: Raw IQ Samples and Processing in MATLAB''' Next, using the same frequencies and sampling rate as the original tutorial, we modified the OEDL script in order to collect raw time domain samples using ORBIT as opposed to samples that had already been converted into the frequency domain. [[BR]][[BR]] We then wrote a MATLAB script entitled "spectro" which we used to convert the raw data into the frequency domain. From there, we again generate a waterfall plot of the data. [[BR]][[BR]] Using the raw IQ samples instead of preprocessed FFT data allows for more flexibility in our signal processing. We now have access to a much larger collection of data, and we can produce more accurate frequency domain transforms. ---------- {{{#!html
Figure 3. Waterfall plot containing frequencies from two transmitters, generated using wiserd FFT data.
}}} ==== Experiment 2: Signal Transmission and Processing with Two Transmitters and One Receiver [=#Exp2] In this experiment, we write an OEDL script that uses two transmitters and one receiver to collect preprocessed FFT samples. Utilizing three USRP2 radios on the grid, two nodes were used as transmitters, and one as a receiver. [[BR]][[BR]] The first transmitter starts at a frequency of 798 MHz and increases to 802 MHz, while the second transmitter starts at a frequency of 804 Mhz and increases to 808 MHz all over a span of 2.5 seconds. The receiver has a carrier frequency of 803 MHz and a bandwidth of 12 Mhz. [[BR]][[BR]] We then save the FFT data from the receiver to our local device and process in MATLAB, where we generated a waterfall plot of the data.