Hi,

Why don't you schedule the red.read() when the radio is off?
You have plenty of time to do so.

Arik




On Sun, Dec 13, 2009 at 12:25, farooq_s <farooq...@hotmail.com> wrote:

>
> hello,
>
> I am implementing scheduling on custom built nodes using tinyos-2. My nodes
> stay awake for 250ms and then sleep for 3 sec. Now, I want to transfer the
> sensor data from one mote to the other during the wake period. Both the
> nodes wake up at the same time.
>
> the approach to collect data is as folows:
> - I sample the sensor every 500 ms and collect the data using read.read()
> and read.readdone() events.
> - After reading I transmit this data
>
> The problem is that when I do the above procedure, my timing gets distrubed
> due to read.read() events. and the synchronization breaks. I cant
> understand
> how to rectify this issue. WHat i want to do is that, the data should be
> collected but the synchronization should remain intact. In other words,
> when
> the radio is off, data should be collected and be transmitted when radio is
> turned on.
>
> Currently, I call read.read() when the radio is on. But this takes more
> time, and the radio doesnt turn off as desired, instead it turns off when
> the read.readdone() finishes.
>
> Kindly help me solve this problem.
>
> Regards,
> Farooq Sultan
> --
> View this message in context:
> http://old.nabble.com/Reading-sensor-data-tp26764874p26764874.html
> Sent from the TinyOS - Help mailing list archive at Nabble.com.
>
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>



-- 
Best Regards,
Arik Sapojnik
sapoj...@gmail.com
_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to