Hi Juan,
you can find it in "opt\tinyos-2.x\tos\chips\cc2420\csma\CC2420csmaP.nc"
It's possible to change the backoff time. You can find the following code in
CC2420csmaP.nc
/***************** SubBackoff Events ****************/
async event void SubBackoff.requestInitialBackoff(message_t *msg) {
call SubBackoff.setInitialBackoff ( call Random.rand16()
% (0x1F * CC2420_BACKOFF_PERIOD) + CC2420_MIN_BACKOFF);
signal RadioBackoff.requestInitialBackoff(msg);
}
async event void SubBackoff.requestCongestionBackoff(message_t *msg) {
call SubBackoff.setCongestionBackoff( call Random.rand16()
% (0x7 * CC2420_BACKOFF_PERIOD) + CC2420_MIN_BACKOFF);
signal RadioBackoff.requestCongestionBackoff(msg);
}
what you need to do is change the input values of
SubBackoff.setInitialBackoff and SubBackoff.setCongestionBackoff.
Regards,
Han Bin
Juan Martinez-3 wrote:
>
> *Hi everybody,
>
> What I am doing now is trying to change the backoff, if it's possible, to
> modification the tx time in the channel. The backoff have tree backoff
> variables, initialBackoff, congestion backoff and the Lplbackoff(depends
> the moment of transmission).
>
> I am ussing the VMware machine, with xubuntos and I can not find the
> CC2420CsmaP.nc in tinyos-2.x-contrib.
>
> Can anybody tell me how I can to find the CC2420CsmaP.nc and how it's
> possible to modificate the BackOff?
>
> Thanks
>
> Juan*
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
--
View this message in context:
http://old.nabble.com/Backoff-tp34481568p34482520.html
Sent from the TinyOS - Help mailing list archive at Nabble.com.
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help