[Tinyos-help] Timer firing late (IRIS platform). Is this a bug?

2015-03-05 Thread Roadstar Runner
I have a total of 8 timers in my test app. 3 timers are periodic and fire every 7,500 and 500ms. Fourth timer is configured to fire (one shot) based on certain parameters on the app. Remining timers are never used. Occasionally when i configure to the fourth fire (one shot) in 8ms, it fires

[Tinyos-help] timer capture in telosb

2014-02-06 Thread Trusit Shah
I want to read frequency between 1Khz to 3Khz using telosb mote. For reading this i am using gpio timer capture interface GpioCapture. I am using Timer A1 as the capture pin. I am calling this event in boot.booted() event void Boot.booted() { call GpioCapture.captureRisingEdge(); } but the

[Tinyos-help] Timer Help Required

2014-02-05 Thread Sulaiman Rais
I am trying to send a gaussian signal (70khz) from my telosb mote. Note: I have confiqured Oscilloscope to send data serially rather tha over radio to overcome buffer problem (i am doing things step by step)  a) I changed the adc clock to ADC12OSC (works fine) b) i changed the timer clock to TMicr

Re: [Tinyos-help] Timer not fired

2013-11-02 Thread Mohd Adib Sarijari
Good to hear that you had found a solution. I think besides logging such that you also could use the LED on the platform. On Nov 2, 2013 3:25 PM, "Xiaohui Liu" wrote: > Hi, > > By log I mean a serial message sent from a mote to a PC. I'm using telosb > and T2.1.1. Log fails because of a bug in my

Re: [Tinyos-help] Timer not fired

2013-11-02 Thread Xiaohui Liu
Hi, By log I mean a serial message sent from a mote to a PC. I'm using telosb and T2.1.1. Log fails because of a bug in my code. Sent from my iPhone On Nov 1, 2013, at 6:15 PM, Eric Decker wrote: On Fri, Nov 1, 2013 at 2:00 PM, Xiaohui Liu wrote: > Hi Micha, > > How do you know if the tim

Re: [Tinyos-help] Timer not fired

2013-11-01 Thread Eric Decker
On Fri, Nov 1, 2013 at 2:00 PM, Xiaohui Liu wrote: > Hi Micha, > > How do you know if the timer fails to fire? > > I experienced the same problem before. Whenever the timer fires, a log is > sent to the UART. If no log is received when a timer is supposed to fire, > the timer is regarded to fail

Re: [Tinyos-help] Timer not fired

2013-11-01 Thread Xiaohui Liu
Hi Micha, How do you know if the timer fails to fire? I experienced the same problem before. Whenever the timer fires, a log is sent to the UART. If no log is received when a timer is supposed to fire, the timer is regarded to fail to fire. This turns out wrong because no log can be also caused b

Re: [Tinyos-help] Timer not fired

2013-08-08 Thread Ádám Erdélyi
Hi Micha, could you show us the wiring code for the timer, how you initialize the timers and how you handle the firing event? Does it fire when started by other functions? (e.g. a simple Timer.start) Did you use the unique() function at the beginning? Cheers, Adam On Aug 8, 2013 3:02 PM, "Micha R

[Tinyos-help] Timer not fired

2013-08-08 Thread Micha Rappaport
Hello, I am using multiple instances of the TimerMilliC component on a telosB mote. When I use the timer.startOneShot() command, the timer does not always fire. I checked the timer.isRunning() command which returns TRUE! Next I checked the times now, t0 and dt which look all promising: This works

Re: [Tinyos-help] Timer error

2012-12-21 Thread Eric Decker
cker > *To:* mansooreh mollaie > *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

Re: [Tinyos-help] Timer error

2012-12-21 Thread mansooreh mollaie
hange it, just I add timer and I like to use Timer function in it!! Help me please! so thanks > > From: Eric Decker >To: mansooreh mollaie >Sent: Friday, December 21, 2012 12:17 PM >Subject: Re: [Tinyos-help] Timer error > > >first you a

