X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=appendix-protocol.tex;h=c0d5a2a66b90bed03052552a6d210569fbddc3bd;hb=2857e75ec894637ddbc8fc1268719ef3cbcbe8ed;hp=41e82d002571f50e01b872dfaec64bde15edaebf;hpb=36f73f706a2a868597bf92be7a3a3fd1a23444c3;p=msc-thesis1617.git diff --git a/appendix-protocol.tex b/appendix-protocol.tex index 41e82d0..c0d5a2a 100644 --- a/appendix-protocol.tex +++ b/appendix-protocol.tex @@ -8,36 +8,35 @@ the message is not acknowledged or responded upon. Multibyte values are interpreted as \gls{MSB} first integers. \section{Handshake} -\begin{table}[!ht] +\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{mTasks} -\begin{table}[!ht] +\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}\\ @@ -45,8 +44,8 @@ interpreted as \gls{MSB} first integers. \midrule 1 & \texttt{'t'}\\ 2,3 & interval or interrupt\\ - 4,5 & length (\texttt{n})\\ - 6 to n+6 & bytecode\\ + 4,5 & length ($n$)\\ + 6 to $n$+6 & bytecode\\ \midrule\midrule \multicolumn{2}{c}{Response}\\ byte & value\\ @@ -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}\\ @@ -80,29 +80,31 @@ interpreted as \gls{MSB} first integers. \end{table} \section{SDSs} -\begin{table}[!ht] +\begin{table}[H] \centering - \begin{subfigure}[t]{.2\textwidth} + \begin{subfigure}[b]{.2\textwidth} + \centering \begin{tabular}{ll} \toprule \multicolumn{2}{c}{Request}\\ byte & meaning\\ \midrule 1 & \texttt{'s'}\\ - 2,3 & identifier\\ + 2,3 & id\\ 4,5 & value\\ \midrule\midrule \multicolumn{2}{c}{Response}\\ byte & meaning\\ \midrule 1 & \texttt{'s'}\\ - 2,3 & identifier\\ + 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 a 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}