Serious bug in Wireless Channel

14 views
Skip to first unread message

Bart Braem

unread,
Nov 6, 2009, 8:16:23 AM11/6/09
to Castalia Simulator
The 2.x series of Castalia contain a serious bug in Wireless Channel
when mobility is enabled:
in the handleMessage method, the switch (message -> kind()) code
contains:

}
}

case WC_CARRIER_SENSE_BEGIN:
{

There is a break missing before the end of case WC_NODE_MOVEMENT. This
means all nodes moving will perform carrier sensing whenever they are
signaled to have moved.

(I have looked quite hard to understand why my nodes started to
perform carrier sensing all of a sudden, hopefully this helps people.)

Athanassios Boulis

unread,
Nov 6, 2009, 9:20:42 PM11/6/09
to castalia-...@googlegroups.com
Thank you for the bug catch Bart!
I will corrected it in the code along with some other minor things we found and
have a release soon as 2.3b

In our own simulations we do not really play with mobility much and we are
mostly using T-MAC and 15.4 MAC which carrier sense all the time so we
did not notice any strange behaviour.

This example shows the value of the Castalia community once more.
Thanks again.

Bart Braem

unread,
Nov 9, 2009, 4:55:15 AM11/9/09
to Castalia Simulator
You are welcome!
As a WBAN researcher I was happy to see code for T-MAC and 802.15.4,
so this seems a perfect way to say thank you.

best regards,
Bart
Reply all
Reply to author
Forward
0 new messages