Hi to all,
I have a problem that I can not figure out how to investigate.

I have an application in TinyOS 2.1.2 that have to work for a long time 
(like a year) in a deployment, the application is based on a main timer 
(TimerMilliC components) that have to fire every second: this increment 
a time counter and according to the new value take some action (like 
send a radio message, save it state on external memory, ....)

On real mote I run it on tmote node: everything works on short term 
(some day also a month) but on long term the timer seems stop work: miss 
the periodic radio message and if I reset the node miss also data on 
external memory. The time before the problem occurs is not 
deterministic: in some case happens just after a month, in other after 4 
month in some after 20 days.

I'm simulating that application using Cooja: the problems also occurs 
there. In this case the variability on the moment when the timer stop 
work is more deterministic: after 25 simulated days.

I'm trying figure what is wrong using this application simulating in 
cooja (to save time) with a Sky mote:

#include "printf.h"

module TestC {

   uses {
     interface Boot;

     interface Timer<TMilli>;

   }
} implementation {

   uint32_t counter;

   task void serve();

   event void Boot.booted() {
     call Timer.startPeriodic(1024);
   }

   event void Alarm.fired() {

     counter++;

     printf("c %lu\n", counter);

     printfflush();
   }
}

Running it in cooja have the same behaviour and lasts printed messages are:

[2196430994856] 1: c 2196426
[2196431994856] 1: c 2196427
[2196432994856] 1: c 2196428
[2196433994856] 1: c 2196429
[2196434994871] 1: c 2196430
[2196435994871] 1: c 2196431
[2196436994857] 1: c 2196432
[2196437994857] 1: c 2196433


where the value in square bracet is the simulation time, the value 
before the column is the node id and after the column is the message on 
serial port. Again they are 25 days 10h 7 min 13 sec.

How have you any idea about what can be the problem? Or any idea how I 
can investigate the problem?
Thanks for any help you can give me.

Davide




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

Reply via email to