| 1 | \documentclass[10pt]{article} |
|---|
| 2 | |
|---|
| 3 | \usepackage[pdftex]{graphicx} |
|---|
| 4 | \usepackage{listings} |
|---|
| 5 | \usepackage{color} |
|---|
| 6 | \usepackage[left=2cm,top=1cm,right=3cm,nohead,nofoot]{geometry} |
|---|
| 7 | |
|---|
| 8 | \definecolor{darkgreen}{rgb}{0,0.5,0} |
|---|
| 9 | \definecolor{darkblue}{rgb}{0,0,0.5} |
|---|
| 10 | |
|---|
| 11 | \lstloadlanguages{bash} |
|---|
| 12 | \lstset{% |
|---|
| 13 | language=bash, |
|---|
| 14 | basicstyle=\ttfamily, |
|---|
| 15 | keywordstyle=\color{darkblue}\bfseries, |
|---|
| 16 | morekeywords={chmod,cp,grep,man,mkdir,killall,ps,rm,su,sudo}, |
|---|
| 17 | morecomment=[l][\color{darkgreen}]{\#!}, |
|---|
| 18 | columns=fullflexible |
|---|
| 19 | } |
|---|
| 20 | |
|---|
| 21 | \newcommand{\osfig}[2]% |
|---|
| 22 | {% |
|---|
| 23 | \begin{figure}[h!] |
|---|
| 24 | \label{fig:#1} |
|---|
| 25 | \centering |
|---|
| 26 | \includegraphics[width=300px]{#1.png} |
|---|
| 27 | \caption{#2} |
|---|
| 28 | \end{figure} |
|---|
| 29 | } |
|---|
| 30 | |
|---|
| 31 | \newcommand{\osblock}% |
|---|
| 32 | {% |
|---|
| 33 | \begin{figure}[h!] |
|---|
| 34 | \label{fig:block} |
|---|
| 35 | \centering |
|---|
| 36 | \includegraphics[width=300px]{lab_6/figures/block.png} |
|---|
| 37 | \end{figure} |
|---|
| 38 | } |
|---|
| 39 | |
|---|
| 40 | |
|---|
| 41 | \newcommand{\osref}[1]% |
|---|
| 42 | {% |
|---|
| 43 | Figure~\ref{fig:#1}% |
|---|
| 44 | } |
|---|
| 45 | |
|---|
| 46 | %opening |
|---|
| 47 | \title{OSSIE Lab \#: Using the Channel component} |
|---|
| 48 | \author{Haris I. Volos, \textit{et al}\\ |
|---|
| 49 | Virginia Tech, Blacksburg, VA\\ |
|---|
| 50 | Developed using OSSIE 0.7.x\\ |
|---|
| 51 | } |
|---|
| 52 | \date{June 2009} |
|---|
| 53 | |
|---|
| 54 | \begin{document} |
|---|
| 55 | |
|---|
| 56 | \maketitle |
|---|
| 57 | |
|---|
| 58 | \section{Acknowledgments} |
|---|
| 59 | This work was supported in part by NSF award \#0520418, and would not be possible without |
|---|
| 60 | the contributions of numerous students on the OSSIE team and other OSSIE users and |
|---|
| 61 | developers. |
|---|
| 62 | |
|---|
| 63 | \section{Objective} |
|---|
| 64 | The objective of this lab is to familiarize the user with the Channel component |
|---|
| 65 | |
|---|
| 66 | \section{Version} |
|---|
| 67 | This lab is for use with OSSIE version 0.7.x, the OSSIE Eclipse Feature (OEF), and ALF running on a computer or VMware image that uses Fedora Core 7 or Ubuntu 8.04. The TxDemo, Channel and RxDemo components are required. |
|---|
| 68 | |
|---|
| 69 | \section{Procedure} |
|---|
| 70 | \subsection{Procedure Overview} |
|---|
| 71 | \begin{enumerate} |
|---|
| 72 | \item Using OEF, build the ChannelEval waveform with the TxDemo, Channel, and RxDemo components |
|---|
| 73 | \item Run nodeBooter |
|---|
| 74 | \item Run the waveform using different settings and observe the effect on the number of errors |
|---|
| 75 | \end{enumerate} |
|---|
| 76 | |
|---|
| 77 | \subsection{Getting Started} |
|---|
| 78 | \subsection{Building the waveform} |
|---|
| 79 | Using OEF build the ChannelEval waveform with the structure shown in \osref{waveformOEF}. In addition, \osref{blockdiagram} provides an alternative view of the waveform. Only the Channel component has configurable properties, set those properties according to \osref{wfmproperties} |
|---|
| 80 | \osfig{waveformOEF}{OEF Waveform Structure} |
|---|
| 81 | \osfig{blockdiagram}{Block Diagram} |
|---|
| 82 | \osfig{wfmproperties}{Initial Channel Component Properties} |
|---|
| 83 | \subsection{Theory} |
|---|
| 84 | The TxDemo transmits QPSK symbols with energy $7000^2+7000^2=98000000$ (both I and Q components have an amplitude of 7000). |
|---|
| 85 | SNR Estimation in dB is given by: |
|---|
| 86 | \begin{equation} |
|---|
| 87 | SNR=10log(\frac{RxPower}{Noise}) |
|---|
| 88 | \end{equation} |
|---|
| 89 | AWGN BER Estimation (QPSK) |
|---|
| 90 | \begin{equation} |
|---|
| 91 | P_b=Q(\sqrt{\frac{E_s}{N_0}})=Q(\sqrt{SNR}) |
|---|
| 92 | \end{equation} |
|---|
| 93 | \subsection{No fading} |
|---|
| 94 | Set the fading parameter to ``None'' |
|---|
| 95 | \subsubsection{Very Low SNR} |
|---|
| 96 | Set the noise power to 98000000, which is equal to power of energy of the QPSK pulse generated by the TxDemo component. The resulting SNR is 0 dB. |
|---|
| 97 | \osfig{IQ0dB}{I-Q Diagram, 0 dB SNR} |
|---|
| 98 | |
|---|
| 99 | Sample NodeBooter output: |
|---|
| 100 | \begin{lstlisting}[] |
|---|
| 101 | ... |
|---|
| 102 | RxDemo errors: 171 / 1024 |
|---|
| 103 | RxDemo errors: 158 / 1024 |
|---|
| 104 | RxDemo errors: 155 / 1024 |
|---|
| 105 | RxDemo errors: 160 / 1024 |
|---|
| 106 | RxDemo errors: 168 / 1024 |
|---|
| 107 | RxDemo errors: 175 / 1024 |
|---|
| 108 | ... |
|---|
| 109 | \end{lstlisting} |
|---|
| 110 | The average bit error equals 0.16 which is very close the theoretical bit error of 0.1587. |
|---|
| 111 | \subsubsection{Low SNR} |
|---|
| 112 | Set noise power to 9800000 |
|---|
| 113 | \osfig{IQ10dB}{I-Q Diagram, 10 dB SNR} |
|---|
| 114 | Sample NodeBooter output: |
|---|
| 115 | \begin{lstlisting}[] |
|---|
| 116 | ... |
|---|
| 117 | RxDemo errors: 1 / 1024 |
|---|
| 118 | RxDemo errors: 1 / 1024 |
|---|
| 119 | RxDemo errors: 1 / 1024 |
|---|
| 120 | RxDemo errors: 0 / 1024 |
|---|
| 121 | RxDemo errors: 1 / 1024 |
|---|
| 122 | RxDemo errors: 0 / 1024 |
|---|
| 123 | ... |
|---|
| 124 | \end{lstlisting} |
|---|
| 125 | The Average bit error equals $7.5\times 10^{-4}$ which is also close to the theoretical bit error of $7.83\times 10^{-4}$ |
|---|
| 126 | |
|---|
| 127 | |
|---|
| 128 | \subsubsection{Medium SNR} |
|---|
| 129 | Set noise power to 980000 |
|---|
| 130 | \osfig{IQ20dB}{I-Q Diagram, 20 dB SNR} |
|---|
| 131 | Sample NodeBooter output: |
|---|
| 132 | \begin{lstlisting}[] |
|---|
| 133 | ... |
|---|
| 134 | RxDemo errors: 0 / 1024 |
|---|
| 135 | RxDemo errors: 0 / 1024 |
|---|
| 136 | RxDemo errors: 0 / 1024 |
|---|
| 137 | RxDemo errors: 0 / 1024 |
|---|
| 138 | ... |
|---|
| 139 | \end{lstlisting} |
|---|
| 140 | |
|---|
| 141 | The average bit error is to low to be estimated, the theoretical bit error is $7.67\times 10^{-24}$. |
|---|
| 142 | |
|---|
| 143 | \subsection{Fading} |
|---|
| 144 | Set the fading parameter to ``Ricean'' and the ``Max. Doppler rate'' to 0.001. The theoretical bit error rate is not provided because is not as straightforward to estimate for the the conditions tested as the AWGN case. |
|---|
| 145 | \subsubsection{Rayleigh Fading} |
|---|
| 146 | Set the ``K fading factor'' to 0 (Rayleigh fading) |
|---|
| 147 | It may be observed it the \osref{IQK0EnvelopeFalse} that both the amplitude and the phase of the received signal fluctuates. |
|---|
| 148 | \osfig{IQK0EnvelopeFalse}{I-Q Diagram, SNR=20 dB, K=0} |
|---|
| 149 | \begin{lstlisting}[] |
|---|
| 150 | ... |
|---|
| 151 | RxDemo errors: 258 / 1024 |
|---|
| 152 | RxDemo errors: 313 / 1024 |
|---|
| 153 | RxDemo errors: 346 / 1024 |
|---|
| 154 | RxDemo errors: 756 / 1024 |
|---|
| 155 | RxDemo errors: 124 / 1024 |
|---|
| 156 | RxDemo errors: 595 / 1024 |
|---|
| 157 | RxDemo errors: 263 / 1024 |
|---|
| 158 | RxDemo errors: 540 / 1024 |
|---|
| 159 | RxDemo errors: 148 / 1024 |
|---|
| 160 | RxDemo errors: 279 / 1024 |
|---|
| 161 | ... |
|---|
| 162 | \end{lstlisting} |
|---|
| 163 | The average bit error equals to 0.353. |
|---|
| 164 | \subsubsection{Rayleigh Fading - Envelope Fading Only} |
|---|
| 165 | Set the ``K fading factor'' to 0 (Rayleigh fading) |
|---|
| 166 | Set the ``Envelope Fading Only'' to True |
|---|
| 167 | |
|---|
| 168 | It may be observed it the \osref{IQK0EnvelopeTrue} that only the amplitude of received signal fluctuates, there is not phase fluctuation. |
|---|
| 169 | \osfig{IQK0EnvelopeTrue}{I-Q Diagram, SNR=20 dB, K=0, Envelope Fading Only} |
|---|
| 170 | \begin{lstlisting}[] |
|---|
| 171 | ... |
|---|
| 172 | RxDemo errors: 0 / 1024 |
|---|
| 173 | RxDemo errors: 0 / 1024 |
|---|
| 174 | RxDemo errors: 0 / 1024 |
|---|
| 175 | RxDemo errors: 48 / 1024 |
|---|
| 176 | RxDemo errors: 2 / 1024 |
|---|
| 177 | RxDemo errors: 20 / 1024 |
|---|
| 178 | RxDemo errors: 0 / 1024 |
|---|
| 179 | RxDemo errors: 0 / 1024 |
|---|
| 180 | RxDemo errors: 0 / 1024 |
|---|
| 181 | RxDemo errors: 0 / 1024 |
|---|
| 182 | ... |
|---|
| 183 | \end{lstlisting} |
|---|
| 184 | Average bit error=$6.84\times 10^{-3}$ |
|---|
| 185 | \subsubsection{Ricean Fading} |
|---|
| 186 | Set the ``K fading factor'' to 10 |
|---|
| 187 | Set the ``Envelope Fading Only'' to False |
|---|
| 188 | It may be observed it the \osref{IQK10EnvelopeFalse} that both the amplitude and the phase of the received signal fluctuates less severely compared to the K=0 case. |
|---|
| 189 | \osfig{IQK10EnvelopeFalse}{I-Q Diagram, SNR=20 dB, K=10} |
|---|
| 190 | |
|---|
| 191 | \begin{lstlisting}[] |
|---|
| 192 | ... |
|---|
| 193 | RxDemo errors: 0 / 1024 |
|---|
| 194 | RxDemo errors: 0 / 1024 |
|---|
| 195 | RxDemo errors: 0 / 1024 |
|---|
| 196 | RxDemo errors: 0 / 1024 |
|---|
| 197 | RxDemo errors: 0 / 1024 |
|---|
| 198 | RxDemo errors: 0 / 1024 |
|---|
| 199 | RxDemo errors: 0 / 1024 |
|---|
| 200 | RxDemo errors: 0 / 1024 |
|---|
| 201 | RxDemo errors: 0 / 1024 |
|---|
| 202 | ... |
|---|
| 203 | \end{lstlisting} |
|---|
| 204 | Average bit error, to low to be estimated |
|---|
| 205 | |
|---|
| 206 | |
|---|
| 207 | |
|---|
| 208 | \end{document} |
|---|