Hi,

 

I have added the HumidityControl.start ()  call into the StdControl command and 
now I have checked that the command Temperature.dataReady() and 
Humidity.dataReady() are called after call Humidity.getData()

 

But when I send the data into a message to TOS_BASE, sendDone method is either 
called, however, no message is actually recieved in TOS_BASE. This problem just 
happens with Humidity or Temperature measures, because TSR and PAR are sent 
right.

 

ANy hints?

 

Thanks in advance

 

De: nitya tharakan [mailto:[email protected]] 
Enviado el: viernes, 11 de diciembre de 2009 16:14
Para: David Conde; [email protected]
Asunto: Re: [Tinyos-help] Problem getting data from Humidity/Temperature Sensor 
in Telosb

 

I am working on the same environment tinyos 1.0  and have a similar issue with 
dataready events for  temperature and humidity. Everytime always the 
temperature data ready event gets called. I have separated out the interfaces 
for both.The timers and ADC for temperature and humidity.I am using different 
timer repeats for both , but still the  problem persists.Is it a hardware 
problem or somethings wrong in the software.Is there a specific of using timers 
if is using a sensor to switch modes between temperature and humidty.

Has anybody implemented this before.

 

It would be of great help.

 

Thanks

 

 

  _____  

From: David Conde <[email protected]>
To: tinyos-help <[email protected]>
Sent: Fri, 11 December, 2009 8:09:59 AM
Subject: [Tinyos-help] Problem getting data from Humidity/Temperature Sensor in 
Telosb

Hi,

 

I have developed an application in order to get environmental measures by 
sending Command Messages from TOS_BASE mote.

 

The strange situation is that there is no problem whenever I send either PAR or 
TSR Light query measures, since I am getting the measures from the nodes in a 
good way, so why do I have problem with Sensirion sensor with Humidity and 
Temperaature?

 

I write my code below:

 

event TOS_MsgPtr QueryNowReceive.receive(TOS_MsgPtr m){

            TOS_MsgPtr copymessage = m;

            struct QueryMeasureNowMsg  * querynowmsg = (struct 
QueryMeasureNowMsg *) copymessage ->data ;

            TOS_Msg responsemsg; 

          struct ResponseMeasureNowMsg * connectresponsemsg = (struct 
ResponseMeasureNowMsg *)(responsemsg.data);

          //

          if (CONNECTED && (copymessage -> addr  == TOS_LOCAL_ADDRESS) ) { // 
EL mensaje era para mi

            if ( (querynowmsg-> measuretype) == TEMPERATURE_TYPE){

                  call HumidityControl.start();

                  TemperatureNow = TRUE;

                  call Temperature.getData();

            } else if  (querynowmsg-> measuretype == HUMIDITY_TYPE) {

            //    call Leds.yellowToggle();

                  call HumidityControl.start();

                  HumidityNow = TRUE;

                  call Humidity.getData();

            } else if (querynowmsg-> measuretype == PAR_TYPE) {

                  call HamamatsuControl.start();

                  PARNow = TRUE;

                  call PAR.getData();

            }else if (querynowmsg-> measuretype == TSR_TYPE) {

                  call HamamatsuControl.start();

                  TSRNow = TRUE;

                  call TSR.getData();

            }……

 

Each time the node receives a message QueryNowReceive type, check the 
measuretype value and if it is HUMIDITY_TYPE then makes a call to 
Humidity.getData(), the problem is that Humidity.dataReady is never called.

 

Any hint would be great

 

Environment: TinyOS 1.x

 

Thank you in advance

 





  _____  

The INTERNET now has a personality. YOURS! See 
<http://in.rd.yahoo.com/tagline_yyi_1/*http:/in.yahoo.com/>  your Yahoo! 
Homepage.

_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to