GP32X.com - GP32 GP2X Pandora The Wiz - open source entertainment: Battery Test - Test Your Batteries Life - GP32X.com - GP32 GP2X Pandora The Wiz - open source entertainment

Jump to content

Posting Guide

When posting news don't forget to post your news source with reference links unless you are the autor of the software/hardware mod/other stuff you are posting about.
Even if you found it on XXX SITE forum use full site name linked to front page or reference post in their forum.
Why it is important to us?
We hate when news directly from GP32X are posted on others sities without credits but it doesn't mean we'll do the same.

For image hosting we recommend www.imageshack.us
For file posting use free GP32X File Archive at
http://www.gp32x.de

When posting images please don't use oversized images. Resize them to min. 350 px for pic in one row or use thumbnails linked to originals. When posting image please center them using tags
content


Posts need to be aproved first by our X-Team before they appear public here and on front page so don't post it twice.
  • (6 Pages)
  • +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

Battery Test - Test Your Batteries Life

#1 User is offline   Puck2099

  • GP Mania
  • Icon
  • Group: GP Guru
  • Posts: 421
  • Joined: 22-October 04
  • Location:Madrid, Spain

Posted 12 October 2006 - 07:30 PM

Posted Image


Hi,

Here you have the application in which I've been working for this week :)

What is Battery Test?
It's an utility used to test battery life and other related variables in an objective and accurate way, so you can do compare different battery brands or their electrical properties.

How must I install it?
Unzip the files anywhere in your SD card. After that, you will be able to launch the app from the 'games' menu.

How to use it
This program's objective is to test battery life in an accurate way. You should use some recently charged batteries. Launch this app and wait until batteries are depleted. After the GP2X hangs up (you can leave it overnight and check the results by morning), look for the file "stats.txt" that has been generated, and there you can see the results.

When you execute the program, you'll see a menu from which you can select the speed (from 120 to 300 Mhz) and writing rate (time delay between updates to the file "stats.txt" in the SD card). A shorter the time period means more accurate measures. However, when the program detects that less than a 10% of battery is remaining, it will change writing rate to 5 minutes (thanks Uncanny for the idea).

During the execution, a fire effect demo will be shown (code thanks to Joanvr) so you can check that the application is still running, and at the same time, processor speed, frames per second, elapsed time, and battery charge remaining will be displayed at the bottom part of the screen, both numerically and graphically.

The file stats.txt contains the following information: "current charge" is the actual charge when last measured, and "initial internal charge" and "current internal charge" refer to the exact measurement contained in the internal registers when the test started and after the last measurement, respectively.

Where can I download it?
You can download it here.

Regards

#2 User is offline   Megagun

  • GP32 Hardcore
  • PipPipPipPip
  • Group: GP32 Hardcore
  • Posts: 214
  • Joined: 15-June 06

Posted 12 October 2006 - 07:50 PM

<Tom Hanks>FIIIIIIIIIIIIIIIIIIIIIIIIRE!!!!</Tom Hanks>

Ontopic: Nice. Finally a way to measure battery life RELIABLY! :)

...man gp32wip is SLOW. 5 KB/s on a 4mbit connection. :(
In fact, I can't even download it because it just cuts off the download partway through. And no, not my connection being flaky I think.

This post has been edited by Megagun: 12 October 2006 - 08:00 PM


#3 User is offline   mrsnature

  • GP Mania
  • PipPipPipPipPip
  • Group: GP32 Hardcore
  • Posts: 460
  • Joined: 22-July 03

Posted 12 October 2006 - 08:02 PM

i guess its probably best to use a blank card for this in case the batteries die when writing to it and messing up the filesystem?

#4 User is offline   PokeParadox

  • Founder of Pirate Games - Penjin Coder
  • PipPipPipPipPipPip
  • View blog
  • Group: GP32 Hardcore
  • Posts: 3,710
  • Joined: 08-December 05
  • Gender:Male
  • Location:UK
  • Interests:Homebrew and Emulation!

Posted 12 October 2006 - 08:12 PM

I would imagine it could only potentially mess up the currently written file. It's not so much difference to when you do the CPU speed test and it crashes...

Any case just run your SD through your disk checking tool if you have problems.

#5 User is offline   Godmil

  • GP Mania
  • PipPipPipPipPip
  • Group: GP32 Hardcore
  • Posts: 338
  • Joined: 06-May 06

Posted 12 October 2006 - 08:21 PM

oh this sounds really cool. Maybe we could have some kinda wiki table where people can test different types of batteries at diff speeds to see which are best :)

#6 User is offline   XaMMaX90

  • GP32 Hardcore
  • PipPipPipPip
  • Group: GP32 Hardcore
  • Posts: 217
  • Joined: 06-June 06

Posted 12 October 2006 - 08:37 PM

GREAT!!!

#7 User is offline   Puck2099

  • GP Mania
  • Icon
  • Group: GP Guru
  • Posts: 421
  • Joined: 22-October 04
  • Location:Madrid, Spain

Posted 12 October 2006 - 08:54 PM

View Postmrsnature, on Oct 12 2006, 10:02 PM, said:

i guess its probably best to use a blank card for this in case the batteries die when writing to it and messing up the filesystem?


Well, it takes less than a second when writing the file and it does a writing each 5 minutes when batteries are near empty so there is 1 possibility between 300 in which batteries die when writing...

