aboutsummaryrefslogtreecommitdiffstats
path: root/doc/thesis
diff options
context:
space:
mode:
authorNao Pross <np@0hm.ch>2021-12-20 17:53:27 +0100
committerNao Pross <np@0hm.ch>2021-12-20 17:53:27 +0100
commit91a346c87debb3b5d949e2e138faf9d83c83b555 (patch)
treeb6bb5701d1360247ac453aa86fbdefd266c7ec05 /doc/thesis
parentMerge remote-tracking branch 'origin/master' (diff)
downloadFading-91a346c87debb3b5d949e2e138faf9d83c83b555.tar.gz
Fading-91a346c87debb3b5d949e2e138faf9d83c83b555.zip
Add figure for measurements with hardware
Diffstat (limited to '')
-rw-r--r--doc/thesis/Makefile3
-rw-r--r--doc/thesis/chapters/implementation.tex12
-rw-r--r--doc/thesis/figures/data/qpsk_hw_lab.py6
-rw-r--r--doc/thesis/figures/tikz/qpsk-hardware.tex83
4 files changed, 98 insertions, 6 deletions
diff --git a/doc/thesis/Makefile b/doc/thesis/Makefile
index f705a6b..0afb1f6 100644
--- a/doc/thesis/Makefile
+++ b/doc/thesis/Makefile
@@ -27,7 +27,8 @@ SOURCES := \
figures/tikz/rayleigh-rice-pdf-plots.tex \
figures/tikz/packet-frame.tex \
figures/tikz/qpsk-simulations-static.tex \
- figures/tikz/qpsk-simulations-dynamic.tex
+ figures/tikz/qpsk-simulations-dynamic.tex \
+ figures/tikz/qpsk-hardware.tex
DATA := \
figures/data/multipath_frequency_response.dat \
diff --git a/doc/thesis/chapters/implementation.tex b/doc/thesis/chapters/implementation.tex
index 4518611..9155b2e 100644
--- a/doc/thesis/chapters/implementation.tex
+++ b/doc/thesis/chapters/implementation.tex
@@ -1,6 +1,6 @@
% vim: set ts=2 sw=2 noet spell:
-\chapter{Implementation}
+\chapter{Implementation} \label{chp:implementation}
\section{Overview}
@@ -393,7 +393,7 @@ The numbers of tags used in this case are similar to the number of given values.
\SI{5.0}{\micro\second} & \(\SI{-7.0}{\decibel} \approx 0.1995\) \\
\bottomrule
\end{tabular}
- \caption{Extended Typical Urban model (ETU) ETSI Standard PDP values for multipath fading propagation conditions. \cite{ETSI}. \label{tab:etsi-tap-values}}
+ \caption{Extended Typical Urban model (ETU) ETSI Standard PDP values for multipath fading propagation conditions \cite{ETSI}. \label{tab:etsi-tap-values}}
\end{table}
% \begin{figure}
@@ -515,4 +515,12 @@ Without those only the amplitudes could be seen in the Plots, with all the noise
Simulations with a dynamic fading channel model using PDP values of the Extended Typical Urban model (ETU) of the ETSI standard normative Annex B.2 in \cite{ETSI}. The color gradient represents progression in time.
}
\end{figure}
+\newpage
+\begin{figure}
+ \centering
+ \input{figures/tikz/qpsk-hardware}
+ \caption{
+ TODO QPSK hardware
+ }
+\end{figure}
\restoregeometry
diff --git a/doc/thesis/figures/data/qpsk_hw_lab.py b/doc/thesis/figures/data/qpsk_hw_lab.py
index a8170c6..741f32f 100644
--- a/doc/thesis/figures/data/qpsk_hw_lab.py
+++ b/doc/thesis/figures/data/qpsk_hw_lab.py
@@ -7,11 +7,11 @@ import numpy as np
samples = utils.load_samples(__file__)
# range of samples we want to show
-start = 1e3
-end = start +50
+start = 250e3
+end = start +400
# select every second samples
-select_samples = lambda arr: arr[int(start):int(end):2]
+select_samples = lambda arr: arr[int(start):int(end):6]
values = map(select_samples, samples)
# split into imaginary and real parts
diff --git a/doc/thesis/figures/tikz/qpsk-hardware.tex b/doc/thesis/figures/tikz/qpsk-hardware.tex
new file mode 100644
index 0000000..68a31a6
--- /dev/null
+++ b/doc/thesis/figures/tikz/qpsk-hardware.tex
@@ -0,0 +1,83 @@
+% vim: set ts=2 sw=2 noet:
+
+\newcommand{\makeplot}[5]{%
+ \hfill
+ \begin{tikzpicture}
+ \begin{axis}[
+ width = {\linewidth / 3.3},
+ height = {\linewidth / 3.3},
+ grid = major,
+ xmin = {-#4}, xmax = {#4},
+ ymin = {-#4}, ymax = {#4},
+ colormap name=viridis,
+ #5
+ ]
+
+ \addplot[only marks, scatter] table [x index = #2, y index = #3] {#1};
+ \end{axis}
+ \end{tikzpicture}
+ \hfill
+}
+
+% -------------------------------------------------------------------
+
+\noindent
+\makeplot{figures/data/qpsk_hw_lab.dat}{0}{1}{.25}{
+ ylabel = {Channel with ISI},
+ yticklabel style = {
+ text width = 3em,
+ align = right,
+ },
+ title = {LOS, Indoors (Lab)},
+}
+%
+\makeplot{figures/data/qpsk_hw_lab.dat}{0}{1}{.25}{
+ title = {LOS, Indoors (Lab)},
+}
+%
+\makeplot{figures/data/qpsk_hw_lab.dat}{0}{1}{.25}{
+ title = {LOS, Indoors (Lab)},
+}
+\newline
+
+% -------------------------------------------------------------------
+
+\noindent
+\makeplot{figures/data/qpsk_hw_lab.dat}{2}{3}{.25}{%
+ ylabel = {Synchronized},
+ yticklabel style = {
+ text width = 3em,
+ align = right,
+ },
+}
+\makeplot{figures/data/qpsk_hw_lab.dat}{2}{3}{.25}{}
+\makeplot{figures/data/qpsk_hw_lab.dat}{2}{3}{.25}{}
+\newline
+
+% -------------------------------------------------------------------
+
+\noindent
+\makeplot{figures/data/qpsk_hw_lab.dat}{4}{5}{2}{%
+ ylabel = {Equalized},
+ yticklabel style = {
+ text width = 3em,
+ align = right,
+ },
+}
+\makeplot{figures/data/qpsk_hw_lab.dat}{4}{5}{2}{}
+\makeplot{figures/data/qpsk_hw_lab.dat}{4}{5}{2}{}
+\newline
+
+% -------------------------------------------------------------------
+
+\noindent
+\makeplot{figures/data/qpsk_hw_lab.dat}{6}{7}{2}{%
+ ylabel = {Locked},
+ yticklabel style = {
+ text width = 3em,
+ align = right,
+ },
+}
+\makeplot{figures/data/qpsk_hw_lab.dat}{6}{7}{2}{}
+\makeplot{figures/data/qpsk_hw_lab.dat}{6}{7}{2}{}
+\newline