I am simulating two motes in TOSSIM. When 1 sends a
message to 0, everything works fine. But when 0 sends
a message to 1, 1 does not receive it. 1 never sends
the ACK. Any pointers on what I should be
investigating? The code looks like below.

Thanks in advance ...

command result_t SendData.output(Some_ptr pmsg) {
 send_curr_msg = (Some_ptr)data.data;
     
     if (!pending) {
        pending = TRUE;
        atomic {
          send_curr_msg->op = pmsg->op;
        }
        if (call Send.send(TOS_BCAST_ADDR,
sizeof(Morpheus_msg), &data)) {
           
           return SUCCESS;
        }
        pending = FALSE;
     }
     return FAIL;
  }
-----------------------------------

 event TOS_MsgPtr Receive.receive(TOS_MsgPtr m) {
     
     rcv_curr_msg = (Some_ptr)m->data;
     return m;
   }

-------------------------------------------

"Do the best you can, with what you have, where you are." -- Roosevelt

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to