We've been studing the MAC protocol used in TinyOS 1.1.0 implemented on 
CC1000RadioIntM.nc file and there are some questions about it, here they 
go:

1) On the task PacketSent(), what would be the problem if we changed the 
   bTxBusy to FALSE before the sendDone signal, once the txbufptr is free?

  task void PacketSent() {
    TOS_MsgPtr pBuf; //store buf on stack 
    atomic {
      txbufptr->time = 0;
      // ----------------------> makes txbufptr free to receive another 
      // ----------------------> message to be sent and uses pBuf to 
      // ----------------------> signal the end of transmission.
      memcpy(pBuf, txbufptr, sizeof(*txbufptr));

      //-----------------------> Free another transmission here
      bTxBusy = FALSE;
    }
    signal Send.sendDone((TOS_MsgPtr)pBuf,SUCCESS);
    //atomic bTxBusy = FALSE; ---------> Comment this...
  }


2) How did they find the values of the tables on CC1000Const.h file? Are 
   these values empirics or calculated? If they are calculated, how did
   they find the values of the tables below? How were the calculus made?
   Did they made these calculus using mW or dBm????

   a) CC1K_LPL_PreambleLength[]
   b) CC1K_LPL_ValidPrecursor[]
   c) CC1K_LPL_SleepTime[]
   d) CC1K_LPL_SleepPreamble[]
   e) CC1K_LPL_SquelchInit[]

   And how did they find the bandwidths shown above this tables?


-----------------------------------
Daniel Andrade Costa Silva
Computer Science - UFMG - Brasil
[EMAIL PROTECTED]
http://www.dcc.ufmg.br/~daniacs
ICQ: 15350463

"To err is human. To moo bovine"
-----------------------------------
_______________________________________________
Tinyos-users mailing list
[email protected]
http://mail.Millennium.Berkeley.EDU/mailman/listinfo/tinyos-users

Reply via email to