[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/AlarmT

Re: [Tinyos-help] Timer Granularity on Telosb

2012-09-30 Thread Eric Decker
Here is how I would approach the problem I've been doing industry development for 30+ years. Equally split between old (mini-computer days) cpu bring up, design, system software and embedded systems (early router development at cisco, essentially embedded systems). First, I would inst

Re: [Tinyos-help] Timer Granularity on Telosb

2012-09-30 Thread wasif masood
Dear Eric, I am experiencing a very strange behavior which, in my opinion, is not possible. I am using this AlarmMicro16C component and I am observing that it almost take around 6000 ticks each time the call goes from my Application component into the AlarmMicro16C component, when measured using A

Re: [Tinyos-help] Timer Granularity on Telosb

2012-09-29 Thread Eric Decker
I strongly suspect none of the implementations have been tested for corner cases. On Sat, Sep 29, 2012 at 8:43 AM, wasif masood wrote: > > Dear Janos, > > There is a strange behaviour I am experiencing with AlarmMicro16C. From > the tinyos general documentation, it is pretty clear that start com

Re: [Tinyos-help] Timer Granularity on Telosb

2012-09-29 Thread wasif masood
in my opinion, it should be just call Msp430Compare.setEvent( remaining ); On Sat, Sep 29, 2012 at 5:43 PM, wasif masood wrote: > > Dear Janos, > > There is a strange behaviour I am experiencing with AlarmMicro16C. From > the tinyos general documentation, it is pretty clear that start command >

Re: [Tinyos-help] Timer Granularity on Telosb

2012-09-29 Thread wasif masood
Dear Janos, There is a strange behaviour I am experiencing with AlarmMicro16C. From the tinyos general documentation, it is pretty clear that start command starts the timer from current time to dt, now since we know that AlarmMicro16C can has a maximum 65535 value so if one intend to give this val

Re: [Tinyos-help] Timer Granularity on Telosb

2012-09-26 Thread wasif masood
thanks fellows, that was really helpful. VG On Wed, Sep 26, 2012 at 3:05 AM, Eric Decker wrote: > Or better yet make sure that when the MCU comes back from sleep that > something > reasonable is put into the Micro timing h/w. > > > On Tue, Sep 25, 2012 at 8:05 AM, Janos Sallai > wrote: > >> W

Re: [Tinyos-help] Timer Granularity on Telosb

2012-09-25 Thread Eric Decker
Or better yet make sure that when the MCU comes back from sleep that something reasonable is put into the Micro timing h/w. On Tue, Sep 25, 2012 at 8:05 AM, Janos Sallai wrote: > Wasif: > > tos/chips/msp430/timer/AlarmMicro16C.nc is what you're looking for. > Please note that the us counter is d

Re: [Tinyos-help] Timer Granularity on Telosb

2012-09-25 Thread Janos Sallai
Wasif: tos/chips/msp430/timer/AlarmMicro16C.nc is what you're looking for. Please note that the us counter is driven by the DCO, which stops when the MCU goes to sleep. You will have to prevent the MCU from sleeping by implementing McuPowerOverride.lowestState(). Janos On Tue, Sep 25, 2012 at 2:

Re: [Tinyos-help] Timer Granularity on Telosb

2012-09-25 Thread wasif masood
Thanks Eric, I have been through a alot of these posts. So far, I think, the solution I am looking for, is not answered in any of them. Either there isTMicro packet timestamping being discussed or the TMicro counters are explained just to track the time elasped between two events. But I am interes

Re: [Tinyos-help] Timer Granularity on Telosb

2012-09-24 Thread Eric Decker
You want Tmicro. Search via http://www.mail-archive.com/tinyos-help@millennium.berkeley.edu/ for tmicro. This topic has been discussed previously. On Mon, Sep 24, 2012 at 5:39 AM, wasif masood wrote: > > > Hi All, > > A quick question, is there a timer with granularity of 1us. more than > Al

[Tinyos-help] Timer Granularity on Telosb

2012-09-24 Thread wasif masood
Hi All, A quick question, is there a timer with granularity of 1us. more than Alarm, where I tick~30us? for Telosb. VG, Wasif Masood ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/li

Re: [Tinyos-help] Timer 3 registers and IRIS mote

2011-11-14 Thread Janos Sallai
Hafid, Most probably, the MCU goes to sleep and the timer is not ticking. To prevent the MCU from sleeping, implement the McuPowerOverride interface and wire it to McuSleepC. Janos On Wed, Nov 9, 2011 at 10:05 PM, hafid oussaadi wrote: > Hello everybody, > I wrote a  small program to generate a

[Tinyos-help] Timer 3 registers and IRIS mote

2011-11-14 Thread hafid oussaadi
Hello everybody, I wrote a small program to generate a 16 KHz PWM signal on OC3A which corresponds to pin 26 on the IRIS 51 pins connector. Assuming that fclk_I/O = 7.3728 MHz , I use CTC mode with OCR3A as TOP value. PRR1 &=~(1 << 3); // enable Timer 3 TCCR3B |= (1<<3)|(1<<0); // prescaler

Re: [Tinyos-help] Timer failure related to program size

2011-03-18 Thread Joe Dvorak
Thanks for the quick explanation. That makes perfect sense. I was looking at the 128k/512k number on the micaz datasheet instead of the 4k from the ATMEL datasheet. Thanks again. Joe On Fri, Mar 18, 2011 at 12:40 PM, Philip Levis wrote: > > On Mar 18, 2011, at 10:08 AM, Joe Dvorak wrote: > > >

Re: [Tinyos-help] Timer failure related to program size

2011-03-18 Thread Philip Levis
On Mar 18, 2011, at 10:08 AM, Joe Dvorak wrote: > Hello, > > > I ran into a problem where the timer fails to fire based on the size of > variables defined in my program. The program has several timers and data > arrays to store the results before transmitting. My program runs great with > d

[Tinyos-help] Timer failure related to program size

2011-03-18 Thread Joe Dvorak
Hello, I ran into a problem where the timer fails to fire based on the size of variables defined in my program. The program has several timers and data arrays to store the results before transmitting. My program runs great with data arrays of a certain size, but an increase of just a few extra b

Re: [Tinyos-help] timer-functionality within lcd-driver needed / bigAVR6 / atmega128

2010-11-24 Thread Tobias Rossbach
Hi, > i can't use the TimerMilli - interface directly i guess because this > functionality is reserved for the > application itself. i think it would be possible to instantiate a > timer TMilli in the application > and wire it down to the lcd-driver, but then the driver wouldn be > application-ind

[Tinyos-help] timer-functionality within lcd-driver needed / bigAVR6 / atmega128

2010-11-22 Thread Harald Glanzer
hi, i'm wondering what's the proper way in tinyos when timing is needed within a driver. my concrete problem is a driver for a lcd / everytime a command or data is sent to the lcd-chip, i need to wait for some time. therefor, i want to use a timer in singleshot-mode. i can't use the TimerMilli -

Re: [Tinyos-help] Timer

2010-08-20 Thread jostargal
nsequently the timer) you can use "call Init.init();" Afterwards, you can use e.g. "call Timer.startPeriodic(3000U);" - Mensaje original - De: ranal fernando  Fecha: Jueves, Agosto 19, 2010 10:58 pm Asunto: [Tinyos-help] Timer A: tinyos-help@millennium.berkeley.edu >

