Is it possible that every time the following code signals PowerDetected,
there is actually something to be received in the channel, or it may be due
to the noise? (copied from PowerCycleP.nc )
for( ccaChecks = 0; ccaChecks < MAX_LPL_CCA_CHECKS && call
SendState.isIdle(); ccaChecks++) {
if(call PacketIndicator.isReceiving()) {
signal PowerCycle.detected();
return;
}
if(call EnergyIndicator.isReceiving()) {
detects++;
if(detects > MIN_SAMPLES_BEFORE_DETECT) {
signal PowerCycle.detected();
return;
}
}
}
--
Wasif Masood
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help