maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   Trouble calibrating my new N900 battery (https://talk.maemo.org/showthread.php?t=96977)

marmistrz 2016-07-16 08:42

Trouble calibrating my new N900 battery
 
My old battery was so worn out that I got a 1600 mAh replacement.

I charged my battery on Thursday in the late evening. bnf reported that VDQ = 1.

I was mildly using the phone during the next day, checking e-mail, browsing the net, calling - nothing unusual.
IIRC when I went to bed yesterday, it was still VDQ=1, voltage V ~= 3400 mV.

Today I woke up, VDQ=0, voltage V ~= 3300 mV. After a while BME decided the battery is almost dead and the deviced turned off.

Why did VDQ turn to 0 when the device was idle? Can I do something to calibrate my battery?

elros34 2016-07-16 08:57

Re: Trouble calibrating my new N900 battery
 
First of all I would stop bme (when battery is low) to give battery chip chance to calibrate. Then it's a matter of few full charge discharge cycles.
Quote:

The thing is, that when chip detect fully charged battery (by it's measurement - this may be totally unrelated to real state of charge [SoC]), it tells to himself "I can start learning capacity" - by switching special eeprom value "vdq" from 0 to 1 (valid discharge quality, probably). Then, if during discharge, a condition - that may render learned value wrong - occur (like excessive low/high temperature, very strange voltage difference in short time, rebooting/turning off phone), it immediately switch "vdq" to 0, scratching all learned capacity data, and still using old one (if any present). Next vdq=1 may be achieved only, by charging again to 100%.
Turning on/off display is very power hungry so maybe lower your brightness next time.

marmistrz 2016-07-16 09:30

Re: Trouble calibrating my new N900 battery
 
Why will the battery not calibrate with bme on?
Will it be enough to modprobe -r bq27x00_battery (using the bme replacement)

You think that turning the screen on caused vdq=0?

elros34 2016-07-16 11:04

Re: Trouble calibrating my new N900 battery
 
Its explained here http://talk.maemo.org/showpost.php?p...&postcount=846. BME can turn off device before calibration complete but AFAIK Pali's BME replacement have different voltage threshold and it working better.
Still you need avoid high pick current which could lead to decrease voltage and cause turn off.
I am not sure about display and vdq issue but turning it on lead to ~10mA -> 200mA so voltage can drop.
I have never serious problems with battery calibration. With stock BME I just disable it and leave phone with display on and low brightness until it shutdown. Similar with bme replacement but I don't need to disable anything. Try 2 or 3 times and there is no way it will not work.

marmistrz 2016-07-18 07:07

Re: Trouble calibrating my new N900 battery
 
Left for the night yesterday, with ~3500 mV, VDQ: 1. With disabled GSM, screen on the lowest brightness. Woke up, voltage ~3450 mV, VDQ: 0. :(

Brodyga 2016-07-18 12:07

Re: Trouble calibrating my new N900 battery
 
Which battery do you bought and from where?
It can be very useful.

elros34 2016-07-18 12:21

Re: Trouble calibrating my new N900 battery
 
Maybe its because bme replacement. It's well know fact it behave strange e.g. in specific situation it can give you no information about your charge level.
Did you try watch -n 5 bq27200.sh (probably you will need add -f option to i2cget commands)? It will give you much more info.

From documentation:
A learning cycle can be disqualified by any of the following conditions:
1. Cold temperature: Temperature ≤ TCOMP[3:0] (°C) when the EDV1 threshold voltage is reached.
2. Light load: A capacity learning cycle is disqualified if average current is less than or equal to 2 times the
initial standby load when the EDV1 threshold voltage is reached.
3. Fast voltage drop: VOLT ≤ (EDV1 – 256 mV) before EDV1 is set.
4. Excessive charging: Cumulative Charge > 255 NAC counts (910 µVh) during a learning discharge cycle
(alternating discharge/charge/discharge before EDV1 is set).
5. Reset: VDQ is cleared on all resets.
6. Excessive self-discharge: NAC reduction from self-discharge estimate (0.195%) performed 64 times.
7. Self-discharge at termination of learning cycle. If self-discharge estimate causes NAC ≤ LMD/16, VDQ is cleared.

http://www.ti.com/lit/ds/symlink/bq27200.pdf

marmistrz 2016-07-18 19:07

Re: Trouble calibrating my new N900 battery
 
I have a maxximus replacement.

I downgraded bme to stock, see what happens here.
What's interesting: vdq turned to 1 before the green led lit!

Brodyga 2016-08-04 07:36

Re: Trouble calibrating my new N900 battery
 
Any news about a battery? How long it keeped a charge?

marmistrz 2016-08-04 07:55

Re: Trouble calibrating my new N900 battery
 
Hi,

I removed the BME replacement, on stock BME it calibrated without any hassle, without even turning off BME.

I measured 1282 mAh, so much less than given. But it's not much less than the original battery, and the price is almost the same, so I'll keep it.

On GSM, normal usage, connecting to WiFi on-demand (my normal usages) I get up to 2 days of use.

dedista 2016-08-08 08:35

Re: Trouble calibrating my new N900 battery
 
Quote:

Originally Posted by marmistrz (Post 1511704)
Hi,

I removed the BME replacement, on stock BME it calibrated without any hassle, without even turning off BME.

I measured 1282 mAh, so much less than given. But it's not much less than the original battery, and the price is almost the same, so I'll keep it.

On GSM, normal usage, connecting to WiFi on-demand (my normal usages) I get up to 2 days of use.

Hi!

I made a custom battery. I have some N9 battery with 1450mAh capacity. Replaced the battery protect circuit with the bl-5j's. Now I have a wonderful new battery. :)
The only problem, that I cannot calibrate it.

My method was:
1. Charge it full.
2. sudo gainroot; sh bq27200.sh
3. waiting for battery low alert.
4. sudo gainroot sh bq27200.sh 5
5. Wait until it switch off..

What did I wrong? After switch it back It says I have 1713mAh. But the status area indicator says 1292mAh. It is not consistant.

How can I make it for equivalent?

Thanks for your reply!!!

peterleinchen 2016-08-08 08:56

Re: Trouble calibrating my new N900 battery
 
Just continue doing the same until capacity stops decreasing.
Calibration takes a few cycles...

dovf 2016-08-15 16:34

Re: Trouble calibrating my new N900 battery
 
Hi!

I'm also having some battery status reporting trouble; a new battery, the trouble started after a few weeks of use -- stopping to charge at 80% (as reported by battery-eye / status area), after clearing the data in battery eye, not seeing any charge info at all, etc.

At first I suspected the battery, but over the past few days I've done some calibration using bnf/bq27200.sh, and the battery itself seems to be doing great -- the numbers reported by the scripts are behaving consistently, and I'm getting good use out of each charge. However, the reporting in battery eye / hal / status area is still acting weird.

1. Is the calibration supposed to affect those, or are there two separate battery-status-reporting entities here?

2. I'm not even sure if I'm using stock BME or BME replacement -- how can I check? (I'm on CSSU Stable, switched to kernel-power-53 only about a month before getting the new battery; I didn't explicitly switch to BME replacement, but it's not clear to me if that happens automatically with kp53?)

Thanks!
Dov

chuvy 2016-09-05 10:50

Re: Trouble calibrating my new N900 battery
 
Hello,

My steps:
1. modprobe -r bq27x00_battery
2. bq27200.sh
Quote:

LOOPMODE=0
Reading values...........................done.

CSOC: 75 % RSOC: 75 %
Average Current: 191 mA
TTF: 65535 minutes TTE: 461 minutes
NAC: 1468 mAh CACD: 1468 mAh CACT: 1468 mAh
SI: 10 mA STTE: 8227 minutes
MLI: 979 mA MLTTE: 88 minutes
AR: 0 mA ARTTE: 65535 minutes
Last Measured Discharge: 1943 mAh
Cycle Count since Learning: 16 Total Cycle Count since last full reset: 16
Reported Battery Voltage: 3745 mV
Battery Gauge die Temperature: 28 C
Flags: 0x14
Charge:0 NOACT:0 IMIN:0 CI:1 CALIP:0 VDQ:1 EDV1:0 EDVF: 0
eeprom data:
ILMD=1958 EDVF=3000 EDV1=3248 ISLC=19
DMF=14700 nanoVolt SD=201 thousandths of percent per day
AGELMD=1 TAPER=97 mA
IMLC=979 mA
3. bq27200.sh 5
Quote:

mv RSOC CSOC mA NAC CACD CACT TTF TTE TEMP EDV1 VDQ
03:03 3503 53 53 -35 1027 1027 1027 65535 1752 26 0 1
03:03 3192 53 53 -124 1026 1026 1026 65535 495 26 0 1
03:03 3351 53 53 -251 1026 1026 1026 65535 245 27 0 1
03:03 3261 53 53 -121 1026 1026 1026 65535 507 27 0 1
On those last values the n900 turns off. GSM was turned off and Brightness was on the low level. But EDV1 and VDQ was not changed.
I am found here:
Quote:

https://wiki.maemo.org/Bme_replacement
Pali: Add two gconf values. First (bool) to enable shutdown device at EDV1 flag, second (int) to shutdown device at specified <= voltage. Default values: bool = true and int = 3150 (as suggested)
But not know which parameters must be changed with the gconf.
I use BME re and kp53.

Thanks.

chuvy 2016-09-06 00:31

Re: Trouble calibrating my new N900 battery
 
Sorry, i am found that instruction on the http://talk.maemo.org/showpost.php?p...93&postcount=2
By this instruction calibration was made.

Thanks.


All times are GMT. The time now is 12:46.

vBulletin® Version 3.8.8