yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Apps and Games] Tokl:
Things are (sadly) not as easy as they seems :(

Sorry, but the calculations in tobbbie's thread are not accurate :(,

let me explain why:

The mAh given from WinMo are an (not 100% correct) value, given by the battery driver.

1.: every rom uses their own driver, and so every rom tells you an little different mAh output!

I tested this with different roms - i switch off all connections an measure the mAh with full background and no programs loaded -> normally there should be the same result on same device, but no, the value is different from rom to rom.

2.: The result in mAh given is an average (actualized depending on battery driver every 10-60 seconds) so short peaks arent recognized

3.: An other problem is:

-make the test i described above, and enable mAh logging in BattClock.

-then let the battery run down.

-you will notice the mAh will going up from start to end (thats normal - the device uses power in Watt and not Ampere - so if the Volt of the Battery going down to the end of capacity, the mAh must going up -> the formula is P=U*I Watt=Volt*Ampere ) thats why i asked ZuinigeRijder to implement mW (milliwatt) -> but even this is not really accurate (also depending on battery driver)

-the manufacturers mAh are given compared to/when the battery is at full voltage/charge, and not when its running down :mad:

4.: Generally every Battery has less mAh the harder (higher) your drain is - for example: an battery lasts 5 hours at 1 watt (=5Wh), but less then one hour at 5 watt... (this is because of the internal resistor)

So you can see, the only way is to compare two batteries like i described above ;)

Make this test 5 times and you will get 5 times an huge difference!

Greetz Tokl
[Windows Mobile Apps and Games] Joe Bleau:
Re: BattClock Real Battery Capacity Test

It's rarely as easy at it seems... :) And yes that's correct: Watt=Volt*Ampere (P=VI) to measure electric power but our phones have a given max voltage where charging is cut off and a given min where the device is turned off so average mA * time is not a bad way to make a rough estimation all other things being equal.

Fully draining a battery 5 times in a row is a good way to shorten the battery's life IMO.:eek: I agree that it's not perfect & not suited to compare batteries across phone models and/or ROM's but it's good enough to compare them on the same phone with the same settings on the same ROM IMO, naturally those tests would not be accepted by NASA. :rolleyes:

The best method is using an external device & test the battery itself w/o the phone in controlled conditions but we are talking about convenience here. For example d0ugie's thread which I read a while ago: Investigation of battery capacity claims:

In my case my simple tests with the current BattClock logs showed that my brand new "OEM" battery bought on Fleabay has about the same capacity as my 2 other real OEM batteries that are about 1.5 years old. :mad:
[Windows Mobile Apps and Games] ZuinigeRijder:
Excel is so powerfull in date/time calculations, you better can do this by adding a column to calculate the elapsed hours and the delta from beginning.

See attached spreadsheet.

I added a column hours which just multiplies the date/time with 24, e.g. =A3*24

And the next column is the delta hours from the first value, e.g. =B4-B$2

And then make an x-y chart with the delta hours and Batt %.

See the result in the attachment.
[Windows Mobile Apps and Games] ZuinigeRijder:
I am willing to make a special BattClock testversion, which adds more logging, to find the cause. It is possible that the phones are not according spec, like the battery driver is on some phones not working. But maybe there is another problem which can be fixed.

However, I will only do this if people are willing to test :eek: Otherwise it does not make sense to put in the effort. And yes, the outcome is unknown :o
[Windows Mobile Apps and Games] cichmen:
I'm willing to test:)
[Windows Mobile Apps and Games] Tokl:
Thats real measuring :D:D:D

Ages ago i used "Pocket Battery Analyzer" for my older PPC to observe, no need for excel this shows the results directly on the device, but with an csv export function...

The only Battery i bought so far, which is really larger then the OEM one, is from Mugen Power batteries (i mean of course the standard size), but they were very expensive.

All other (cheap) stuff sold at ebay and co. is only trash and with luck nearly to the OEM with much shorter Battery live...

Greetz Tokl
[Windows Mobile Apps and Games] ZuinigeRijder:
Here you go then. See attachment.

1. Please uninstall a previous version of BattClock.

2. Unzip the attachment and copy the files in a directory of your phone.

3. Reboot your phone

4. Start BattClock manually after it has been fully started (in the stored directory)

5. Start BattConfig and make sure you show in Content Mobile KBits per Second (or Wifi Kbits per second when you want to test Wifi)

