\documentclass[
	ngerman,
    18pt,
	authorontitle=true,
]{bfhbeamer}

%\usepackage[main=ngerman]{babel}

% Der folgende Block ist nur bei pdfTeX auf Versionen vor April 2018 notwendig
\usepackage{iftex}
\ifPDFTeX
\usepackage[utf8]{inputenc}%kompatibilität mit TeX Versionen vor April 2018
\fi

\usepackage{bytefield}

\graphicspath{ {presentation/assets/} }
%Makros für Formatierungen der Doku
%Im Allgemeinen nicht notwendig!
\let\code\texttt

\setbeamertemplate{section page}[BFH-ruled]
\AtBeginSection{\sectionpage}

\title{Inductive Short-Range Communication Channel}
\subtitle{Bachelorthesis}
\author[S. Kaderli]{Severin Kaderli}
\institute{Bern University of Applied Sciences}


\begin{document}

\maketitle

\section{Demo}


\section{Introduction}
\begin{frame}{Goals}
	The goal of the thesis was to create a communication channel that utilizes magnetic induction with the help of readily available components.
\end{frame}

\begin{frame}{Magnetic Induction}
	Magnetic Induction (MI), also known as magnetic flux density or simply the magnetic field,
    is a physical quantity measured in Tesla T. The movement of electric charges in a conductor produces a magnetic field around the conductor. 
\end{frame}

\section{Solution}
\begin{frame}{MagSend}
	\begin{itemize}
        \item{Uses two devices}
        \item{A laptop as sender}
        \item{A phone as receiver}
        \item{Laptop modifies a magnetic field}
        \item{The phone measures the field}
    \end{itemize}
\end{frame}

\begin{frame}{Sending}
	\begin{figure}
        \fbox{\includegraphics[width=0.65\linewidth]{test_cases/t9.png}}
    \end{figure}
\end{frame}

\begin{frame}{Packet Format}
	\begin{itemize}
        \item{Header}
            \begin{itemize}
                \item{4 Bit}
                \item{Payload Length; Up to 16 bytes}
            \end{itemize}
        \item{Payload}
            \begin{itemize}
                \item{Bit stream of the ASCII Text}
                \item{Up to 16 characters}
            \end{itemize}
        \item{Checksum}
    \end{itemize}
\end{frame}

\begin{frame}{Packet Format}
    \framesubtitle{Structure}
	\begin{figure}
        \includegraphics[width=1\linewidth]{packet.png}
    \end{figure}
\end{frame}

\begin{frame}{Packet Format}
    \framesubtitle{Example for Text: "Test"}
	\begin{figure}
        \includegraphics[width=1\linewidth]{packet_test.png}
    \end{figure}
\end{frame}

\begin{frame}{Transmission}
	\begin{itemize}
        \item{Depending on the text, the website puts load on the CPU in a controlled way}
        \item{High signals are 1, and low signals are 0}
        \item{Packet is encoded using manchester encoding}
        \item{Preamble to indicate the start of a packet}
    \end{itemize}
\end{frame}

\begin{frame}{Transmission}
    \framesubtitle{Encoding}
	\begin{figure}
        \includegraphics[width=0.8\linewidth]{manchester_code.png}
    \end{figure}
    \footnote{https://commons.wikimedia.org/wiki/File:Manchester\_encoding\_both\_conventions.svg}
\end{frame}

\begin{frame}{Transmission}
    \framesubtitle{CPU Load}
	\begin{figure}
        \includegraphics[width=0.9\linewidth]{test_cases/t3_2.png}
    \end{figure}
\end{frame}

\begin{frame}{Transmission}
    \framesubtitle{CPU Load Example for Packet}
	\begin{figure}
        \includegraphics[width=0.9\linewidth]{cpu_test.png}
    \end{figure}
\end{frame}

\begin{frame}{Reception}
	The phone uses a magnetometer sensor to get the signal from the magnetic field. From that signals it deconstructs the packet to get to the text.
\end{frame}

\begin{frame}{Reception}
    \framesubtitle{Sensor Data}
	\begin{figure}
        \includegraphics[width=0.8\linewidth]{magnetic_induction_cpu.png}
    \end{figure}
\end{frame}

\begin{frame}{Reception}
    \framesubtitle{Sensor Data for Packet}
	\begin{figure}
        \includegraphics[width=0.9\linewidth]{magnetic_induction_test_packet.png}
    \end{figure}
\end{frame}

\begin{frame}{Use Cases}
	\begin{itemize}
        \item{Works without connectivity e.g. in airplane mode}
        \item{Works better under water than radio waves}
        \item{Possible applications for small data transmissions: similar to QR codes, 2FA}
    \end{itemize}
\end{frame}

\begin{frame}{Try It Yourself}
    \begin{columns}
            \begin{column}{.5\linewidth}
                https://magsend.kaderli.dev
            \end{column}
            \begin{column}{.5\linewidth}
                \begin{figure}
                    \includegraphics[width=0.9\linewidth]{qr_app.png}
                \end{figure}
            \end{column}
        \end{columns}
\end{frame}

\section{Questions}


\end{document}