Anyway, it will only corrupt the result file, not your filesystem :rolleyes:

View PostGodmil, on Oct 12 2006, 10:21 PM, said:

oh this sounds really cool. Maybe we could have some kinda wiki table where people can test different types of batteries at diff speeds to see which are best :)


Yes, people on GP32Spain think the same, maybe we could merge both tables in the wiki :)

#8 User is offline   XaMMaX90

  • GP32 Hardcore
  • PipPipPipPip
  • Group: GP32 Hardcore
  • Posts: 217
  • Joined: 06-June 06

Posted 12 October 2006 - 09:05 PM

This stuff is really need for me =) I will go in the shop and test the battaries! Puck2099, you are really good coder... stop no you are really GREAT coder =)

#9 User is offline   Peter R

  • Member Title
  • PipPipPipPipPipPip
  • View blog
  • Group: GP32 Hardcore
  • Posts: 9,230
  • Joined: 11-April 04
  • Gender:Male
  • Location:Somewhere in Wiltshire or Somerset
  • Interests:Programming, Science and Computer Games.

Posted 12 October 2006 - 09:48 PM

View PostXaMMaX90, on Oct 12 2006, 10:05 PM, said:

This stuff is really need for me =) I will go in the shop and test the battaries! Puck2099, you are really good coder... stop no you are really GREAT coder =)

Not unless they let you use batteries for 4+ hours...

#10 User is offline   JimmySlam

  • GP32 Hardcore
  • PipPipPipPip
  • Group: GP32 Hardcore
  • Posts: 268
  • Joined: 30-May 06
  • Location:Brighton

Posted 12 October 2006 - 11:01 PM

I just updated the Spanish Wiki, u can copy the code and paste it for a quick process. Or just fill the tables, it is easy!

WIKI UPDATED:

Click Here and post your results!


Cheers

This post has been edited by JimmySlam: 12 October 2006 - 11:01 PM


#11 User is offline   Rivroner

  • Mega GP Mania
  • PipPipPipPipPipPip
  • Group: GP32 Hardcore
  • Posts: 1,085
  • Joined: 03-June 06

Posted 13 October 2006 - 12:35 AM

Thank you very much Puck :)

#12 User is offline   wrecK

  • Member
  • PipPip
  • Group: Members
  • Posts: 2
  • Joined: 12-July 06

Posted 13 October 2006 - 01:22 AM

I also did some battery related stuff a while ago.
Never bothered to post it on any of the forums, so might as well dump it all here.

My goal was to get a more accurate battery meter, so i wrote a small program to write the batt. level to a file every 5 minutes.

As you can see in the graph, the values all roughly follow the same curve (3 different batteries used), but in the large flat middle part, a small change in /dev/batt means a huge change in remaining time.

While a really accurate level meter isn't possible, it does look like you can get something a bit more usefull than the hi/mid/lo the default menu has.

I haven't bothered doing anything with this data yet, mostly because there are far more fun things to do with a gp2x than this :)

All the tests were made with the gp2x running DrMD playing megadrive/genesis games untill it freezed.


batteries used:

(best first)
ansmann digital 2700
gp 2700
uniross 2100

the ansmann 2700's were new, so they'll probably last even longer now (nimh's reach full capacity after a few charge/recharge cycles)

you can find all the stuff here

bat.c is the program that reads /dev/batt (you have to compile it to "bat" yourself)
bat.gpu is the shell script that runs it in the background every 5 minutes.
rest of the files are the spreadsheets used to generate the graphs (gnumeric is the original, other are converted and dont show all the graphs)

Hope this is usefull for anyone, maybe i'll return to it once i've finished with all the fun stuff :)

#13 User is offline   mdinire

  • GP32 Hardcore
  • PipPipPipPip
  • Group: GP32 Hardcore
  • Posts: 262
  • Joined: 26-July 06

Posted 13 October 2006 - 07:06 AM

With a pair of "Power-Plus 2600" I got with a charger on eBay..

STATISTICS:
Clock Speed: 200 Mhz
Running Time: 3:19:18
Average FPS: 81.59

Current charge: 10%
Initial internal charge: 878
Current internal charge: 675

..feel free to add this anywhere you want B)

#14 User is offline   cowai

  • hellolo.
  • PipPipPipPipPip
  • Group: GP32 Hardcore
  • Posts: 456
  • Joined: 19-December 05
  • Gender:Male
  • Location:Norway,
  • Interests:F5

Posted 13 October 2006 - 09:48 AM

Awsome app! One thing though. When I run at 200mhz the battery meter is at 100%, but when I underclock to lets say 120mhz, the battery says 74%. Why is that? Is it a bug?

#15 User is offline   Cervante

  • Gamer Tag :R3dAce
  • PipPipPipPipPipPip
  • Group: GP32 Hardcore
  • Posts: 561
  • Joined: 28-June 06
  • Location:SD card slot

Posted 13 October 2006 - 12:28 PM

Ok I dont understand the website, its in spanish.

Battery:CTA 2700mAH

STATISTICS:
Clock Speed: 200 Mhz
Running Time: 3:45:00
Average FPS: 81.31

Current charge: 0%
Initial internal charge: 910
Current internal charge: 656

  • (6 Pages)
  • +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic