Hi,
As far as I understand you want to disable ClearCannelAccessment (CCA).
1. You can change the line in CC2420CsmaP.nc from "ccaOn = TRUE;" to
"ccaOn = FALSE" which will disable CCA for all your applications...
2. The better way (proposed in TEP126) is to catch the event
RadioBackoff .requestCca(...) for each message and then set the CCA to
FALSE :
in your configuration:
components CC2420ActiveMessageC;
App.CcaOverride -> CC2420ActiveMessageC.RadioBackoff[AM_ID];
in your module:
interface RadioBackoff as CcaOverride;
/******************** CCA Override ********************/
/* Set CCA to USE_CCA (FALSE: no CCA) */
async event void CcaOverride.requestCca(message_t *msg){
call CcaOverride.setCca(USE_CCA);
}
async event void CcaOverride.requestInitialBackoff(message_t *msg) {}
async event void CcaOverride.requestCongestionBackoff(message_t *msg) {}
btw: this is for tinyOS 2.0.x...
Mischa
Saatvik Agarwal wrote:
Hi,
I've been looking for a way to disable CSMA while sending packets on the
CC2420 chipset. I tried modifying the CC2420CsmaP.nc file to use the
CC2420Transmit.send() function instead of the CC2420Transmit.sendCCA ()
function, but it didn't work when I tested it. Is this the right way to
disable CSMA or is there some other way?
Thanks a lot,
Saatvik Agarwal
------------------------------------------------------------------------
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help