english russian

accosto.com

2007-02-02

BLifePlugin - Description

Idea
BatPlug suddenly went crazy and began to measure time approximately 4 times slower than it goes in reality. I didn’t managed to solve the problem. HardReset could help for sure, but it didn’t seem a good idea. Furthermore, the BatPlug logic is primitive enough, and it would be desirable to consider the device usage statistics. As a result BatteryLife plugin (BLifePlugin) was created.

Compatibility
The Plugin should run on smartphones running Windows Mobile 2003 (SE) and later with any screen orientation (no matter portrait or landscape) and resolution (from old 176×220 to current QVGA or even higher). It was successfully checked on T-Mobile SDA (running WM2003 SE) and I-Mate sp5m (running WM5).

There’re no serious problems to run Plugin on Windows Mobile 2002 (Motorola mpx200, for example), but the color info could be missed since WM2002 API does not provide the required functionality.

Overview
During its work Plugin gathers and aggregates the battery discharge statistics. Then it calculates the remaining work time with the current battery charge and current time of the day. The more days you use it the more accurate Plugin will tell you the remaining time. Two or three usual days will be enough to see it really works! Please note if it has no statistics (stat file name is invalid, for example) time is evaluated as most battery plugins do: linear approximation based on the current discharge and the passed time.

File with the statistic data usually grows with the speed of approximately 90 bytes per day or 31 kB per year (in a worst conditions - 432 bytes and 154 kB respectively). This doesn’t seem a terrible amount even for a portable device; therefore the current version does not cut off the “tail”. Let it grow.

User interface

First page output description
Standby mode: “28%, hrs: 15.2 (0.4)”
Here are the remaining charge percentage, the remaining hours to reach TargetDischargePercent and the hours since a statistics flushed into the file last time.

During charging: “89%, hrs: 55.2/0.5 ch, 0.3 rem, 22°C”
Here are the current charge percentage and the remaining time (as in the standby mode), the time passed since charging started, the remaining time to reach 100% followed by current battery temperature.

Charging finished: “100%, hrs: 62.2/Charged 73% in 1.7 hrs”
As in the previous mode you may see percentage and hours, followed by percentage gained during this charge session and time it took to reach full charge.

Second page contains average power consumption graph.

Plugin control
Press Action key (joystick) to get “About…” window containing detailed infomation about the battery (temperature, voltage, the discharge current, etc.).Press left or right (turn joystick left-right) to switch between Plugin pages (two at the moment).

Screenshots
Please find the plugin at the lowest line.

Standby mode Battery consumption graph

Settings
Plugin setting can only be seen in the home screen xml-file directly in the plugin tag (not under).
There is the test home screen (BatteryLifePlugin.home.xml) in installation package, some of the following parameters are already set.

StatFilename - name of file with the statistics. Default value is “\Storage\My Documents\BLifePlugin.dat”.
I do not recommend you to move this file to the Storage Card especially if you use sp5m or similar device because of the problem: just after the phone startup plugin often has no access to Storage Card. Probably, the flash card driver does not start prior to the plugin start, probably something else. I don’t know.

RefreshTimeout - period (in milliseconds) of the forced plugin window refresh. Default is “600000″ (10 minutes). There is no reason to change to the smaller value: the information which you see on the screen with the very great probability is actual since (besides the forced refreshes) it occurs every time plugin is drawn on the screen.

MaxHistoryDays - how many days if gathered statistics will be used to get remaining time. Default is “30″.

FlushTimeoutHours - period (in hours) of the forced statistics data flush to the file. Defaulted to “8760″ (1 year). Besides the forced, the flushing occurs at every start of battery charging, when plugin is finishing its work (for example, at the corrent (!) device shutdown, when home screen or just a color scheme is changed) and in some other situations. Therefore there is no reason to set a lower value.

MinPercent - minimum battery charge needed to gather and save statistics. Default value is “20″. This percentage was used since the accuracy of the determination of charge falls with the smaller values. Moreover, if situation is suitable I usually discharge battery until it switches off at low charge percentage (lower than 10%). It will keep your battery’s fitness and gives longer lifespan.

TargetDischargePercent - percentage of the charge, to which is calculated the remaining operating time. With further reduction plugin will always show 0 hour. Default is “0″.

