[Tinyos-help] Question on MultiOscilloscope Application

M A jonathan.olemiss at gmail.com
Tue Jun 5 14:44:11 PDT 2007


Hi

I have started learning tinyos-2.x and I have a simple question related to
MultiOscilloscope function in directory tinyos-2.x/apps/MultihopOscilloscope.
In the file MultioscilloscopeC.nc we declare a message buffer " message_t
uartbuf ". But I dont understand where is this initialized. We call the
command SerialSend.getPayload(&uartbuf); in the Recevie.receive() event.
Thus  basically we are getting the payload from the message stored in
uartbuf. But I cant figure out where and when a message is being stored in
uartbuf.

I guess when Receive.receive returns it returns a buffer for the stack. Is
it the same buffer? I am confused. Can anyone explain this to me ?

Thanking You
John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20070605/ed3e1c81/attachment.html


More information about the Tinyos-help mailing list