6. Enable Debug logging (in About screen)

7. Connect GPRS (or Wifi) and make sure you download data

8. Disable Debug logging and stop BattClock

9. Post the log file BattClock.log.txt

This version is the same version as 3.5.2, but with extra logging. So do not use this with debug logging on too long, because the log file can become huge then.

Of course, others who also have the problem that GPRS or Wifi is not counting, can do the same and post the log file.

Hope this gives me more insight :cool:
[Windows Mobile Apps and Games] Joe Bleau:
Mugen Battery Tests

Follow d0ugie.s link to his battery testing site & search page for Mugen... he's not happy with it to say the least.

My Fleabay's battery $ per amp hour: $5.60 approx. :p

BTW thanks for the Excel mod. :cool:
[Windows Mobile Apps and Games] reidler:
I will also be willing to test. I just need to get some things at work done. So I think I'll be able to test Wednesday unless I can get to it earlier. Unless Cichmen's test gets it resolved first.

Thank you again.
[Windows Mobile Apps and Games] cichmen:
Here it is. I've only tried mobile data, not wifi.
[Windows Mobile Apps and Games] ZuinigeRijder:
Thanks for the testing effort.

I see the following in the logging:

2011-02-27 09:34:54 -905994034 g_showlogMobile(true)

2011-02-27 09:34:54 -905994034 CRAS::GetData: 0

2011-02-27 09:34:54 -905994034 m_nCellularCount: 1

2011-02-27 09:34:54 -905994034 RasEnumConnections: 0

The last line indicates there there are no mobile connections found. And as such for BattClock there is no GPRS connection.

RASCONN rasconn[2];
rasconn[0].dwSize = sizeof(RASCONN);
DWORD dwCB = sizeof(rasconn);
DWORD dwConnections = 0;
RasEnumConnections(rasconn, &dwCB, &dwConnections);
LOGDEBUG2("RasEnumConnections", dwConnections);
for (int i = 0; i < (int) dwConnections; ++i) {
LOGDEBUG2("RasEnumConnections index", i);
LOGDEBUG2("RasEnumConnections Name", rasconn[i].szEntryName);

Because dwConnections = 0, BattClock does not know about the number of connections.

Microsoft RasEnumConnections also shows the usage pattern I use.

However, it might be that on your phone there are more connections than 2 and that RasEnumConnections just returns ERROR_BUFFER_TOO_SMALL :eek: Do you have a dual SIM:confused:

Attached a new test version, which also logs the RasEnumConnections return value and increases the default rasconn size from 2 to 6. Hope the fix is simple as that. Otherwise I have the error return code of the RasEnumConnections. Can you repeat the same steps.

Thanks.
[Windows Mobile Apps and Games] ZuinigeRijder:
Probably the Wifi and Mobile problem are unrelated. Cichmen reports the Mobile problem, so I focus on that first. That might be the same problem as with the Mobile connection you have. But for the Wifi, I expect is another problem. But take your time, do not hurry. We attack the problem step by step :rolleyes:
[Windows Mobile Apps and Games] ephestione:
Old post, but I just switched to Dutty's ROM, and I got no system>uptime key as well :(

I was used to checking the battery lifetime in days, yet in my old rom that key was present, and isn't anymore here.

I appear to find no documentation on the net either regarding this aspect.
[Windows Mobile Apps and Games] Tokl:
Yepp, thats an all known prob of the customs... (compatibility) ;)

Why did u use the Registry key instead of BattClocks internal mechanism:

Set the Minutes uptime

and Divide by 60 here:

Greetz Tokl
[Windows Mobile Apps and Games] cichmen:
Attached is result from second test. I have only one SIM.
[Windows Mobile Apps and Games] ZuinigeRijder:
So no luck:

2011-02-27 20:02:12 -957256558 m_nCellularCount: 1

2011-02-27 20:02:12 -957256558 RasEnumConnections returns: 0

2011-02-27 20:02:12 -957256558 RasEnumConnections: 0

That means that the function call was ERROR_SUCCESS, so Ok, but apparently your phone does not use the RasEnumConnections.

This post suggests that not all phones use Ras but another mechanism.

Hmmm, so no lead at the moment. Seems that I need to search for problems related to RasEnumConnections :mad:
[Windows Mobile Apps and Games] ephestione:
since it's a builtin check, it's not useful for me.

