yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] 3c:
As an electrical engineer pointed out a while back, when mA < 0 the battery is not charging :) Which explains why the app will show 'discharging' when mA < 0!

Now concerning the fluctuation and assuming you get accurate mA readings (which is true for any Thunderbolt I've received reports of), this means you probably have a poor AC charger.

Note also that using the phone while charging will decrease the charging capacity of your charger.

So when you say all this happens without touching the phone, that means you're watching the screen for many minutes to see that? mA being refreshed every minute.

Did you disable the auto-screen-off feature of your phone?

Don't know all the specifics of your charger and phone, but if we consider a 500mA charger and a LCD screen (consuming at least 300mA when on), this leaves a charging capacity of 200mA. If you have WIFI on and connected, that's another 50mA removed. Phone signal on, another 50mA removed. And if you have some apps synchronizing, you can remove another 50mA. Leaving an average charging capacity of 50mA when screen is on.

If you consider possible spikes of consumption, what you've been looking at is exactly what you can expect: being plugged but having your battery actually discharging!

Now if your charger is 'bad', this could add up to the equation.

A few other factors:

- When getting closer to 100%, the charger will decrease how much power it injects in the battery.

- Some phones with bad battery driver when at 100% will start small charging/discharging cycles. On latest HTC phones for example, it will continually charge/discharge between 100% and 95%! I've seen other phones/roms do small cycles between 100% and 99%.
[Android Apps and Games] swieder711:
I just got home and plugged the phone into another Seidio charger. The AC adapter is rated a 1A. The phone is now showing charging +758mA which looks a lot better.

I think your widget helped me identifier a bad charger at work. Buying the Pro version now.

thanks,

Scott
[Android Apps and Games] Bl4ck3urn:
Is it safely to delete the battery history log after a couple of times without mismatch the statistics?

Well great app so far mate :)
[Android Apps and Games] 3c:
Thanks!

Not sure what you mean?

You can safely delete the app battery history as well as the system battery statistics. Though the last one will have you run a new calibration or you might end up with weird % readings.

Maybe the 2 buttons are so alike that one can mistmatch the 2, right? I'll try to have them use different graphics then.
[Android Apps and Games] Bl4ck3urn:
Mérci for reply!

Yeah you've already answered my question. Just wanted to know if I can delete the battery history because it's getting bigger and bigger from time to time.

Forget "mismatch" I have mentioned it in a wrong way.
[Android Apps and Games] Anil_Trinidad:
With respect to BMW - nice app. I only recently joined the Android world with a Motorola Milestone. Please forgive me for not reading all 54 pages(!) of this thread. I saw a screen shot of the widget showing mV from another thread on battery calibration. However, when I throw up the widget - it shows mA (and % remaining). How do I get it to show mV instead of mA? Thanks.
[Android Apps and Games] MCL1981:
So, would it be prudent to use the "measured" mah value as the actual capacity? On my Evo, the calculated is 1605 but measured is 957.
[Android Apps and Games] 3c:
No problem. Tap the widget, then once in the app screen, the menu button and enter the app settings. There you will have 2 entries: widget appearance and widget content. In the last one you choose the data to show: mV, mA, mW, etc...

Calculated value highly depends on specification values entered, so if those are accurate, you'll get accurate readings. But it's hard to find the mV range from manufacturers!

So I usually wait for some history to give me the actual range and use closest rounded value (if history shows 3197, I use 3200). See attached screenshot for a sample.

In any case, those 2 values are indicators that should be close together, so considering your figures, i'd say the entered specs are wrong?

What's your phone specs in the first place? doesn't it have a 1500mAh battery or so?
[Android Apps and Games] MCL1981:
That is where I got my min & max values from as well.
[Android Apps and Games] Xenova:
Force Close on 1.90 and 1.91

Hi,

FYI, I facing force close (everytime) when open the app on v1.90 and v.191. :)Working fine on v.1.89.

Device: HTC DHD

ROM: ARHD 6.1.X

Other info: Please refer to my signature

Thanks
[Android Apps and Games] 3c:
1.9.1 has been reported to work fine and I never received any crash report either!?

Can you try again? If you reproduce the crash on v1.9.1, can you please send the logcat (possibly using 'Logcat Reader' app) ?

Thanks,
[Android Apps and Games] ben_dov:
not good

