[Tinyos-help] The best way to send messages using SP (Sensornet
Protocol)
Jón Grétar Guðjónsson
jongretar at gmail.com
Mon Jan 22 09:28:11 PST 2007
I see it now, you are right, it was a bug in my code causing it to send the
same message over and over again.
Thanks :)
-----Original Message-----
From: joe.polastre at gmail.com [mailto:joe.polastre at gmail.com] On Behalf Of
Joe Polastre
Sent: 22. janúar 2007 18:16
To: Jón Grétar Guðjónsson
Cc: tinyos-help at millennium.berkeley.edu
Subject: Re: [Tinyos-help] The best way to send messages using SP (Sensornet
Protocol)
> My problem is this: SPSend.send places a pointer to the message
> datastructure in a pool of pointers. So sendDone() is raised when the
> message is placed in the pool, not when the message is sent.
This is incorrect. sendDone is only signalled after *all* TOS_Msg
structures in an sp_message_t have been sent.
Have you looked at SP Message Futures? See:
http://www.polastre.com/papers/sensys05-sp.pdf
-Joe
More information about the Tinyos-help
mailing list