From: Mart Lubbers Date: Wed, 8 Feb 2017 07:09:42 +0000 (+0100) Subject: add appendix and protocol X-Git-Tag: hand-in~157 X-Git-Url: https://git.martlubbers.net/?a=commitdiff_plain;h=6c6184edee2e3ae64176ee53d891f244b649ba1b;p=msc-thesis1617.git add appendix and protocol --- diff --git a/Makefile b/Makefile index 01c0562..45d3600 100644 --- 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 index 0000000..d20f6c8 --- /dev/null +++ b/appendix-protocol.tex @@ -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} diff --git a/thesis.pre b/thesis.pre index 948e7f0..89effc2 100644 --- a/thesis.pre +++ b/thesis.pre @@ -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} diff --git a/thesis.tex b/thesis.tex index df7945a..af0bc87 100644 --- a/thesis.tex +++ b/thesis.tex @@ -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} @@ -14,6 +14,11 @@ \chapter{Results} \chapter{Conclusion \& Discussion} +\begin{appendices} + \chapter{Communication protocol} + \input{appendix-protocol.tex} +\end{appendices} + \bibliographystyle{ieeetr} \bibliography{thesis} \end{document}