dude, its now just he matter of using that interface in your code. just use
the RadioBackoff interface in  your component and connect it to
CSMACA.RadioBackoff. it would work just fine.



On Wed, Sep 19, 2012 at 1:58 PM, Juan Martinez <
[email protected]> wrote:

> Hello wasif,
>
> Thanks for to reply. This code have to put it in Radiobackoff.nc. The code
> that give me is to enable or disable the backoff isn't it? (
> http://www.tinyos.net/tinyos-2.x/doc/nesdoc/micaz/ihtml/tos.chips.cc2420.interfaces.RadioBackoff.html
> )
>
>  But do you know if it is possible to configure the backoff to make a
> transmission time like I want it?
>
> Thanks in advance.
>
> Juan
>
>
> 2012/9/18 wasif masood <[email protected]>
>
>>
>> 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
>>
>>
>


-- 
Wasif Masood
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to