aboutsummaryrefslogtreecommitdiffstats
path: root/doc/thesis/chapters
diff options
context:
space:
mode:
Diffstat (limited to 'doc/thesis/chapters')
-rw-r--r--doc/thesis/chapters/implementation.tex85
1 files changed, 45 insertions, 40 deletions
diff --git a/doc/thesis/chapters/implementation.tex b/doc/thesis/chapters/implementation.tex
index aa394bf..a48127c 100644
--- a/doc/thesis/chapters/implementation.tex
+++ b/doc/thesis/chapters/implementation.tex
@@ -164,7 +164,7 @@ The phase and frequency correction block was implemented with the design goal of
\right) = \SI{2416}{\hertz}.
\end{equation}
Because the frequency estimate is linearly interpolated, the phase error may not exceed \(\pi\) (half rotation) during one data frame (chunk). These constraints imply that for frames of \(N'\) symbols of duration \(T\), using \(\kappa\) samples per symbol the relation
-\begin{equation}
+\begin{equation}\label{Doppler-shift}
2\pi\Delta f N' T \kappa \leq \pi
\iff T = 1/f_s \leq \frac{1}{2\Delta f N' \kappa},
\iff N' \leq \frac{1}{2\Delta f T \kappa},
@@ -271,50 +271,52 @@ In order to study the effects of multipath fading, a series of simulations have
\begin{figure}
\centering
- \input{figures/tikz/qpsk-sim-constellations-static-symb}
- \caption{
- Constellation diagrams for a simulated link using QPSK with the discrete time model block.
+ \input{figures/tikz/qpsk-sim-constellations-without-effects}
+ \caption{ Plot of without any effect, to compare with the other Plots.
}
\end{figure}
-
\begin{figure}
\centering
- \input{figures/tikz/qpsk-sim-constellations-without-effects}
+ \input{figures/tikz/qpsk-sim-constellations-static-symb}
\caption{
- TODO
+ Constellation diagrams for a simulated link using QPSK with the discrete time model block.
+ The parameters are: delay of samples per symbol, amplitude of 0.2 and LOS.
}
+ \label{fig:static-symb-specal-case}
\end{figure}
\begin{figure}
\centering
- \input{figures/tikz/qpsk-sim-constellations-static}
+ \input{figures/tikz/qpsk-sim-constellations-static-symb-NLOS}
\caption{
- Constellation diagrams for a simulated link using QPSK with AWGN and Rayleighan fading.
+ Constellation diagrams for a simulated link using QPSK with the discrete time model block.
+ The parameters are: delay of samples per symbol, amplitude of 0.2 and LOS.
}
+ \label{fig:static-symb-specal-case-NLOS}
\end{figure}
\begin{figure}
\centering
- \input{figures/tikz/qpsk-sim-constellations-dynamic}
+ \input{figures/tikz/qpsk-sim-constellations-static-symb-vec}
\caption{
- Constellation diagrams for a simulated link using QPSK with AWGN and Rayleighan fading. The paramters are: frequency offset of 0.2 \%, \SI{100}{\milli\volt} noise, dopper shift for \(v = \SI{2}{\meter\per\second}\), and a NLOS urban PDP.
+ Constellation diagrams for a simulated link using QPSK with the discrete time model block.
+ The parameters are: delay of \([0.25,4,6.3,3.25]\)samples , amplitude of \([0.2,0.5,0.4,0.08]\) and LOS.
}
+ \label{fig:static-symb-specal-case-vec}
\end{figure}
\subsection{Fading with discrete time model}
-For the statical version according to \ref{sec:discrete-time-model} for implement and illustrate the fading effect, a separate block was created and implemented in the channel. Nearer shown in \ref{lst:fractional-delay-fir}. This block is based on a FIR filter. It can be displayed with a direct path or without one.
+For the statical version according to \ref{sec:discrete-time-model} for implement and illustrate the fading effect, a separate block was created and implemented in the channel. Nearer shown in \ref{lst:fractional-delay-fir}. This block is based on a FIR filter. It can be displayed with a direct path (LOS) or without one (NLOS).
+With the help of this filter, the delay of the line of side paths are illustrated. In this block it is possible to simulate any number of these paths with different strengths, as long as there is an associated amplitude specified for each delayed path.
+
+A special case is show in \figref{fig:static-symb-specal-case} and in \figref{fig:static-symb-specal-case-NLOS}, where the delay in sample is the same as have the sample per symbol or a multiple of it. An other example is shown in \figref{fig:static-symb-specal-case-vec},with more diffident delayed paths.
+Unfortunately, these simulation values do not correspond to the reality, because too many incalculable side effects occur, which aren't possible to illustrate in this simulation.
- With the help of this filter, the delay of the line of side paths are illustrated. In this block it is possible to simulate any number of these paths with different strengths, as long as there is an associated amplitude specified for each delayed path. Unfortunately, these simulation values do not correspond to the realety, because too many incalculable side effects occur, which aren't possiple to ilustrate in this simulation.
This block was additionally implemented with the method described in \ref{sec:fractional-delay} to allow non-integer delay values compared to the samples shown in \figref{fig:fractional-delay-sinc-plot}. Where the sinc function does not select an integer sample. Which in turn means that the other sampled values do not add up to zero.
Thus, they will be distributed among the other whole numbers. A window function could also be implemented to limit these values. Here none was implemented because the sinc function is restricted.
-%TODO: Show some plot
-\skelpar[5]{
- Discrabe a perfect plot
-}
-
\begin{lstlisting}[
texcl = true, language = python, escapechar = {`},
float, captionpos = b, label = {lst:fractional-delay-fir},
@@ -356,6 +358,26 @@ Thus, they will be distributed among the other whole numbers. A window function
\end{lstlisting}
+%
+%\begin{figure}
+% \centering
+% \input{figures/tikz/qpsk-sim-constellations-static}
+% \caption{
+% Constellation diagrams for a simulated link using QPSK with AWGN and Rayleighan fading.
+% }
+%\end{figure}
+%
+\begin{figure}
+ \centering
+ \input{figures/tikz/qpsk-sim-constellations-dynamic}
+ \caption{
+ Constellation diagrams for a simulated link using QPSK with AWGN and Rayleighan fading. The paramters are: frequency offset of 0.2 \%, \SI{100}{\milli\volt} noise, dopper shift for \(v = \SI{2}{\meter\per\second}\), and a NLOS urban PDP.
+ }
+ \label{fig:dynamic-exp}
+\end{figure}
+
+
+
\subsection{Fading with statistical model}
In order to represent the effect of the multipaht fading not only statically, a second model was created using the Frequency Selective Fading Model from Gnu Radio, according to \ref{sec:statistical-model},which was implemented after the algorithm from the paper \cite{Alimohammad2009}, with the help of the sum-of sinusoid principal (SOS). The algorithm in this block is implemented with the aim that only a small number of sinusoids are needed.
@@ -365,32 +387,15 @@ It can also be chosen whish statical model should be taken for the simulation Ra
The power delay profile which specify the delay in time for each impulse need to be in sample. For this delay vector some realistic values \cite{Matlab} are for the first delay, when theirs non line of side zero. The second delayed path depend on the environment of measurement. In an indoor environment it is usually between \(1\cdot10^{-9}\) to \(1\cdot10^{-7}\) and in an outdoor environment between \(1\cdot10^{-7}\) to \(1\cdot10^{-5}\). The rest depends on the bandwidth.
-The magnitudes of the pulses are given with the linear value. In practices the avarage path gain of a fading paht is in the range of \([ -20 \text{dB} , 0\text{dB}]\).
-
-
+The magnitudes of the pulses are given with the linear value. In practices the avarage path gain of a fading path is in the range of \([ -20 \text{dB} , 0\text{dB}]\).
-For the Doppler effect which shoudent be forgotten if something is moving in the construction, like the transmitter or the reviser. It need to be normalized with the sampling rate.
+To add some movement, like a movable transmitter some Doppler shift can be initialized after the formula \eqref{Doppler-shift}. But it need to be normalized with the sampling rate.
+An example of such a simulation plot is shown in \figref{fig:dynamic-exp}.
-\begin{equation}
- max. Doppler = \frac{v\cdot f_c}{c}
-\end{equation}
-
-With the velocity \(v\) in \(\frac{m}{s}\) for example walking this value is between \(2-4\frac{m}{s}\).The carrier frequency \(f_c\) in this case 2.4GHz and the velocity of light \(c\).
-
-
-
-The power delay profile which specify the delay in time for each impulse need to be in sample. For this delay vector some realistic values are for the first delay when theirs non line of side should be zero. The second delayed path depend on the environment of measurement. In an indoor enviroment it is usually between \(1\cdot10^{-9}\) to \(1\cdot10^{-7}\) and in an outdoor environment between \(1\cdot10^{-7}\) to \(1\cdot10^{-5}\). The rest depends on on the bandwidth.
-
-%TODO finish this paragraph
-%\begin{german}
-%
-% Um die resultate einigermassse nach vollziehen zu können wurde ein MATLAP model zur veranschaulichung erstelle.
-% Um ein realistisches beispiel zu haben wurden werte aus dem Skript \cite{Mathis} genomen
-%
-%\end{german}
+%TODO: Other Plots
+\subsubsection{Example from the skript}
-\subsubsection{Example from the skript}
\skelpar[5]{
Simulate an example from the skript