[Gta04-owner] bq27000-battery: battery is not calibrated! ignoring capacity values

Radek Polak psonek2 at seznam.cz
Tue Feb 5 10:22:15 CET 2013


On Tuesday, February 05, 2013 08:36:43 AM Dr. H. Nikolaus Schaller wrote:

> So what do we do if the charge_full value is not available?
> 
> I can propose to use the battery voltage and simply estimate the filling
> level by
> 
> 100 * (Vbatt - 3300 mV) / (4250 mV - 3300 mV) => charge level in %
> 
> This is a rough estimate (and may indeed become negative some minutes
> before the device shuts off - the GTA04 works down to ca. 3.2V).
> 
> And reading the real Vbatt goes through the hwmon
> (/sys/devices/platform/twl4030_madc_hwmon/in12_input). For sample code see
> here:
> 
> http://git.goldelico.com/?p=gta04-rootfs.git;a=blob;f=debian/config/root/ch
> arger
> 
> This also works with the GTA01 battery.
> 
> Nikolaus

This sounds good. I think i'll do it that way in QtMoko then...

Regards

Radek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.goldelico.com/pipermail/gta04-owner/attachments/20130205/b00c519d/attachment.html>


More information about the Gta04-owner mailing list