yashsingh1/xdaforums huggingface dataset:
[Nexus One Android Development] RogerPodacter:
Are you serious? I specifically removed that pop up cause it wasn't yet working, it popped up non stop! Can't believe I left that in there somehow, what a drag cause I can't fix it till I get back home. Damn. I was in a rush prob what happened.
[Nexus One Android Development] k3vink3vin:
Next time I might turn on airplane mode, disable screen timeout and leave the monitor on so I can check it constantly.

Yes it popped up every second after the learn flag was hit, I had to hit "back" until all popups are gone and switch off "detect learn mode" before another one pops up. not a big deal :)
[Nexus One Android Development] lolobabes:
these should be in the op its useful for noobz like me, ahihihihi

"turn on your detect learn mode when u about 20% or so" and "U can turn on anything. For me I just play online music :)"

many thanks sir now think am 101% ready ahihihi
[Nexus One Android Development] temasek:
Good Luck :)

There is a slim chance something might go wrong cuz the learn cycle might pre-maturely complete before full charge thus failing. -----Slim chance.....

So if u ever encounter failure, GO TO SLEEP. Try again next time :D

EDIT: Oh yeah....remember to set your battery age = 100

EDIT1: Don't CALL ME SIR.......we are all members here, no difference :)
[Nexus One Android Development] lolobabes:
by the way the airplane mode sets when learn mode is on how do i listen to online music then? lol

should i uncheck it? ty
[Nexus One Android Development] temasek:
Once u started your learn mode (that means u plug-in charging), stop all your activities and turn on airplane mode and charge it for 4-5 hrs.
[Nexus One Android Development] lolobabes:
i should maintain 200mA while draining to 3201 right and the way to do it is listen to online radio as you said but if the airplane is on then i cant so does it mean i just uncheck "turn on airplane mode if learn mode is detected" from the settings si i can have wifi on?
[Nexus One Android Development] temasek:
I think u are not ready yet....cuz u confused a bit of things.

Lets get some things straight.

1. Your objective is to hit Empty Voltage of 3201mV before u drained off your mAh

2. Turn on detect learn mode when u about 20-25% is ok. U need to maintain draw current above 200mA before u hit Empty Voltage point so that it will KICK OFF learn cycle. That is the criteria, if not u will fail immediately. No need to maintain above 200mA draw current throughout. Only shortly before u hit Empty Voltage point. Example, when your Voltage is about 3500mV u can start drawing your current above 200mA

3. When u turn on detect learn mode, u have not start the learn cycle yet. Only when u hit Empty Voltage point and u still have balance of mAh then your learn cycle will start. Once learn cycle start, immediately turn on your charger.

4. Only when u start learn cycle then u stop all activities and turn on air-plane mode.

Why turn on air-plane mode during learn cycle? Because someone may call u or sms u and it WILL disrupt the learn cycle.
[Nexus One Android Development] lolobabes:
i apologize coz i may have used the wrong terminology, i was referring to this:

"2. Turn on detect learn mode when u about 20-25% is ok. U need to maintain draw current above 200mA before u hit Empty Voltage point so that it will KICK OFF learn cycle. That is the criteria, if not u will fail immediately."

you said so i can maintain 200mA, since mine drops below 200mA i can listen to online music right? but i noticed when i select "on" on the detect learn mode it activates plane mode. ty
[Nexus One Android Development] temasek:
Hmm....I think u selected "Airplane Mode On/Off" in the settings of the Battery Calibration app.

If that is what u selected then turn on detect mode when u about 3500mV Voltage and do other stuffs to maintain higher draw current, eg, turn on gps, map, play music....etc...so many examples. U can also turn on "GPS Polling On/Off" in its settings to drain more.
[Nexus One Android Development] lolobabes:
thats correct, cant i just uncheck it before i begin?
[Nexus One Android Development] temasek:
Hmm.....no need. Just turn on the detect learn mode when u reach Voltage of about 3500mV. Enable the "GPS Polling" setting also in the app.

Remember once u drop below 3500mV, the drop rate will be pretty fast. Open your eyes.
[Nexus One Android Development] lolobabes:
sorry wrong read lol ty

ill try it in a while am still in 39% batt hehe
[Nexus One Android Development] temasek:
Np.

