Hi all,

I'd like to synchronise the nodes.
For this I've booted them at the same time as you can see below.

for n in nodes:
        n.bootAtTime(33);

After the first time I can not execute the instruction at the same time.
For the first time all nodes turnOn the radio together.
You can see the split of code below in the fired method.

     if (readRadio++ > RADIO_READ) {

       // turn on RADIO
       if (readRfid == (RADIO_READ+2)) {
         turnonRadio();
         dbg("LogFile", "turnON/Radio\n");
         return;
       }

       // wait four seconds until the uart queue gets empty
       if (readingRadio++ > RADIO_READING) {
         turnoffRadio();
         readRfid = 0;
         readingRfid = 0;
         dbg("LogFile", "turnOFF/Radio\n");
       }

     }

I know the synchronization in a real environment is very difficult,
but is it possible to synchronize the nodes in the TOSSIM?

Thanks all
Daniel Patrick
_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to