[Tinyos-devel] purpose of the Packet.clear() function

Andreas Koepke koepke at tkn.tu-berlin.de
Mon Oct 8 00:59:06 PDT 2007

Relying on the user to clear data of which he does not know is pretty
dangerous, I would not trust myself there. On tda5250 you do not have to
call it, even if you decide to toggle PacketAck on each packet.

Best, Andreas

Miklos Maroti wrote:
> Hi!
> I think there should be, but it is unfortunately not used. If a user
> requests for example acknowledgment via the PacketAcknowledgement
> interface, then it is not clear when that flag will be cleared if the
> message_t is reused. So the Packet.clear should be called to reset
> everything to their defaults in the header and metadata, this should
> be especially important between the serial and radio interfaces.
> Miklos
> On 10/8/07, Razvan Musaloiu-E. <razvanm at cs.jhu.edu> wrote:
>>Is there a strong argument for the existence of the Packet.clear()? The
>>function is implemented by CC1000, XE1205 and TDA5250 but it is only used
>>in the PacketParrot application.
>>Razvan ME
>>Tinyos-devel mailing list
>>Tinyos-devel at Millennium.Berkeley.EDU
> _______________________________________________
> Tinyos-devel mailing list
> Tinyos-devel at Millennium.Berkeley.EDU
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-devel

More information about the Tinyos-devel mailing list