Now at computer so can reply u abit. When I'm on mobile then I'm lazy to type. :p
[Nexus One Android Development] lolobabes:
haha thanks again

by the way the capacity test needs to done right away tom or it can be at a later time? ty again for the patience
[Nexus One Android Development] temasek:
What battery are u using for the test?

new or old

what battery rating?
[Nexus One Android Development] lolobabes:
its the stock batt from my n1 from march last yr
[Nexus One Android Development] temasek:
No capacity test required then.

Full40 = 1452mAh

Battery Age = 100

Empty Voltage = 3201mV

Set the above for your values.

I bet your battery age after test will be about 86% +/- 2%

Let's see how accurate my guessing will be :)
[Nexus One Android Development] lolobabes:
right, ill post tom ty ahihihihi
[Nexus One Android Development] lolobabes:
Thanks to you temasek for your assistance couldn't have done it without you mate, and your guess is correct! ahihihihi

I was waiting for the mV to go down to 3500 to turn on detect learn mode and at one point i turned learn mode on but for whatever reason it jumped from 3590 to 3000 then turned off! darn didnt have the chance to react it was so sudden. (That happened while I was staring on my screen with the charger already on my hand! lol) I just decided to charge to about 22% then tried again, when the battery was already at about 8% the mV was still at around 3600 i think, then the battery % went back to 15%! (it happened twice and in both instances the mV was still at around 3700) maybe that was caused by the shut down of my phone on my first attempt. I just went on, then at about 11% it slowly was getting to 3200 and a miracle happened, the long awaited prompt pop up so i connected the charger and closed all apps from the app manager except batt calibrator(not sure if it was necessary to do it there). Since I configured my set cpu not overclocked i just unlicked enable. Then turned on airplane mode then went to sleep. It was 1am then at about 6am unplugged batt at 100% then reboot, battery now at 99%(I hope thats ok). Now my batt age is 85%! hooorayt!

Observation:

while i was still testing upon turning on detect learn mode the mA would drop below -200 even with the A online radio app turned on which i had to install just for this calibration and as far as the reading shows i had to swipe up and down on the learn mode tab so i can maintain it above -200mA. (so i did the same when i actually had to do it) But this time I had to do the swiping in almost 30 to 45 mns (If i can remember) bec of the batt % going back to 15% twice lol.

I hope regardless of what happened to my initial attempts I have finally done it right.

Now some questions again, lol

1. If i uninstall battery calibrator will that make any changes?

2. If I decide to flash an update/new rom and i have to do wipe data and dalvik cache it is advised to delete battery stat for correction, can I still do that?

again thanks to all your effort guys! kudos to you all! ahihihihihi
[Nexus One Android Development] temasek:
1. When u turn on acr adjustment, it will auto bump up your mAh when necessary. That is why u see your battery % jump up.

2. The battery registers are encoded into battery EEPROM. So even if you wipe or flash new rom, the battery will still remember its registers. Only when you off power charging or phone auto power down then it will forget its registers.

3. For n1, leave the battstats.bin alone.
[Nexus One Android Development] lolobabes:
"Only when you off power charging" - (charging while phone is off)?

or "phone auto power down..." - this i dont have an idea...

sorry but I don't know what that means and i surely don't want to accidentally do that

ta
[Nexus One Android Development] temasek:
Some like to charge phone in power off mode. Don't do that.

Now u calibrated your battery, u can drain till 0%. But if u if u use till 0% the phone will auto shut down at 0%. When that happens your battery will forget its age and default it to 94%. Simply use the app and key in your last known battery age and u are good to go.
[Nexus One Android Development] lolobabes:
oh i see, thank you for the info, i have learned a lot over night haha ta :D:D:D
[Nexus One Android Development] lolobabes:
Now I am calibrating my wifes N1 battery, turning tunein radio and gps on maintain the curr mA above -200. No more swiping up and down like i did before... ahihihihi
[Nexus One Android Development] RogerPodacter:
my original HTC battery is fried. its been in my car for months, i just tried it out, and the phone wont even power on. the batt light just flashes a weird pattern. i think the temperature trigger was tripped in the cali heat.

then i removed my 1600 fake 2500 battery and went back to my other HTC battery, and seems to be much better actually. my fake 1600 one has lost the top end voltage very quickly over the last few months so that full charge goes no higher than 4.12 volts. but the HTC one after a year still goes up to 4.19 volts. so me thinks the OEM are of better quality.

