yashsingh1/xdaforums huggingface dataset:
[Nexus One Android Development] RogerPodacter:
Yes you got hit with the time out bug at 1 hour in. We increased the time out poll to 3 hours, but I'm not sure which kernels incorporated that change yet. Pershoot did, and cyanogen and I think wildmonk. Other than that I'm not sure.
[Nexus One Android Development] overground:
Finally!

A successful learn cycle on my OEM. I think. Weird that my aged is so high. :)
[Nexus One Android Development] mtw4991:
It shouldn't be 100% try manually power off/on, age should reset itself
[Nexus One Android Development] overground:
I did that right after the cycle. I've been reading. I powered off, then on. Not a reboot. So maybe no success after all?

EDIT: Just powered off/on again. Still @ 100% age :(
[Nexus One Android Development] 19blacktiger77:
My battery age is 90%, but if i charge with phone switch off, it reset itself to 94... :confused:

I tried to set manualy editing setreg 0x14 74 and if i reboot stay at 90%.

But if i charge with phone turn off it will reset... :mad:
[Nexus One Android Development] zen kun:
this app crash on evil nextsense

its based on IR kernel, or do i need an special kernel???

thanks in advance
[Nexus One Android Development] chowlala:
We're all using either pershoot's or wildmonks kernel with the new battery driver stuff.
[Nexus One Android Development] zen kun:
ok i will try wildmonks thanks :D
[Nexus One Android Development] j3di:
Got my new 1600mAh battery, haven't done a learn cycle yet. Full40 is set to 27306 and Capacity is at 104856 currently. Can't change Full40, also tried setreg 0x10 04, no change. Changed Aev but it reset after a powering off and on again.

Also Battery voltage is still at 4138.45mV and doesn't appear to be dropping after use overnight. I haven't done a full charge yet but are some of these values Maximum register values possible and are maybe not being read or are corrupt??

The Battery Percentage is slowly dropping in the App and is now at 23% and the Battery icon on the Status Bar seems to reflect this. I have reset the phone couple of times without change, the PORF is not lit but the UVF is. I'm thinking I won't be able to carry out a learn calibration with this battery? :-(

Only values updating are Battery temp and battery percentage. The battery dropped right down to 0%, then powered off. All the time Battery register flicked slowly between 0x01 and 0x05. I didn't see any other flags set before it powered down.

I wonder if the security is enabled in the ds2784 chip which prevents anything from being updated?

Edit: OK, fully charged now. Atleast CHGTF has been set! UVF was lit also, i toggled the button and it didn't return. All other values remain unchenged from earlier!
[Nexus One Android Development] j3di:
Dump Register shows lots of FF's!!

00: 0f 01 ff ff 01 e8 17 17 02 0e 18 92 69 ff 0f ff

10: 07 13 0e 82 80 80 7f 8c 02 38 00 90 ff ff ff 00

20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

60: ff ff 0d 10 d2 06 a4 0f 07 43 ff ff 01 0e 0c 3a

70: 0a 0d 1d 1a 04 08 05 07 04 23 03 fd 1e 14 0a 1d

b0: 00 00

After full charge:

00: 0f 01 ff ff 01 e8 64 64 02 10 18 11 69 ff 02 ff

10: 08 13 0e 84 80 80 7f 8c 02 38 00 90 ff ff ff 00

20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

60: ff ff 0d 10 d2 18 af 0f 07 43 ff ff 01 0e 0c 3a

70: 0a 0d 1d 1a 04 08 05 07 04 23 03 fd 1e 14 0a 1d

b0: 00 00
[Nexus One Android Development] mtw4991:
I thought that with the 1205 v.8.7 app that the app would bump up the mAh at <70mAh remaining even if learnf wasn't toggled on? Mine is at 59mAh @5% and hasn't been bumped up yet. Maybe I misunderstood.
[Nexus One Android Development] __max__:
It happens somewhere between 70 and 30 mAh, mine has updated on 32, 57, 63 in three times i reached the learn flag..

So i think there's at least another check plus < 70 mAh
[Nexus One Android Development] mtw4991:
Yep, that's right...<70mAh and <3201+.2=<3401 and I was about 3420 lol! So effectively, this will assure that we get down to 3201 empty.
[Nexus One Android Development] Zappletoo:
I can't access the jonrichards.net website..

Does anyone know a mirror where I could get the .apk ?

Or could attach it here maybe ?

Thanks! :)

Edit: Nevermind, it works now.
[Nexus One Android Development] RogerPodacter:
Yes the nexus battery ds2784 chip for some reason resets age register for some reason. It's not supposed to but we don't know why it happens. You just have to manually set it back till we build the app to memorize it for you.
[Nexus One Android Development] RogerPodacter:
Interesting that you have some ff's in there for registers that usually are active for other batteries. You should tell us where this one was purchased. Later I'll look at it closer and see what registers you could fix. But is your full40 seriously set to 27000 or something like that? If so I think that means that register is inactive and max out at ff. We can fix that.
[Nexus One Android Development] RogerPodacter:
Ah see that's what I was saying before, the sign backwards means you could get below 70mAh but still be above the voltage therefore not trigger the acr bump up. Sorry I've been slacking lately and not gotten the next app version out. Been so busy lately but today I have some free time. And I think dvgrhl does as well... :-)
[Nexus One Android Development] j3di:
My 1600mAh battery was an £8 Ebay UK purchase. I have emailed the ebay shop and told them the battery is not working correctly so they are sending me a replacement. If you think I can fix some of the registers that would be great!
[Nexus One Android Development] RogerPodacter:
Well we can definitely determine the correct values and setreg them to what they are supposed to be. I just hope that those registers in question aren't somehow hard coded at ff or something crazy like that.