The way the uptimecheck works in battclock is to basically count the time it passed since battclock was started (and after all, Zuinige has no feasible other way to measure that). So, if you adjust the clock, restart battclock, or reboot the phone, it will be reset to 0 or otherwise changed.

The HKLM > System > Uptime > Clocksession DWORD value is instead calculated by counting the "ticks" while the device is on, so no matter how many times you reboot the device, unless you take out the battery or press the hardware reset button, the clocksession will still be counting.

That's great when you have to determine battery life.

It must be some kind of driver that is not present in every ROM build, alas.

EDIT: found something here at XDA: http://xdaforums.com/showthread.php?t=393997

Apparently this is called system quality metrics, and it must be removed from the SYS build that Dutty uses.

With it removed, the phone does less system calls, and possibly uses less resources... but I think having those stats was a neat feature :p
[Windows Mobile Apps and Games] ZuinigeRijder:
Seems that there is another way to get network adapter info and statistics.

But that is a total different way of getting statistics. I need to think about this one :cool:
[Windows Mobile Apps and Games] ephestione:
quick bug report on 3.5.2: after playing a while with battconfig, especially by changing font colour, it seems that the background image setting is ignored, and instead the background colour is picked up. After that, no matter what you do in battconfig, if you want to solve the problem you need to restart battclock.

Also, since this thing happened while I was playing with stripes, I am not sure how the stripe image backgorund works: does it automatically pick up the image background from the "colours" page?
[Windows Mobile Apps and Games] weissbach:
thank you :)
[Windows Mobile Apps and Games] Joe Bleau:
Thank You, Thanks Button & $

Did you click on the Thanks button of the post you found useful?

BTW guys, looking at the date of post #1 in this thread 5th January 2010, I think that it's pretty admirable that ZuinigeRijder is still so active in this thread with personal support & constantly updating his awesome & highly tweakable app.

He just added a Paypal USD donate link to his signature so don't hesitate to send him $5 or more to say thanks & motivate him to continue to help us. :cool:
[Windows Mobile Apps and Games] Tokl:
I think i have had this also in version 3.5, to restart BattClock to get a new/actualized Background image...

The Stripes uses the same Background image like the Text (I think this makes sense ;) :D )

Edit:

If you mean to setting an background color for stripes, while having an Background image for text: nope, its not working for me (only the 10% cuts in the stripes comes with selected color, after restart of BC)

Greetz Tokl
[Windows Mobile Apps and Games] ZuinigeRijder:
Indeed the same background image is used for Stripes and Text areas. Apparently a bug, that you need to restart BattClock after configuration. I will look into that one.

The non-filled stripe part only is filled with the background image. If you do not have a solid (gradient) stripe the few pixels are indeed filled with the back color. I have chosen this, because otherwise filling those few pixels with a background image will cost too much performance. So I hope you can choose a decent background color in that case.
[Windows Mobile Apps and Games] Tokl:
I think i had never recognized this on my nearly black background, only because of checking this twice ;-)

Thanks and greetz Tokl
[Windows Mobile Apps and Games] ZuinigeRijder:
I have made again another test version, which show the network info in above link.

See attachment for the test version.

1. Please uninstall a previous version of BattClock.

2. Unzip the attachment and copy the files in a directory of your phone.

3. Reboot your phone

4. Start BattClock manually after it has been fully started (in the stored directory)

5. Start BattConfig and make sure you show in Content Mobile KBits per Second (or Wifi Kbits per second when you want to test Wifi)

6. Enable Debug logging (in About screen)

7. Connect GPRS (or Wifi) and make sure you download data

8. Disable Debug logging and stop BattClock

9. Post the log file BattClock.log.txt

See if this shows usable statistics for Wifi and GPRS.
[Windows Mobile Apps and Games] AnartzJavier:
Doubt in the configuration.

Hello to all!!!

Not I know if somebody has commented it in this thread, but the option that has BattClock:

"Option to have a multiplier and divider for an Info value ("InfoMultiplier1".."InfoMultiplierN"), e.g. to

convert a value from seconds to hours, convert from Bytes to KB or MB."

Serious ZuinigeRijder of great help for me that you told me how I must make to transform

into BattiClock from Bytes to KB in all the mensurations of I traffic of data.

Thank you for this I magnify program.

And forgive me all for English of Google.

In summary. How do I convert from bytes to KB, in BattyClock?

:confused::confused::confused:

What values should I set in the program?.
[Windows Mobile Apps and Games] holmanm:
1 KiloByte = 1024 Bytes (or 1000 Bytes to some)

