There is probably something about the sensor itself in
your config file. Likely something like:
Main.StdControl -> mySensor;
whatever it's name might be. As well as something that
connects the Read to the actual "mySensor". You should
be able to use that name like mySensor.stop().
MS
Daniel Garcia Aubert wrote:
> Hi Michael,
>
> First, thanks for your help.
>
> How I can call Sensor.stop()?
>
> I use the sensor through interface Read. Wich looks:
>
> interface Read<val_t> {
> /**
> * Initiates a read of the value.
> *
> * @return SUCCESS if a readDone() event will eventually come back.
> */
> command error_t read();
>
> /**
> * Signals the completion of the read().
> *
> * @param result SUCCESS if the read() was successful
> * @param val the value that has been read
> */
> event void readDone( error_t result, val_t val );
> }
>
> I read tutorials and I don´t see something how Sensor.stop(); or
> Sensor.star(); Because if I use interfaceStdControl for Sensor I think
> that I can't read sensor...
>
> Any idea? or I don't need turn off sensor for low power sensing.
>
>
> 2010/3/8 Michael Schippling <[email protected] <mailto:[email protected]>>
>
> Generally the Sensor.stop() command will un-power the device.
> You then need to call Sensor.start() before read().
> MS
>
>
> Daniel Garcia Aubert wrote:
>
> Hi all!
>
> If I get data of sensor with interface Read... the sensorboard
> is always on? In simulations Avrora specifies:
>
> =======================================
> Node lifetime: 26542080000 cycles, 3600.0 seconds
>
> SensorBoard: 7.56 Joule
> on: : 7.56 Joule, 26542080000 cycles
> =======================================
>
> I use T2.1, micaZ and sensor MTS310CB
>
> How I can handle the sensorboard?
>
> Thanks in advance!
>
> --
> Daniel García Aubert
> Universidad Carlos III de Madrid.
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> <mailto:[email protected]>
>
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
>
>
>
> --
> Daniel García Aubert
> Universidad Carlos III de Madrid.
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help