-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Urs,
Thanks a lot for your, that works just fine. I brought my TelosB unites from Crossbow, and it actually says on their data sheet that the Temp/Humidity sensor is a Sensirion SHT11. Once again thanks for your help. - -- Adam J. Forster Software Developer School of Computing and Information Technology University of Wolverhampton Technology Centre (MI Building) Wulfruna Street Wolverhampton WV1 1SB United Kingdom E-mail: [EMAIL PROTECTED] Web: http://adamforster.org Telephone: (+44 1902) 518529 Internal: 8529 Urs Hunkeler wrote: > Hi, > > It probably depends on the exact platform that you have and whether that > platform has the (potentially optional) sensors installed. I use Tmote > Sky with the sensors installed. You could try: > > components new SensirionSht11C(); > OscilloscopeC.Read -> SensirionSht11C.Temperature; > > Cheers, > Urs > > > Adam J. Forster schrieb: >> Hi All, >> >> I would like to test the on-board temperature sensor on my TelosB units, >> using the Oscilloscope application under TinyOS 2.0.1. From the TinyOS 2 >> tutorial I can see that by default the Oscilloscope application uses the >> platform's default sensor set in DemoSensorC.nc - which for the TelosB >> is the battery voltage. I have made the following change in >> OscilloscopeAppC.nc, from this: >> >> components OscilloscopeC, MainC, ActiveMessageC, LedsC, >> new TimerMilliC(), new DemoSensorC() as Sensor, >> new AMSenderC(AM_OSCILLOSCOPE), new AMReceiverC(AM_OSCILLOSCOPE); >> >> To this: >> >> components OscilloscopeC, MainC, ActiveMessageC, LedsC, >> new TimerMilliC(), new TempC() as Sensor, >> new AMSenderC(AM_OSCILLOSCOPE), new AMReceiverC(AM_OSCILLOSCOPE); >> >> However when I attempt to compile this I get the follow error: >> >> In component `OscilloscopeAppC': >> OscilloscopeAppC.nc:27: component TempC not found >> OscilloscopeAppC.nc:27: component `TempC' is not generic >> OscilloscopeAppC.nc:35: no match >> make: *** [exe0] Error 1 >> >> Does this mean that TinyOS 2 does not implement a temperature sensor for >> the TelosB? If so could someone please tell me how I can read the >> temperature from my TelosB units? >> >> Kind regards, -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGVXhLCYFIi4Ji36URAtUcAJ9z3qV2LW50bEESSVpjzodbJ7Y08wCeIjDx U3RnVFVEpVOfb4IBa4NWr+c= =Ytb8 -----END PGP SIGNATURE----- _______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
