Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: [AVR-Chat] Bit fields

2010-06-08 by David VanHorn

> What information is in the packet that tells you the sequence?

There's a byte in each that says which one it is.

> If a packet can be received more than once in a particular sequence
> do they have some time stamp from the source or is this done at the
> receiving end? Do you discard multiple packets and keep the newest one?

The source flings them out into a mesh network, so I may get multiple copies.
I can discard dupes, I just need to know when I have all the "slots" full.


Initially I was thinking that I'd do a bit array, set the unused bits
to 1, the "not arrived yet bits" to 0, and then flip them to 1 as the
packets arrive.  When the array ands to FF, then I'm done.   Seems
simple in concept, but messy so far in C.

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.