[Tinyos-help] Timer error

2012-12-21 Thread mansooreh mollaie
Hi all,
I like to use Timer in tossim scheduler but it error like this:

/opt/tinyos-2.1.0/tos/lib/timer/AlarmToTimerC.nc:63: scheduler depends on 
a task 
/opt/tinyos-2.1.0/tos/lib/timer/AlarmToTimerC.nc:63: The -fnesc_scheduler 
flag should specify a module 
/opt/tinyos-2.1.0/tos/lib/timer/AlarmToTimerC.nc:63: (the module with the  
scheduling code, even if the scheduler is a configuration)
/opt/tinyos-2.1.0/tos/lib/timer/VirtualizeTimerC.nc:60: scheduler depends on 
a task
I use HilTimerMilliC! how can I fix this!
I searched it but no answer!
help me please! so thanks
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Timer error

2012-12-21 Thread mansooreh mollaie
Hi,
So thanks for your reply!
I use Tinyos 2.1.1!
I add this code to TinyschedulerC:
 components new TimerMilliC as Timer0
 Sched.Timer0 - Timer0
and this code to schedule file:
 uses interface TimerTMilli as Timer0
I call Timer0.getNow() but when I compile I receive below error!
I don't change it, just I add timer and I like to use Timer function in it!!
Help me please! so thanks




 From: Eric Decker cire...@gmail.com
To: mansooreh mollaie ms_moll...@yahoo.com 
Sent: Friday, December 21, 2012 12:17 PM
Subject: Re: [Tinyos-help] Timer error
 

first you are using very old code.


you should consider upgrading to tinyos 2.1.2




What did you change?   This certainly used to compile.   You should start with 
what you changed.


On Fri, Dec 21, 2012 at 12:31 AM, mansooreh mollaie ms_moll...@yahoo.com 
wrote:

Hi all,
I like to use Timer in tossim scheduler but it error like this:


/opt/tinyos-2.1.0/tos/lib/timer/AlarmToTimerC.nc:63: scheduler depends on 
a task 
/opt/tinyos-2.1.0/tos/lib/timer/AlarmToTimerC.nc:63: The -fnesc_scheduler 
flag should specify a module 
/opt/tinyos-2.1.0/tos/lib/timer/AlarmToTimerC.nc:63: (the module with the  
scheduling code, even if the scheduler is a configuration)
/opt/tinyos-2.1.0/tos/lib/timer/VirtualizeTimerC.nc:60: scheduler depends on 
a task
I use HilTimerMilliC! how can I fix this!
I searched it but no answer!
help me please! so thanks


___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help




-- 
Eric B. Decker
Senior (over 50 :-) Researcher



___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Timer error

2012-12-21 Thread Eric Decker
On Fri, Dec 21, 2012 at 2:15 AM, mansooreh mollaie ms_moll...@yahoo.comwrote:

 Hi,
 So thanks for your reply!
 I use Tinyos 2.1.1!
 I add this code to TinyschedulerC:


Why on earth are you adding code to TinyScheduler?


  components new TimerMilliC as Timer0
  Sched.Timer0 - Timer0
 and this code to schedule file:
  uses interface TimerTMilli as Timer0
 I call Timer0.getNow() but when I compile I receive below error!
 I don't change it, just I add timer and I like to use Timer function in
 it!!
 Help me please! so thanks


Well you are doing something really weird with TinyScheduler.   That is why
the compiler is bitching.

I suggest you work through the tutorials until you better understand how
the system is put together before doing strange stuff.

see http://docs.tinyos.net






   --
 *From:* Eric Decker cire...@gmail.com
 *To:* mansooreh mollaie ms_moll...@yahoo.com
 *Sent:* Friday, December 21, 2012 12:17 PM
 *Subject:* Re: [Tinyos-help] Timer error

 first you are using very old code.

 you should consider upgrading to tinyos 2.1.2


 What did you change?   This certainly used to compile.   You should start
 with what you changed.

 On Fri, Dec 21, 2012 at 12:31 AM, mansooreh mollaie 
 ms_moll...@yahoo.comwrote:

 Hi all,
 I like to use Timer in tossim scheduler but it error like this:

 /opt/tinyos-2.1.0/tos/lib/timer/AlarmToTimerC.nc:63: scheduler depends on
 a task
 /opt/tinyos-2.1.0/tos/lib/timer/AlarmToTimerC.nc:63: The -fnesc_scheduler
 flag should specify a module
 /opt/tinyos-2.1.0/tos/lib/timer/AlarmToTimerC.nc:63: (the module with the  
 scheduling
 code, even if the scheduler is a configuration)
 /opt/tinyos-2.1.0/tos/lib/timer/VirtualizeTimerC.nc:60: scheduler depends
 on a task

 I use HilTimerMilliC! how can I fix this!

 I searched it but no answer!

 help me please! so thanks



 ___
 Tinyos-help mailing list
 Tinyos-help@millennium.berkeley.edu
 https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help




 --
 Eric B. Decker
 Senior (over 50 :-) Researcher






-- 
Eric B. Decker
Senior (over 50 :-) Researcher
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help