[Tinyos-help] TinyOS2.x - reading data from PIR
yvonne er
yvonneer85 at gmail.com
Mon Nov 5 23:35:34 PST 2007
Hi everyone,
I am using TinyOS 2.x and MicaZ to acquire data readings from my
passive infra-red (PIR) sensor. I used this command line
"z=TOSH_READ_PIR1_PIN()" to get sensor reading with OscilloscopeC.nc.
However, I get this error in cygwin: "implicit declaration of function
'TOSH_READ_PIR1_PIN'.
In addition, I have written a new PirC.nc to replace the
DemoSensorC.nc (files attached), modifying the OscilloscopeApp.nc
program as well:
{
components OscilloscopeC, MainC, ActiveMessageC, LedsC,
new TimerMilliC(), new PirC() as Sensor,
new AMSenderC(AM_OSCILLOSCOPE), new AMReceiverC(AM_OSCILLOSCOPE);
OscilloscopeC.Boot -> MainC;
OscilloscopeC.RadioControl -> ActiveMessageC;
OscilloscopeC.AMSend -> AMSenderC;
OscilloscopeC.Receive -> AMReceiverC;
OscilloscopeC.Timer -> TimerMilliC;
OscilloscopeC.Read -> Sensor;
OscilloscopeC.Leds -> LedsC;
}
Please Assist.
Thanks and Regards,
Yvonne
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PirAppC.nc
Type: application/x-netcdf
Size: 477 bytes
Desc: not available
Url : https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20071106/c58bd217/PirAppC.nc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PirC.nc
Type: application/x-netcdf
Size: 3695 bytes
Desc: not available
Url : https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20071106/c58bd217/PirC.nc
More information about the Tinyos-help
mailing list