Yahoo Groups archive

AVR-Chat

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

Message

RE: [AVR-Chat] Bit fields

2010-06-08 by Dave McLaughlin

Damn!! I didn't scroll down far enough from your initial message!! Same idea
I thought of but reversed bit state!!

 

 

From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On Behalf
Of David VanHorn
Sent: 08 June 2010 08:07
To: AVR-Chat@yahoogroups.com
Subject: Re: [AVR-Chat] Bit fields

 

  

> 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.



[Non-text portions of this message have been removed]

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.