hi, guys.
I wish to disable the CCA.
According to TEP126(CC2420 Radio Stack), it says: ...they must intercept the
RadioBackoff.requestCca(...) event for that message and call back using
RadioBackoff.setCca(FALSE).
>From this, if i wish to disable CCA, i will call setCca(FALSE) in the
implementation in the event requestCca(). I am not sure whether my
understanding is right.

Than, I go to read the code in /tos/chips/cc2420/csma/CC2420CsmaP: in
function:command error_t Send.send(), we can see:
...
<http://smote.cs.berkeley.edu:8000/tracenv/browser/code/tinyos-2.x/tos/chips/cc2420/csma/CC2420CsmaP.nc?rev=1280#L151>signal
RadioBackoff.requestCca(m_msg);
call CC2420Transmit.send( m_msg, ccaOn );
....
So before the requestCca() is executed,and before the setCca(FALSE) command
is called, the system has called the function Send.send()
Thus, the CCA is not disabled before the send command.

Could anybody tell me where do i get wrong.

Thank you for any help..

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

Reply via email to