|
From: Adam D. <ad...@si...> - 2010-10-07 16:17:48
|
In addition to Marek's pointers to the on() and off() MAC methods, I would just point out that in the current CVS code, as well as in upcoming releases, the nullmac code has been split into two parts: a nullrdc.c that implements a duty cycling layer that does not do any duty cycling, and nullmac.c that implements a medium access control layer (collision management, etc) that does not do any mac mechanisms. Bruno: I would have used either nullrdc or contikimac as the RDC layer, and then had a process that would call NETSTACK_RDC.off(0) and NETSTACK_RDC.on() to put the node to sleep and to wake it up, respectively. Use Cooja/MSPsim and the TimeLine to ensure that your code does what it is supposed to, i.e. that the radio is actually off when you want it to be off. /adam On 2010-10-07 17:17, Marek Bykowski wrote: > Hello Bruno, > > Look at the MAC routines such as on() and off(). If I had that task I > would try to accomplish it at the MAC layer. All the available MACs are in > ./core/net/mac > > Selection of a MAC for example for Tmote Sky is in > ./platform/sky/contiki-conf.h (or so may mix the syntax). > > First off as it is easiest to acquaint yourself have a look at the > nullmac. Maybe if you don't need any MAC use nullmac. If there are more > nodes transmitting at the same time/almost the same time use any other > MAC as using nullmac may end up with collisions. > > Best luck, > Marek > > > On 7 October 2010 16:12, Bruno Filipe Marques <bm...@es... > <mailto:bm...@es...>> wrote: > > Hi all, > > I am wondering if someone could help me on this: > > I need to wake a telosB node for 30 seconds for activity, then he > must sleep for one minute to wake again for 30 seconds, and so on. > > Any help ? > > Thanks in advance, > /bruno > ------------------------------------------------------------ > Bruno Filipe Marques, > MsC in Electrical and Computer Engineering > > FCT PhD Schollarship (SFRH/BD/36221/2007) > > PhD Student @ DEEC/FEUP > WiN, Wireless Networks > UTM, INESC Porto, > http://win.inescporto.pt/ > > Electrical Engineering Department > School of Technology and Management > Polytechnic Institute of Viseu, > Portugal > > url: http://www.estv.ipv.pt/paginaspessoais/bmarq/ > e-mail: bm...@es... <mailto:bm...@es...> > > MSN: bm...@ip... <mailto:bm...@ip...> > Skype: bmarq2k5 > Facebook: http://www.facebook.com/bmarq > Twitter: http://twitter.com/bmarq2k9 > > > ------------------------------------------------------------------------------ > Beautiful is writing same markup. Internet Explorer 9 supports > standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. > Spend less time writing and rewriting code and more time creating great > experiences on the web. Be a part of the beta today. > http://p.sf.net/sfu/beautyoftheweb > _______________________________________________ > Contiki-developers mailing list > Con...@li... > <mailto:Con...@li...> > https://lists.sourceforge.net/lists/listinfo/contiki-developers > > > > > ------------------------------------------------------------------------------ > Beautiful is writing same markup. Internet Explorer 9 supports > standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2& L3. > Spend less time writing and rewriting code and more time creating great > experiences on the web. Be a part of the beta today. > http://p.sf.net/sfu/beautyoftheweb > > > > _______________________________________________ > Contiki-developers mailing list > Con...@li... > https://lists.sourceforge.net/lists/listinfo/contiki-developers -- Adam Dunkels <ad...@si...> | +46 70 7731614 | http://www.sics.se/~adam/ Book: Interconnecting Smart Objects with IP - http://TheNextInternet.org |