i'm gonna tear apart my crap battery and see what's inside.
[Nexus One Android Development] temasek:
My battery still charges till about 4.19V. Now at 96%. :)
[Nexus One Android Development] mtw4991:
so does mine, bought it last November....still charges to 1475mAh as well, down from 1550 at arrival. not bad for $15
[Nexus One Android Development] Treatcon:
I'm using the same battery that came with my N1 that I bought in March of 2010. I get around 20-24 hrs out of it mostly. Not bad at all, but I'm using the app in this post from the market to calibrate it for the first time.

Now the app says to plug in the charger at 3416mV once LEARNF lights up. In the post by mtw4991, that everybody says to use, states to draw the battery down to 3201mV then plug in and so forth.

Which is correct, 3416 or 3201?

Thanks.
[Nexus One Android Development] temasek:
3416mV is the default Empty Voltage for n1 battery. U can set the recommended value of 3201mV for your Empty Voltage. By doing so u will squeeze bit more battery juice out of your battery.
[Nexus One Android Development] Treatcon:
http://xdaforums.com/showpost.php?p=9583271&postcount=340

Thank you.

I see the 3201 in the app now. Had to quit and restart the app for the changes to be visible.
[Nexus One Android Development] RogerPodacter:
Well guys I busted my good battery, the 1600 one that was at 2500.

It was driving me nuts that this chip has been giving me inflated current readings all this time, and hence the inflated 2550 mAh reading. So I started trying out different offset values for current offset registers 78 and 79, rsgain reg 7b, and others. But I didn't notice any change. Then I cleared the status register to zero to get rid of porf, which is now cleared.

But I thought I had a eureka moment that perhaps these guys used a different sense resistor other than 15 ohm, so I tried to set mine to 20 ohm. And bam, reboot and the battery light keeps flashing a weird pattern and wont boot. So my good favorite battery is toast.

I was so sure that was the fix, especially since it seems the current readings were inflated by about 60% which I was sure was the difference between a 15 and 20 ohm resistor. Oh well, I'm gonna buy a mugen 1600 I think.

Also maxim has a new page with prices for all the different fuel gauge chips. And our ds2784 is the most expensive of all of them, the most high end all in one solution. Its 3 dollars per chip in bulk of 1000 units. So that's kinda cool to know.

The xperia arc ds2746 is a cheaper chip. And the galaxy series max17040 is even cheaper.

So sad for my favorite battery. It lasted so long over my stock one.
[Nexus One Android Development] temasek:
May it rest in peace :)
[Nexus One Android Development] ReTro FuZe:
hey guys...i've been trying to search in the thread but i can't find a reason why my phone shutdown before it reaches 3210 mv. i did everything in the instructions and i've restarted it and tried again...it gets close...like about 3410 mv...but then it shutsdown...help me out please.
[Nexus One Android Development] erikclaw:
I am using a seidio 1600mAh do I need to run a capacity test?
[Nexus One Android Development] RogerPodacter:
You can if you want, no need though if your battery is working the full range though.

Can you post your values from the first tab displayed from the app? Just a screen shot or whatever.
[Nexus One Android Development] phanompin23:
Finally got this calibration done. But after shut down and restart, my new Batt Age is 82%. Is that correct??? Am I good, or did it fail???
[Nexus One Android Development] temasek:
Good and bad.

Good is u probably done calibration correctly. Bad is your battery is coming to end of shelf life. U may wanna consider new battery. :)
[Nexus One Android Development] phanompin23:
Thanks for the info. Have any recommendations on where to find a good deal??
[Nexus One Android Development] temasek:
Try seidio or mugen. Try not to buy from ebay cuz most buyers bought batteries from ebay which cannot be calibrated.
[Nexus One Android Development] erikclaw:
I haven't ran it yet, will try to get to it today.
[Nexus One Android Development] temasek:
Try without calibration first. See if u can use till 0%. If yes great. Then u can skip this calibration process.
[Nexus One Android Development] erikclaw:
I am trying that first.

voltage 4055.39

current -126.429

%81

age 100

full40 1850? Guessed this

min chg 20

min chg volt 4099

empty curr 200

empty volt 3.201

capacity 1476

aged capa 1415

Hope this is what you were asking for

