[Tinyos-help] About java toolchain for T2 and message source
Dimas Abreu Dutra
d1ma5ad at gmail.com
Fri Apr 4 05:53:09 PDT 2008
Hello everyone,
I've been recently using the tinyos java toolchain for the tinyos-2.x and
noticed an apparent design flaw. The interface MoteIF exists to encapsulate
the low-level serial packets and give the developer only what he needs,
namely the data and message destination. What happens is that T2 introduced
the message source in the active message header, that information is VERY
useful, but we only have access to it in the lower level PacketListenerIF
which deals with bits and bytes.
I believe that since T2 now has the source in the header (before we had to
include it on the payload if needed) it should be provided by the
MessageListener interface as a parameter of the messageReceived method. I
have solved that problem for myself by extending the Receiver class, but
that could be a problem for more people too.
~Dimas~
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20080404/0f44646d/attachment.htm
More information about the Tinyos-help
mailing list