Accurately measuring mAh of the battery - Android Q&A, Help & Troubleshooting

I was looking at Googles API lists and found that you can get information on the battery, but the resulting information is in relation to the percentage value that the OS is seeing for the battery. Are there any API's (published or unpublished) that would allow me to determine the actual mAh remaining (plus capacity, voltage, etc) of the battery?

Hmmm i'm waiting for this answer too..coz many fake battery now sell in ebay.
I want to safely using replacement battery

"Battery calibration", not sure if it's on the Market, I got it with a ROM, I could extract it for you, but I think it needs root...
Sent from my Desire HD using XDA App

You can let it calculate with battery monitor widget. It isnt the exact value but +-20.

Thanks. I'll take a look at it. I assume that it requires you to monitor for a while to determine the mAh?

Questions or Problems Should Not Be Posted in the Development Forum
Please Post in the Correct Forums & Read the Forum Rules
Thanks ✟
Moving to Q&A

Related

any one working on the 3.0v battery mod any more?

battery driver drivers/power/ds2746*
eugene 373 was at one point working to lower shutdown voltage. has any one else looked into it? getting that extra .5v would make a huge difference to batt life
I would be interested also.
Moved of: Samsung Vibrant > Vibrant Android Development
To: Samsung Vibrant > Vibrant Q&A
Please put your questions to: Vibrant Q&A
Don't do it
t1h5ta3 said:
battery driver drivers/power/ds2746*
eugene 373 was at one point working to lower shutdown voltage. has any one else looked into it? getting that extra .5v would make a huge difference to batt life
Click to expand...
Click to collapse
It is a waste of time. battery voltage vs current capicty in a lithium battery dictates that it may give you another 5% battery life. 10% if you are lucky.
View attachment 479273
in actual use if LI-PO battery's (like RC cars) people usually only discharge them to 3.2 V and usually consider anything at or below 3v will cause cell damage. This is from real world use, not humdrum engineer info.
here is some good info on Li-Po's and other battery's in general
http://www.mpoweruk.com/performance.htm
Google Li-Po discharge voltage and you will find lots of info on the net about it. to me another 5% isn't worth buying new battery's on a regular basis.
on the hd2 ive ploted run time with various kernels. some with 3.6v shutdown some with 3.0
time to 3.6 was almost allways close to the same, but 3.6-3.0 allways netted me atleast 25% more life
and yes i have read extensivly on li-io and lipo batterys, keep in mind those two are drasticly diferent in charge/discharge.
and the battery in the vib is a li-io... i belive the iphone is currently the only phone useing li-po's.
This mod is complete already I believe and also produced great results. Problem was that it was done with I 9000 source. I'd assume we won't see any further with this until the vibrant source is available.

[Q] New battery driver?

I was talking to a friend of mine about the Atrix's battery meter being only 10% increments, and he told me the Rhodium originally had something similar, until the battery driver was replaced.
Just curious, is the same possible here?
Please post questions such as this in the general forum.
edgeicator said:
Please post questions such as this in the general forum.
Click to expand...
Click to collapse
You could also point him to the discussion about this. This has been brought up and is not possible. Hardware limitation.
http://forum.xda-developers.com/showthread.php?t=965682
Bah, I was hoping that a hardware limitation wouldn't be the case.
I saw that the voltage was available through /sys, would it be possible to create a more accurate meter through that?
Use "Battery Left Widget" (Avail on the Market) and once trained it will give you a fairly accurate percentage of battery life left.
Circle Battery Widget also seems to give an accurate readout.
Seeing the same thing here...Seems like circle battery shows 1% increments in line with the 10% increments in the battery manager.
Screen captures
http://i.imgur.com/5ktRkl.jpg
http://i.imgur.com/zhPBLl.jpg

Is it bad to completely drain the battery?

