Hi,
        Thanks for reply.
 After message is received over UART, in my opinion it should be delivered
to listen tool.Why is it sending over the radio again?
Is TOSBase working as transmitter also?

TOSBaseM.nc is attached.

Regards,
Kishore
On Wed, May 7, 2008 at 9:04 PM, Michael Schippling <[EMAIL PROTECTED]>
wrote:

> I don't understand...
>
> The code you include is presumably called when a message is received over
> the UART. It calls RadioSend.send(), which, if names are to be believed,
> sends a message over the radio. The last time I looked at RadioRcvdTask()
> (or whatever the symmetric function is called) it called UARTSend.send().
>
> So I'm not sure what your question is?
> MS
>
>
> ram kishore wrote:
>
> > Hi,
> >     When packet is receive,RadioReceive interface generates "*receive"*
> > event which posts RadioRcvdTask() whose function is to send that packet to
> > UART.When UART receives the packet, it generates "receive" event which posts
> > UARTRcvdTask() whose function must be to send it to PC. Instead, it sends it
> > back over radio (see UARTRcvdTask() below) as indicated by
> > Radiosend.send(....) interface.
> >
> > Please help,
> > Thanking you,
> > Kishore
> >
> > task void UARTRcvdTask() {
> >    result_t Result;
> >
> >    dbg (DBG_USR1, "TOSBase forwarding UART packet to Radio\n");
> >    gpTxMsg->group = TOS_AM_GROUP;
> >    Result = call RadioSend.send(gpTxMsg);
> >
> >    if (Result != SUCCESS) {
> >      atomic gfTxFlags = 0;
> >    }
> >    else {
> >      call Leds.redToggle();
> >    }
> >  }
> >
> >
> >
> > On Tue, May 6, 2008 at 10:56 PM, Michael Schippling <[EMAIL 
> > PROTECTED]<mailto:
> > [EMAIL PROTECTED]>> wrote:
> >
> >    Search for UARTSend and RadioSend in your TOSBaseM.nc file,
> >    I find them used in the RadioRcvdTask() and UARTRcvdTask()
> >    methods.
> >
> >    The UARTTokenReceive thing is a bit mysterious, but it looks
> >    like it is used to send an ACK to the UART after the message
> >    has been forwarded over the radio.
> >
> >    MS
> >
> >    ram kishore wrote:
> >
> >        Hi all,
> >                 TOSBase uses interfaces:
> >
> >           interface BareSendMsg as UARTSend;
> >           interface ReceiveMsg as UARTReceive;
> >           interface TokenReceiveMsg as UARTTokenReceive;
> >             interface StdControl as RadioControl;
> >           interface BareSendMsg as RadioSend;
> >           interface ReceiveMsg as RadioReceive;
> >
> >        It uses BareSendMsg interface but never transmits.How to make it
> >        transmit?
> >        What is the purpose of TokenReceiveMsg interface?
> >
> >        Attached is TOSBase module file.
> >
> >        Regards,
> >        Kishore
> >
> >
> >
> >  ------------------------------------------------------------------------
> >
> >        _______________________________________________
> >        Tinyos-help mailing list
> >        [email protected]
> >        <mailto:[email protected]>
> >
> > 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
> >
> >
> >
> --
> Platform: WinXP/Cygwin
> TinyOS version: 1.x, Boomerang
> Programmer: MIB510
> Device(s): Mica2, MicaZ, Tmote
> Sensor board: homebrew
>
>

Attachment: TOSBaseM.nc
Description: Cdf file

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

Reply via email to