X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=appendix-protocol.tex;h=10a85f3a8165662dfb39359772889fa86e72424a;hb=47820995aae3c8666173d17018ba6d09f8a3d9ff;hp=ad88ac44b202904de85e78930c944b14efa1c6f3;hpb=84c493802340455f6f3cc33cb2758fe4e443d8ee;p=msc-thesis1617.git diff --git a/appendix-protocol.tex b/appendix-protocol.tex index ad88ac4..10a85f3 100644 --- a/appendix-protocol.tex +++ b/appendix-protocol.tex @@ -1,4 +1,4 @@ -\section{General message format} +\section{General Message Format} Messages are delimited by newlines to make processing by line based devices easier. Message exchanges have a \emph{Request} and \emph{Response} header. The \emph{Request} header means that the server is sending to the client. The @@ -10,34 +10,33 @@ interpreted as \gls{MSB} first integers. \section{Handshake} \begin{table}[H] \centering - \begin{subfigure}[t]{.48\textwidth} - \begin{tabular}{ll} - \toprule - \multicolumn{2}{c}{Request}\\ - byte & value\\ - \midrule - 1 & \texttt{'c'}\\ - \midrule\midrule - \multicolumn{2}{c}{Response}\\ - byte & value\\ - \midrule - 1 & \texttt{'c'}\\ - 2 & Peripheral bitmask\\ - 3,4 & Bytes of memory\\ - 5,6 & Size of the stack\\ - 7 & Number of analog pins\\ - 8 & Number of digital pins\\ - \bottomrule - \end{tabular} - \caption{Send a device specification} - \end{subfigure} + \begin{tabular}{ll} + \toprule + \multicolumn{2}{c}{Request}\\ + byte & value\\ + \midrule + 1 & \texttt{'c'}\\ + \midrule\midrule + \multicolumn{2}{c}{Response}\\ + byte & value\\ + \midrule + 1 & \texttt{'c'}\\ + 2 & Peripheral bitmask\\ + 3,4 & Bytes of memory\\ + 5,6 & Size of the stack\\ + 7 & Number of analog pins\\ + 8 & Number of digital pins\\ + \bottomrule + \end{tabular} + \caption{Send a device specification} \end{table} \newpage \section{\gls{mTask}-\glspl{Task}} \begin{table}[H] \centering - \begin{subfigure}[t]{.48\textwidth} + \begin{subfigure}[b]{.48\textwidth} + \centering \begin{tabular}{ll} \toprule \multicolumn{2}{c}{Request}\\ @@ -58,7 +57,8 @@ interpreted as \gls{MSB} first integers. \caption{Send a \gls{Task}} \end{subfigure} \quad% - \begin{subfigure}[t]{.48\textwidth} + \begin{subfigure}[b]{.48\textwidth} + \centering \begin{tabular}{ll} \toprule \multicolumn{2}{c}{Request}\\ @@ -79,10 +79,11 @@ interpreted as \gls{MSB} first integers. \caption{Message protocol for exchanging \glspl{Task}} \end{table} -\section{SDSs} +\section{\glspl{SDS}} \begin{table}[H] \centering - \begin{subfigure}[t]{.2\textwidth} + \begin{subfigure}[b]{.2\textwidth} + \centering \begin{tabular}{ll} \toprule \multicolumn{2}{c}{Request}\\ @@ -99,10 +100,11 @@ interpreted as \gls{MSB} first integers. 2,3 & id\\ \bottomrule \end{tabular} - \caption{Send an SDS specification} + \caption{Send an \gls{SDS} specification} \end{subfigure} \quad% - \begin{subfigure}[t]{.2\textwidth} + \begin{subfigure}[b]{.2\textwidth} + \centering \begin{tabular}{ll} \toprule \multicolumn{2}{c}{Response}\\ @@ -118,10 +120,11 @@ interpreted as \gls{MSB} first integers. 2,3 & SDS id\\ \bottomrule \end{tabular} - \caption{Delete an SDS} + \caption{Delete an \gls{SDS}\\~} \end{subfigure} \quad% - \begin{subfigure}[t]{.2\textwidth} + \begin{subfigure}[b]{.2\textwidth} + \centering \begin{tabular}{ll} \toprule \multicolumn{2}{c}{Request}\\ @@ -134,10 +137,11 @@ interpreted as \gls{MSB} first integers. \multicolumn{2}{c}{Response}\\ \bottomrule \end{tabular} - \caption{SDS update} + \caption{\gls{SDS} update\\~} \end{subfigure} \quad% - \begin{subfigure}[t]{.2\textwidth} + \begin{subfigure}[b]{.2\textwidth} + \centering \begin{tabular}{ll} \toprule \multicolumn{2}{c}{Response}\\ @@ -150,7 +154,7 @@ interpreted as \gls{MSB} first integers. 4,5 & value\\ \bottomrule \end{tabular} - \caption{SDS publish} + \caption{\gls{SDS} publish\\~} \end{subfigure} - \caption{Message protocol for exchanging SDSs} + \caption{Message protocol for exchanging \glspl{SDS}} \end{table}