my "Battery Monitor Widget" came with litening rom and it was eating my battery alive, had to removed and now all looks ok.
[Android Apps and Games] 3c:
I suppose if it comes with the ROM, many are already using it, without issues supposedly.

The app offers many settings, including refresh rates, if set incorrectly sure it will consume too much. Those settings are used by some users to track down a drain more closely.

Also sometimes the SD card causing issues, as the app writes to a file on the SD card.

To solve this, you can try to set battery history in /data/data/ccc71.pmw folder.
[Android Apps and Games] lxtbattery:
it would be great to add the running processes to the logfile. Would be very helpfull to find apps that cause heavy drain.
[Android Apps and Games] dertester123:
Have you checked out system tuner? Another great app from him and shoul be good for this use ;)
[Android Apps and Games] 3c:
In the next update, I've added a screen showing unplugged statistics (from Android) that lists apps consuming, though it will not be as accurate as System Tuner.
[Android Apps and Games] AtypicalWinter:
Have tried this trick to find that bmp can't read file nor can it write to file. Would love for it to be able to. But it doesn't work :'(

Edit scratch that. Have got it to work after much rebooting and correct su permissions also correct file names. Ie putt battery_history.txt helped lol
[Android Apps and Games] woprr:
The OR-link to the ads versions seems to be dead and Google violates EU SEPA laws by not accepting my austrian VISA Electron :-/
[Android Apps and Games] 3c:
The free version is back online now. Are you sure it's Google not accepting your card or your bank refusing the payment?
[Android Apps and Games] woprr:
Thanks. And VISA hotline says it's not their fault.
[Android Apps and Games] 3c:
Can you PM your order number, I'll check who actually cancelled/refused the payment.
[Android Apps and Games] 3c:
It would appear you disabled the 'gap detection' for which you have a big hole in history:

2011/10/22|09:15:03|-15mA|0%|3396mV|25.8ºC|0|0

2011/10/22|13:22:10|0mA|0%|3348mV|26.1ºC|1|0

That's about the 4 hours 7 minutes gap which is not accounted for on the graph, and is consistent with the difference you see.

Gaps detection is enabled by default. Disabling it allows for faster loading but can cause graph shifts as you noticed.
[Android Apps and Games] RedeemerSK:
Damn, obvious !

Thx

I checked settings before and saw detecting gaps is off, but from the description I assumed it's some experimental function, since those are often described with "what_does_it_do, may_make_the_app_crash / introduce_errors" pattern.

Thx again.
[Android Apps and Games] johnny0911:
Any way to fix the fc on honeycomb?
[Android Apps and Games] 3c:
Haven't received any FC reports since I published 1.9.2!?

I run the app on an Iconia A500 fine too.

So, if you can make sure you are running last update, and if so, reproduce the FC and use either System Tuner or Logcat Reader from Market to get the app logcat to post here.

With the report I'll be able to fix it asap.
[Android Apps and Games] RedeemerSK:
Strong yellow fill in the bar under the graph limits the interval when the screen was on. Whats does light yellow mean ... wake lock ?

Thx in advance.
[Android Apps and Games] 3c:
Darker yellow = on and off during the logging period.

Light yellow = full on during the logging period.
[Android Apps and Games] 3c:
Definitely not caused by an app without root access. Very unlikely to be caused by an app with root access either.

The battery indicator is usually controlled by boot code / kernel directly. which can be updated by CWM or flashing a new ROM or a radio.
[Android Apps and Games] woprr:
According to the syslogs I added above, the yellow led is switched blinking on, but the GPIO hardware seems not to respond right anymore and tethering settings seems to be messed up.

Looks like I need to RMA- return-in.
[Android Apps and Games] kam333:
3c, thanks for a great app, recently converted from current widget mostly for the status bar info, but impressed with the app as a whole.

ive modified the "bright" BMW Full status bar icon pack to match the rest of my icons hope you dont mind me sharing it here, if there's any issue il take it down

cheers once again

Kam
[Android Apps and Games] 3c:
I'm not sure I follow. What I see in the logs above is that:

1- you disconnected the cable:

D/lights ( 118): [LedInfo] write attr ok name=/sys/class/leds/amber/brightness string=0,len=1

V/NotificationService( 118): dual Led off

D/lights ( 118): [LedInfo] write attr ok name=/sys/class/leds/amber/blink string=0,len=1

D/lights ( 118): [LedInfo] write attr ok name=/sys/class/leds/amber/off_timer string=0 0,len=3

