On Tue, 2005-11-15 at 21:20 +0000, Ixent Galpin wrote:
> Hi,
> 
> I've been working through the TinyOS tutorials at 
> http://www.tinyos.net/tinyos-1.x/doc/tutorial/lesson6.html.  
> Unfortunately I don't yet have any motes to play with, so am using 
> TOSSIM.  The first paragraph of lesson 5 states that "Every mote in a 
> simulation runs the same TinyOS program."
> 
> Lesson 6 proposes an exercise which I would like to implement, which 
> involves transmitting sensor readings from a mote  by radio, to another 
> mote which listens to them and sends them to a PC serial port.  I guess 
> I cannot do this using TOSSIM with two different programs (one for each 
> mote) -- am I correct?

You can just combine the logic into a single app. E.g.,

Every second, sample a sensor and send it in a packet to the broadcast
address. If you hear a packet, forward it to the serial port.

Phil

_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to