Hi David,

>> Can I read the native sensor data using this code?

Yes, you can.  You should write sensor data to the "readings" field in the
"oscilloscope_t" structure. You can think each sensor as a different node,
then, for each sensor u can use "oscilloscope_t" struct and use a different
"id".

Ex;

Sensor1.id = TOS_NODE_ID;
Sensor2.id = TOS_NODE_ID+1;
Sensor3.id = TOS_NODE_ID+2;

etc.

>>  I don't see any obvious sensor driver code under "platform" directory

Sensorboard directory is:

"opt\tinyos-2.1.0\tos\sensorboards"

so it is not under platform directory!

Which sensor r u going to use?

--
Mehmet Akif Antepli

On Fri, Oct 30, 2009 at 4:26 PM, David Li <[email protected]> wrote:

> Hi,
>
> I am running Oscilliscope application on Iris motes with Tinyos 2.1. My
> questions is:
>
> Can I read the native sensor data using this code? I don't see any obvious
> sensor driver code under "platform" directory.
>
> Thanks.
>
> - David
>
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to