Hi Sarfraz,
The Photo sensors are present on my Telos, so this is not a problem.
Also the problem appears to be coming from the writing/reading from the
flash.
I am taking N number of readings pack then into an array and when the
array gets full I am writing it into the flash.
When I try to read from the same location I am getting
empty values (FFFF).
Exactly the same program works perfect if I pull the temperature sensor.
Does any one have this problem, and know how to fix it?
Regards Tatiana.
On Mon, 6 Nov 2006, Sarfraz Nawaz wrote:
On 11/6/06, Tatiana Bokareva <[EMAIL PROTECTED]> wrote:
Hello everyone,
I am trying to get values from TSR sensor on Tmote sky.
I followed the example in $TOSDIR/contrib/moteiv/apps/Oscilloscope/
Did the standard
myApp.nc:
components HamamarsuC;
Main.StdControl-> HamamatsuC;
myAppM.TSR -> HamamtsuC.TSR;
in myAppM.nc
uses {
interface ADC as TSR;
}
I have a time to collect N number of readings and put in the array
event result_t SensorPullTimer.fired(){
call TSR.getData();
return SUCCESS;
}
async event result_t TSR.dataReady(uint16_t data){
atomic {
if(pos == DATA_PAGE-1){
readings[pos] = data;
pos = 0;
call SensorPullTimer.stop();
post Write_Data();
}else{
readings[pos] = data;
pos++;
}
}
return SUCCESS;
}
All I get is FFFF values even when I cover sensor with my hand. I read
from: http://www.cs.berkeley.edu/~pal/mate-web/tutorials/lesson2.html
"Note that some Telos motes do not have their sensors populated. This
causes the totalsolar and photoactive sensors to return bogus values: they
are simple ADC captures. In contrast, the humidity and temperature
functions interact with digital sensors over a bus; if they are not
populated, the VM will enter an error state."
I am not sure what this means, but does any one know how to fix it?
Otherwise can some one point me into the direction of how to get TSR
sensor
working.
It means that on some Telos motes the actual photo sensors are NOT present.
Reading these photo sensors on such a mote will return noise on that
particular ADC channel. Are you sure that the motes you are using do have
these photo sensors?
Regards Tatiana.
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help