D/lights ( 118): [LedInfo] write attr ok name=/sys/class/leds/green/brightness string=0,len=1

D/lights ( 118): [LedInfo] write attr ok name=/sys/class/leds/green/blink string=0,len=1

D/lights ( 118): [LedInfo] write attr ok name=/sys/class/leds/green/off_timer string=0 0,len=3

All leds are off.

2- You reconnected the USB cable

V/NotificationService( 118): Battery Full, Charging

D/lights ( 118): [LedInfo] write attr ok name=/sys/class/leds/amber/blink string=0,len=1

D/lights ( 118): [LedInfo] write attr ok name=/sys/class/leds/amber/off_timer string=0 0,len=3

D/lights ( 118): [LedInfo] write attr ok name=/sys/class/leds/green/brightness string=1,len=1

D/lights ( 118): [LedInfo] write attr ok name=/sys/class/leds/green/blink string=0,len=1

D/BatteryService( 118): isUsbConnected() = true

D/StatusBarService( 193): updateIcon slot=battery index=21 viewIndex=14 old=StatusBarIcon(pkg=com.android.systemui id=0x1080296 level=100 visible=true num=0 ) icon=StatusBarIcon(pkg=com.android.systemui id=0x1080296 level=100 visible=true num=0 )

D/lights ( 118): [LedInfo] write attr ok name=/sys/class/leds/green/off_timer string=0 0,len=3

The green light is on because the battery is already full:

[12433.861175] [BATT] SMEM_BATT: get_batt_info: batt_id=1, batt_vol=4206, batt_temp=373, batt_current=51, eval_current=0, level=100, charging_source=0, charging_enabled=0, full_bat=1230000, over_vchg=0 hv_enabled=0 at 12417625467124 (2011-10-24 18:17:40.719731708 UTC)

POWER_SUPPLY_STATUS=Full

I don't see any problems here?!
[Android Apps and Games] 3c:
No problem, nice to see new icon packs. If you want I can even publish your new pack on Android Market for everyone to use (?), renamed with your nickname of choice.

Just let me know.

Q: What's the 'CPU Load' icons on your taskbar? I'd like to create a new pack for System Tuner as well!
[Android Apps and Games] woprr:
Yeah, thx, we've already agreed it's not Your problem ;)
[Android Apps and Games] kam333:
sure, you can publish to the market as k3 ...

much appreciated

re: the cpu load icons im using quick system info, ive changed the icons for that also, here's the set
[Android Apps and Games] 3c:
I'm sorry I can't help. The log shows the green light should be on because your phone is plugged and already fully charged.

So except if the led is not green while charging, there is no problem. If so, you might have hardware issue.

Maybe first thing is to wipe your device and reinstall the ROM clean and see if the issue persists? What do you think?
[Android Apps and Games] 3c:
Your new icon pack is available here!

Thanks! Using it myself :D
[Android Apps and Games] kam333:
You don't waste anytime do you :eek:

Always happy to contribute a little.

Many thanks

Kam
[Android Apps and Games] ykrug:
100% battery, but 4mV...

Sorry, wrong post. You can delete it.
[Android Apps and Games] 3c:
They probably screwed the mV reporting up in that ROM. Not sure who said to wait for battery to be at 4200mV... Every battery is different, some go higher, some don't.
[Android Apps and Games] MCL1981:
I'm still unclear on the difference between the calculated capacity and the measured capacity.
[Android Apps and Games] 3c:
Details can be found here.

Note however, in the next update, the calculated value will disappear, to be replaced with an accuracy indicator for the measured capacity, which is based on actual readings.

The whole calibration screen should be much simpler, no more user inputs either.
[Android Apps and Games] edpo1976:
Request mA support causes battery lost

Hello, and thanks in advance for the support.

I've been testing Battery Monitor Widget, congrats for the goog work.

I've had a problem, and i need information.

I've used two times the option "request mA support" and i've noticed that my battery level has dropped immediatly from 28% to 17% the first time and 17% to 9% the second!.

How is this possible?. Is it normal?. It will be necesary calibrate battery because

of this problem?. Sorry for my horrible english, i'm really worried about this problem.

Thanks.
[Android Apps and Games] swieder711:
Sounds great. Looking forward to a simpler calibration screen.
[Android Apps and Games] edpo1976:
... no one?. It seems that 3c don't have any notice of this behavior. I'm totally lost about it.