As a test you should use the app to set your full40 to something sane and see if it accepts it and changes it. Maybe save a copy of your original dumpreg and then the updated dumpreg, or just save some screen shots etc. If your full40 sets then most likely all of them can be set.
[Nexus One Android Development] j3di:
Well the following registers seem to be fixed:

Voltage (4138.45mV)

Current (428.666mA)

Full40 (27306mAh)

Capacity (104856mAh)

Setting Full40 in the latest app has no effect.

Age is already at 100%

PORF doesn't set after cycling phone power.

Min Chg Current doesn't stick if altered and you cycle power.

Temp flicks between 24.8 and 24.0

Battery Status Register flicks between 0x01 and 0x05

The only thing that seems to work is the Green battery percentage, along with the animated battery icon in the status bar.

I think this battery chip is either locked out for some reason or buggered!
[Nexus One Android Development] RogerPodacter:
That's a shame. If you run the full40 calculation thru with both registers max at ff, you get 27, xxx mAh something or other. So that is why your full40 is so high, cause the reg is hard coded to max. Must be a cheap version of the ds2784 chip that they used, not really sure. Good luck:-)
[Nexus One Android Development] djn541:
Anyone seen this? Comes with a charger too!:D

http://cgi.ebay.com/1600mAh-battery...597760?pt=PDA_Accessories&hash=item3f05a45e40
[Nexus One Android Development] __max__:
I did another learn cycle through the night, i ended with:

<6>[44116.092987] batt: 91%, 4197 mV, 19 mA (19 avg), 23.5 C, 1291 mAh

<6>[44166.306457] batt: 100%, 4197 mV, 19 mA (19 avg), 23.5 C, 1286 mAh

<6>[44166.355377] batt: charging BATTOFF [FULL]

So, if i understand well, i should have age set to 91, after shutdown/boot i have age set to 90. Should i change it by hand to 91 or let it at 90?

Setup: full40 1452mAh, 20mA, 3201mV

Also, what does the value aged capacity means?
[Nexus One Android Development] zen kun:
i try use the search on this forum and no results, i just got and chinesse extended battery its 3000 mah i want to calibrate so im wondering how much i set full40 or what can i do?? thanks in advance
[Nexus One Android Development] krypticos:
I tried to recalibrate my battery but when I was at 1% and 3500 mv my phone shutdown before it set the flag off and and it would work what is the best way to get around this problem.

Thanks in advance.
[Nexus One Android Development] mtw4991:
What version of the app are you using?
[Nexus One Android Development] RogerPodacter:
You need the new version we are gonna release soon as it looks like you ran out of mAh but your voltage difference did not reach the trigger point for the acr write, so you shut down because of no more mAh from the numbers you posted.

