Hello
all,
I'm new to this
mailing list so I hope this question has not come up in the past (I couldn't
find it in the archives)
My problem is that I
sometimes don't get a 'sendDone' event from the CC2420 radio
stack.
The situation where
this happens is the following :
I have 2 devices
(tmote sky from moteiv) that will send a messages to each other when I push the
button on the device. What then happens is that device 1 sends a message to
device 2 and device 2 will send back a response to device 1 that it has received
the message. When device 1 receives the reply to it's message from device 2 its
transmit sequence is complete and device 1 is able to send another message.
However on device 2 there is a problem, device 2 does not get a sendDone on the
reply message it sends back to device 1. So device 2 is not able to send any
messages anymore, because in sendMsg.send in AMStandard.nc there is a variable
(state) that is set to TRUE and as long as it is TRUE it does not accept a new
'send' operation. The variable (state) is set to FALSE when the event
'sendMsg.sendDone' is received, but this does not happen.
It seems as the
sendDone is somehow queued in the CC2420 stack, because if I send another
message from device 1 to device 2, the first thing that happens on device 2 is
that it receives the sendDone for the previous send action where it send the
reply to device 1 to the previous incomming message.
Is there anyone that
has seen this kind of behaviour before and knows how to solve the problem
?
Here is some version
information for the CC2420 code that I use :
// $Id:
CC2420RadioM.nc,v 1.40 2005/07/26 18:07:15 jpolastre Exp $\
// $Id:
CC2420ControlM.nc,v 1.17 2004/12/16 23:31:35 jpolastre Exp $
Greetings,
Han
---
Han Hoekstra
Wireless Value B.V.
Waanderweg 30a
7812 HZ Emmen
Tel: +31-591-633200
_______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
