Hi Daryoush
I have checked the sensor board folder but it includes only external sensor
boards.
Checking the TEP about sensors I have modified the VoltageC.nc file
/*generic configuration VoltageC() {
*provides interface Read<uint16_t>;
*}
*implementation {
* components new Msp430InternalVoltageC();
* Read = Msp430InternalVoltageC.Read;
*}
*/
generic configuration VoltageC() {
provides interface Read<uint16_t>;
provides interface ReadStream<uint16_t>;
provides interface DeviceMetadata;
}
implementation {
components new SensirionSht11C();
Read = SensirionSht11C.Temperature;
ReadStream = SensirionSht11C.TemperatureStream;
DeviceMetadata = SensirionSht11C.TemperatureDeviceMetadata;
}
im getting two errors now
In component `VoltageC':
/opt/tinyos-2.1.1/tos/platforms/telosb/VoltageC.nc:61: cannot find
`TemperatureStream'
/opt/tinyos-2.1.1/tos/platforms/telosb/VoltageC.nc:62: cannot find
`TemperatureDeviceMetadata
Not sure if this is right way to go ?
any ideas welcome.
Thanks
Faisal
On 17 October 2010 15:17, daryoush bayat <[email protected]> wrote:
> Hi faisal,
>
> you should wire your read interface to SensironSht11C component ( in the
> sensor boards file) for reading temperature and humidity on telosB motes.
> I'm not sure about the light sensor.
>
> daryoush
>
> ------------------------------
> Date: Sun, 17 Oct 2010 15:07:57 +0100
> From: [email protected]
> To: [email protected]
> Subject: [Tinyos-help] Using TelosB 2420 onboard sensors
>
>
> Hi
> I am new to tinyos and following the tutorial. I have run the oscilloscope
> app. with two telosb 2420. It seems to work fine but displays a constant
> line graph. I want to now use the light , temperature sensors to display on
> graph. Checking DemoSensorC.nc shows VoltageC as DemoSensor. How can this
> be changed this to light or temp?
> Thanks
>
> Faisal
> Kingston University,
> London.
>
> _______________________________________________ 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