Skip to content
Snippets Groups Projects
Commit f4f4ed17 authored by reed's avatar reed
Browse files

Most of packet length justification done. Still need to sort out if the chip limitation is real

parent 821c8e31
No related branches found
No related tags found
1 merge request!9Justify Maximum Packet Size
......@@ -19,5 +19,13 @@ Before transmission, a header must be affixed to the packet. This is used so tha
10 & $L$ & LDPC-encoded data \\
\hline
\end{tabular}
Note that $L \le 8191$.
\\\\
Note that even though the data length field is a two-byte value, $L$ has a maximum value of $8191$. There are several motivating factors for this limitation.
\begin{enumerate}
\item CATS traffic shouldn't congest the channel for too long. The transfer is done at 9600bps, which means that ignoring the header, the transmission time for a max-size packet will take
\begin{equation}
\frac{\mathrm{second}}{9600~\mathrm{bits}} \cdot \frac{8~\mathrm{bits}}{\mathrm{bytes}} \cdot 8191~\mathrm{bytes} \approx 6.8~\mathrm{seconds}
\end{equation}
\item Transmitters contemporary with the creation of this standard, such as the si4463, have a maximum payload length (packet excluding preamble, sync, and length field) of 8191 bytes. SOURCE XXXXXXXXXXXXXX
\item Microcontrollers do not have much RAM. By choosing a maximum size of 8191, we ensure that many low-cost microcontrollers can fully buffer any and all CATS packets, while keeping the header overhead reasonably low.
\end{enumerate}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment