[Tinyos-help] send out packets using Tosbase

=?BIG5?B?p2SrVL7s?= michaelwu1973 at gmail.com
Fri Oct 19 01:12:32 PDT 2007


We have a problem trying to send out packets using Tosbase.  Basically, when
we use TOSBase to send out packets by calling
"call RadioSend.send(gpTxMsg);", the receiving end fails to receive the packet.



Our setup is as follows:

Mote#1 uses GenericComm to send out and receive packets, mote#2 is attached
to Stargate and it is running TOSBase.

Our goal is to have mote #1 send out a packet, and have mote #2 receive it
using TOSBase, send it to SG, have the SG, just send it back to mote#2 in
which case, mote#2 will send it out back to mote#1.

We haven't modified anything in TOSBase, so "task void UARTRcvdTask()", will
send out the packet it received from UART to Radio using "call
RadioSend.send(gpTxMsg);".



After digging through some codes, this is what we've found out.

Our GenericComm module is equal to AMStandard, and AMStandard module sets
parameters such as addr, length, and type and it is wired to RadioCRCPacket.


So the mote #1 that uses GenericComm, can fill in all those parameters but
mote#2 that uses TOSBase, which is only wired straight to RadioCRCPacket,
does not.

Could this be our problem???



We have also tried loading both mote#1 and mote#2 with modules that uses
GenericComm and both nodes can send and receive packets perfectly.


How to solve this problem??


More information about the Tinyos-help mailing list