height - standard plugin parameter. The minimum height of plugin (in pixels). Can be automatically increased, if long text is to show. Default is “20″. For QVGA-devices running WM5 it is good idea to increase height to “25″.

HighCPULoadPercent - CPU load level considered as high (in percents). Calculated as average during RefreshTimeout. Plugin background is filled with HighCPULoadBgColor when this threshold is exceeded. Default is “20″.

HighCPULoadBgColor - plugin background color, used when HighCPULoadPercent threshold exceeded. You may use absolute color value (”#RRGGBB”), or color name from your homescreen color scheme (”COLOR_ALERTTITLE”). Default is - “#800000″ (dark red).

font-face, font-size, font-weight, fgcolor, bgcolor, padding-left, padding-right, padding-top - standard plugin parameters. Values from the <plugin> and, if not exist, from the <default> tag will be read.Plans

- Support all standard plugin parameters. Now plugin doesn’t look very well on customized homescreens.
- Playback sound file when battery runs lower than predefined threshold and when battery charges higher than another one.
- Consider the day of week when calculating remaining time.

Discussions

Forum thread about BLifePlugin at MoDaCo.com

How to support further development

This software is DonationWare.

If you like this software and wish to support its further development please use one of these methods:
- send money to pay[-at-]accosto[punto]com via Moneybookers.
- … (under construction)

Proposals

Please send your proposals, bugreports, etc. to support[-at-]accosto[punto]com. Thanks!

Filed under: Uncategorized — Developer @ 12.37 am

9 Comments »

  1. Hello,
    I have tried your plugin but how can I activate it? I am using facade and it doesnt appears under the menu plugin…. sorry im newbie, thanks

    Comment by gianni — 2007-02-06 @ 1.42 am

  2. Very nice plugin. I don’t use plugins for my homescreen except for the SMS plugin. But your plugin is worth adding to my xml file.
    BTW i took the liberty of posting your app in my blog: http://oldsap.blogspot.com/2007/02/blifeplugin-freeware-smartphone.html

    Comment by oldSAP — 2007-02-06 @ 8.59 am

  3. Hi gianni, try editing your xml file (homescreen file) and adding this:

    Comment by oldSAP — 2007-02-06 @ 10.36 am

  4. 1. Added small FAQ to the main page.
    2. I haven’t tried to integrate the plugin into Facade yet…

    Comment by admin — 2007-02-17 @ 3.13 pm

  5. nice plugin, got it working, but how do i change the font? it’s bigger than the rest of the fonts on the homescreen. i have t-mobile sda using the wireless homescreen.

    please reply Cc to my email pls. thx aris@modelpromote.com

    Comment by aris — 2007-02-21 @ 6.24 am

  6. i’m testing BlifePlugin on my Oé XDA Graphite… unfortunately, there seem to be some problems:
    this is my line in homescreen xml:

    ° plugin doesn’t seem to be writing any history data, whether i leave the default or specify a file (in phone memory). Power off & remove battery…Plugin starts from scratch, no history.

    °Charging phone, plugin displays “AC/not charging 0.0°C”.

    Maybe i’m missing something? Anyone care to try some troubleshooting?

    cheers,
    Tii.

    Comment by Tii — 2007-06-13 @ 3.07 pm

  7. [...] how much time is left and whether you need to minimize device usage to keep the power. There is a great tool that calculates remaining battery life time based on battery usage statistics but it shows the time on you home (today) screen. If you want to [...]

    Pingback by gpsVP 0.2.3 - monitoring your battery - gpsVP - GPS map for WM Smartphone - GPS software for Windows mobile for smartphone — 2007-07-07 @ 1.01 pm

  8. Good plugin but on my Samsung i320 shows wrong temperature (like other programs - 214885196.8°C). But when I enter *#0228# it shows exact temperature. Can I fix it myself?

    Comment by S@nchYESS — 2008-04-12 @ 3.50 pm

  9. “Charging phone, plugin displays “AC/not charging 0.0°C”.”

    +1

    Comment by S@nchYESS — 2008-04-12 @ 10.11 pm

RSS feed for comments on this post. TrackBack URI

Leave a comment

You must be logged in to post a comment.

Powered by WordPress

FireStats iconPowered by FireStats