Hi,
I notice RadioControl interface of Routing Engine and Forwarding Engine of
CTP are wired to ActiveMessageC. For instance, in forwarding engine:
Forwarder.RadioControl -> ActiveMessageC;
event void RadioControl.startDone(error_t error) {
radioOn = TRUE;
dbg("TreeRoutingCtl","%s running: %d radioOn: %d\n", __FUNCTION__,
running, radioOn);
if (running) {
uint16_t nextInt;
nextInt = call Random.rand16() % BEACON_INTERVAL;
nextInt += BEACON_INTERVAL >> 1;
call BeaconTimer.startOneShot(nextInt);
}
}
Where is RadioControl.start() called? If not, why
does RadioControl.startDone event have to be handled since it's not
triggered at all? Thanks.
--
-Xiaohui Liu
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help