[Tinyos-help] Timer

2010-08-19 Thread ranal fernando
hi all, is there a way to use Timer interface with T32khz precision? i tried it with TMilliC it gave some errors. i think TMilliC is only for TMilli precision is there another component that i need to wire to use T32khz precision? used VirtualizeTimerC but did not work. thanks ranal

[Tinyos-help] Timer and Printf problem

2010-07-28 Thread dhb2124
Hello, I am right now trying to implement a program that stores about 1700 integers in an array, and once that array is full, a one shot timer is started and when the fired event occurs, the elements in the array are printed to the screen using printf and a for loop. I am trying to print o

Re: [Tinyos-help] Timer startOneShot & startPeriodic

2010-07-15 Thread Deeksha Rao Sahib
If you say call Timer4.startOneShot(dt), then oher timers are not disturbed. But, if Timer4 is already running and you call Timer4.startOneShot(dt), then only Timer4 will be stopped and started in OneShot mode. > > Hi, > > Does calling StartOneShot command on a timer stop any other timer stop >

Re: [Tinyos-help] Timer startOneShot & startPeriodic

2010-07-15 Thread Salvatore Signorello
Date: Wed, 14 Jul 2010 20:55:06 -0700 Subject: Re: [Tinyos-help] Timer startOneShot & startPeriodic From: cire...@gmail.com To: todo_dur...@hotmail.com CC: tinyos-help@millennium.berkeley.edu I think so, cause I probably misread TEP 102 pag 4 " startOneShot(dt): cancel any previou

Re: [Tinyos-help] Timer startOneShot & startPeriodic

2010-07-14 Thread Eric Decker
On Wed, Jul 14, 2010 at 8:54 AM, Salvatore Signorello < todo_dur...@hotmail.com> wrote: > Hi, > > Does calling StartOneShot command on a timer stop any other timer stop from > working? > no why would you think that it would? > > ex. > > I have three timer that are working > call Timer1.startP

[Tinyos-help] Timer startOneShot & startPeriodic

2010-07-14 Thread Salvatore Signorello
Hi, Does calling StartOneShot command on a timer stop any other timer stop from working? ex. I have three timer that are working call Timer1.startPeriodic(1000); call Timer2.startPeriodic(2000); call Timer3.startPeriodic(5000); if I launch a fourth timer, Timer4,in "one shot" mode , what h

Re: [Tinyos-help] Timer interface for mica2 mote

2010-07-10 Thread Michael Schippling
In TOS 1.x look for TimerM.nc and TimerJiffyAsyncM.nc for 1ms and 32us timers, respectively. Jiffy is only in the micaz tree but can be copied wholesale to mica2. I'm sure there are simulacra in T2 but I don't use it. MS dhb2...@columbia.edu wrote: > I have a question about using a timer for the

