Josep,

The normal behavior for OscilloscopeRF, is to take a reading from the photo
sensor every 125 milliseconds (1000 in your case). If the reading is below
0x0300 turn on the red LED otherwise turn it off.  Every 10 readings
transmit a packet with all 10 samples.

The number of times to take samples before sending data is found in
OscopeMsg.h (which is included in both Oscilloscope.nc and OscilloscopeM.nc
- OscopeMsg.h should be in the apps/Oscilloscope directory), BUFFER_SIZE=10.

Hope this helps!

- Scott

-----Original Message-----
From: Josep Riudavets [mailto:[EMAIL PROTECTED] 
Sent: Sunday, May 09, 2004 9:12 PM
To: [EMAIL PROTECTED]
Subject: [Tinyos-users] Duty cycling

Hi all,

I'm working in a health application, where some motes are sensing vital 
signs from the body, and send them to a PDA.

I know that time distribution in the working-process of each motes 
involves 3 periods:

* Sleeping: most of the time
* Sensing
* Sending

I'm doing some tests with the OscilloscopeRF application. I know that I 
can configure the number of sensing per second, in the next command:

command result_t StdControl.start(){
    return call Timer.start(TIMER_REPEAT, 1000);
}

In this case, the mote will get a reading every 1000 ms (so, every second).

But what does this time involve? Sensing and sending? I want to know 
exactly the time that the mote takes for getting the read, and for 
sending to the base station mote.

Thanks a lot,

Joseph

_______________________________________________
Tinyos-users mailing list
[EMAIL PROTECTED]
http://mail.Millennium.Berkeley.EDU/mailman/listinfo/tinyos-users
_______________________________________________
Tinyos-users mailing list
[EMAIL PROTECTED]
http://mail.Millennium.Berkeley.EDU/mailman/listinfo/tinyos-users

Reply via email to