Why don't you post your code for the frequency change as I suggested
before? There's no way anyone can help you without knowing how you try
to do it. The problem isn't the timer, or at least it's very easy to
check if they're firing. I'm almost sure you do something wrong in
changing frequencies, there are many things that should be done right.

        Harri 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Ruoshui Liu
Sent: Thursday, November 22, 2007 11:08 PM
To: [email protected]
Subject: [Tinyos-help] My 2nd Timer never get called? 

Dear all,

I implemented two timers, 1st (Timer0) for the counter, 2nd (Timer1) is
for the frequency change. In the code below:

  event result_t SendMsg.sendDone(TOS_MsgPtr msg, result_t success)
  {
    if (!(msg->ack)){
        m_int--;
        call Leds.yellowToggle();
        }
        else {
            call MacControl.disableAck();
            call Timer1.start( TIMER_REPEAT, 5120 );
        }

                  
    m_sending = FALSE;
    return SUCCESS;
  }

Here, although I did call Timer1.start, and implemented the frequency
change in the Timer1.fired(), I never got the fequency changed
successfully. The transmit frequency always stays the same. Any
suggestions please? I have been stuck here trying to find the problem
for a long time:(

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

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

Reply via email to