spectraphilic / wasp_sketches

Waspmote sketches develoded by our group
1 stars 0 forks source link

Review power-saving modes when battery is low #66

Closed jdavid closed 5 years ago

jdavid commented 5 years ago

When reading the battery charge in every loop we set the static variable battery to one of these 3 values (see readBattery() in power.cpp):

For instance, lets say we run loops once every 5 minutes.

If BATTERY_MIDDLE we run actions half as often (every 10 minutes in our example). If BATTERY_LOW then we run actions 1/3 as often (every 15 minutes in our example).

Besides this there're some special cases:

jdavid commented 5 years ago

Discussion :

jdavid commented 5 years ago

Basically the thing is 1st reduce frequency, 2nd stop. Starting with the network, following with the GPS, and finally the sensors.

jdavid commented 5 years ago

For example:

johnhulth commented 5 years ago

Iridium Austfonna.xlsx

This is how I would like it to work on the two stations that i install on austfonna.

jdavid commented 5 years ago

Ok that means these changes:

I think we can do that for every mote, since this power-saving behaviour is coded. It looks to me better than what we've now.

Since we're changing thresholds for lithium-ion battery we change them as well for lead-acid batteries?

johnhulth commented 5 years ago

We don't use Lead-acid any more, so no need to adjust these values.