Thanks
[Android Apps and Games] MCL1981:
What measurement determines the %?
[Android Apps and Games] 3c:
As mentioned on web site, unrelated to the 'support request'.

And I'm sure you can understand I cannot review all history content received from support request to find small discrepancies!

Make sure your battery is calibrated properly, so that the % reported is as accuracte as it can be.
[Android Apps and Games] 3c:
The % is reported by Android APIs using the battery driver. An internal algorithm determine the % from voltage.
[Android Apps and Games] MCL1981:
I see. That internal algorithm sucks I guess.

My evo indicates 100% at well below 4200 which is actual full. When it alleges 100, the Evo is still charging at 400-800ma and will continue to for another 2-3 hours until it levels off at 6ma.
[Android Apps and Games] edpo1976:
Of course, I understand, and i really appreciate the support.

It just seems to me an important issue, considerating that my battery was calibrated properly (using Battery Calibration after installing new ROM) and that i didn't do anything, but push the "support request" button.

I'm still testing the behavior of the battery after this problem and, as I said, so far so good. I hope it will be the same with all battery level.

Anyway, it seems that i'm the only one with this problem. I hope it's something punctual.

Thanks again
[Android Apps and Games] Fihlvein:
Sounds nice. If you're up for beta tester I can lend a hand.

I'm trying to get correct standby mA values for Sensation but so far it's proving to be really difficult. I know it's HTC's battery drivers faulth. Question, once I start to get more accurate % values, what happens when I remove BMW with it's data (e.g. full wipe), then I'll need to start cycling from scratch right? To avoid this would it be enough to backup BMW data using Titanium?

Oh and another question, is it possible to show the current mV value on notification bar? I didn't find a way myself looking through the market packages.
[Android Apps and Games] 3c:
Backup will definitely work, but note this:

- If battery history is saved on SD card, just make sure you don't wipe the SD card!

- If it is saved in data directory, it will be part of the backup (with Titanium or System Tuner).

By default the history is saved to SD card, you have a switch in the history settings to move it instantly to internal data.

Indeed there's no mV package at this time. Something to do I suppose.

Yep, getting precise standby mA values can be very different on Sensation or Evo 3D (and many other new HTC phones). Did you enable 'mA corrections'? I suppose so.

Note that for best results, only look at long standby times. A night in standby should provide more accurate mA results than a single hour in standby.
[Android Apps and Games] mattia.b89:
on my nexus s the widget report constantly -180mA ....

is normal ?
[Android Apps and Games] 3c:
custom kernel? The battery drain is messed up on your kernel.

Try some override (mA retrieval method) in the monitoring settings, if all fails, the 'Estimated' will work.
[Android Apps and Games] mattia.b89:
no, stock 2.3.6.... without root

but is Nexus S supported as well ?
[Android Apps and Games] 3c:
If you use 'Estimated' as override, yes.

As far as I know the Nexus S doesn't provide direct access to mA data like the Nexus One providing the file /sys/devices/platform/ds2784-battery/getcurrent

Not sure but it could be the nexus S has a similar file somewhere in /sys/devices/platform directory.

EDIT: Is the -180mA permanent? Or does it change after a while?

In any case, best to use the integrated 'mA support request' from the app settings. This provides direct insight on the battery data available. Don't forget to add a note referring to this thread.
[Android Apps and Games] zicovsky:
i'm getting a lot of negative MAs in cyanogen7 on my galaxy s.. anything in particular that needs to be done to get it to work?
[Android Apps and Games] MKairys:
Suggestion about buttons

I have a similar observation here to one I made about PM: you have two buttons (history, usage) and two more on the menu (estimates, clear). You could add those two to the main page and then the menu could open directly to settings - and estimates would be more handy.
[Android Apps and Games] 3c:
Thanks for your support purchasing the pro version, do you find the bonus widgets interesting, byt the way?

That's very odd, do you get the same issue during discharge?

Also, did you look at the estimates screen while charging, was the last value/last time correct?

The app should update the all-time ac estimates as soon as battery reaches 100%, and the screen should be updated. So you may clear your estimates (again :() and try to check what happens when battery reaches 100%...

Or easier, let your phone charge for a while, a few % are enough after clearing estimates and then unplug it, the data will refresh at that time!

If you could take a screen-shot before unplugging and after, that would really help!

Good point, noted in the todo list too :) Thanks!