So to go from Bytes to KB, under Display Formats, divide by, put either 1024 or 1000.
[Windows Mobile Apps and Games] AnartzJavier:
Thank you for the answer. But I still have left the doubt of as I have to put it in the fields....(" InfoMultiplier1 ".." InfoMultiplierN ")

:confused::confused::confused:
[Windows Mobile Apps and Games] holmanm:
First of all, I realized you want to go from Bytes to KiloBytes but all the BattClock info is already in KBs, so no need to convert.

Second, if you are going by the line:

This is misleading, the fields are "Multiply With" and "Divide By" so if you wanted to show Bytes instead of the default KBs you would put 1024 (or 1000) in "Multiply With".

I haven't followed this thread all that long so he may have used "InfoMultiplier" at first and then changed to "Multiply With" and "Divide By" later. If this doesn't help you might want to post your questions in both Engilsh and your native language, there might be someone who speaks your language and can answer it easier to understand.
[Windows Mobile Apps and Games] ZuinigeRijder:
The documentation shows the names in BattConfig settings screens and behind it the associated registry key. The latter is for people having WM5 without Touchscreen. Then the BattConfig program is not working for them, because they miss some User Interface controls in .NET Compact Framework 2.0.

So do not get confused by the documentation:

Multiply ("InfoMultiplier1".."InfoMultiplier51"), Divide By ("InfoDivideBy1".."InfoDivideBy51")
[Windows Mobile Apps and Games] cichmen:
Hi, you have my log in PM.

Cichmen
[Windows Mobile Apps and Games] ZuinigeRijder:
Ok, it looks like I get now TCP statistics.

I assume you did now only enable Mobile/GPRS data?

Because I see:

2011-03-02 08:17:47 -1434628138	Adapter Name:	: WWAN1-INTERNET.T-MOBILE.CZ-1

2011-03-02 08:17:47 -1434628138	Adapter Desc:	: WWAN1-internet.t-mobile.cz-1

and I see at the beginning:

2011-03-02 08:17:03 -1434628138 -------------------------

2011-03-02 08:17:03 -1434628138 This is GetTCPStatistics()

2011-03-02 08:17:03 -1434628138 -------------------------

2011-03-02 08:17:03 -1434628138	Active Opens: : 0

2011-03-02 08:17:03 -1434628138	Passive Opens: : 0

2011-03-02 08:17:03 -1434628138	Segments Recv: : 0

2011-03-02 08:17:03 -1434628138	Segments Xmit: : 0

2011-03-02 08:17:03 -1434628138	Total # Conxs: : 0

And at the end:

2011-03-02 08:18:52 -1434628138 -------------------------

2011-03-02 08:18:52 -1434628138 This is GetTCPStatistics()

2011-03-02 08:18:52 -1434628138 -------------------------

2011-03-02 08:18:52 -1434628138	Active Opens: : 3

2011-03-02 08:18:52 -1434628138	Passive Opens: : 0

2011-03-02 08:18:52 -1434628138	Segments Recv: : 212

2011-03-02 08:18:52 -1434628138	Segments Xmit: : 260

2011-03-02 08:18:52 -1434628138	Total # Conxs: : 0

So at least the Segments received and Transmits can be monitored.

However, I do not know how heavy this is (CPU performance) and it is also a total different solution as what is in BattClock now.

I will await till Reidler gets time to test & post some log file for Mobile & Wifi, to be sure he has the same sort of problem :cool:
[Windows Mobile Apps and Games] reidler:
I've been so busy. I have people breathing on me to get taxes worked on. BUT you've been so excellent in helping us I feel an obligation to work on this (especially since you're really doing this fix for us too! - thank you). May I ask you please (I hope you don't mind), could you give me the instructions again for what exactly you would like me to do and which test copy of Battclock to use. You could just point me to the post numbers to read. Since I'm rushed I'm afraid if I just look back at the posts I might pick the instructions from the wrong one. I will try looking back at them if I get to it before you respond.

Thank you.
[Windows Mobile Apps and Games] reidler:
OH Never mind. I found it - post # 1923. I apologize for even asking.
[Windows Mobile Apps and Games] ZuinigeRijder:
Do not worry, I am patient as always. First things first :) So do not feel obliged to do it now. A few days later is also fine.

post 1923 contains the instructions and test version
[Windows Mobile Apps and Games] marangoni:
Hi there,

