What version of TOS are you using? I am stuck in T1 and it has
the two apps/{Oscilloscope,SimpleCmd}... I presume there are
similar in T2 but I don't really want to find out...

In any case you could look for examples using GenericComm
ReceiveMsg[] and SendMsg[]. Those interfaces should be covered
in the doc/tutorial as well. Or you can look at my oft-quoted
robocode under: http://www.etantdonnes.com/Motes
(but the site seems to be down right now).

MS


Marc Romera wrote:
> thanks for the information. Let me explain my whole application: I have 
> 2 m2110 motes, one to send the time and another to receive this packet, 
> take the time, put in a packet and send. I looked for the applicatios 
> Oscope and SimpleCmd and I don't have any of these in my library.
> 
> Sorry for being annoying.
> 
> MR
> 2009/7/27 Michael Schippling <[email protected] <mailto:[email protected]>>
> 
>     ReceiveMsg is the interface for getting a message. What you do with
>     the contents is a matter between you and the chaplain. Both O'scope
>     and SimpleCmd use the message contents to do things on the re-Mote.
>     Or perhaps I still don't understand the requirements?
>     MS
> 
> 
>     Marc Romera wrote:
> 
>         thanks michael, but I didn't explain very well want I searching
>         for. I'm looking for som app that receive the packet and you can
>         take from the message the parameters that you want, I found
>         ReceiveMsg but don't work in my aplication.
> 
>         Marc.
> 
>         2009/7/21 Michael Schippling <[email protected]
>         <mailto:[email protected]> <mailto:[email protected]
>         <mailto:[email protected]>>>
> 
> 
>            GenericComm is the usual culprit. Compare and contrast demo apps
>            that send and receive messages, there are even a couple that do
>            both: Oscilloscope and SimpeCmd.
> 
>            Also look at the various TOSBase and Basestation impls.
> 
>            MS
> 
>            Marc Romera wrote:
> 
> 
> 
>                ---------- Forwarded message ----------
>                From: *Marc Romera* <[email protected]
>         <mailto:[email protected]>
>                <mailto:[email protected]
>         <mailto:[email protected]>>
>                <mailto:[email protected]
>         <mailto:[email protected]>
>                <mailto:[email protected]
>         <mailto:[email protected]>>>>
>                Date: 2009/7/21
>                Subject: recieve msg
>                To: [email protected]
>         <mailto:[email protected]>
>                <mailto:[email protected]
>         <mailto:[email protected]>>
>                <mailto:[email protected]
>         <mailto:[email protected]>
>                <mailto:[email protected]
>         <mailto:[email protected]>>>
> 
> 
>                hi,
> 
>                I'm programming a mote to receive a packet from another
>         mote and
>                then send it again. What function will suit in this case?
>         Thanks
>                for your atention.
> 
>                Marc.
> 
> 
>              
>          
> ------------------------------------------------------------------------
> 
>                _______________________________________________
>                Tinyos-help mailing list
>                [email protected]
>         <mailto:[email protected]>
>                <mailto:[email protected]
>         <mailto:[email protected]>>
> 
>              
>          
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> 
> 
> 
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to