From 05150fd1705cc85e085267a9ecccfd0bcd290468 Mon Sep 17 00:00:00 2001 From: Jeija Date: Fri, 31 Jul 2020 16:19:01 +0200 Subject: [PATCH] Fix downlink CRC-8 calculation: *No* bitwise NOT --- spec.tex | 2 +- tex/downlink.tex | 10 +++------- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/spec.tex b/spec.tex index 3057b5d..5019846 100644 --- a/spec.tex +++ b/spec.tex @@ -24,7 +24,7 @@ \usepackage{censor} \usepackage{lipsum} \usepackage[absolute,overlay]{textpos} -\usepackage{scrpage2} +\usepackage{scrlayer-scrpage} \usepackage{array} \usepackage{booktabs} \usepackage{psfrag,xcolor} diff --git a/tex/downlink.tex b/tex/downlink.tex index cb5a97d..64892cc 100644 --- a/tex/downlink.tex +++ b/tex/downlink.tex @@ -696,7 +696,7 @@ \subsection{Implementation by Sigfox} \end{equation} The hexadecimal representation of this polynomial is \texttt{0x2f}. -No different than the uplink's \gls{crc}, the downlink's \gls{crc} can be calculated according to \Cref{eq:crc_basic_equation} presented in the introduction to \gls{crc} arithmetic (\Cref{sec:uplink_crc_introduction}) with a subsequent bitwise \texttt{NOT} operation. +Like the uplink's \gls{crc}, the downlink's \gls{crc} can be calculated according to \Cref{eq:crc_basic_equation} presented in the introduction to \gls{crc} arithmetic (\Cref{sec:uplink_crc_introduction}). The make-up of the message polynomial $M(X)$ is depicted in \Cref{fig:downlink_crc_computation}: The \gls{crc} checksum only depends on the constant-size contents of downlink payload and \gls{mac} tag. @@ -731,13 +731,9 @@ \subsection{Implementation by Sigfox} \node [rectangle, rounded corners = 3pt, fill = black!10!white, draw, thick, minimum width = 4cm, minimum height = 1.1cm] (crcfunction) at (30 * \pbitsize, \algoffsety) {\textbf{\texttt{\gls{crc}-8 ({\normalfont \ttfamily 0x2f})}}}; \draw [thick, -latex] (30 * \pbitsize, \pktoffsety - \lineheight) -- (crcfunction.north); - % bit flip operation - \node [rectangle, rounded corners = 3pt, fill = black!10!white, draw, thick, minimum width = 4cm, minimum height = 1.1cm, right = 1cm of crcfunction] (bitflip) {Bitwise \textbf{\texttt{NOT}}}; - \draw [thick, -latex] (crcfunction.east) -- (bitflip.west); - % crc output - \node (tag) [right = 1cm of bitflip] {\gls{crc} checksum}; - \draw [thick, -latex] (bitflip.east) -- (tag.west); + \node (tag) [right = 1cm of crcfunction] {\gls{crc} checksum}; + \draw [thick, -latex] (crcfunction.east) -- (tag.west); \end{tikzpicture} \caption{Computation of the \gls{crc}-8 checksum depending on payload and \gls{mac} tag for a downlink packet} \label{fig:downlink_crc_computation}