[Tinyos-help] help, strange automatic fired timer!!

Andres Aberasturi benytokmelas at hotmail.com
Wed Sep 13 05:06:04 PDT 2006


Hi,

I do know the problem, but I think you can write any word (Timer o anything) 
if you have defined it corretly.

I am sorry I can help you with your previous question.

Andres



>From: Pablo Gil Montaño <pgilmon at yahoo.es>
>To: campbell gao <campbellgao at gmail.com>,        "hi,all tinyosbuddies" 
><tinyos-help at Millennium.Berkeley.EDU>
>Subject: RE: [Tinyos-help] help, strange automatic fired timer!!
>Date: Wed, 13 Sep 2006 12:34:53 +0200 (CEST)
>
>Please, correct me if this is nonsense, but try with unique("Timer") 
>instead of unique("MSPSensing").
>
>
>
>campbell gao <campbellgao at gmail.com> escribió: hi all,
>  i encounter a strange problem: the time auto to fire without any "call 
>timer.fire();".
>  In my configuration Sensing.nc,3 timers are configured like following:
>
>   //timer
>  MSPSensingM.LedsTimer -> TimerC.Timer[unique("MSPSensing")];
>  MSPSensingM.SyncTimer -> TimerC.Timer[unique("MSPSensing")];
>  MSPSensingM.SendTimer -> TimerC.Timer[unique("MSPSensing")];
>
>  in my Stdcontrol part of  SensingM.nc, i don't fire any timer:
>    command result_t StdControl.init() {
>   call Leds.init();
>   call PIRControl.init();
>   ....
>   return SUCCESS;
>  }
>
>  command result_t StdControl.start() {
>   call PIRControl.start();
>   return SUCCESS;
>  }
>
>  command result_t StdControl.stop() {
>   call PIRControl.stop();
>   return SUCCESS;
>  }
>
>
>  and if i want to start the sampling,  i will send a message to nodes .The 
>receive code is like following:
>  .....
>  event TOS_MsgPtr ReceiveMsg.receive(TOS_MsgPtr message) {
>  if(message->type==0x0c){//reset mote msg
>    if(message->data[0] == ALL_MOTES||message->data[0] == 
>TOS_LOCAL_ADDRESS){
>   if(message->data[1] == MSG_START) {
>             call SyncTimer.start(TIMER_REPEAT,timeSlot);
>  .....
>
>  But how strange it is!!  The sampling start up when i turn on the node's 
>switch!! And sampling data is sent back!!
>
>  Who could tell me that is why??
>
>
>--
>best wishes
>
>                                          campbell
>------------------------------------------------------------
>SNARC
>~~:nihao~~:hi~~:ciao~~  _______________________________________________
>Tinyos-help mailing list
>Tinyos-help at Millennium.Berkeley.EDU
>https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
>
>---------------------------------
>
>LLama Gratis a cualquier PC del Mundo.
>Llamadas a fijos y móviles desde 1 céntimo por minuto.
>http://es.voice.yahoo.com


>_______________________________________________
>Tinyos-help mailing list
>Tinyos-help at Millennium.Berkeley.EDU
>https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

_________________________________________________________________
Acepta el reto MSN Premium: Correos más divertidos con fotos y textos 
increíbles en MSN Premium. Descárgalo y pruébalo 2 meses gratis. 
http://join.msn.com?XAPID=1697&DI=1055&HL=Footer_mailsenviados_correosmasdivertidos



More information about the Tinyos-help mailing list