Upon reading the instructions a little more, my current mA is too low right? I must have done something incorrect. I will run the app later when my battery is lower so I am not staring at it all day. LOL
[Nexus One Android Development] RogerPodacter:
No you are fine, just get your current up when its about to hit empty volt.

Your full40, why ate you guessing, isn't it shown in the app?
[Nexus One Android Development] erikclaw:
Well it says 1450 for the stock battery but for a aftermarket one can put in more. Mine is a 1600mAh so I just put 1850 in.
[Nexus One Android Development] bugsy:
I'm trying to run the battery callibrator and have followed the detailed steps but I seem to be seeing different behavior. My battery was fully charged. I configured the settings and input the values in learn prep. I then switched to the learn mode tab. When I turn learn mode on, I immediately get the pop up to insert the charger. I was under the impression this should not happen until my batter drains by a considerable amount. Is this because I've recently flashed a new rom and don't have any historical battery stats yet or is something else going on? Thanks in advance for any help.
[Nexus One Android Development] RogerPodacter:
no this has nothing to do with your ROM. all of this is interacting with the chip inside your battery which does not get altered between ROMs.

So your battery was full, and the learn pop happened immediately? that makes no sense. are you using an after market battery or stock batter? what is your voltage showing at the moment? learn pop will only happen if you reach empty voltage.
[Nexus One Android Development] TheKaser:
I am getting the same behaviour. No matter what battery percentage, current, or voltage I have, it will pop immediately after I hit start learing. Plus, when I go to menu, registers, I dont get a list of registers. I am using the stock battery of my phone.

When I hit learn, I get the popup right away, press OK, and it says "Learn cycle is in progress" for like 10 seconds and then changes to "CHGTF is set, battery is fully charged" when it's not.

My phone dies when it reaches 15%, its annoying. Any ideas?

I really appreciate your effort, thanks!!
[Nexus One Android Development] temasek:
If u don't see a list of registers in the app menu, it meant either of the following reasons

1. Your battery is incapable of calibration using the battery app.....or

2. You are using an unsupported kernel which does not have the proper battery drivers
[Nexus One Android Development] TheKaser:
Ah, it might be the kernel, I am using evil's kernel with the rcads sense rom for nexus one. Will try flashing another kernel and will report back. Thanks!
[Nexus One Android Development] RogerPodacter:
The sense ROM doesn't have the enhanced battery driver so that's why it doesn't work. But its boggling my mind why the app would do those random things like pop up the message and all. The code isn't written for that to happen from my memory. Perhaps the app tries to read the files which would return null on a sense ROM, and maybe that interprets it as zero which is in fact less than empty volt, and hence the pop up ocurrs. That's the only thing I can think of.

Cyanogen ROM and its kernel variants are the only ROMs with the proper driver to work.
[Nexus One Android Development] Treatcon:
Just want to say thank you to all those that helped make this app what it is. It worked perfectly on my aged, original N1 battery. I went from the usual 18-20 hrs of life to now over 36 hrs with the same usage out of the battery.

A replacement battery costs around $50 and since everything was free I'll be looking for a donate link!

:cool:
[Nexus One Android Development] TheKaser:
I restored a CM7 rom I had before I flashed the Sense Rom and the app is working perfectly now. Will calibrate the battery today with the CM7 and then go back to Sense.

Thank you very much for your advice!
[Nexus One Android Development] dvgrhl:
I think the dev was just a hack, is my guess.

RIP to your favorite battery by the way. I am surprised you were actually able to damage it.
[Nexus One Android Development] drzplaya1121:
I have ViperMod installed on my Nexus One and it undervolts my battery to 875 at 245 mHz.

Every time I run the Battery Calibrator app the phone dies before it reaches the 3416 Voltage mark. Could it be vipermod that's affecting my learning mode? I'm growing tired of my battery dying anywhere between 10-12% and sometimes only charging till 88% and saying its done.
[Nexus One Android Development] dvgrhl:
ViperMod doesn't undervolt the battery, it undervolts the phone's processor. I think you should put your voltage back to normal before you attempt a learn mode.
[Nexus One Android Development] drzplaya1121:
Any recommendations on how to drain the battery?
[Nexus One Android Development] RogerPodacter:
You are likely running out of mAh and hitting 0% battery before teaching empty voltage so you have to bump up mAh. There are directions to do that somewhere around here. The app should do this automatically if you enable acr in the settings, but it doesn't always work.
[Nexus One Android Development] frozst:
Hi!