I've come across some people that say the GS2 battery should not be drained completely since for this type of battery it's not good.
lckh said:
I've come across some people that say the GS2 battery should not be drained completely since for this type of battery it's not good.
Click to expand...
Click to collapse
http://www.google.com/search?q=Is+it+bad+to+completely+drain+a+lithium+ion+battery?
ctomgee said:
http://www.google.com/search?q=Is+it+bad+to+completely+drain+a+lithium+ion+battery?
Click to expand...
Click to collapse
Pants - is the only way to describe that post, false info.
It does no harm at all to fully discharge, more problems are caused by giving regular, short charges, than 1 long full charge so i wouldnt believe that.
He also says to charge it 8-10 hours, that total rubbish as well, these batteries dont need 8-10 hours to prime, on average 3-4 hours for a full charge is more than adequate.
I think few year back batteries were far inferior and did indeed need longer charging periods, but not any more, and if ya flash roms a lot and need to calibrate your battery after flashing to a new custom rom indeed part of the calibration process is completely running down the battery, my s2 is well over a year old and has been drained flat many a time and i still get 14 - 20 hours out of it on average, which is damn good for any smart phone these days, That post is on a HTC Thread by the way, Htc notoriously have batteries with a crappy life span, i had a wildfire s, used to get about 6 hours out of the battery.
I don't think that's true.
http://batteryuniversity.com/learn/article/how_to_prolong_lithium_based_batteries
graemeg said:
ctomgee said:
http://www.google.com/search?q=Is+it+bad+to+completely+drain+a+lithium+ion+battery?
Click to expand...
Click to collapse
Pants - is the only way to describe that post, false info.
It does no harm at all to fully discharge, more problems are caused by giving regular, short charges, than 1 long full charge so i wouldnt believe that.
He also says to charge it 8-10 hours, that total rubbish as well, these batteries dont need 8-10 hours to prime, on average 3-4 hours for a full charge is more than adequate.
I think few year back batteries were far inferior and did indeed need longer charging periods, but not any more, and if ya flash roms a lot and need to calibrate your battery after flashing to a new custom rom indeed part of the calibration process is completely running down the battery, my s2 is well over a year old and has been drained flat many a time and i still get 14 - 20 hours out of it on average, which is damn good for any smart phone these days, That post is on a HTC Thread by the way, Htc notoriously have batteries with a crappy life span, i had a wildfire s, used to get about 6 hours out of the battery.
Click to expand...
Click to collapse
My post is full of false info? The one linking to direct Google search of the OP's question? Interesting.
ctomgee said:
My post is full of false info? The one linking to direct Google search of the OP's question? Interesting.
Click to expand...
Click to collapse
Hmmmmmm, no, you didnt start the thread, i was replying to the starter of the discussion, not yours.
More importantly, where is your link meant to point, coz from what i can see it only points to a google search and not to any specific document, unlike donalgodon who posted a very interesting and intriguing link indeed with so much info
graemeg said:
Hmmmmmm, no, you didnt start the thread, i was replying to the starter of the discussion, not yours.
More importantly, where is your link meant to point, coz from what i can see it only points to a google search and not to any specific document, unlike donalgodon who posted a very interesting and intriguing link indeed with so much info
Click to expand...
Click to collapse
Which was actually one of the results of the google search, if you bothered to look.
I was trying to impart the fact to the OP that he could easily find this info himself.
Also, if you were replying to him, then why did you quote my post, saying "Pants - is the only way to describe that post, false info"? Context is important.
ctomgee said:
Which was actually one of the results of the google search, if you bothered to look.
I was trying to impart the fact to the OP that he could easily find this info himself.
Also, if you were replying to him, then why did you quote my post, saying "Pants - is the only way to describe that post, false info"? Context is important.
Click to expand...
Click to collapse
aBSOLUTLEY, QUOTING YOURS WAS INDEED AN ERROR ON MY BEHALF, SPOSE DUE TO TIRED EYES SO APOLOGIES IF THAT CONFUSED YOU INTO THINKING I WAS MEANT TO QUOTE YOU, WAS INTENDED FOR THE ORIGINAL THREAD STARTER.
See what i mean, just realised i hit caps lock instead of shift, hmmmm, oh also yes i agree completely, google is completely the place to look so point taken, its suprising what you can ask google and still get an answer, i dont think some people realise that if they have a question in mind, then the likelihood is, someone else already asked it, yet they still dont google it, or maybe its just down to laziness that people dont goole anymore.
graemeg said:
aBSOLUTLEY, QUOTING YOURS WAS INDEED AN ERROR ON MY BEHALF, SPOSE DUE TO TIRED EYES SO APOLOGIES IF THAT CONFUSED YOU INTO THINKING I WAS MEANT TO QUOTE YOU, WAS INTENDED FOR THE ORIGINAL THREAD STARTER.
See what i mean, just realised i hit caps lock instead of shift, hmmmm, oh also yes i agree completely, google is completely the place to look so point taken, its suprising what you can ask google and still get an answer, i dont think some people realise that if they have a question in mind, then the likelihood is, someone else already asked it, yet they still dont google it, or maybe its just down to laziness that people dont goole anymore.
Click to expand...
Click to collapse
Mine was a rhetorical question, but it's all good, dude.
Lol, short version: Depending on the battery type you will want to drain it completely before charging or never drain it completely. Let it charge fully overnight or it only needs a few hours.
Seriously, do some reasearch on batteries. Figure out what types there are, how they are different, and what makes them different. each has advantages and disadvantages.
Every battery type is a little different. For our phones will be different than for your rechargable nicad batteries at home, or the batteries in your remote control vehicles.
Bottom line: We COULD tell you, but that would be defeating the purpose. Instead we are pointing you in the right direction to acquire the knowledge yourself. Happy hunting! let us know how it works out!
In simple, it actually causes more harm discharging the battery to empty.
There is alot of do's and donts to preserve the battery,
Info:
The Li‑ion charger is a voltage-limiting device that is similar to the lead acid system. The difference lies in a higher voltage per cell, tighter voltage tolerance and the absence of trickle or float charge at full charge. While lead acid offers some flexibility in terms of voltage cut‑off, manufacturers of Li‑ion cells are very strict on the correct setting because Li-ion cannot accept overcharge. The so-called miracle charger that promises to prolong battery life and methods that pump extra capacity into the cell do not exist here. Li-ion is a “clean” system and only takes what it can absorb. Anything extra causes stress.
Most cells charge to 4.20V/cell with a tolerance of +/–50mV/cell. Higher voltages could increase the capacity, but the resulting cell oxidation would reduce service life. More important is the safety concern if charging beyond 4.20V/cell. Figure
Discharging:
Li-ion should never be discharged too low, and there are several safeguards to prevent this from happening. The equipment cuts off when the battery discharges to about 3.0V/cell, stopping the current flow. If the discharge continues to about 2.70V/cell or lower, the battery’s protection circuit puts the battery into a sleep mode. This renders the pack unserviceable and a recharge with most chargers is not possible. To prevent a battery from falling asleep, apply a partial charge before a long storage period.
Battery manufacturers ship batteries with a 40 percent charge. The low charge state reduces aging-related stress while allowing some self-discharge during storage. To minimize the current flow for the protection circuit before the battery is sold, advanced Li-ion packs feature a sleep mode that disables the protection circuit until activated by a brief charge or discharge. Once engaged, the battery remains operational and the on state can no longer be switched back to the standby mode.
Do not recharge lithium-ion if a cell has stayed at or below 1.5V for more than a week. Copper shunts may have formed inside the cells that can lead to a partial or total electrical short. If recharged, the cells might become unstable, causing excessive heat or showing other anomalies. Li-ion packs that have been under stress are more sensitive to mechanical abuse, such as vibration, dropping and exposure to heat.
And may i point out, this is a community, People ask questions and peoples feedback, the web is not always correct and nor is the information you find.
It takes more effort to argue with someone and to point someone in the right direction, instead of just answering there question.
We have all been New here once before.
dave7802 said:
In simple, it actually causes more harm discharging the battery to empty.
There is alot of do's and donts to preserve the battery,
Info:
The Li‑ion charger is a voltage-limiting device that is similar to the lead acid system. The difference lies in a higher voltage per cell, tighter voltage tolerance and the absence of trickle or float charge at full charge. While lead acid offers some flexibility in terms of voltage cut‑off, manufacturers of Li‑ion cells are very strict on the correct setting because Li-ion cannot accept overcharge. The so-called miracle charger that promises to prolong battery life and methods that pump extra capacity into the cell do not exist here. Li-ion is a “clean” system and only takes what it can absorb. Anything extra causes stress.
Most cells charge to 4.20V/cell with a tolerance of +/–50mV/cell. Higher voltages could increase the capacity, but the resulting cell oxidation would reduce service life. More important is the safety concern if charging beyond 4.20V/cell. Figure
Discharging:
Li-ion should never be discharged too low, and there are several safeguards to prevent this from happening. The equipment cuts off when the battery discharges to about 3.0V/cell, stopping the current flow. If the discharge continues to about 2.70V/cell or lower, the battery’s protection circuit puts the battery into a sleep mode. This renders the pack unserviceable and a recharge with most chargers is not possible. To prevent a battery from falling asleep, apply a partial charge before a long storage period.
Battery manufacturers ship batteries with a 40 percent charge. The low charge state reduces aging-related stress while allowing some self-discharge during storage. To minimize the current flow for the protection circuit before the battery is sold, advanced Li-ion packs feature a sleep mode that disables the protection circuit until activated by a brief charge or discharge. Once engaged, the battery remains operational and the on state can no longer be switched back to the standby mode.
Do not recharge lithium-ion if a cell has stayed at or below 1.5V for more than a week. Copper shunts may have formed inside the cells that can lead to a partial or total electrical short. If recharged, the cells might become unstable, causing excessive heat or showing other anomalies. Li-ion packs that have been under stress are more sensitive to mechanical abuse, such as vibration, dropping and exposure to heat.
And may i point out, this is a community, People ask questions and peoples feedback, the web is not always correct and nor is the information you find.
It takes more effort to argue with someone and to point someone in the right direction, instead of just answering there question.
We have all been New here once before.
Click to expand...
Click to collapse
Indeed, not everything on the web is correct.
But may I point out that all you did was copy and paste text from this page, which donalgodon linked in post 4, and again, I feel I must point out, was actually one of the results in the Google search I linked him to.
The point I was trying to make, and seems lost on you, is teaching people how to look for stuff on their own. No one should just expect to be spoon-fed information. That is lazy to just post a question on a forum, sit back, and watch the answers roll in. You should do your own legwork and research.
As the old adage states: give a man a fish, and you feed him for that day. Teach a man to fish, and he is fed forever.