I actually made the changes but keep getting a force close, so I'm gonna see if dvgrhl can look at it first. I was just about to post it last night too.
[Nexus One Android Development] krypticos:
Thank you for the quick response. I will await the updated app so I guess ill recharge my nexus and stop using this backflip.
[Nexus One Android Development] RogerPodacter:
You could use the existing version if you don't wanna wait. You would just have to do the acr write manually yourself before you run out of mAh when you get down low.
[Nexus One Android Development] RogerPodacter:
You could first post your full40 and maybe dumpreg, then just give it a shot with the app. When you charge to full watch and see where it jumps to full, if it jumps at all. That would give you an idea. Take logs or screen shots and post them.
[Nexus One Android Development] krypticos:
How do I do this and since it didn't work I charged it back up a little and im draining it as we speak. Well this effect anything or should I drain from full.
[Nexus One Android Development] RogerPodacter:
I was going to suggest charge for a few min and try again, I just wasn't sure if it would totally work since your voltage is high since it died at 3.5volts, so I'm not sure it will trigger learn flag. Also did you initially lower your empty volt to 3.201volts? If so then it definitely prob won't work till you get your volts lower.

The manual way, for you I would just setreg 0x10 05 to give you some room. That should let you drain fully to empty volt.
[Nexus One Android Development] krypticos:
No I didn't change my empty volt its set to 3.416. My battery status reg is 0x07. Im sorry I must have forgot a step. I thought I opened program and set 100% and full40 to 1452. Then drain. Ill try again but im setting at 3659.5 mv- 9% left-current mah cap 123.
[Nexus One Android Development] zen kun:
Thanks here its the ss

.......................................................

Sent from my loved nexus one ;D
[Nexus One Android Development] RogerPodacter:
Oh ok then the acr should have happened. Do you have that setting turned on in settings?

You are right in your steps, you don't have to change empty volt. Some people do that so I was just wondering. So in your case just try again after a few min of charging.
[Nexus One Android Development] zen kun:
seems the files wasnt attached well so here its bigger
[Nexus One Android Development] krypticos:
Acr is on and I changed my empty voltage so now im setting at baterry registry is 0x27 volts 3659.73 5% left and mah of 73. Thank you for your help so fair im very greatful for people like u helping dunces like me lol
[Nexus One Android Development] RogerPodacter:
Ok so your full40 is set to max, so that's why no acr write happened. And that's fine you don't technically need it with so much mAh for now (even though its false mAh, you could try setting a reasonable number and see if it sticks). But for now, the learn flag should have come on. Just keep trying I guess.

Actually when shut down it probably reset your mAh to zero, so the write may actually kick in. Either way give it a few shots and let us know.
[Nexus One Android Development] krypticos:
Ok thank you I will let you know

Current is 3635.19 -2%-36 mah
[Nexus One Android Development] krypticos:
Well it got to 3579 mv 1% and 11mah and then shutdown so I guess ill wait because I don't think its going to work for now
[Nexus One Android Development] dvgrhl:
Updated probably our last beta version here for testing: http://jonrichards.net/xda/battery_calibrator/BatteryCalibrator20101212.zip Thanks again to everyone who is giving this a try and giving us feedback.

Here is a list of some changes:

SU request now happens when ACR is enabled in the settings menu. This prevents the SU popup from happening when the ACR write needs to happen, which could create a delay and cause the ACR write not to happen in time.

Fixed bug where ACR write happened regardless of whether learn detect mode was enabled or not.

ACR write now happens when available capacity drops below 70mAh but remaining voltage is above 0.3. This should give more time for the battery to enter learn mode before the phone shuts itself down due to low power remaining.

Aged capacity is no longer a static number.

Pending any bugs, Roger and I are going to focus some time now on improving the UI. We'd like to clean things up a bit and make a more polished look.
[Nexus One Android Development] RogerPodacter:
Thanks Dvgrhl, i'm actually in the middle of a learn cycle with the new app. so far its working perfect.

speaking of that, i'm doing the cycle on my newer battery for the first time, and it seems my full40 is set too low for stock. my stock full40 is set to 1452, age 100, and i drained from full and ran out of mAh but still at 3.5 volts. so i bumped it up by 100mAh and then continued draining and hit learn mode.

maybe i have a strong stock battery that possibly is near 1500mAh of capacity. curious to find out.;)
[Nexus One Android Development] RogerPodacter:
ok this is crazy, i am currently about to score over 100% on a learn cycle. in fact i had to increase my full40 from 1452 to 1500 because i was running out of room near the top of the learn. this is all with my stock battery, the newer one. i was the one who claimed we've never seen a learn mode hit above 90%, and the whole time i had a battery that did it lol.

