add appendix and protocol
authorMart Lubbers <mart@martlubbers.net>
Wed, 8 Feb 2017 07:09:42 +0000 (08:09 +0100)
committerMart Lubbers <mart@martlubbers.net>
Wed, 8 Feb 2017 07:09:42 +0000 (08:09 +0100)
Makefile
appendix-protocol.tex [new file with mode: 0644]
thesis.pre
thesis.tex

index 01c0562..45d3600 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -12,19 +12,13 @@ all: $(addsuffix .pdf,$(DOCS))
 %.fmt: %.pre
        $(LATEX) $(LATEXFLAGS) -ini -jobname="$(basename $@)" "&$(LATEX) $<\dump"
 
-%.fmt: preamble.tex
-       $(LATEX) $(LATEXFLAGS) -ini -jobname="$(basename $@)" "&$(LATEX) $<\dump"
-
 %.pdf: %.mlog
-       grep -iFq 'Rerun to get' $< &&\
-               $(LATEX) $(LATEXFLAGS) $(basename $<) || true
+       grep -iFq 'Rerun to get' $< && $(LATEX) $(LATEXFLAGS) $(basename $<) || true
 
-%.mlog: %.tex %.fmt $(wildcard *.bib)
+%.mlog: %.tex %.fmt $(wildcard *.bib) $(wildcard *.tex)
        $(LATEX) $(LATEXFLAGS) $<
-       grep -q '^\\bibdata{' $(basename $<).aux &&\
-               $(BIBTEX) $(BIBTEXFLAGS) $(basename $<) || true
+       grep -q '^\\bibdata{' $(basename $<).aux && $(BIBTEX) $(BIBTEXFLAGS) $(basename $<) || true
        $(LATEX) $(LATEXFLAGS) $< | tee $@
 
 clean:
-       $(RM) $(foreach DOC,$(DOCS),\
-               $(addprefix $(DOC).,aux log fmt toc bbl blg run.xml out pdf snm nav snm vrb))
+       $(RM) $(foreach DOC,$(DOCS),$(addprefix $(DOC).,aux log fmt toc bbl blg run.xml out pdf snm nav snm vrb))
diff --git a/appendix-protocol.tex b/appendix-protocol.tex
new file mode 100644 (file)
index 0000000..d20f6c8
--- /dev/null
@@ -0,0 +1,90 @@
+\section{Server to Client}
+Messages are delimited by newlines to make processing by line based devices
+more easy.
+\todo{Handshake}
+\begin{table}[ht]
+       \centering
+       \begin{tabular}{ll}
+               \toprule
+               byte & value\\
+               \midrule
+               1 & \texttt{'t'}\\
+               2,3 & interval\\
+               4,5 & length (\texttt{n})\\
+               6 to n+6 & bytecode\\
+               \bottomrule
+       \end{tabular}
+       \caption{Send a task}
+\end{table}
+
+\begin{table}[ht]
+       \centering
+       \begin{tabular}{ll}
+               \toprule
+               byte & meaning\\
+               \midrule
+               1 & \texttt{'d'}\\
+               2,3 & task id\\
+               \bottomrule
+       \end{tabular}
+       \caption{Delete a task}
+\end{table}
+
+\begin{table}[ht]
+       \centering
+       \begin{tabular}{ll}
+               \toprule
+               byte & meaning\\
+               \midrule
+               1 & \texttt{'s'}\\
+               2,3 & identifier\\
+               4,5 & value\\
+               \bottomrule
+       \end{tabular}
+       \caption{Send an SDS specification}
+\end{table}
+
+\begin{table}[ht]
+       \centering
+       \begin{tabular}{ll}
+               \toprule
+               byte & meaning\\
+               \midrule
+               1 & \texttt{'u'}\\
+               2,3 & sdsid\\
+               4,5 & value\\
+               \bottomrule
+       \end{tabular}
+       \caption{SDS update}
+\end{table}
+
+\section{Client to Server}
+\todo{Handshake reply}
+\begin{table}[ht]
+       \centering
+       \begin{tabular}{ll}
+               \toprule
+               byte & value\\
+               \midrule
+               1 & \texttt{'t'}\\
+               2,3 & task id\\
+               \bottomrule
+       \end{tabular}
+       \caption{Task acknowledgement}
+\end{table}
+
+\begin{table}[ht]
+       \centering
+       \begin{tabular}{ll}
+               \toprule
+               byte & value\\
+               \midrule
+               1 & \texttt{'u'}\\
+               2,3 & SDS id\\
+               4,5 & value\\
+               \bottomrule
+       \end{tabular}
+       \caption{SDS publish}
+\end{table}
+
+\todo{SDS acknowledgement}
index 948e7f0..89effc2 100644 (file)
@@ -1,11 +1,15 @@
 \documentclass[a4paper]{book}
 
-\usepackage{geometry}
-\usepackage{rutitlepage/rutitlepage}
-\usepackage{hyperref}
+\usepackage{geometry}                % Papersize
+\usepackage[titletoc]{appendix}      % Appendices
+\usepackage{rutitlepage/rutitlepage} % Titlepage
+\usepackage{hyperref}                % Hyperlinks
+\usepackage{float}                   % Better table positioning
+\usepackage{booktabs}                % Better looking tables
+\usepackage{todonotes}               % Todo's
 
 \urlstyle{same}
-\hypersetup{
+\hypersetup{%
        pdftitle={iTasks and the Internet of Things},
        pdfauthor={Mart Lubbers},
        pdfsubject={iTasks and the Internet of Things},
@@ -15,8 +19,6 @@
        hidelinks=true
 }
 
-\usepackage{todonotes}
-
 \title{iTasks and the Internet of Things}
 \author{Mart Lubbers BSc.\\{\small\url{mart@martlubbers.net}}}
 \date{\today}
index df7945a..af0bc87 100644 (file)
@@ -6,7 +6,7 @@
        authorstext={Author:},
        righttextheader={Supervisors:},
        righttext={prof.~dr.~dr.h.c.~ir.~M.J.~Plasmeijer\\dr.~P.W.M.~Koopman}]
-%\listoftodos[Todo]
+\listoftodos[Todo]
 \tableofcontents
 
 \chapter{Introduction}
 \chapter{Results}
 \chapter{Conclusion \& Discussion}
 
+\begin{appendices}
+       \chapter{Communication protocol}
+       \input{appendix-protocol.tex}
+\end{appendices}
+
 \bibliographystyle{ieeetr}
 \bibliography{thesis}
 \end{document}