4 ms·
As per the siblings, the encoding for that would be 02 xx (also figure 1 in the paper). As for delimiters, it's not so much that to use COBS you need the delim
by geeB 6y ago
As per the siblings, the encoding for that would be 02 xx (also figure 1 in the paper).
As for delimiters, it's not so much that to use COBS you need the delimiter, but the causality usually goes the other way, i.e. you want to send packets over an unreliable stream where every symbol is valid data, so you use 00 as the packet delimiter, and encode the actual packets with COBS (so the encoded packets won't have zeros).
So in general you won't need to "flush" partial data, because the natural way to interface to this type of channel is to send whole packets. If you don't know in what state the channel is, you can always send out a 00 before the start of packet to make sure the previous packet gets terminated.
And usually the packets themselves will have some additional validation like CRC, so the previous incomplete packet will be ignored.