CC2420Config.setChannel just modifies the holding cell (m_channel). It won't change the h/w until later.
There are bugs in the base cc2420 driver. I beleive the cc2420x driver works better. I rewrote the cc2520 driver (cc2520-v2). And that is the one that I'm familar with. It behaves similarily to the cc2420x driver. anyway, in the cc2420x and cc2520-v2 drivers hold the channel (same channel for tx and receive, no splits) in the "channel" control cell. when it is changed via RadioState.setChannel, the driver also changes the h/w. in the 2420x and 2520-v2 code, DriverConfig isn't used to change channel information. Rather RadioState is used. So an answer to your question depends on which driver you are using. On Sat, Jun 6, 2015 at 4:44 AM, funofnet Funofnet <[email protected]> wrote: > Hello, > > I just would like to verify something: > when I change the transmission channel in the sender code > by CC2420Config.setChannel, should I change it also in the receiver code? > > Thanks. > > -- > FF > > > _______________________________________________ > Tinyos-help mailing list > [email protected] > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > -- Eric B. Decker Senior (over 50 :-) Researcher
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
