First of all, thank you Ben for replying. Are these functions you mentioned in your message the extended functions which are not included in the basice Timer functions? Can I still use the standard interface Timer in the declaration in the module? Thank you very much!

Best regards,
Ruoshui
Message: 2
Date: Tue, 20 Nov 2007 15:13:56 -0000
From: "Murray, Ben" <[EMAIL PROTECTED]>
Subject: RE: [Tinyos-help] How to set a particular point to start the
        time r?
To: "'Ruoshui Liu'" <[EMAIL PROTECTED]>,
        [email protected]
Message-ID:
        <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="iso-8859-1"

Sounds like you want the timer to "count from" the receiver ACK rather than
to count "up to" it? You can call the Timer start/stop/startAt functions
anywhere in your code. Just call the  timer.startPeriodic .startOneShot
.startPeriodicAt, etc function when you receive the ACK. Check out the timer
docs (tep102) for more functionality etc.

Regards,
Ben



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Ruoshui
Liu
Sent: 20 November 2007 01:17
To: [email protected]
Subject: [Tinyos-help] How to set a particular point to start the timer?


I am working on a project to set up a single radio link between one transmitter and one receiver. I want to have the transmitter start synchronising with the receiver at the time when the receiver is switched on and an acknowledgement is received by the transmitter, so I need to have a Timer to count up when the synchronisation happens. As we know, normally we start the timer at the begining of the application, can we set the time to start counting when the synchronisation occurs? In this case, I won't start the timer until the acknowledgement from the receiver is recieved by the transmitter. How can this be done in coding? Could anyone help me with this please?
Thanks a lot!

Ruoshui Liu


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

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

Reply via email to