I performed two learn cycles but my battery is still dying at 10%. After the learn cycles I rebooted and powered off, the app showed the batt age as 100 % so I though it was ok but now it shows 94 % again.

I followed the steps of the 3rd post, waited to learn flag, charging 4 hours on plane mode and without touch the phone so I don''t know what I'm doing wrong.

When my phone dies at 10 % I charge a little bit and then I power on again, it shows a right %, usually 0 % or 1 %. If I charge until 20 % it dies well at 0 % BUT if I charge to 100 % I have the same problem, it dies again at 10 %. This is very annoying...

Any help or recommendation would be appreciated.

I attached a snapshot, should I change any value?
[Nexus One Android Development] RogerPodacter:
Yes its confusing but your battery is behaving like all of ours. Your first attempts failed. It shouldn't show 100% after a successful learn cycle, it will be somewhere around 87% for yours approximately. And 94% is default out of the box value which means it reset itself.

Anytime the battery is charged to 100% or drains to 0%, the Meyer gets reset and aligned to either the top or bottom point, empty or full. So when you charge to full 100% then drain to zero to do learn cycle, it runs out of mAh at 10-15%. But if you miss or fail the learn cycle at the bottom and charge briefly to try again, its now aligned to the bottom and very difficult to trigger the learn flag at that point. So its easier to charge to full and try again, you will get.

You could just manually set your age to 88% or so and bypass learn cycle. Its a close guess but would give you pretty close results.
[Nexus One Android Development] puttytatko:
do we need to uninstall any undervolt scripts before attempting to calibrate the battery?? I use the ch33kybutt script to undervolt when the phone sleeps..does that mess up the calibration??? also if i calibrate on a later version of cm7 nightly and then do a nandroid restore to a previous version should I have to calibrate again???
[Nexus One Android Development] RogerPodacter:
No those scripts don't interfere with anything. With our app and this calibration process you are reading and then changing register values inside your individual battery, so changing ROM it kernel or any nand backup has no effect, your new values will follow no matter what. That said, this battery occasionally resets itself and age value back to default of 94%, and its sometimes random, so just check once in a while to make sure your new age value is still correct. Ans if it changes just manually set it back to your newly discovered age value using the app. You can even try out manually setting it now to see how close you can get. I'd guess based on your post that right around 88% or so is what you'd get from a proper learn cycle. Give it a shot if you're struggling hitting the learn flag.
[Nexus One Android Development] cesar67:
Tried searching ~ No joy!

After setting:

I don't have the option for:

Can anyone explain what i need to do ?

Thanks.
[Nexus One Android Development] frozst:
@RogerPodacter thank you. So what you recommend is perform a 100 % charge and the run the calibration process from that point, isn't it?

I'm now repeating the process with a 88 % batt age value, I will post my results as soon as I can.
[Nexus One Android Development] frozst:
Well, here is my investigations:

Then, the phone died at 0 % and after power on the phone the app showed again 94 % age. What I doing wrong?

Now I will charge to 100 % and I suppose that the battery will die again at 10%... :(
[Nexus One Android Development] mtw4991:
You may have completed the learn cycle, but your phone ran out of juice and auto-shutdown. If your phone auto-shutsdowns at 0%/7%/whatever%, then the learn calibration is lost and you have to redo the learn cycle. Alternately, you can manually set your age back to 88% and charge to full and you should be ok. I would do another learn cycle overnight just to confirm the age % is correct.

Also, you do not need to charge to 100% then drain to 0% to start a learn cycle. Just charge enough (3-5%) and try again. Just make sure you have ACR Adjustment checked, Wake Lock on/off checked and GPS polling on/off checked. That should keep you above -200mV thus triggering learn mode and you should see the pop-up window saying Learn Mode is Active/Plug in Charger now.
[Nexus One Android Development] RogerPodacter:
If you set age to 88% then you are done and don't need to do the learn cycle. I just said to use 88% cause that is an approximation which apparently worked since you got down to 0%.

If it resets just change it back to 88%. Like we said, these batteries reset sometimes for unknown reasons, so set it back manually.

If you do want to go thru the full learn process then you will find your exact proper age, probably close to 88%.