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){
callHumidityControl.start();
TemperatureNow = TRUE;
callTemperature.getData();
} elseif (querynowmsg-> measuretype == HUMIDITY_TYPE) {
// call Leds.yellowToggle();
callHumidityControl.start();
HumidityNow = TRUE;
callHumidity.getData();
} elseif(querynowmsg-> measuretype == PAR_TYPE) {
callHamamatsuControl.start();
PARNow = TRUE;
callPAR.getData();
}elseif(querynowmsg-> measuretype == TSR_TYPE) {
callHamamatsuControl.start();
TSRNow = TRUE;
callTSR.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 your Yahoo! Homepage.
http://in.yahoo.com/_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help