Wondering why I didn't do it that way in the first place :D
[Android Apps and Games] Tokl:
Hi Cedric,

sounds very interesting! :)

Seems to going to be an great Logging App. :cool:

Are there possibility's to switching them (connections) on and off or only view/logging?

Another question:

Are there Plans to make the 2x1 Widget (not the graph) more configurable?

I mean like at the 1x1 Widget the possibility to choose at "widget contend" what kind of information is shown on what position?

(im asking because the 1x1 has to less positions, 5 are better than 3 :D)

Greetz Tokl
[Android Apps and Games] kamtsa:
Hi ccounotte, when the BMWP performs a periodic current sampling, does it measure the momentary current or the average current since the last sample (e.g. by reading change of the fuel guage current integrator and dividing by delta time) ?

Thanks for a great app!
[Android Apps and Games] MKairys:
Not terribly, TBPF... I like the single-cell widget in black-and-white :)

If I understand, then something is not working. It seems the USB charging estimate set itself to 53min (which I think is low by half) but the AC estimate stays at 3min. I took a screenshot then plugged it in AC and let it charge 5% or so, then uplugged from AC and took another screenshot. Here they are, HTH.

Also a s/s of my desktop; you'll see I like things spare :) The four icons in the center are FolderOrganizer folders in a hierarchy leading to over a hundred apps :) :)
[Android Apps and Games] 3c:
BMW will only view/log various system settings, starting with screen on/off.

I'm not sure about active tweaks yet, testing a few in PMW to see if it's reasonable... But I have a feeling it's better to separate monitoring from tweaking/messing phone settings.

In the TODO/WISH list. Not sure when as I don't have much free time these days.

Indeed! all your values are so low, it's quite surprising and very wrong!

On your screenshots I only see charging state, no screenshot just before unplugging (that would show 'last measured' time value)?

Looking at screenshots, I read it took 20 minutes to charge 6% or so... so that would give a 6 hours total USB charging time. If you clear the estimates first, it should be a straigt 6 hours!

The only way I can achieve the same results is by (un)plugging the phone and having the first % change after a few seconds, then (un)plugging to have BMW record invalid changes, for example 1% charged in 10 seconds, would give 16 minutes charge time.

So I suspect time values are wrong, hence the need to see 'last measured' value! This value is the difference between previous measure time and current time, so that's where the issue must be! I will review the code to see what could go wrong.
[Android Apps and Games] Tokl:
I saw this also on my HD2 more then one time!

I can not tell you why this happens, but an feeling is:

I use many different Android roms for testing on my HD2, my main OS is still WinMo. So i often switch between roms (booted from SD), that means i shut down android for example with 100% battery and boot up at another time with 20%.

Or vice versa an day after, so the estimates cannot work for me ;)

Maybe this is the reason?

Btw: I noticed that the graphs having problems with those "cuts in time".

When i look to the history graph, the missing time is not filled with nothing, its filled with the data recorded before, and then the displayed time is no more correct...

See this Screenshot:

I Swiched off this rom yesterday evening before 24:00, and swiched on this rom a few minutes before i have the screenshot taken...

But it still says on the left - the phone was on today at 13:30:42 (of corse it was on, but booted to WinMo ;) )

Greetz Tokl
[Android Apps and Games] MKairys:
I can't shoot the screen when plugged into AC...

So should I try some simple test on which I can report? Such as: clear history and reset estimates, plug into AC and chage overnight, record the estimates screen before and after unplugging?
[Android Apps and Games] Tokl:
Hi,

you can use drocap2 for screenshots (search in the market).

But u need to have root access...

Greetz Tokl
[Android Apps and Games] 3c:
No, it should not as it will try to update estimates on shutdown, then start anew on startup.

Yes, to improve reading speed time-stamp is not considered while parsing the history file.

The figure on your screen-shot look ok as far as I can tell.

A test fix has been added to the latest update on the Market based on the fact none of your estimates are correct, ever. please let me know if it improves by clearing estimates and charging for a few percent, then taking a screenshot before unplugging.
[Android Apps and Games] vlbrown:
Confused by Alarms and Voltage Threshold

Every other battery monitor I've used provides % battery remaining.

How do I convert this to Voltage?

If I want to set an alarm when the battery is low, how do I convert this to voltage?

The "sample" provided for "low" is 3500 (something). What is that in %?

Or am I really confused and this monitor doesn't monitor % charge at all (which would be really weird).

:confused: