Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: charging algorithm stops and restarts
From: Uwe Freese (mail_at_uwe-freese.de)
Date: 2002-08-16


Hello,

When the charging ends (because of a delta detection) and the voltage
is lower than charge_restart_level, the charging is started again one
minute later. That happened here several times with charging really
empty batteries (where the charging stopped in the middle of the whole
charging time because of a low gradient).

Disabling charging for one minute disturbs the calculation of the
voltages and deltas and is not so nice.

Suggestion:

Add a BATTERY_LEVEL_CHARGE_END.
Do not stop charging until voltage > BATTERY_LEVEL_CHARGE_END.

Change in powermgmt.c:

change the

 if (delta < -100) { /* delta < -10 mV */
 ...(stop charging)

to

 if ((delta < -100) && (battery_level() > BATTERY_LEVEL_CHARGE_END)) { /* delta < -10 mV */
 ...(stop charging)

The same with the other delta.

The BATTERY_LEVEL_CHARGE_END should be at 85% battery voltage level.
Why not use charge_restart_level? It should be an independant value.
If the user uses deep-discharge, the value should be the same as when
he doesn't.

Bye, Uwe.



Page was last modified "Jan 10 2012" The Rockbox Crew
aaa