Hello, I am wondering how I can return and display the battery level of
micaz motes. I wish to retrieve battery levels from micaz motes and
broadcast these values to other motes who will store them in a table,
perhaps to try routing via these values and AODV, and am wondering how to go
about this? I Am very lost at the moment.
To get the voltage do you use VoltageC.nc from /platforms/mica? I see
references to VoltageM also but can not locate that, is that removed? In the
Oscilloscope examples I see that DemoSensorC is wired to VoltageC but does
it return the voltage or some constant value as is said in the comments of
the file. The code for DemoSensorC for micaz
generic configuration DemoSensorC()
{
provides interface Read<uint16_t>;
}
implementation
{
components new VoltageC() as DemoChannel;
Read = DemoChannel;
}
is very similar to that of DemoSensorC for telosB
generic configuration DemoSensorC()
{
provides interface Read<uint16_t>;
}
implementation
{
components new VoltageC() as DemoSensor;
Read = DemoSensor;
}
with only the last line changing. Why does the the former report a constant
value and the latter the voltage of the battery?
Thanks!
--
Paul
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help