i bought it from amazon few months ago, but it came thru some retailer out of new york. pretty impressed so far.
[Nexus One Android Development] MartinodF:
I'm doing my first learning cycle (sadly with the old app, I begun two hours before the new beta arrived). I hit learn mode without any problem on the first try, ACR automatically bumped the capacity at around 3.34v, then it went down to 3.201 with ~180mAh remaining.

I have some doubts about the usefulness of setting the min charging current as low as 20mA

. I have been monitoring the charging process for about an hour now as it reaches the end, writing down current and capacity every minute. (note: I'm using an iPhone wall charger instead of the HTC one because I bought the phone on launch day from USA and I can't use the original charger as it won't fit my wall socket. Moreover, original accessories for the Nexus One are nowhere to be found here in Italy. The charging process seems to be a bit slower, but it shouldn't be so different since both chargers have a rated output of 5V/1A).

If I recall correctly, the standard minimum charging current would be 80mA. In my case, it would have stopped at 1195mAh (82.3% battery life), in 4:40.

Current is now 32mA, and the capacity seems to be reaching a maximum around 1230-1235mAh. Using Excel's exponential and polynomial trending functions, I predicted I will hit 20mA at 1232mAh soon. The problem is that it's going to take a total of 5:45. This means that to squeeze out the last ~37mAh of capacity, the charge is going to take 1:05 more.

In my case, I think I'm going to settle with a minimum charging current of 40mAh, which would give me 1224mAh (84.3% battery life) in 5:00 hours. The last 45 minutes of charge would only get me about 8mAh more, which seems a bit overkill :D

Any thoughts? How was the 20mA value picked?

BTW, thanks for the great app, it's really nice and useful!
[Nexus One Android Development] pwig:
The other night I was trying to hit learn mode and it never popped up so the battery drained down to 2650 microvolts before just shutting down abruptly. So I decided I need to drop my empty volts down from the stock 3416 to at most 3201. Can I safely go lower than that, and what are the setreg entries for changing it?
[Nexus One Android Development] RogerPodacter:
yes the current exponentially slows down. it really only adds about 40min of extra charging time, and it goes quicker than your calculations might look like. but i actually settled on <40mA for my set point as well, as i dont think that last 20mA is worth the extra time considering the gain in mAh you will get. i think 80 is a bit too high though.

with <20mA the total charging time hits about 3 hours. for those who want a little extra, when you charge overnight while sleeping it really doesnt matter for some i guess:).
[Nexus One Android Development] RogerPodacter:
can you tell us the conditions of what happened? that's not good that this happened. did an ACR write happen at all? which version of the app were you using? thanks.
[Nexus One Android Development] MartinodF:
The iPhone charger must be a lot slower then, because it just finished with <20mA in 5 hours and 48.

1233mAh, I never changed the battery in the last 12 months, I guess it's not bad :)

Anyway, someone should add this to the readme/instructions maybe. For an overnight charge I guess it's ok, but I would expect most users would like to know that the last 40min/1hour of charge will only add 2-3% to their total capacity. 40mA should be ok for most people, with the option of using 20mA if you're really desperate :D
[Nexus One Android Development] dvgrhl:
Yeah, there is a flaw in the older versions that lets that condition occur. It happened to me too (I got down to about 2500 before my N1 just died). The newest version I posted today won't let that happen. Install the new version and give it another try if you would.
[Nexus One Android Development] RogerPodacter:
strange it took so long to charge...5 hours? anyway the <20mA really came from something a lot of people used to do called a bump charge, where charging with the phone off allowed the current to go all the way down to zero. it was just to squeeze in extra capacity, and usually got around 50mAh extra capa. also another benefit of setting to <20mA is that this correlates to a higher full voltage as well, usually around 4.187 rather than 4.15 or so with a higher current. obviously it just allows the battery to charge longer, taking in more current, in turn slightly higher voltage. just nice for some people to want the max possible use is all it really came from.
[Nexus One Android Development] RogerPodacter:
well guys, i raised my full40 to 1500, and got a 99% on my learn cycle. pretty incredible...this is a stock battery!
[Nexus One Android Development] MartinodF:
Yep, 5:48, almost 6 hours in fact. The problem must be the iPhone wall charger, I'll get an adapter and try to do a full learn cycle again with the original HTC charger.

