×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Oct 2011
    Location
    Petrozavodsk
    Posts
    6

    Accurate battery status

    Hello developers.
    How I can obtain accurate battery status (for example, 98.98 instead of 99%)? Do you know such methods? QSystemDeviceInfo class provides batteryLevel, but value of batteryLevel isn't accurate, particularly for my futher application.

  2. #2
    Super Contributor
    Join Date
    Oct 2008
    Location
    INDIA
    Posts
    2,326

    Re: Accurate battery status

    probably you can make formula for that accuracy and use in your coding, otherwise QSystemDeviceInfo class provides the accuracy as you know.

  3. #3
    Super Contributor
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034

    Re: Accurate battery status

    @rahulvala
    How could any formula works until and unless you can not get exact percentage of battery status? Let us know if yo have formula in your mind.

    @Itixis:
    AFAIK, you can not get that much accuracy even using Symbian API's (i.e. CTelephony and HAL)

  4. #4
    Registered User
    Join Date
    Oct 2011
    Location
    Petrozavodsk
    Posts
    6

    Re: Accurate battery status

    Why are battery statuses difference in Nokia Battery Monitor and in my application (based on QSystemDeviceInfo::batteryLevel)? E. g. battery status in Nokia Battery Monitor is 92%, and battery status in my application is 100. Do you know, why it's so?

  5. #5
    Super Contributor
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034

    Re: Accurate battery status

    Following code (symbian) might gives you accurate battery status on Symbian^3 devices .

    Code:
    TInt remainingBattery;
    TRequestStatus& status;
    TBatteryConsuptionData batterydata;
    iPower->GetBatteryInfo( status, batterydata ); // iPower is of type CHWRMPower
    User::WaitForRequest( status );
    remainingBattery = batterydata.iRemainingPercentageCapacity;
    Last edited by savaj; 2011-10-31 at 15:11.

  6. #6
    Registered User
    Join Date
    Oct 2011
    Location
    Petrozavodsk
    Posts
    6

    Re: Accurate battery status

    Thanks, savaj.
    I will try to use this sample in my code.

Similar Threads

  1. Want to know about Battery Status
    By kalgi in forum Symbian
    Replies: 14
    Last Post: 2011-10-30, 05:05
  2. battery status
    By amardeep.jaiman in forum Mobile Java General
    Replies: 6
    Last Post: 2009-08-26, 18:45
  3. Problem in getting battery status
    By swapnil_mahajan in forum Symbian
    Replies: 2
    Last Post: 2009-05-27, 14:42
  4. battery status
    By vineet.jain in forum Symbian
    Replies: 2
    Last Post: 2009-02-10, 13:54
  5. Status of Battery charged...
    By nital_shah in forum Symbian
    Replies: 9
    Last Post: 2009-02-03, 07:48

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×