On Tue, Jun 30, 2009 at 5:42 AM, sofia
aparicioaparicioso...@hotmail.com wrote:
Hello,
I have 3 motes and I want to send data from mote 2 trough mote 1 to the base
station.
Mote 2 call RadioSend.send(data);
RadioReceive.receive(){
if (TOS_LOCAL_ADDRESS == 1){
call RadioSend.send(data); //Send data to base station (mote 0).
}
if (TOS_LOCAL_ADDRESS == 0 data is coming from mote 1){
UARTOutput(DBG_ERROR,%s, OutputM);
}
}
Mote 1 receives the message but not mote 0. It could be because the base
station also receives the message from mote 1?
I tried to wait some time to send the message from mote 1 but mote 0 does
not receive anything.
Do you know what is the problem?
It does not look like you are handling the message buffer correctly in
Receive. You might want to take a look at the documentation of the
Receive interface.
Did you verify that sendDone is signaled correctly on node 1? If not,
your send is not successful.
- om_p
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help