Hi all,
Thanks for your quick response.
Well I can say that the event ADCTemperature.getData() is never called,
only the ADCHumidity.getData() is activated.
Studying a little better my mote i found out that there is only one
sensor responsible to provide me the humidity and temperature the SHT11
from Sensirion. This means that the device is the same, therefore it
make some kind of logic to have conflicts in such cases.
Thanks,
Tiago Camilo
Philip Levis wrote:
On Mar 6, 2007, at 9:40 AM, Tiago Camilo wrote:
Hey list,
I am writing a tinyOS program where I usually check some sensors
readings. I am using boomerang with a tmote from moteiv. I have two
timers, each one responsible to call a sensor reading:
-call ADCTemperature.getData() and call ADCTemperature.getData(),
if the timers occur at the same the -async event result_t
ADCHumidity.dataReady(uint16_t data) event is called but the event:
-async event result_t ADCTemperature.dataReady(uint16_t data) is
never called.
Is this a normal procedure? How can I workaround such behavior, is it
possible? Or the only solution is not set the timer at the same time?
Thanks in advance.
It sounds like the boomerang ADC drivers don't allow concurrent
requests (they follow the 1.x model of pushing failure conditions to
the higher layer). Chances are the ADCTemperature.getData() call
doesn't return SUCCESS? If it returns SUCCESS then it is probably a bug.
Phil
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help