From ea3a02f04dd30909afed7269d7c09853131487b9 Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Tue, 14 Dec 2021 20:04:54 +0100 Subject: Add svg as png for abstract --- doc/poster/pictures/sketch.png | Bin 0 -> 162855 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 doc/poster/pictures/sketch.png diff --git a/doc/poster/pictures/sketch.png b/doc/poster/pictures/sketch.png new file mode 100644 index 0000000..9565889 Binary files /dev/null and b/doc/poster/pictures/sketch.png differ -- cgit v1.2.1 From 0d9af1f937ae7baf95052bcb30261fc92cefc0f2 Mon Sep 17 00:00:00 2001 From: sara Date: Tue, 14 Dec 2021 22:48:10 +0100 Subject: Doku --- doc/thesis/chapters/implementation.tex | 15 ++++++++----- doc/thesis/chapters/theory.tex | 39 ++++++++++++++++++++++++++++++---- 2 files changed, 45 insertions(+), 9 deletions(-) diff --git a/doc/thesis/chapters/implementation.tex b/doc/thesis/chapters/implementation.tex index ae4571f..9b8d543 100644 --- a/doc/thesis/chapters/implementation.tex +++ b/doc/thesis/chapters/implementation.tex @@ -256,8 +256,9 @@ In this part the fading blocks for the simulation are added. Tow different types \subsection{Fading with Discrete-time model} -For the statical version according to \ref{sec:discrete-time-model} to implement and illustrat the fading effect, a separate block was created and implemented in the channel. Nearer shown in \ref{lst:fir-block}. This block is based on a FIR filter. It can be displayed with a direct path or without one. 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. +For the statical version according to \ref{sec:discrete-time-model} to implement and illustrat the fading effect, a separate block was created and implemented in the channel. Nearer shown in \ref{lst:fir-block}. This block is based on a FIR filter. It can be displayed with a direct path or without one. 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. \skelpar[5]{ Discrabe a perfect plot @@ -316,17 +317,21 @@ This block was additionally implemented with the method described in \ref{sec:fr % TODO: Quelle https://ch.mathworks.com/help/comm/ug/fading-channels.html?searchHighlight=rician%20fading&s_tid=srchtitle_rician%2520fading_2#a1070327427b1 +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{statistical_model}.which was implemented after the algorithm from the paper \cite{Alimohammad2009}. It is based on the sum-of sinusoid principal(SOS) \begin{german} - Um den effect des multipaht fadinngs nicht nur statisch darzu stellen, wurde ein zweites model kreiert mit hilfe des Frequency Selective Fading Models von Gnu Radio, gemäss \ref{statistical_model}. - Welcher nach dem Algorthmus aud dem paper \cite{Alimohammad2009} implementiert wurde. + Um den effect des multipaht fadinngs nicht nur statisch darzu stellen, wurde ein zweites model kreiert mit hilfe des Frequency Selective Fading Models von Gnu Radio, gemäss \ref{statistical_model}.Welcher nach dem Algorthmus aud dem paper \cite{Alimohammad2009} implementiert wurde. Er basiert auf dem sum-of sinusoid princip(SOS) + 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} Some realistic value for this block are: -The first delay when theirs non line of side is zero. The second delayed path depend on the environment of measurement. In an indoor enviroment it is usaely 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 bandwith +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. + + +Rician fading factor K = 0 = Rylehnt Model \skelpar[5]{ Simulation mit Werten aus dem Skript diff --git a/doc/thesis/chapters/theory.tex b/doc/thesis/chapters/theory.tex index 15aa44b..765c4b9 100644 --- a/doc/thesis/chapters/theory.tex +++ b/doc/thesis/chapters/theory.tex @@ -231,10 +231,16 @@ An intuitive parameter to quantify how dispersive channel is, is to take the tim as is done in \cite{Gallager}. However since in reality some paths get more attenuated than others (\(c_k(t)\) parameters) it also not uncommon to define the delay spread as a weighted mean or even as a statistical second moment (RMS value), where mean tap power \(\expectation\{|c_k(t)|^2\}\) is taken into account \cite{Mathis,Messier}. More sophisticated definitions of delay spread will be briefly mentioned later in section \ref{sec:statistical-model}. Another important parameter for quantifying dispersion is \emph{coherence bandwidth}, a measure how +\skelpar{sentence} + +% TODO: End the sentence \subsection{Effects of multipath fading on modulation constellations} -\skelpar{Beschreiben warnn die Werte hübsch sind} +% TODO : Can we sai it that way /dose it need to be in the implementation Part? + +It is to mention that not every constellation of parameter for a fading illustration leads to a satisfying plot constellation. +For example in a Discrete-time Model: the same delay as the samples per Symbol or a multiple of it leads to a special case, where we see the constellation are around the modulate signal points, when there is no line of side path. This is because of \skelpar{Beschreiben warnn die Werte hübsch sind} \subsection{Discrete-time model} \label{sec:discrete-time-model} @@ -274,10 +280,10 @@ is different from \eqref{eqn:multipath-impulse-response} consider again the plot \end{figure} From a signal processing perspective \eqref{eqn:discrete-multipath-impulse-response} can be interpreted as a simple tapped delay line, schematically drawn in \figref{fig:tapped-delay-line}, which confirms that the presented mathematical model is indeed a FIR filter. Simple multipath channels can be simulated with just a few lines of code, for example the data for the static fading channel in \figref{fig:multipath-frequency-response-plots} is generated in just four lines of Python. The difficulty of fading channels in practice lies in the estimation of the constantly changing parameters \(c_k(t)\) and \(\tau_k(t)\). - +%TODO: Code ? \subsection{Simulating multipath CIR with FIR filters} \label{sec:fractional-delay} -% TO Do quelle: http://users.spa.aalto.fi/vpv/publications/vesan_vaitos/ch3_pt1_fir.pdf +% TODO quelle: http://users.spa.aalto.fi/vpv/publications/vesan_vaitos/ch3_pt1_fir.pdf \begin{figure} \centering @@ -327,7 +333,7 @@ Recall that \(h_l(m)\) is a function of time because \(c_k\) and \(\tau_k\) chan for some parameter \(\sigma\). Loosely speaking, the distribution needs to be ``circular'' because \(h_l\) is a complex number, which is a ``two dimensional number'', it can however be understood as \(\Re{h_l} \sim \mathcal{N}(0, \sigma^2)\) and \(\Im{h_l} \sim \mathcal{N}(\mu, \sigma^2)\), i.e. having each component being normally distributed. -% TO DO : Picture of gaussian distribution +%TODO : Picture of gaussian distribution \begin{subequations} \begin{align} R_{l} (k) &= \E{h_l(m) h_l^*(m+k)}, \\ @@ -352,8 +358,33 @@ for some parameter \(\sigma\). Loosely speaking, the distribution needs to be `` } \end{figure} +%TODO :Maby some correction on the descreption, because mentionet earlyer \paragraph{NLOS case} +%TODO: Quellen : Skript Mathis und Buch Grundlagen der digitalen Informationsübertagung Peter Adam Höher + + + In the case of the Rayleight distribution the signal has no line of sight. So to find the probability function of the amplitutes of this superimposition of those infinity of distribute signals: +\begin{equation} \label{eqn:rayleight fading} + f(t) = \lim_{N\rightarrow\infty} \frac{1}{\sqrt{N}}\sum_{n=1}^{N} e^{j(\Theta +2\pi jf t)}. + \end{equation} +whish are nominatet with the factor \(\frac{1}{\sqrt{N}}\) so that the \(\E{|f(t)|²}=1\) and the fact that we are looking at the complex basiband and this prosses are independent and in this the gaussian distribution it can be said that is zero \(\E{f(t)}=0\) + + + It can be explain in two different way with the help of %TODO: How do you say Quadraturkomponenten in english? + quadraturcomponents or the help of the amplitude in time and the associated phase \(\Theta(t) \in[\,0,2\pi)\,\) + + + + +So it can be said that the amplitude of the rayleightdistribution + +%\begin{equation} \label{eqn:rayleight_fading_probabilety_dencety} +% p(a)= 2a \exp{-a^2} +% +%\end{equation} +%TODO: Why not the same as in the skript + \skelpar[4]{Explain statistical model with Rayleighan distribution.} \begin{equation} \Re{h_l(n)}, \Im{h_l(n)} -- cgit v1.2.1 From c46403fcb087bab828c66486309d8f859a14d9ca Mon Sep 17 00:00:00 2001 From: SARA Date: Wed, 15 Dec 2021 09:21:12 +0100 Subject: More doku work --- doc/thesis/chapters/implementation.tex | 58 ++++++++++++++++++++++++++++------ doc/thesis/chapters/theory.tex | 9 ++++-- 2 files changed, 55 insertions(+), 12 deletions(-) diff --git a/doc/thesis/chapters/implementation.tex b/doc/thesis/chapters/implementation.tex index 9b8d543..ff073ee 100644 --- a/doc/thesis/chapters/implementation.tex +++ b/doc/thesis/chapters/implementation.tex @@ -48,7 +48,7 @@ Also as a side effect, in theory this setup allows to have one computer running \section{Hardware} \begin{table}[b] - %To DO sepzifikationen ampssen / genauer? https://www.ettus.com/wp-content/uploads/2019/01/b200-b210_spec_sheet.pdf + %TODO sepzifikationen ampssen / genauer? https://www.ettus.com/wp-content/uploads/2019/01/b200-b210_spec_sheet.pdf % https://kb.ettus.com/B200/B210/B200mini/B205mini#FAQ \centering \begin{tabular}{ll} @@ -91,7 +91,7 @@ GR provides a constellation modulator block, that already implements several sta What is here referred to as envelope detector has the purpose of synchronizing the symbols and equalizing the input signal amplitude. This is accomplished in GRC using two blocks: a polyphase clock sync and a CMA equalizer. The input signal for the envelope detector has 4 samples per symbol, while the output has only one sample per symbol. \paragraph{Polyphase Clock Sync} -%% To Do : nochmals anschauen ob dieese erklärung verständlich ist und richtig interpretiert wurde. +%TODO : nochmals anschauen ob dieese erklärung verständlich ist und richtig interpretiert wurde. With the the polyphase clock sync the symbols can be synchronized by preforming a time synchronization with the help of multiple filterbanks. For that the derivative of the filtered signal should be minimized which turns to a better SNR. % This works with the help of two filterbanks, one of them contains the filters of the signal adapted to the pulse shaping with several phases. The other contains its derivative. So in the time domain it has a sinc shape, for the output Signal the sinc peak should be on a sample, with the fact that sinc(0) = 1 and sinc(0)' = 0 an error signal can be generated which tells how far away from the peak it is. This error Signal should be zero this is possible with the help of a loop second order whish constants the number of the filterbank and the rate. This rate is generated because of the clock difference between the transmitter and receiver to synchronized the receiver the filter goes through the phases. For the output one sample per symbol is enough. @@ -177,7 +177,7 @@ def work(self, inputs, outputs): \begin{figure} \centering - %% TODO: move code into separate file + % TODO: move code into separate file \begin{tikzpicture}[ blk/.style = { draw, rectangle, thick, black, @@ -248,6 +248,7 @@ In this part the fading blocks for the simulation are added. Tow different types Discuss the multitap FIR model we used. How it is possible to set the delay etc. Also mathematics for the interpolation. } +%TODO find out what to do with this text in the comment %To get a basic line for further simulations a 16QAM has been made. The results of this simulation are shown in \figref{fig:simul16QAM} and \figref{fig:simul16QAM_1} as the red Signal. In \tabref{tab:modulation_settings} some importer Parameter settings for a different modulation scheme are mentioned. % %A FIR-Filter was added in the Channel to create a time delay between tow paths. In \figref{fig:simul16QAM} the result includes a direct path and a delayed one. In the plot of \figref{fig:simul16QAM_1} the transmission line dosn't include a direct path. %It's impotent to mention that the delay should be smaller than the symbol rate or a multiple of it. (Stimmt dies , not sure any more) @@ -314,13 +315,14 @@ Thus, they will be distributed among the other whole numbers. A window function \subsection{Fading with Statistical model} - +\skelpar[5]{ + Discuss how i did that +} % TODO: Quelle https://ch.mathworks.com/help/comm/ug/fading-channels.html?searchHighlight=rician%20fading&s_tid=srchtitle_rician%2520fading_2#a1070327427b1 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{statistical_model}.which was implemented after the algorithm from the paper \cite{Alimohammad2009}. It is based on the sum-of sinusoid principal(SOS) \begin{german} - Um den effect des multipaht fadinngs nicht nur statisch darzu stellen, wurde ein zweites model kreiert mit hilfe des Frequency Selective Fading Models von Gnu Radio, gemäss \ref{statistical_model}.Welcher nach dem Algorthmus aud dem paper \cite{Alimohammad2009} implementiert wurde. Er basiert auf dem sum-of sinusoid princip(SOS) 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 @@ -341,9 +343,47 @@ Rician fading factor K = 0 = Rylehnt Model \subsection{Empirical BER} \label{sec:ber} -% -% -% +To find out how accurate the simulations are comparer with a simulation of the fadinng effect and test measurements, the byte error rate of the system is calculated. This is done with the help of a user specified \(k\)-byte test frame in the beginning of each vector. Implemented according to the code in \ref{lst:ber-block}. Every bit is compared with the test vector at the beginning before the modulation and demodulation part. +Because of the fact that the test vector has some random bit at the end the bit error rate has always a value on average 32. + + + +\begin{lstlisting}[ + texcl = true, language = python, escapechar = {`}, + float, captionpos = b, label = {lst:ber-block}, + caption = { + Block FIR Filter function referenced in listing \ref{lst:phasecorr-work}. + }, + ] + def work(self, input_items, output_items): + inp = input_items[0] + # input vector + + for i in inp: + i = np.array(i, dtype=np.uint8) + v = np.array(self.vgl, dtype=np.uint8) ^ i + # XOR comparsion to find the diviation for the bits + ber = sum(np.unpackbits(v)) + + trueber = ber - 32 + if trueber < 0: + trueber = 0 + + self.ber_samples.appendleft(trueber) + + ber_max, ber_min, ber_avg = self.ber_stats() + self.send(self.encode([trueber, ber_max, ber_avg])) + #Send the valuse to the GUI + return len(inp) + +\end{lstlisting} + + + +\skelpar[5]{ + Discuss how i did that +} + \begin{figure} \includegraphics[width=\linewidth]{./figures/pdfs/qam_nogui.pdf} @@ -375,4 +415,4 @@ Rician fading factor K = 0 = Rylehnt Model \label{fig:simul16QAM__Hardware} \end{figure} -% To Do: Picture of the setup +% TODO: Picture of the setup diff --git a/doc/thesis/chapters/theory.tex b/doc/thesis/chapters/theory.tex index 765c4b9..207912b 100644 --- a/doc/thesis/chapters/theory.tex +++ b/doc/thesis/chapters/theory.tex @@ -208,6 +208,7 @@ With a continuous time channel model we can now discuss the spectral properties Equation \eqref{eqn:multipath-frequency-response} shows that the frequency response is a periodic complex exponential, which has some important implications. Notice that if there is only one tap (term), the magnitude of \(H(f, t)\) is a constant (with respect to \(f\)) since \(|e^{j\alpha f}| = 1\). This means that the channels attenuates all frequencies by the same amount, therefore it is said to be a \emph{frequency non-selective} or \emph{flat fading} channel. Whereas in the case when there is more than one tap, the taps interfere destructively at certain frequencies and the channel is called \emph{frequency selective}. To illustrate how this happens, plots of the frequency response of a two tap channel model are shown in \figref{fig:multipath-frequency-response-plots}. On the left is the magnitude of \(H(f, t)\), which presents periodic ``dips'', and on the right complex loci for the two taps (red and blue), as well as their sum (magenta), over the frequency range near the first dip (2 to 2.5 MHz) are shown. + \begin{figure} \centering \resizebox{\linewidth}{!}{ @@ -376,9 +377,6 @@ whish are nominatet with the factor \(\frac{1}{\sqrt{N}}\) so that the \(\E{|f(t - -So it can be said that the amplitude of the rayleightdistribution - %\begin{equation} \label{eqn:rayleight_fading_probabilety_dencety} % p(a)= 2a \exp{-a^2} % @@ -393,6 +391,11 @@ So it can be said that the amplitude of the rayleightdistribution \skelpar[4] \paragraph{LOS case} +In the case of the Rician distribution model. The line of side exist, which means that one of the paths have a straight communication line from the transmitter to the reviser. + +It can be said that a Rayleight distribution is the same as a Rician distribution with a factor K =0. + +For a faktor K= 5.1 the probability function is gaussien distributed. \skelpar[4]{Explain statistical model with Rician distribution.} \begin{equation} -- cgit v1.2.1 From d278b584ce77e749a384e3a5a01034d0ed646810 Mon Sep 17 00:00:00 2001 From: sara Date: Wed, 15 Dec 2021 13:59:25 +0100 Subject: GUI angepasst --- src/gui/gui.py | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/src/gui/gui.py b/src/gui/gui.py index 7e2357b..707e181 100755 --- a/src/gui/gui.py +++ b/src/gui/gui.py @@ -36,7 +36,7 @@ setup_dearpygui() # Show demo for dev show_demo() -show_debug() + #================================================ # Globl variables @@ -99,7 +99,8 @@ with theme(tag="constellation_series_theme"): with theme_component(mvScatterSeries): add_theme_style(mvPlotStyleVar_Marker, mvPlotMarker_Asterisk, category=mvThemeCat_Plots) add_theme_style(mvPlotStyleVar_MarkerSize, 3, category=mvThemeCat_Plots) - + with theme_component(mvAll): + add_theme_style(mvStyleVar_WindowBorderSize,0) #================================================ # GUI Callback functions @@ -160,6 +161,7 @@ with window(tag="primary_window"): # Flow Graph Window with window(label="RX DSP Flow Graph", width=800, height=400, pos=(0,25), tag="rx_win"): + add_text("TODO:Blockschaltbild") with node_editor(): with node(label="USRP Source", pos=(20,100)): with node_attribute(tag="src_out", attribute_type=mvNode_Attr_Output): @@ -195,11 +197,11 @@ with window(label="RX DSP Flow Graph", width=800, height=400, pos=(0,25), tag="r # Network plots def make_constellation_plot_window(plot, label): - with window(label=label, no_collapse=True, no_close=True, \ + with window(label=label, no_collapse=True, no_close=True,no_title_bar= True,no_move=True,no_resize=True, \ width=plot_window_sizes[plot][0], \ height=plot_window_sizes[plot][1], \ pos=plot_window_positions[plot], \ - tag=plot.window_tag): + tag=plot.window_tag) as constelation: with plot: # Fit to width of window configure_item(plot.tag, width=-1, height=-1) @@ -216,20 +218,23 @@ def make_constellation_plot_window(plot, label): add_scatter_series(plot.xdata, plot.ydata, \ label=label, parent=plot.xaxis_tag, tag=plot.series_tag) bind_item_theme(plot.series_tag, "constellation_series_theme") + bind_item_theme(constelation, "constellation_series_theme") make_constellation_plot_window(channel_plot, "Channel") make_constellation_plot_window(synchronized_plot, "Synchronized") make_constellation_plot_window(equalized_plot, "Equalized") make_constellation_plot_window(locked_plot, "Locked") -with window(label="Time domain", width=800, height=400, pos=(0,425), tag=time_plot.window_tag): +with window(label="Time domain", width=800, height=400, pos=(0,425), \ + no_title_bar= True,no_move=True,no_resize=True,no_collapse=True, no_close=True,\ + tag=time_plot.window_tag) as time: with time_plot: configure_item(time_plot.tag, width=-1, height=-1) add_plot_axis(mvXAxis, label="Time", tag=time_plot.xaxis_tag) add_plot_axis(mvYAxis, label="Amplitude", tag=time_plot.yaxis_tag) add_line_series(time_plot.xdata, time_plot.ydata, parent=time_plot.xaxis_tag, tag=time_plot.series_tag) - + bind_item_theme(time, "constellation_series_theme") #================================================ # Bit Error Rate Window @@ -239,20 +244,21 @@ with theme(tag="ber_window"): with theme_component(mvAll): add_theme_style(mvStyleVar_WindowTitleAlign, 0.5) add_theme_style(mvStyleVar_WindowRounding, 5) - add_theme_style(mvStyleVar_WindowBorderSize, 1)#Rad ein und aus Schalten + add_theme_style(mvStyleVar_WindowBorderSize, 0)#Rad ein und aus Schalten -with window(label="Bit Error Rate ", width=300, height=150, pos=(200,875)) as ber_window: - add_text("The Bit Error Rate is:") +with window(label="Bit Error Rate ", width=800, height=320, pos=(0,825),\ + no_collapse=True, no_close=True, no_title_bar= True,no_move=True,no_resize=True,) as ber_window: + add_text("The Bit Error Rate is:",pos=(50,75)) with theme(tag="button_ber"): with theme_component(mvButton): add_theme_color(mvThemeCol_Button,(135, 206, 255)) #Blau add_theme_color(mvThemeCol_Text,(0,0,0)) #Schwarz add_theme_style(mvStyleVar_FrameRounding, 5) - add_button(label="BER", height=60, width=-1, tag="ber_value") + add_button(label="BER", height=60, width=700, pos=(50,125),tag="ber_value") bind_item_theme(last_item(), "button_ber") -# bind_item_theme(ber_window, "ber_window") + bind_item_theme(ber_window, "ber_window") # bind_item_font(ber_window, test) def set_ber(values): -- cgit v1.2.1 From ec05d311c60432d117d14ba93e3b95bd526d548c Mon Sep 17 00:00:00 2001 From: sara Date: Wed, 15 Dec 2021 14:45:41 +0100 Subject: More Doku --- doc/thesis/chapters/implementation.tex | 18 +++++++++++++----- doc/thesis/chapters/theory.tex | 2 +- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/doc/thesis/chapters/implementation.tex b/doc/thesis/chapters/implementation.tex index ff073ee..9a20d24 100644 --- a/doc/thesis/chapters/implementation.tex +++ b/doc/thesis/chapters/implementation.tex @@ -341,10 +341,21 @@ Rician fading factor K = 0 = Rylehnt Model \subsection{Measurements} +\skelpar[5]{ + Do some masurements +} + \subsection{Empirical BER} \label{sec:ber} -To find out how accurate the simulations are comparer with a simulation of the fadinng effect and test measurements, the byte error rate of the system is calculated. This is done with the help of a user specified \(k\)-byte test frame in the beginning of each vector. Implemented according to the code in \ref{lst:ber-block}. Every bit is compared with the test vector at the beginning before the modulation and demodulation part. -Because of the fact that the test vector has some random bit at the end the bit error rate has always a value on average 32. +To find out how accurate the simulations are comparer with a simulation of the fadinng effect and tested measurements, the byte error rate of the system is calculated. This is done with the help of a user specified \(k\)-byte test frame in the beginning of each vector. Implemented according to the code in \ref{lst:ber-block}. Every bit is compared with the test vector at the beginning before the modulation and demodulation part. +Because of the fact that the test vector has some random bit at the end the bit error rate has always a value on average 32, even when its perfect match. So to avoid high numbers this value is subtracted and only on focused on the positive values. + +The vector which is used as test vector is: \([0x1f, 0x35] + [0x12, 0x48] \), because this numbers are well suited to compare. +For generating the Byte error rate it is focus on byte-blocks of a specific length. So for each of this blocks compared with test vector there is a BER. To make it simpler or better said to avoid mistakes, the last 200 of this individual BER are taken to find an average and the highest value. + +\skelpar[5]{ + Maybe more +} @@ -380,9 +391,6 @@ Because of the fact that the test vector has some random bit at the end the bit -\skelpar[5]{ - Discuss how i did that -} \begin{figure} diff --git a/doc/thesis/chapters/theory.tex b/doc/thesis/chapters/theory.tex index 207912b..6255648 100644 --- a/doc/thesis/chapters/theory.tex +++ b/doc/thesis/chapters/theory.tex @@ -350,7 +350,7 @@ for some parameter \(\sigma\). Loosely speaking, the distribution needs to be `` \end{subfigure} \hskip 5mm \begin{subfigure}{.45\linewidth} - \skelfig + \skelfig \caption{LOS, Rice} \end{subfigure} \caption{ -- cgit v1.2.1 From 6b061696338de9f665fdbffe5ca31e5eefebc51a Mon Sep 17 00:00:00 2001 From: sara Date: Wed, 15 Dec 2021 14:46:05 +0100 Subject: BER Block change --- src/gr-fadingui/python/ber.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gr-fadingui/python/ber.py b/src/gr-fadingui/python/ber.py index 664780f..77896d5 100644 --- a/src/gr-fadingui/python/ber.py +++ b/src/gr-fadingui/python/ber.py @@ -94,7 +94,8 @@ class ber(gr.sync_block): trueber = 0 # log.debug(f"BER {trueber} in Paket {i}") - self.ber_samples.appendleft(trueber) + if truper =! 0: + self.ber_samples.appendleft(trueber) ber_max, ber_min, ber_avg = self.ber_stats() -- cgit v1.2.1