Hi,
I too tried the same solution for disabling backoffs i.e. setting the
value of the events initialBackoff and congestionbackoff to 0 and 1 in
CC2420RadioM. But it did not make any perceivable difference in the
time taken for a packet to be transmitted (the time difference between
the send call and sendDone signal). This time was 6 ms before and
after turning off backoff.
Is there something I missed in this procedure?
Thanks,
Bhavish
On Thu, Jan 24, 2008 at 7:31 PM, shamo <[EMAIL PROTECTED]> wrote:
>
>
>
>
> 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
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help