Hi,
I am quite new with tinyos (version 1.x) and I want to test surge application 
as the first step for multihop routing.
 
 
When I debugged it with the directive export DBG=usr2 for this code:
 
*********************************************************
  event TOS_MsgPtr Bcast.receive(TOS_MsgPtr pMsg, void* payload, uint16_t 
payloadLen) {
    SurgeCmdMsg *pCmdMsg = (SurgeCmdMsg *)payload;
    dbg(DBG_USR2, "SurgeM: Bcast  type 0x%02x\n", pCmdMsg->type);
    if (pCmdMsg->type == SURGE_TYPE_SETRATE) {       // Set timer rate
      timer_rate = pCmdMsg->args.newrate;
      dbg(DBG_USR2, "SurgeM: set rate %d\n", timer_rate);
      call Timer.stop();
      call Timer.start(TIMER_REPEAT, timer_rate);
    } else if (pCmdMsg->type == SURGE_TYPE_SLEEP) {
      // Go to sleep - ignore everything until a SURGE_TYPE_WAKEUP
      dbg(DBG_USR2, "SurgeM: sleep\n");
...
...
...
**********************************************************
  out puts didn't show me any informations about sleeping mode ?????
So, should I deduct that motes do not sleep then (How about power consumption 
constraint ????)
 
Also, by exploring the code of MultiHopWMEWMA module, I conclude that the 
nature of routing is by flooding (Also How about power consumption constraint 
????).
However when the neighbour table is established (especially parent field is 
filled (!= 255) then the mote routs its packets to its parent isn't it?
 
 
Please do not ignore my questions because I am really needing your help.
I am very thankful,
Looking forward to you, I present my sincer salutations,
 
 
 
 



Envoyé avec Yahoo! Mail.
Capacité de stockage illimitée pour vos emails. 


      
_____________________________________________________________________________ 
Envoyez avec Yahoo! Mail. Capacité de stockage illimitée pour vos emails. 
http://mail.yahoo.fr
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to