[Tinyos-help] Ask for help-tinyOS
shamo
shamo2 at student.cityu.edu.hk
Thu Jan 24 05:10:56 PST 2008
Dear Sir,
I just read David's answer about how to disable backoff.I use tmote sky.As he said, I connect CC2420RadioM to MacBackoff, and write initialBackoff(...) and congestionBackoff(...) event to return 0 or 1. However, it does not work. It seems that I can not disable the backoff in this way.I do not know why.Please give me a help. Can you give me an example?
Your answer:---------------
TinyOS 1.x:
configuration CC2420RadioC
{
provides {
...
interface MacControl;
interface MacBackoff;
...
}
}
interface MacBackoff
{
async event int16_t initialBackoff(TOS_MsgPtr m);
async event int16_t congestionBackoff(TOS_MsgPtr m);
}
Connect to MacBackoff, and when you get an initialBackoff(...) or
congestionBackoff(...) event, return 0 or 1. This method wasn't very
friendly for systems that wanted to specify different backoff periods for
different outbound AM types. With extra programming, you can get the event
to set the backoff as you want it for any outbound message.
-David
---------------------------------
SHA Mo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20080124/87892f98/attachment-0001.html
More information about the Tinyos-help
mailing list