I'm happy to get the most out of my battery, I was just thinking of "warning" first time users that they can skip the last part of the charge if they don't need that last mAhs. If this utility hits the market and becomes mainstream, lots of users may complain, for example, that their battery only lasts 5% longer while charging now takes 25% longer. Anyway, thanks again for your hard work :)
[Nexus One Android Development] RogerPodacter:
almost seems like that would be the USB charging conditions. on average USB charging seems about twice as long as the wall charger, which is already near 3 hours. did you notice how much current it was pulling at its peak? wall charger is around 800mA on average, but USB is around 450 on average. maybe it only recognizes it as a USB connection...

and yeah i agree on the unnecessary length. maybe that should be turned into an "overnight only" option for charging so users know it will take longer. i also wonder if it adds any unneeded stress to the battery. i doubt so. but i ended up going with <40 on my newer battery, and kept <20mA for my older crap battery.
[Nexus One Android Development] MartinodF:
It never went above 470mA. It's strange, because in the Battery Info, Power Plug is AC and not USB. Oh well, I should just throw that iPhail charger away and get a proper one ;)

I set <40mA too, it seems a reasonable value!
[Nexus One Android Development] pwig:
I had accidentally reset my battery age from 86% to 94% by charging the phone while off. I posted on here asking how to manually change the age back to 86% and the advice worked. The phone died early, however and when I plugged the dead phone in and then rebooted, I waited to try to hit learn mode. I figured I would set the age to 100% with the app and sat and waited with my brightness at maximum. I watched 3416 go by and saw it go all the way down below 2700. I don't think my battery meter ever turned into the red box with the line through it either. It was strange. Then the phone just died and wouldn't turn on. So I charged it for a little while and successfully hit learn mode without a hitch. I was using the 1205 version of the app. I think I was to blame for this by setting my battery age from 86 to 100 while hovering too close to learn mode voltage. Just a theory though.

Edit: don't know what ACR write means, sorry.
[Nexus One Android Development] RogerPodacter:
cool thanks. your theory may well be true, we kinda are thinking that any type of write or change to the ds2784 chip right at the time it hits empty volt could glitch it out. just a theory though, and a stretch at that. depends how close it was when you set your age.

we just are trying to make the app reliable, and dont want to cause anything where the empty volt is passed and it gets below the voltage like that. thanks for your input. this new version should be good with all that.
[Nexus One Android Development] RogerPodacter:
This second battery is really great. I know its boring but I'm at 2 hours and 15min and my voltage is still above 4 volts. That's with 41min of screen on time. I never see even close to that on my other batt.
[Nexus One Android Development] __max__:
I think it's the iphone charger the problem, with the original wall charger it takes max 4 hours (<20mA) at 750mA charging.

Another usb wall adapter i have reaches 500mA max charging, so it takes longer.

But i always charge overnight, so it's not a real problem for me :)
[Nexus One Android Development] alvintc:
Update - 0.8.8 appears to have let me hit learn mode! Sitting on the side charging now. Thanks for the hard work guys!

Hi Guys,

Am I missing something? I've followed mtw4991's (thanks!) post to the letter, but my phone keeps shutting down before learn mode is engaged!

Steps I've followed are:

1. Set age to 100 (Battery app, Learn Prep tab)

2. Set full40 to 1452 (Battery app, Learn Prep tab)

2. Using Root Explorer:

a. Edit Setreg in text editor typed 0x66 a4 in setreg & save/exit

b. Edit Setreg in text editor typed 0x65 06 in setreg & save/exit

I have tethering on and music playing

Phone keeps dying at 0% (around 3400)

using batter calibrator 0.8.8.
[Nexus One Android Development] triciopa:
You forgot to type 0x10 04
[Nexus One Android Development] starfarer:
Got batt today and almost same values displayed. Dumpreg also looks very similar with exact FF's on same places. BTW also bought from ebay £9 with local UK stock. Can you PM me copy of mail that you sent to seller about the batt's problem? I might as well ask for refund :-(.

I'm currently using OSmonitor (which usually FC's on nightly) and the % charged is upto 50% from initial 23%. Volt (3923mV),Current (40mA) and capacity (780mAh) are unchanged in charging process.

Not tried doing learn process or complete drain due to lack of time. Will see what the actual usage overnight and tomorrow.

Looks the battery to avoid :-((
[Nexus One Android Development] mtw4991:
Roger/Login, the new 12/12 battery app installs just fine, but is fc'ing on CM6.1 #290 fyi. Tried fix_permissions, uninstall, reinstall...fc!

Edit: so is 12/05 app btw
[Nexus One Android Development] Smokeaire:
Same here. Worked fine with previous nightly build.