Create a message type that contains the threshold value
and send it from the PC to all the re-Motes. Look at
examples of sending messages like SimpleCmd, or in my
code: http://www.etantdonnes.com/Motes/robocode.tar.gz
MS


贾鹏 wrote:
> Hi, there
> 
> Our group is considering to set a little system that we can set a 
> certain photo threshold from the basestation (the keyboard of the 
> computer) to a sensor node,  and when the light is below that threshold, 
> it will transmit the packet to the basestation.   I think the key 
> problem is (set the threshold part), how to set the threshold from 
> keyboard and transfer it to the basestation, the basestation packets it 
> and transmits it to a sensor node, then the sensor node changes to the 
> new threshold.
> 
> someone have an idea about it?
> 
> 
> sincerely  yours
> Peng Jia
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

-- 
Platform: WinXP/Cygwin
TinyOS version: 1.x, Boomerang
Programmer: MIB510
Device(s): Mica2, MicaZ, Tmote
Sensor board: homebrew

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

Reply via email to