[Q] Alcatel Evo7 Battery problem and rewiring

Hello I new to the forum but I often visit the webpage.
I write this post to ask for help to try to repair the battery of my tablet. The problem is the battery life, when it was new lasted up to 4 hours now not even 10 min.
I open my tablet to check the battery and found what I think the problem. The battery itself has a circuit board. I check the voltages on the pines of the batteries (two in parallel) and mark 3.5-3.47 volts but on the conector at the end of the circuit board mark 0.1-0.2 volts.(I would show images but as I'm a new user I can not do it.)
I´m assuming that the battery circuit is failing. Now I was thinking bypass the battery circuit and directly connect the batteries to the tablet.
My question is whether it is safe to do so, the circuit must have its function but I'm not sure what it is?
Buy a new battery would cost almost half of what it cost me the tablet itself, so it is the last option.
Any recommendation or comment is appreciated.
Hi,
I can't find anything relevant on XDA for your device and issue. You will need to ask for help here,
> Android Development and Hacking > Android Q&A, Help & Troubleshooting
Personally, I think the circuit board would be there for a very good reason.... And bypassing it could fry your device. But that's just my opinion, and I'm no expert on that. ?
Good luck!

Real battery capacity calculator

Hello,
I have spent many hours of reading trough internet, including xda-developers forums and lots more. Maybe I'm not lucky and just didn't find the one right page/post where is what I need.
I have very simple problem, I suppose many people at some point gets to that question - is my phones battery in good shape and if I buy replacement is it at least close to promised capacity.
So only way to get that info is measure or approximate real battery capacity.
As there in system are available all required parameters for calculation - current, percentage/voltage and of course clock. It shouldn't be hard to calculate estimated capacity.
Of course it'll have to gather some data to calculate data, but it is quite simple, and can get more accurate as more data is acquired and saved.
I have found few projects who claims to do so, but unfortunately without luck.
Battery Monitor Widget - shows all data needed, but as capacity shows some kind of calculation between charge level and manufacturer/entered capacity, so it shows charge level in mAh, but there is nothing like estimated battery capacity.
https://play.google.com/store/apps/details?id=ccc71.bmw
Found post with Current Widget usage, but unfortunately it doesn't work for my Galaxy S5.
Post: http://forum.xda-developers.com/showthread.php?t=1019786
As conclusion, I suppose it shouldn't be very difficult to make such app, unfortunately I'm not developer and even familiar with mobile platforms development. Maybe there are someone who is interested in same stuff and can develop
Any comments are welcome
Cheers!

Categories

Resources