Paper: Consistent Overhead Byte Stuffing

20 May 2021 by Phillip Johnston • Last updated 15 August 2023Embedded systems often makes use of serial transport protocols such as UART and SPI. The problem with protocols like UART is that we are presented with data as a continual stream, so if we want to send packetized data over UART we need to identify and delimit packets using special reserved values. This presents two challenges: We are increasing our packet size by transmitting the reserved identification bytes The reserved value should not inadvertently appear in the body of the packet (which can be more problematic than you might …