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]>
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]
> > 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
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help