Just writting to thank ZuinigeRijder for this wonderful app. Installed in my device and working perfect.

Regards
[Windows Mobile Apps and Games] marangoni:
Open battconfig, enter in "display formats" field, find the parameter you want to change by pressing the "+", and enter the conversion factor in the correct field ("multiply by" or "divide by"). That is all.

Here conversion table:

1 byte = 8 bits and 1 kilobyte (K / Kb) = 210 bytes = 1,024 bytes

1 megabyte (M / MB) = 220 = 1,048,576 bytes and 1 gigabyte (G / GB) = 230 bytes = 1,073,741,824 bytes

1 terabyte (T / TB) = 240 bytes = 1,099,511,627,776 bytes and 1 petabyte (P / PB) = 250 bytes = 1,125,899,906,842,624 bytes

1 exabyte (E / EB) = 260 bytes = 1,152,921,504,606,846,976 bytes

regards

------------------------------------------------------------------------------

Abres el battconfig y entras en "formatos de pantalla". Buscas el parametro que quieres modificar pulsando el "+" hasta encontrarlo y pones el factor de conversión bien en el campo "multiplicar con" o "divide por". Es todo.

Pongo una tabla de conversión arriba.

Salu2
[Windows Mobile Apps and Games] ephestione:
Suggestion/request with working draft:

Since only few WM6.5 builds have the SQM (system quality metrics) package left in them, and so also the System\Uptime reg keys, the other ones are left with no builtin uptime measuring system. The way battclock measures uptime is basically to count the time passed since last time it was started (at least this is what I could find out), and this is probably useful for many users already.

Drawbacks are that if you restart battclock, or reboot the device, timer is reset.

The cool thing about hklm-system-uptime-clocksession value was that it got reset only if you pressed on reset hardware button, or took out the battery, so it survived a software reboot.

A way to implement this on battclock is to do the following (let's assume it's the very first run of the system):

1) Battclock starts and as soon as it does, it checks the current battery % and stores its value in a file or reg key, together with the instant time/date, and the uptime timer is set to 0

2) battclock periodically checks battery % (which it already does anyway in 90% of the user configs), and as long as said % is equal or lower than the starting % stored at the beginning, battclock keeps increasing the uptime timer

3) if battclock is restarted, or phone is rebooted (in anyway), battclock upon start first checks if there's a previously stored value for the battery% and time/date, hence if present, checks this value against the current battery% value. If the stored value for batt% is higher or equal to the current measured batt%, battclock keeps counting the uptime SINCE the time/date value that was stored, regardless of what happened in the meantime; if instead the stored batt% is LOWER than the current measured batt%, it means either that the battery is charging or has already been recharged, or (as in my case) it's been switched with another full battery, and in this case, the NEW batt% and NEW time/date are stored in registry/file, and those are checked against to compure the system uptime.

4) If the battery is currently charging (hence, it's not been switched with another full battery) then battclock refrains from storing the new batt% and time/date values just yet, and waits until the battery is not in charging status anymore, to store the newest values.

5) From then on, as long as the current batt% is <= than the store batt%, battclock continues computing the uptime against the stored time/date value.

This kind of measurement would be parallel to the current method of uptime measurement, and just a different tool to check the battery life for all those people who have a spare battery, and just switch between the two when one is out... or even for all those who have just one battery, but refrain from doing frequent charges, and instead prefer to do only full charges up to 100%.

Do you think this is feasible?
[Windows Mobile Apps and Games] reidler:
OK. I am sorry for taking so long to do this. Last night I copied all of my settings to make sure I have them - besides exporting the registry. I just followed the above instructions. I uninstalled Battclock (boy did it hurt to do that, ouch). I downloaded the attached file v3.5.3-test. I unzipped it and copied it to my phone. I rebooted the phone. I went in to the folder and clicked on Battclock. Then I went to Battconfig. I changed content number 2 to be Mobile kbits per second. I went to ABOUT and clicked on LOG. Then I went to Opera browser and opened a web page. I closed that and went back to unclick the log and then turned off Battclock. I renamed the log file to include the word mobile. Then I did the same for wifi. I had turned on wifi and opened a web page. I renamed that file to include the word wifi. I am attaching those two files.

The phone was EXTREMELY SLOW while running the test. I was nervous until I reinstalled Battclock 3.5.2 again. Phew!

I hope these test files help you.

Eli