In TinyOS, a read from a sensor is generally split into two phases: the request, and the read. You make the request for a reading from your ADC (or whatever the sensor's connected to) and then go off and do other things. At some point, you recieve an event which signals the return from that read.
Both the request and the read are special functions. I'd suggest that you read the latest version of the TinyOS programming manual; you can find it here: http://csl.stanford.edu/~pal/pubs/tinyos-programming-1-0.pdf
- Conor
On 7/23/06, Alexandre Bergel <[EMAIL PROTECTED]> wrote:
Hello,
A sensor is inherently asynchronous. You ask a sensor for a
measurement, and you wait for a callback that notifies you.
Anyone knows how long this usually takes ? Is there any way to
measure the time taken to get a notification ?
Does it make sense to do some computation while waiting for a
callback from a sensor ?
Sorry if this question looks naive. I am new in sensor networking :-)
Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel http://www.cs.tcd.ie/Alexandre.Bergel
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
