add these to one of your components:
async event void RadioBackoff.requestCongestionBackoff(message_t *msg){
call RadioSend.cancel(msg);
call RadioBackoff.setCongestionBackoff(desiredtime);
}
async event void RadioBackoff.requestInitialBackoff(message_t *msg){
call RadioBackoff.setInitialBackoff(desiredtime);
}
async event void RadioBackoff.requestCca(message_t *msg) {
call RadioBackoff.setCca(TRUE);
}
On Tue, Sep 18, 2012 at 3:49 PM, Juan Martinez <
[email protected]> wrote:
> Hello everybody,
>
> I am reading about how to change the backoff with tinyos and I do not get
> clear how to do it.
>
> I am going to CC2420 --> interfaces --> Radiobackoff.nc but I don't know
> if i have to modificate here the code or not.
> My intention is to modificate, if it is possible, the initialbackoff and
> the congestionbackoff to change the transmition time.
>
> Any help?thank in advance!
>
> Juan
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
--
Wasif Masood
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help