Hi,
The following snippet is from CC2420TransmitP:
call CSN.clr();
status = m_cca ? call STXONCCA.strobe() : call STXON.strobe();
if ( !( status & CC2420_STATUS_TX_ACTIVE ) ) {
status = call SNOP.strobe();
if ( status & CC2420_STATUS_TX_ACTIVE ) {
congestion = FALSE;
}
}
m_state = congestion ? S_SAMPLE_CCA : S_SFD;
call CSN.set();
}
if ( congestion ) {
totalCcaChecks = 0;
releaseSpiResource();
congestionBackoff();
} else {
call BackoffTimer.start(CC2420_ABORT_PERIOD);
}
I understand call STXONCCA.strobe() will not send the packet if channel is
busy. Will call STXON.strobe() always return CC2420_STATUS_TX_ACTIVE and
send the packet regardless of the channel state? If no, under what
condition can this happen? Thanks for your attention.
--
-Xiaohui Liu
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help