View Full Version : BatteryGraph - a program for showing batterylevels in a graph
jwittema
04-24-2003, 08:00 AM
Hi,
I wrote a program that shows the batteryvoltage and percentage over the past few days in a graph. It will also show the device ontime since the last charge/new battery. Furthermore it shows the device ontime per day in the graph. For more information or download look here (http://palm.JeroenWitteman.com/BatteryGraph/).
The program should work on any Palm or Clie with OS 3.5 or higher (should even work on OS5) and it support Hi-Res (320x320) on Clie's.
See attachment for a screenshot.
Let me know what you think.
Jeroen
tifosiv122
04-24-2003, 08:48 AM
I will use it for the next few days and provide feedback.
Erik
knowledge
04-24-2003, 09:02 AM
Thanks. I will provide feedback also.
knowledge
04-24-2003, 09:14 AM
I got a fatal error when trying to run the program.
jwittema
04-24-2003, 09:20 AM
Originally posted by knowledge
I got a fatal error when trying to run the program.
On which clie are you running it?
Please post more details.
timw_de
04-24-2003, 10:05 AM
me too .....
fatal error
NX70V/E
tifosiv122
04-24-2003, 10:10 AM
No error NX70v
Erik
timw_de
04-24-2003, 10:18 AM
strange, i had the feeling it didn't install correctly, so I copied it manually to my card. when i try to copy / or move it to the launcher dir, it says "generic file error" and deletes it
tried it a few times
helmutk
04-24-2003, 10:20 AM
No errors for me so far on my NX70V. I will be running it from the MS.
I just tried moving it to RAM from the MS with no problems.
timw_de
04-24-2003, 10:26 AM
weirder and weirder, i got it installed an i can start it
but if i try to set preferencess or options i get the following message
"stringmgr.c line:72, null
string passed"
then soft reset
knowledge
04-24-2003, 10:39 AM
I got a fatal error message on my NZ90.
davidtm
04-24-2003, 11:13 AM
I installed on SJ33/U and also had problems:
1. Initial installation: Fatal Exception at end of Hot Sync when program was installed. Reset, Battery Graph was in launcher (Sony's basic) and program launched.
2. Tried to set Preferences: "String Mgr.c, Line: 65, NULL string passed" message, then Reset
3. Tried to set Disp Options: ditto, Reset
4. Tried to set Options (button): ditto, Reset
5. Deleted program and tried to reinstall: Fatal Exception before end of Hot Sync
It's a goner now. Let us know when the kinks are out.
Noodles Hovar
04-24-2003, 11:40 AM
Right after HotSyncing this app my NR70 was hosed by an uninvited hard reset.
Beware!
tifosiv122
04-24-2003, 11:43 AM
hmm...thats odd..
if it helps any I installed the program with IR.
Erik
I just , within the last 5 minutes, downloaded the program and HotSynced. As "davidtm" above describes, the same happens to me. I am using NX60 with LauncherX. It looks like a nice little program and I hope it gets fixed. There must be some application conflict.
jwittema
04-25-2003, 05:50 AM
OK, since the program runs without any problems in the Palm emulator and simulator, I would like to have some volunteers run a "debugversion" of my program which shows step by step what it is doing so I can determine where and hopefully what goes wrong.
Please send me your email address if you would like to help and I will send you a debugversion.
Thank you!
Jeroen
PS If you don't want your email address to be shown in this forum send me a pm or an email.
PS2 Sorry to all the people having soft resets because of my program. Since it has worked without any problems on my SJ30 and in the Emulator with various ROM images I did't expect any problems.
tifosiv122
04-25-2003, 06:46 AM
I'm on my second day with the program without any problems. Feel free to send me whatever you want.
tifosiv122@hotmail.com
BTW: NX70V/U
Erik
jwittema
04-25-2003, 06:53 AM
Originally posted by tifosiv122
I'm on my second day with the program without any problems. Feel free to send me whatever you want.
tifosiv122@hotmail.com
BTW: NX70V/U
Erik
Well, since it runs without problems on your device, I don't think it's usefull for you to run a debug version, but thanks for the offer, I will contact you if I think I have something usefull for you to test.
BTW a NX70 runs OS5, right?
Jeroen
Crashed my T665 as soon as I synced it, and when I tried to run it after a reset. It looks like a neat little app, but I'll wait until it's stable.
helmutk
04-25-2003, 07:51 AM
Second day on my NX70 (OS5) with no problems evident yet either.
davidtm
04-25-2003, 08:50 AM
Update:
Today's HotSync encountered a minor problem:
-- Backing up db BatteryGraphDB to file C:\Program Files\Sony Handheld\M****D\Backup\BatteryGraphDB.PDB
System synchronization failed
Protocol Error: Handheld file could not be opened. (4004)
I had deleted the app from the Launcher menu, but I see in Filez that the DB file is still there, and I cannot delete it through Filez. Probably not a big deal, but a little annoying.
jwittema
04-25-2003, 09:09 AM
Originally posted by davidtm
Update:
Today's HotSync encountered a minor problem:
-- Backing up db BatteryGraphDB to file C:\Program Files\Sony Handheld\M****D\Backup\BatteryGraphDB.PDB
System synchronization failed
Protocol Error: Handheld file could not be opened. (4004)
I had deleted the app from the Launcher menu, but I see in Filez that the DB file is still there, and I cannot delete it through Filez. Probably not a big deal, but a little annoying.
You can't delete "BatteryGraphDB" on you handheld using Files? That's weird. Does Filez give any reason why it can't delete it?
Can you check the details of BatteryGraphDB? It should be of type 'DATA', creator should be 'BatG' and the version id should be '9'.
On the attributes tab only backup should be checked (unchecking this could help to delete it maybe).
BTW I have received confirmation that my new debug beta version succesfully runs on a TungstenT (which it didn't before). If it also works without the debug info I will place a new version available for download on my homepage.
hansschmucker
04-25-2003, 09:13 AM
Problems on first attempt.
Crash on Hotsync sorting
-softreset
Start BatteryGraph
-fatal exception
Deleted without problems
2nd attempt
Hotsync to card
Moved to RAM with McFile
works
mjhamilton
04-25-2003, 09:28 AM
installed on my NX70 to MS and works fine with no reset issues!!
davidtm
04-25-2003, 09:30 AM
jwittema,
The Delete Error message is: "An error prevented the file from being deleted."
The attributes are "DATA" and created by BatG as you said.
Unchecking Backup made no difference.
The file is 128b (NOT k) and has 1 record.
timw_de
04-25-2003, 09:34 AM
Try this
hotsync the program to the card - it will probably work
then use Zlauncher to move the program from card to RAM
it will probably still work
jwittema
04-25-2003, 10:01 AM
Originally posted by davidtm
jwittema,
The Delete Error message is: "An error prevented the file from being deleted."
The attributes are "DATA" and created by BatG as you said.
Unchecking Backup made no difference.
The file is 128b (NOT k) and has 1 record.
It probably thinks the file is still in use. Try soft resetting you device and then try to delete the file again.
Some other good news: I think I have found the bug and killed it :)
Hotsyncing the program to memory card is a way to avoid the bug, I will place new version online soon!
Jeroen
jwittema
04-25-2003, 10:28 AM
Version 1.01 is available for download (http://palm.JeroenWitteman.com/BatteryGraph/download.php) which should not contain the bug causing a soft reset right after hotsync.
Please remove version 1.00 from your device before installing and make sure BatteryGraphDB is also removed (by using Filez or other filemanager).
Jeroen
tifosiv122
04-25-2003, 10:44 AM
Installed Ver. 1.01 via IR on NX70V/U (OS5)
Works perfectly - no errors
Good luck everyone else.
Erik
Just installed and it is working. No problems with HotSync and no problems with setting preferences. Great job - what was causing the problem?
Reggie
04-25-2003, 11:11 AM
So can someone do a battery graph of runinng MP3's from an MS compared with the CF? ;)
zawackip
04-25-2003, 11:37 AM
Just installed, went well, I will let you know what I think of the program in a few days.
jwittema
04-25-2003, 11:40 AM
Originally posted by Jag
Just installed and it is working. No problems with HotSync and no problems with setting preferences. Great job - what was causing the problem?
Probably because of accessing a global variable in response to sysAppLaunchCmdSyncNotify launchcode, which (of course) is not allowed. The unfortunate thing is that this launch code is not sent on the emulator and I didn't use the global variable if a database already existed (ie BatteryGraph has already been run on the device) so I hadn't noticed the problem.
Installing to memory card and then moving the program to ram also prevented it from receiving this launch code (and creating a database upon program launch which avoided the problem).
Jeroen
Cheechwhiz
04-26-2003, 10:23 AM
I finally got the graph/meter to work.
I had to go into my files and delete the DATA file [I also blew off the _a68k]. Once i did that and allowed Lx to refresh, the app came up fine.
This was after many fatals on different verisons of the app, each time when I tried to access the 'options'. The dead giveaway this time was I had NOT seeen the 'grid' previously when the app came up, just a white screen.
Looks like a nice lil' proggy.
I'll post again in a few days with anything else.
Thanks for the nice work.
davidtm
04-26-2003, 08:14 PM
Yay! I installed the newest version (1.02) and it seems fine. Now all I have to do is explore it.
Thanks for the work and responsiveness!
tifosiv122
04-28-2003, 10:19 AM
Is it me or is the program not accurate at all?
For example:
Status: Total Time: 1 Day 07:53:04
Time On: 1 Day 06:05:07
I only used my Clie for around 1 hour in the last 2 days...this is not correct.
Erik
cheechwhiz
04-28-2003, 10:33 AM
I have had this running successfully for a few days now.
It seems accurate enough for me.
My only requests for future versions would be to up hours available in the " on time per day scale". If the unit stays on in the cradle, the hours can go up quickly. Also to increase the size/density of the "on/off' hash maks at the bottom and set their color to basic black. The colors do not show up well with many background tones.
Ronbot
04-28-2003, 11:01 AM
Originally posted by tifosiv122
Is it me or is the program not accurate at all?
Erik
It's not just you. I had the same kind of thing.
tifosiv122
04-28-2003, 11:06 AM
Originally posted by Ronbot
It's not just you. I had the same kind of thing.
My clie was also off, but in the cradle sometimes, but off and not for that amount of time. I also noticed that on occation my "on time" jumped up and down.
On a side note, I still think its a great little program and will continue to use it as updates are provided.
Erik
jwittema
04-28-2003, 11:52 AM
Originally posted by tifosiv122
Is it me or is the program not accurate at all?
For example:
Status: Total Time: 1 Day 07:53:04
Time On: 1 Day 06:05:07
I only used my Clie for around 1 hour in the last 2 days...this is not correct.
Erik
Could you check if it is still storing events into the database at device swith-on and off? You can see the number of events in the database on status screen. If you switch off your device and turn it on again this number should be increased by 2. (Status screen should update once every 5 seconds, exit and enter status screen to be sure of an update).
If the number doesn't increase that explains it. You can fix this by going to the preferences and disable "register for on/off notification" (accept the warning) and enable it again.
Jeroen
tifosiv122
04-28-2003, 01:12 PM
Originally posted by jwittema
Could you check if it is still storing events into the database at device swith-on and off? You can see the number of events in the database on status screen. If you switch off your device and turn it on again this number should be increased by 2. (Status screen should update once every 5 seconds, exit and enter status screen to be sure of an update).
If the number doesn't increase that explains it. You can fix this by going to the preferences and disable "register for on/off notification" (accept the warning) and enable it again.
Jeroen
Nope went from 79 to 81.
Erik
davidtm
04-28-2003, 01:22 PM
Originally posted by cheechwhiz
My only requests for future versions would be to up hours available in the " on time per day scale". If the unit stays on in the cradle, the hours can go up quickly. Also to increase the size/density of the "on/off' hash maks at the bottom and set their color to basic black. The colors do not show up well with many background tones. [/B]
I agree. Also, I'd vote for the marks and lines being "bolder" or thicker to be more visible.
jwittema
05-03-2003, 08:40 AM
Hi,
I released a new version with some fixes and updates. Download here (http://palm.jeroenwitteman.com/BatteryGraph/download.php).
fixed a bug in the Clie hires detection routine causing a program crash on Sony Clie PEG-S360
added workaround for getting unbalanced on/off event on OS5 devices when using builtin locking ("Lock & Turn off")
increased maximum on-time scale to 12 hours
added option to shade weekend days in graph
added option to change colors of the on and off markers (Show on/off switches)
moved color changing option to separate form (accessible from the menu) and added colored squares showing the selected colors
added the amount of on time for today to the status screen
Jeroen
davidtm
05-08-2003, 09:05 AM
Now that I've accumulated some data, looking at the graph is more helpful. I can't really speak to the accuracy issue raised by others, but I like the overview of use and time on correlated with battery voltage. It's also been interesting to see the discrepancy between voltage and "%" of battery.''
Thanks again for a nifty program!
<lie<onvert
05-08-2003, 08:30 PM
Hi,
I just popped V1.10 onto my S320, so far everything works fine, including hotsync. I will let you know if anything goes awry. In a day or so, I will install it on my NR to see how it performs there too.
Suggestion, perhaps you could add an internal conduit that will shunt the status details to the memopad??!!
Paratus
05-09-2003, 10:07 PM
Just gotta say great program. I've been wanting something to track my battery State Of Charge on my T615C for a while now. I'm an International Space Station Electrical Power System Flight Controller for NASA and when on console we basically watch battery SOCs all day. So now I can do the same thing with my clie!
I've noticed that my battery seems to be discharging quicker these days. That may be because its a year old now or maybe because I've started overclocking the processor with fastcpu. At least I can now do some testing.
Paratus
"Failure is not an Option" Gene Kranz Apollo 13 FD
Ddeath
05-10-2003, 03:28 AM
Installed it. Looks great. Will test it out and see how it performs. ;)
Upgraded to V1.10. This is a great little app. Better than BatteryLog hack.
Neat app, but I think it still has some bugs.
I had a chance to play around a bit. During the installation, the HotSync crashed my N760C initially. Recynced for the second time went though.
After the second day playing with it, I got a wierd display of 'Ontime: 36278 days...' see this screenshot 1 (http://www.cliesource.com/gallery/showphoto.php?photo=494) and this screenshot 2 (http://www.cliesource.com/gallery/showphoto.php?photo=495).
What gives?
I have a unique setup in my Clie. I would like to have the Clie to stay on while it is on the cradle or hooked up to the travel charger adapter. It used to stay on while it was on the cradle, but somehow the setup is no longer functioning after installing tons of apps. To work around the problem, I installed CradleSnd (http://palmgear.com/software/showsoftware.cfm?prodID=29316) that will automatically launch AlwaysOn (http://palmgear.com/software/showsoftware.cfm?prodID=1499) upon connecting the Clie serial bottom plug. The steady increase of % and mV, that you see on the first uphill graphs, reflect the fact that the Clie is on (hence discharging) while charging. If the Clie is off while charging the slopes of the graphs will be steeper as you see on at the end of the graphs. I wonder if this setup messes up the Ontime days display.
fengwei007
05-21-2003, 04:44 AM
Thanks. Nice program. Much better than the BatteryLog.
OldDocThedan
11-05-2003, 01:03 AM
After downloading this slick program I loaded it up and was amazed that my battery declined at such a rapid rate. Then I spent some time wandering the web trying to find a cheap replacement battery for my NX. Good luck on the cheap aspect of it! Had a thought and charged the CLie to the top and noticed that it would barley survive a day w/o draining even though I used it for 26 minutes. Then I did a hard reset and let it sit on for about the same time and noticed no drain at all throughout the day. As my battery seemed fine before installing the battery graph and pretty bad afterwards I've begun to suspect the program. Anyone else notice this?
vBulletin v3.0.3, Copyright ©2000-2012, Jelsoft Enterprises Ltd.