[Tinyos-help] Timer interface for mica2 mote

2010-07-09 Thread dhb2124
I have a question about using a timer for the mica2 mote. I see in the timer.h file that there are options to use a 32KHz and Microsecond timer, but I do not see any components that support these and hence I am not sure how to implement either of these timers for the mica2 mote. Any help on

Re: [Tinyos-help] Timer not fire in TOSSIM

2010-06-18 Thread avinash chaurasia
t or not by having a look >> at the packet send and send done code. >> >> Hope this helps! >> >> Kartik. >> >> >> --- On *Fri, 6/18/10, Xiaohui Liu * wrote: >> >> >> From: Xiaohui Liu >> Subject: Re: [Tinyos-help] Timer not fire

Re: [Tinyos-help] Timer not fire in TOSSIM

2010-06-18 Thread Xiaohui Liu
ving a look at > the packet send and send done code. > > Hope this helps! > > Kartik. > > > --- On *Fri, 6/18/10, Xiaohui Liu * wrote: > > > From: Xiaohui Liu > Subject: Re: [Tinyos-help] Timer not fire in TOSSIM > To: "Kartik Siddhabathula" > C

Re: [Tinyos-help] Timer not fire in TOSSIM

2010-06-18 Thread Kartik Siddhabathula
wrote: From: Xiaohui Liu Subject: Re: [Tinyos-help] Timer not fire in TOSSIM To: "Kartik Siddhabathula" Cc: "Tinyos-Help" Date: Friday, June 18, 2010, 9:38 AM Hi, event void Boot.booted() {    call Timer.startOneShot(2000);} event void Timer.fired() {    send a packet here  

Re: [Tinyos-help] Timer not fire in TOSSIM

2010-06-18 Thread Xiaohui Liu
ter if you give some code snippet. > > Thanks, > Kartik > > --- On *Thu, 6/17/10, Xiaohui Liu * wrote: > > > From: Xiaohui Liu > Subject: [Tinyos-help] Timer not fire in TOSSIM > To: "Tinyos-Help" > Date: Thursday, June 17, 2010, 11:02 PM > > >

[Tinyos-help] Timer not fire in TOSSIM

2010-06-17 Thread Xiaohui Liu
Hi, I set a timer by calling Timer.startOneShot(1000), but it seems the timer never fires. The simulation does normally terminate in finite time, so there is no infinite loop. Can anyone give me some hint on what might be causing the problem? Thanks. -- -Xiaohui Liu _

Re: [Tinyos-help] Timer

2010-05-31 Thread Giuseppe Cardone
 : Lun 31.5.10, Giuseppe Cardone > a écrit : > > De: Giuseppe Cardone > Objet: Re: [Tinyos-help] Timer > À: "raoudha baklouti" > Cc: tinyos-help@millennium.berkeley.edu > Date: Lundi 31 mai 2010, 10h02 > > Hi, > > please refer to TEP102 , http://www

Re: [Tinyos-help] Timer

2010-05-31 Thread Giuseppe Cardone
Hi, please refer to TEP102 , http://www.tinyos.net/tinyos-2.x/doc/html/tep102.html Regards -- Giuseppe Cardone On Mon, May 31, 2010 at 9:15 AM, raoudha baklouti wrote: > Spam detection software, running on the system > "mail.Millennium.Berkeley.EDU", has > identified this incoming email as

[Tinyos-help] Timer

2010-05-31 Thread raoudha baklouti
Spam detection software, running on the system "mail.Millennium.Berkeley.EDU", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator

Re: [Tinyos-help] timer and backoff

2010-05-24 Thread Deeksha Rao Sahib
> Hi All, > I just moved from tinyos 1.x to 2.x. I read somewhere that tinyos 2.x has > a > built-in function for disabling csma and backoff while transmitting? Is it > in CSMA control? yes it is CSMA control... you can turn it off by making CcaOn = FALSE > > The second question I have is whether

[Tinyos-help] timer and backoff

2010-05-21 Thread Roberto Pagliari
Hi All, I just moved from tinyos 1.x to 2.x. I read somewhere that tinyos 2.x has a built-in function for disabling csma and backoff while transmitting? Is it in CSMA control? The second question I have is whether it is possible, while using a timer likeTmilli, to know at any time the amount of ti

[Tinyos-help] timer .getNow()

2010-04-22 Thread wafa jaballah
hi all, I have a problem related to the current time in a mote. More Specially, If a sender wants to send a packet , I want to mention the time of receiving a packet. printf ("message was received at time %u\n", call Timer.getNow())? What I install the code on a mote , I have : message was rece

Re: [Tinyos-help] Timer 32bit problem in Micaz

2010-03-26 Thread mgm ncm
Hi, I am using tinyos 1.x and can able to use the timer to fire every 5 minutes in micaz.I typecasted (uint32_t) 30 to the timer component. --MGM On Thu, Mar 25, 2010 at 8:43 PM, Philip Levis wrote: > > On Mar 25, 2010, at 3:15 AM, Vikram vik76 wrote: > > > Hello, > > I am using Atmega128

Re: [Tinyos-help] Timer 32bit problem in Micaz

2010-03-25 Thread Philip Levis
On Mar 25, 2010, at 3:15 AM, Vikram vik76 wrote: > Hello, > I am using Atmega128 based MicaZ motes. > I am not able to use a value more than uint32_t value for the timers > on MicaZ platform. > It accepts only uint16_t values which doesnt provide more that 65535 > milliseconds. or 65 seconds rou

[Tinyos-help] Timer 32bit problem in Micaz

2010-03-25 Thread Vikram vik76
Hello, I am using Atmega128 based MicaZ motes. I am not able to use a value more than uint32_t value for the timers on MicaZ platform. It accepts only uint16_t values which doesnt provide more that 65535 milliseconds. or 65 seconds roughly. I have a requirement for starting the timer periodically

Re: [Tinyos-help] Timer precision problem during proting to platform

2010-03-17 Thread Eric Decker
; thanx a lot for the help Vlado, >> >> greetings >> >> Attila >> >> >> >> -- >> *From:* Vlado Handziski >> *To:* Attila Strba >> *Cc:* tinyos-help@millennium.berkeley.edu >> *Sent:* Tue, March 16, 2010 5:23:56 PM

Re: [Tinyos-help] Timer precision problem during proting to platform

2010-03-17 Thread Vlado Handziski
> *From:* Vlado Handziski > *To:* Attila Strba > *Cc:* tinyos-help@millennium.berkeley.edu > *Sent:* Tue, March 16, 2010 5:23:56 PM > > *Subject:* Re: [Tinyos-help] Timer precision problem during proting to > platform > > If you like to expo

Re: [Tinyos-help] Timer precision problem during proting to platform

2010-03-16 Thread Attila Strba
___ From: Vlado Handziski To: Attila Strba Cc: tinyos-help@millennium.berkeley.edu Sent: Tue, March 16, 2010 5:23:56 PM Subject: Re: [Tinyos-help] Timer precision problem during proting to platform If you like to export a 16MHz timer, the TMicro precision tag is not appropriate. You

Re: [Tinyos-help] Timer precision problem during proting to platform

2010-03-16 Thread Vlado Handziski
eTimerC(TMilli,uniqueCount(UQ_TIMER_MILLI)); > > Init = AlarmMilli32C; > TimerMilli = VirtualizeTimerC; > > VirtualizeTimerC.TimerFrom -> AlarmToTimerC; > AlarmToTimerC.Alarm -> AlarmMilli32C; > > Thank you very much for the help, > greetings > Attila > > --

Re: [Tinyos-help] Timer precision problem during proting to platform

2010-03-16 Thread Attila Strba
16, 2010 3:46:07 AM Subject: Re: [Tinyos-help] Timer precision problem during proting to platform On Sun, Mar 14, 2010 at 23:50, Attila Strba wrote: > >Hi Guys, > > >>I am trying to port the TinyOS to the Dolphin EO3000I chip from EnOcean and I >>have a poblem with the T

Re: [Tinyos-help] Timer precision problem during proting to platform

2010-03-15 Thread Vlado Handziski
On Sun, Mar 14, 2010 at 23:50, Attila Strba wrote: > Hi Guys, > > > I am trying to port the TinyOS to the Dolphin EO3000I chip from EnOcean and > I have a poblem with the Timer precission. > > As I read from the TEP 102, it is written that the HLP timer interface > should provide either 32kHz or

[Tinyos-help] Timer precision problem during proting to platform

2010-03-14 Thread Attila Strba
Hi Guys, I am trying to port the TinyOS to the Dolphin EO3000I chip from EnOcean and I have a poblem with the Timer precission. As I read from the TEP 102, it is written that the HLP timer interface should provide either 32kHz or 1ms or 1us tick precision. The Dolphin runs on 16MHz clock. Th

Re: [Tinyos-help] Timer

2009-11-28 Thread Faisal Aslam
Dear Giuseppe, Reading this TEP will be very helpful. http://www.tinyos.net/tinyos-2.x/doc/html/tep102.html. BTW You can also create new timers yourself too. best regards, -- Faisal Aslam University of Freiburg http://cone.informatik.uni-freiburg.de/people/aslam/ Marcus Autenrieth wrote: >

Re: [Tinyos-help] Timer

2009-11-28 Thread Marcus Autenrieth
Hi, Am Sat, 28 Nov 2009 15:35:58 + schrieb Giuseppe Aiello : > i'd like to set the period of a timer to a floating value > like 5.5 ms. Is possible to do that? That depends on the architecture you are using. Some chips cannot do floating point computations. > the command startPeriodic(dt)

[Tinyos-help] Timer

2009-11-28 Thread Giuseppe Aiello
Hi all, i'd like to set the period of a timer to a floating value like 5.5 ms. Is possible to do that? the command startPeriodic(dt) takes as argument an uint32_t and so it cuts off the value to 5. Is there a way to store a floating value in a uint32? Or use a timer with Microsec. resolution? I hav

Re: [Tinyos-help] Timer accuracy in MicaZ

2009-11-14 Thread Paul Johnson
I'm not exactly sure of that particular interface in TOS 1.x but, i remember that in TOS, the milli counter ticks 1024 times per second not 1000, so this might account for some of the time difference. -Paul Mohammad S. Hashemian wrote: Hi all, In the application I'm working on, I need to kno

[Tinyos-help] Timer accuracy in MicaZ

2009-11-14 Thread Mohammad S. Hashemian
Hi all, In the application I'm working on, I need to know the exact time of a specific event, so I recorded the time turned on the mote, and I programmed the mote to put the time value in the packet as well (using Time.getLow32() and Time.getHigh32, Time is SimpleTime.Time interface), using this v

Re: [Tinyos-help] Timer - numbers of execution

2009-08-19 Thread Santiago Garcia Guillen
you can do that using a for/while loop and a variable that you update every time the timer is fired. Sent using an iPod. El 19/08/2009, a las 21:59, Daniel Souza Coelho escribió: > Hi friends > > I'm begining studing NesC and I have 1 doubt about Timer interface: > > I know I can declare

[Tinyos-help] Timer - numbers of execution

2009-08-19 Thread Daniel Souza Coelho
Hi friends I'm begining studing NesC and I have 1 doubt about Timer interface: I know I can declare a Timer using one of these ways: Timer.start(TIMER_ONE_SHOT, 3000) - 1 execution Timer.start(TIMER_REPEAT, 3000) - loop infinite I wonder if there is a third way that would make the timer

[Tinyos-help] Timer sync with FTSP

2009-06-16 Thread Andres Vahter
Hi, I think I understand FTSP basics and how sync messaging works, but I don't understand how to sync two timers. I made a TestFTSP sandbox where event Receive.receives sync messages [0x3E] and sends data to BaseStation. Timer1 should fire simultaneously on all motes - how to accomplish that?

[Tinyos-help] Timer can't be started within receive()

2009-04-06 Thread Ittipong Khemapech
Hi, This my be a very stupid question. I need a source to set its timing and send the data after the control packet from base station has been received. I start timer within Receive.receive() event but it didn't work. No data packet has been sent back to the base station. However, it works fine i

[Tinyos-help] Timer taken for the transmission of a packet and disabling CRC

2008-09-23 Thread Dinesh Koya
Hi all Can some one tell me how to calculate the time taken for the transmission of a packet. For an instance, if I am working with BlinkToRadio on one of my two tmotes and BaseStation on the other, I would like to calculate the time for the packet to reach the BaseStation from the BlinkToRadio

Re: [Tinyos-help] Timer interferes with another Timer?

2008-07-29 Thread Nicola Wegner
I have found a workaround for this one. I have put the call TimeoutTimer.startOneShot(5000); into a task and posted it. In my case this works because the timer does not have to be very accurate. Maybe it has something to do with this bug in the tracker: http://sourceforge.net/tracker/index.ph

Re: [Tinyos-help] Timer resolution of TOSSIM

2008-07-27 Thread Paul Stickney
Explanation: There is no corresponding TOSSIM module implementation. TOSSIM is a simulator, not an emulator. Look at TOSDIR/platform/mica/sim -- those are the low-level modules you get from mica[z]. (TimerMilliC wraps HilTimerMilliC, found in .../sim). Solution: (I don't know ^^) HTH, Paul On Tu

[Tinyos-help] Timer resolution of TOSSIM

2008-07-22 Thread lili
I found that in TOSSIM of tinyos-2.x, only milli-level serial timer compoents could be used (such as TimerMilliC()). Every time when I tried to use higher resolustion components such as Alarm32khz32C() and CounterMicro32C(), tossim compiliations would report errors. However, these applicatios ca

Re: [Tinyos-help] Timer array

2008-07-22 Thread Paul Stickney
See VirtualizeTimerC. On Tue, Jul 22, 2008 at 4:43 AM, Antonio <[EMAIL PROTECTED]> wrote: > Hi All, > I would like to know if is it possible to have an array of Timer in TinyOS > 2.0. > > I have a pool of Timer to manage, every Timer has the same functionality, it > can be only a parameter to chan

[Tinyos-help] Timer array

2008-07-22 Thread Antonio
Hi All, I would like to know if is it possible to have an array of Timer in TinyOS 2.0. I have a pool of Timer to manage, every Timer has the same functionality, it can be only a parameter to change. Thanks a lot for the attention, Regards, Antonio -- Email.it, the professional e-mail,

Re: [Tinyos-help] Timer function in TinyOS

2008-07-09 Thread Somnath Mitra
frequency in Hz = 1/0.0390625 (real seconds) = 25.6 Hz Hope this helped. Somnath Mitra Date: Wed, 9 Jul 2008 19:07:34 +0100 From: "Rafael Aguilar Velez" <[EMAIL PROTECTED]> Subject: [Tinyos-help] Timer function in TinyOS To: Message-ID: <[EMAIL PROTECTED]> Content-Typ

[Tinyos-help] Timer function in TinyOS

2008-07-09 Thread Rafael Aguilar Velez
Dear all, I would really appreciate if you could help me. I am using TinyOS and I am trying to understand the Timer function. As I have read the units are (depending if I am using Tmili) in binary milliseconds; it means a function of 1024 ticks per second. My doubt is this because I don't kn

[Tinyos-help] Timer interferes with another Timer?

2008-06-18 Thread Nicola Wegner
Hi, it seems as my last message from 16th of June has not been send to the list members. At least a colleague of mine and myself did not receive it although it is listed on the web. Can anybody approve this? However here it is again: Hi, I am stuck with a strange problem. I have two modules M1 a

[Tinyos-help] Timer interferes with another Timer?

2008-06-16 Thread Nicola Wegner
Hi, I am stuck with a strange problem. I have two modules M1 and M2 which contain a milliseconds timer each. After M1 has finished some processing and has stopped its timer it signals an event to a module at a higher level which then starts a function in M2. This function in M2 starts a timer whic

Re: [Tinyos-help] Timer fires before it is started

2008-05-22 Thread Urs Hunkeler
Hi Nicole, Unfortunately I have very little time right now, otherwise I would have asked you to send me the code so that I can investigate this problem directly. Just another idea: Maybe the timer value you're using is too big to handle. I vaguely seem to remember somebody saying that you cann

Re: [Tinyos-help] Timer fires before it is started

2008-05-21 Thread Nicole Neureiter
Hi, I have two timer objects in my configuration file and I used TOSSIM first on my code to see if it was running. With TOSSIM I didn't have any problems. They appeared when I put my code on the motes. I use the leds to debug on the motes and have one led for each timer. I toggle the Leds. After m

Re: [Tinyos-help] Timer fires before it is started

2008-05-19 Thread Urs Hunkeler
Hi Nicole, I agree with Eric that it is rather unlikely that there is a problem with the timers in TinyOS. Just to get the most obvious question out of the way: I'd assume you have two timer objects ("components new TimerMilliC() as MilliTimer; components new TimerMilliC() as Timer3;")? Otherw

Re: [Tinyos-help] Timer fires before it is started

2008-05-19 Thread Eric Decker
I've been through the timer code in TinyOS2 pretty throughly. It is very low likelihood (via normal code execution, I am discounting a random memory writer) that a timer can fire before it is started. There is a control cell in the timer structure *"isrunning"* that has to be set for the fire sig

Re: [Tinyos-help] Timer fires before it is started

2008-05-19 Thread Paul Stickney
I do not have a solid answer, but some things you may want to consider looking at: -Maybe you are calling it with a smaller timeout than you suspect or earlier than expected -The LED might be turned on by other code (internal or external) Paul ___ T

[Tinyos-help] Timer fires before it is started

2008-05-19 Thread Nicole Neureiter
Hi all, I have a problem using two timers under tinyos-2.x with micaz modes. I have my code ín one file and tried it. I use two timers, one, to start a function periodic and one to timeout this function and use the leds for debugging. For the Timeout timer I use the red led and another led for the

Re: [Tinyos-help] TIMER

2008-04-21 Thread Ittipong Khemapech
TEP102 should be useful to you: http://www.tinyos.net/tinyos-2.x/doc/html/tep102.html Ittipong On 21/04/2008, renjie huang <[EMAIL PROTECTED]> wrote: > > That depends. > > In tinyos-1.x, TimerC module is in milli-second *granularity. And the > minimum interval is 3 milli-second. The maximum inte

Re: [Tinyos-help] TIMER

2008-04-21 Thread renjie huang
That depends. In tinyos-1.x, TimerC module is in milli-second *granularity. And the minimum interval is 3 milli-second. The maximum interval is uint32_t * *In T2, besides milli-second granularity, * *granularity of micro-second is also supported. You can also use 32KHz clock if necessary.* ** *C

[Tinyos-help] TIMER

2008-04-21 Thread subhash nemani
what is the minimum and maximum interval for timers of tmotesky kit > ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Timer firing

2008-04-18 Thread Michael Schippling
If the received packet length field is 0 then I have no clue. I don't know what having the destpan field changed means either. Assuming that you are using a standard TOSBase basestation and your sending program is not making mistakes, you should see all your packets, either full or dropped because

Re: [Tinyos-help] Timer firing

2008-04-18 Thread Poonam Hiwal
hi , I am using Listen program, but some packets are received with payload 0 and some are complete. As I am increasing the Load in the network, the frequency of full pactes are dropping... what I found that once the destpan field of the received packet is changed automatically and after that all

Re: [Tinyos-help] Timer firing

2008-04-18 Thread Michael Schippling
That's a little fast for mica2s but should be ok for devices with the CC2420 radio. But you should see the full packet no matter what. What are you using to look at the received messages and how are you changing the lengths? MS Poonam Hiwal wrote: > Hello Everyone, > > I have one question regar

[Tinyos-help] Timer firing

2008-04-18 Thread Poonam Hiwal
Hello Everyone, I have one question regarding how much tinyos code take time to execute a application. Becaus ein my application, the timer is fired after every 32 millisecond and receiver node is receiving nearly 30 packets each of 40 bytes. It is receiving only the header of the packets not the

RE: [Tinyos-help] Timer synchronization problem

2008-03-10 Thread Murray, Ben
021504 = 10.010743 10251 * (1 / 1024) =10.0107421875 Hope that helps! -Ben > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Iñigo > Urteaga > Sent: 08 March 2008 00:50 > To: tinyos-help; TinyOS-Devel list > Subject: [Tinyos-h

[Tinyos-help] Timer synchronization problem

2008-03-07 Thread Iñigo Urteaga
Hi, I'm trying to synchronize a simulation in TOSSIM with an application running a PDE model. I have timers (using Timer) firing every 10 seconds in each node to read a variable that I am updating using the TOSSIM radio packet injection interface. From debug outputs using sim_time()/sim_ticks_pe

[Tinyos-help] timer atm2560

2008-03-06 Thread Domenico Arenga
Hello, I should get to the timer atm2560, you have some idea of the direction to take? thanks a lot, Domenico Arenga. ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-he

[Tinyos-help] Timer interval in micaZ

2008-01-28 Thread Nelson Dopico
Hello, I am currently working on the micaZ platform using TinyOS 1.1.15. Since my application needs to schedule certain tasks every several minutes or even hours, the maximum timer interval is required. Timer interface uses a uint32_t type parameter, however, it says "Unfortunately this interf

Re: [Tinyos-help] Timer running with TOSSIM 2.x

2007-12-06 Thread Vijayant Bhatnagar
i figured out the problem. I have fixed it and it is working perfectly!!! There was a minor fault in wiring. thanks, Vijayant Bhatnagar Rutgers. On Dec 6, 2007 5:42 PM, Vijayant Bhatnagar <[EMAIL PROTECTED]> wrote: > Secondly, > for the two periodic timers (with different periods), when i do ge

Re: [Tinyos-help] Timer running with TOSSIM 2.x

2007-12-06 Thread Vijayant Bhatnagar
Secondly, for the two periodic timers (with different periods), when i do getNOW(), i get the same value. From the previous threads, i could find out that there is only one reference timer. But does this mean that I can't have two timers ? How can i get the exact value of timer ? I tried doing get

Re: [Tinyos-help] Timer running with TOSSIM 2.x

2007-12-06 Thread Vijayant Bhatnagar
Even I am facing similar kind of problem. Can anyone help me please. help appreciated. thanks, Vijayant On Dec 6, 2007 1:28 AM, EunKyung Lee <[EMAIL PROTECTED]> wrote: > Dear. > > I made two timer and generate 10 nodes and run my application on Tossim. > But both of timers are fired at the same

[Tinyos-help] Timer running with TOSSIM 2.x

2007-12-05 Thread EunKyung Lee
Dear. I made two timer and generate 10 nodes and run my application on Tossim. But both of timers are fired at the same time even though I gave them a different start time. and periodic fire times. Has anybody experienced the same problem?.. Any commend will be appreciated. Thank you ___

  1   2   >