El mié, 28-01-2009 a las 13:24 -0300, francisco cassimiro escribió:
> 
> Hello everybody.
> 
> I have two questions, to build an application that must run in the
> sink node with a higher level language, like java, and the remaining
> nodes with NESC: 
> 1 - Is there a way to make a java code (or C + +) to communicate with
> NESC code, calling its methods? 
> 2 - If yes. How could I simulate this application with TOSSIM? 
> 

You have two ways to do that.

1.- SerialForwarder allows you comunicate to Serial Port of mote 0 or
Radio Comunication of all motes (both simulated in TOSSIM). So, you can
connect you program to SerialForwarder and then to your simulation. When
you work with real motes, you only have to change connection to
SerialForwarder and thats all.

2.- It's possible access vars and functions in TOSSIM driver. The
problem is nesc transform the names into a C mangled name. I'm working
on that now, but it's not a finished work. So, this way ask you lots of
gdb work.

Javier M Mora


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

Reply via email to