Hi Phil

I am extensively testing my code in tossim,and i found that some times "weird" things happen in the simulation. One of the things is when two motes send each other a message at exactly the same time, collision occur but both motes get acknowledge.

I've been looking for a old message that i sent about Acks in Tossim and this is what you said in it.

"1) You're corrupting your packet structures through pointer sharing,
buffer overflows, etc. Whether or not a packet is acked is stored in
the metadata region of the message_t.

2) Bug in TOSSIM. I haven't heard this bug report before and TOSSIM
has been used a good deal. So it's possible, but might be a result of
your doing something which no-one has done before and so which hasn't
been tested."

I have been able to replicate the "bug" three times, after a lot of simulations. Activated "Acks" in dbg channel and i got this.

DEBUG (0): addressed to me so ack it,
DEBUG (4): addressed to me so ack it,
DEBUG (4): Ack for yellow msg received
DEBUG (0): Ack for yellow msg received

The last two are my dbg , they are done in sendDone when the ack comes.The next expected thing was to see the receive event on both mote 4 and mote 0 but they never happen. Could this be a "bug" in tossim or in my code or other thing that i'm missing completely?

I have a timer that fires each second, could this by any chance be corrupting the receive event? I'll be doing a lot of more testing(checking that first point) , to see if this "bug" is happening in my code or tossim.

Ricardo

_________________________________________________________________
MSN Messenger: converse com os seus amigos online. http://messenger.msn.com.br

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

Reply via email to