if with energy you mean battery voltage level, in telosb motes you can use the 
VoltageC module and then with manipulate the read value like that:

In the configuration component

...
components new VoltageC();
AppC.VoltageRead->VoltageC;
...

In the implementation module
...
uses interface Read<uint16_t> as VoltageRead;
...
event void VoltageRead.readDone(error_t OK, uint16_t read_value){
 if(OK==SUCCESS)
  millivolt_voltage= (uint16_t)(((float)read_value/4096)*3000);
}
...

If you wish to know another kind of energy, ask the guru around here! :)

On Tuesday 05 August 2008 03:22:15 Diego Oliveira wrote:
> Hi,
> Have you got any idea how to measure the energy for your telosb motes ?
> If you had success with it, could you please give me some directions ?
> Thanks in advance.
> Diego
>
> On Jul 2, 2008, at 12:33 PM, John Paul wrote:
> > Hi,
> > I am working on a routing scheme in tinyos that takes into account
> > the energy of the mote. Can anyone please tell me whether there is
> > any way to measure the energy of the mote. I am currently working
> > on telosb motes.
> >
> > Help appreciated.
> >
> > Regards,
> > John Paul
> > _______________________________________________
> > Tinyos-help mailing list
> > [email protected]
> > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-
> > help
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


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

Reply via email to