Hi all,

I'm building node-to-node multihop network using dissemination.
Like the TEP118 sec 5 suggested, I'm adding my own predicate 
to make sure that only a certain node can receive the command.

My problem is that whenever I send two or more commands to the 
different nodes too fast, one of them most probably lost, especially the
command for the farthermost mote in the network. 

I read that only the newest command that would be disseminated, which
means that if the last command doesn't reach the farthermost node 
before the new command arrives, the last command will be lost.

Am I right about this ?

Or this phenomenon happens because I didn't save the dissemination 
value when "changed" event happened ?
Eg.
event void Command.changed() {
  pst_commandValue = (st_StreetLightCmd *) call Command.get();

  // Should I copy this' pointer's value before I process it ?
  // memcpy(&tempCommand, pst_commandValue, 
  //    sizeof(st_StreetLightCmd));
  post ProcessCommand();
}

Thanks

Regards,

-daniel




_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to