[Tinyos Core WG] Issue with sampling multiple sensors

David Gay dgay42 at gmail.com
Tue May 22 14:09:51 PDT 2007


The thread that starts with
http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2007-May/024986.html
("I can't sample X&Y acceleration at more than 31Hz!") brings up a
limitation of ReadStream:
how can one sample a group of sensors at high rates?

It's easy enough to sample one sensor at a high rate, or several
sensors in succession. But if I want 200Hz sampling of X&Y
acceleration simultaneously, there doesn't seem to be a very good
answer?

Possible current solutions:
- go low level, using Resource to reserve both sensors and ReadNow to
sample them (i.e., do ReadStream by hand) - this requires the
sensorboard to make *Now versions of each sensor available (the mts300
doesn't...)

- have the sensor provide all reasonable sensor groups (e.g., X, Y and
X&Y) - painful for more than two sensors

Possible future solutions:
- some interface to sampling groups of sensors? could be icky...

Anyway, something I noticed from that thread rather than any good answer.

David


More information about the Tinyos-2.0wg mailing list