PPCGeeks Forums HTC Arrive HTC HD2 HTC Thunderbolt HTC Touch Pro 2 HTC Evo 4G HTC Evo 3D Samsung Galaxy S II Motorola Droid X Apple iPhone Blackberry
Go Back   PPCGeeks > Windows Mobile > WM HTC Devices > HTC Touch Pro 2 > Android On TP2 > Android On TP2 Development
Register Community Search

Notices


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-23-2011, 02:39 AM
highlandsun's Avatar
PPCGeeks Regular
Offline
Pocket PC: HTC G1, TP2
Carrier: T-Mobile
 
Join Date: Jan 2011
Posts: 86
Reputation: 240
highlandsun is keeping up the good workhighlandsun is keeping up the good workhighlandsun is keeping up the good work
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: [TESTING] SCBS: Improved battery meter system

jonpry: your app is reading Battery Voltage and reporting it as capacity. This fixes it.

Code:
diff --git a/app/src/com/prymfg/babs/HtcBattery.java b/app/src/com/prymfg/babs/HtcBattery.java
index 3a7830f..e6c4acb 100644
--- a/app/src/com/prymfg/babs/HtcBattery.java
+++ b/app/src/com/prymfg/babs/HtcBattery.java
@@ -73,7 +73,7 @@ public class HtcBattery {
         if(real_device)
         {
             try {
-                String str = readFileAsString("/sys/devices/platform/htc_battery/power_supply/
battery/batt_vol");
+                String str = readFileAsString("/sys/devices/platform/htc_battery/power_supply/
battery/capacity");
                 return str.substring(0,str.length()-1) + "%";
             } catch (IOException e) {
                 return "busted";
(I've also fixed this in your kernel code so that it doesn't highjack the batt_vol reading with capacity any more, since it's already reporting capacity in the capacity node where it belonged... http://lists.xdandroid.com/pipermail...ay/000272.html)

Last edited by highlandsun; 05-23-2011 at 02:42 AM.
Reply With Quote
This post has been thanked 2 times.
  #2 (permalink)  
Old 04-17-2011, 01:36 AM
ndno's Avatar
VIP Member
Offline
Pocket PC: Touch Pro 2
Carrier: Sprint
 
Join Date: Jan 2010
Posts: 421
Reputation: 3570
ndno is still contributing even after becoming a VIPndno is still contributing even after becoming a VIPndno is still contributing even after becoming a VIPndno is still contributing even after becoming a VIPndno is still contributing even after becoming a VIPndno is still contributing even after becoming a VIPndno is still contributing even after becoming a VIPndno is still contributing even after becoming a VIPndno is still contributing even after becoming a VIPndno is still contributing even after becoming a VIPndno is still contributing even after becoming a VIP
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: [TESTING] SCBS: Improved battery meter system

OK, another day a half of data collection, here are my new values from the attached scbs log files; the se value got down to 0.007:


cc=0.308551483
cb=151.246337531
rc=1.195478281
re=0.136412463
vf=1.103000000
cf=0.312500000
lr=0.000001000
sl=9.589367021
se=0.007547648

Gonna try another distribution over at neopeek with this SCBS-kernel system now. Thanks!
Attached Files
File Type: zip scbs.zip (635.9 KB, 0 views) Click for barcode!
Reply With Quote
  #3 (permalink)  
Old 04-17-2011, 08:04 AM
hekc0211's Avatar
hekc0211
Guest
 
Posts: n/a
Mentioned: Post(s)
Tagged: Thread(s)
Re: [TESTING] SCBS: Improved battery meter system

I have installed it the battery meter works Great on my TP2 Rhodium 100.
But the Kernel Blocks the use of my wifi...

For so far i can live with it...
I am fully open for any tests on this smartphone...For So Far thnx alot
Reply With Quote
  #4 (permalink)  
Old 04-17-2011, 09:43 AM
jonpry's Avatar
PPCGeeks Regular
Offline
Pocket PC: rhodium
Carrier: tmobile
Threadstarter
 
Join Date: Apr 2010
Posts: 70
Reputation: 715
jonpry knows their stuffjonpry knows their stuffjonpry knows their stuffjonpry knows their stuffjonpry knows their stuffjonpry knows their stuffjonpry knows their stuff
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: [TESTING] SCBS: Improved battery meter system

heck0211,

The best thing to do is just to use the wistilt2 testing kernel pack with zImage and modules. It will get wifi working for you.
__________________
Hmm, Like my work? Don't be shy, donate!.
https://www.paypal.com/cgi-bin/websc...=VZ32N65HCXZBU
Reply With Quote
  #5 (permalink)  
Old 04-17-2011, 03:41 PM
steveholtam's Avatar
Regular 'Geeker
Offline
Pocket PC: Touch Pro
Carrier: Sprint
 
Join Date: Aug 2008
Posts: 261
Reputation: 145
steveholtam is keeping up the good worksteveholtam is keeping up the good work
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: [TESTING] SCBS: Improved battery meter system

Jon, attached is a large log file that I am not having any luck analyzing since it is quite large. I think its a couple of days worth of operation.
Attached Files
File Type: 7z scbs.7z (646.1 KB, 2 views) Click for barcode!
Reply With Quote
  #6 (permalink)  
Old 04-17-2011, 05:34 PM
jonpry's Avatar
PPCGeeks Regular
Offline
Pocket PC: rhodium
Carrier: tmobile
Threadstarter
 
Join Date: Apr 2010
Posts: 70
Reputation: 715
jonpry knows their stuffjonpry knows their stuffjonpry knows their stuffjonpry knows their stuffjonpry knows their stuffjonpry knows their stuffjonpry knows their stuff
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: [TESTING] SCBS: Improved battery meter system

Steveholtam,

Here is what i got from your log in a slightly different format:

Rc: 0.460259, Re: 0.217757, Cc: 0.425917, Cb: 106.443573 Sl: 14.180931: Se: 0.058490
Reply With Quote
This post has been thanked 1 times.
  #7 (permalink)  
Old 04-18-2011, 02:20 PM
steveholtam's Avatar
Regular 'Geeker
Offline
Pocket PC: Touch Pro
Carrier: Sprint
 
Join Date: Aug 2008
Posts: 261
Reputation: 145
steveholtam is keeping up the good worksteveholtam is keeping up the good work
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: [TESTING] SCBS: Improved battery meter system

Quote:
Originally Posted by jonpry View Post
Steveholtam,

Here is what i got from your log in a slightly different format:

Rc: 0.460259, Re: 0.217757, Cc: 0.425917, Cb: 106.443573 Sl: 14.180931: Se: 0.058490
Thanks Jon. My sleep error number just sucks all around... Oh well, hopefully your code will give me a better idea how much juice I actually have left at any time though.
Reply With Quote
  #8 (permalink)  
Old 04-18-2011, 06:36 PM
toadlife's Avatar
Lurker
Offline
Pocket PC: T-Mobile Touch Pro 2
Carrier: T-Mobile
Location: Lemoore, CA
 
Join Date: Dec 2008
Posts: 15
Reputation: 15
toadlife is a n00b
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: [TESTING] SCBS: Improved battery meter system

After creating a bogus conf that sent my phone in a reboot-loop, I credated another one...

Code:
cc=0.486578467
cb=86.509612234
rc=0.413599619
re=0.174350114
vf=1.098000000
cf=0.312500000
lr=0.000001000
sl=15.229616050
se=0.014369028
Even without the .conf, the meter is much better!
Reply With Quote
  #9 (permalink)  
Old 04-19-2011, 01:45 PM
manekineko's Avatar
Regular 'Geeker
Offline
Pocket PC: Touch Pro 2
Carrier: Sprint
 
Join Date: Jul 2009
Posts: 478
Reputation: 845
manekineko knows their stuffmanekineko knows their stuffmanekineko knows their stuffmanekineko knows their stuffmanekineko knows their stuffmanekineko knows their stuffmanekineko knows their stuff
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: [TESTING] SCBS: Improved battery meter system

Rhodium 400, original battery

Booted up, charged it to full, then ran it down to 7% with a mix of ~12 hours of sleeping, wifi tethering and games before charging it all the way back to full.

cc=0.069308073
cb=115.604675265
rc=0.842694823
re=0.228095166
vf=1.098000000
cf=0.312500000
lr=0.000001000
sl=16.619811388
se=0.010055974

Has anyone collect data multiple times to see how constant these numbers remain between between runs? That would seem to indicate how accurate they really are.

Does SCBS continue generating new logs so we can do that after a model has already been accepted?
Reply With Quote
  #10 (permalink)  
Old 04-19-2011, 01:48 PM
arrrghhh's Avatar
Testing Extraordinaire
Offline
Pocket PC: HTC Touch Pro 2 (RHOD400)
Carrier: Sprint
 
Join Date: Mar 2007
Posts: 3,604
Reputation: 7360
arrrghhh is a trusted member of the communityarrrghhh is a trusted member of the communityarrrghhh is a trusted member of the communityarrrghhh is a trusted member of the communityarrrghhh is a trusted member of the communityarrrghhh is a trusted member of the communityarrrghhh is a trusted member of the communityarrrghhh is a trusted member of the communityarrrghhh is a trusted member of the communityarrrghhh is a trusted member of the communityarrrghhh is a trusted member of the community
Mentioned: 7 Post(s)
Tagged: 0 Thread(s)
Re: [TESTING] SCBS: Improved battery meter system

Quote:
Originally Posted by manekineko View Post
Rhodium 400, original battery

Booted up, charged it to full, then ran it down to 7% with a mix of sleeping, wifi tethering and games before charging it all the way back to full.

cc=0.069308073
cb=115.604675265
rc=0.842694823
re=0.228095166
vf=1.098000000
cf=0.312500000
lr=0.000001000
sl=16.619811388
se=0.010055974

Has anyone collect data multiple times to see how constant these numbers remain between between runs? That would seem to indicate how accurate they really are.

Does SCBS continue generating new logs so we can do that after a model has already been accepted?
Model looks fine to my untrained eyes.

Yes, it will keep generating logs to be analyzed. You can re-run it as much as you want, you can even use multiple logs in the algo.

What I'm wondering is how to stop it? Does it just perpetually take logs? I guess I'm not sure how this is going to be permanently implemented, there obviously has to be some way to automate the process...
Reply With Quote
Reply

  PPCGeeks > Windows Mobile > WM HTC Devices > HTC Touch Pro 2 > Android On TP2 > Android On TP2 Development

Tags
battery, tp2


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -4. The time now is 10:35 PM.


Powered by vBulletin® ©2000 - 2025, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.6.0
©2012 - PPCGeeks.com