[Tinyos-devel] Fwd: [Tinyos-help] About java toolchain for T2 and message source

Kevin Klues klueska at gmail.com
Sat Apr 5 10:41:17 PDT 2008


I agree.  Does anyone want to make the cahnge?

Kevin


---------- Forwarded message ----------
From: Dimas Abreu Dutra <d1ma5ad at gmail.com>
Date: Fri, Apr 4, 2008 at 5:53 AM
Subject: [Tinyos-help] About java toolchain for T2 and message source
To: tinyos-help at millennium.berkeley.edu


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~

_______________________________________________
 Tinyos-help mailing list
 Tinyos-help at millennium.berkeley.edu
 https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help



-- 
~Kevin


More information about the Tinyos-devel mailing list