Hi, RadioControl interface is started in the application layer. You application should use SplitControl interface implemented by ActiveMessageC component. Therefore, you are responsible for that!
Regards, -- Mehmet Akif Antepli Telecommunications Lab. Dept. of EEE Middle East Technical University On Sat, Feb 27, 2010 at 11:57 PM, Xiaohui Liu <[email protected]> wrote: > 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 >
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
