Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.mobile.android > #33377

Re: How does an app estimate charging current?

From crankypuss <undisclosedUserid@gmail.com>
Newsgroups comp.mobile.android
Subject Re: How does an app estimate charging current?
Date 2016-08-15 06:31 -0600
Organization manana
Message-ID <nosdg8$dku$3@dont-email.me> (permalink)
References <nor8g4$jh1$1@gioia.aioe.org>

Show all headers | View raw


On 08/14/2016 08:13 PM, Aardvarks wrote:
> I'm having a problem that my Samsung S3 is not charging from the charging
> cables (multiple cables, multiple chargers).
>
> When I install battery charge apps, they report 0 ma when the cable is
> connected.
>
> But, there is no ammeter inside of a Samsung phone, right?

Probably not as-such and software-readable, but the phone has no means 
of determining when the battery is fully charged other than measuring 
the current flow, so something's measuring it, whether or not that 
something is programmable.

There is an order-of-magnitude difference between really good charging 
circuitry and something that will charge a battery, and your Samsung 
phone is consumer-grade electronics, which implies that it's on the 
lower-end of the spectrum from something that squeezes the most juice 
into the battery in the shortest time.  Offgrid battery charging systems 
can get quite exotic in their measurements, doing things like applying 
various loads to the battery and measuring corresponding current flow, 
etc etc.  Your phone is doubtless more straight-forward than that since 
its intent is to procure profit for the manufacturer to make the next 
generation of quickly-obsolete profit-gathering technology.

>
> So, how do the apps compute their charging current?

Most likely the hardware generates a few charge-related interrupts, like 
"no voltage", "no current", and "charging", which in an Android machine 
get filtered through the bowels of the JVM and are eventually serviced 
by code that stashes the data for later app use.

> Is it accurate?
>

You can buy a USB tester for about $10 US that will show you the actual 
volts and amps.  I'd say that if your phone isn't charging, the first 
thing to check is the voltage level output by the charger or USB port 
you're trying to charge from.  If you're in a hurry and want to 
sacrifice a USB cable to the gods of multimeter connection, you could 
dig around a bit and find the appropriate USB connector pin-out diagrams 
somewhere (or maybe look for red and black wires for starters).

-- 
http://totally-portable-software.blogspot.com
   [Sat Mar 26: "Documentation and Portability"]

Back to comp.mobile.android | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

How does an app estimate charging current? Aardvarks <aardvarks@a.b.c.com> - 2016-08-15 02:13 +0000
  Re: How does an app estimate charging current? crankypuss <undisclosedUserid@gmail.com> - 2016-08-15 06:31 -0600
    Re: How does an app estimate charging current? David Taylor <david-taylor@blueyonder.co.uk.invalid> - 2016-08-15 17:37 +0100
      Re: How does an app estimate charging current? Aardvarks <aardvarks@a.b.c.com> - 2016-08-16 05:13 +0000
        Re: How does an app estimate charging current? crankypuss <undisclosedUserid@gmail.com> - 2016-08-16 05:28 -0600
          Re: How does an app estimate charging current? Aardvarks <aardvarks@a.b.c.com> - 2016-08-16 13:43 +0000
            Re: How does an app estimate charging current? crankypuss <undisclosedUserid@gmail.com> - 2016-08-17 04:59 -0600
        Re: How does an app estimate charging current? David Taylor <david-taylor@blueyonder.co.uk.invalid> - 2016-08-16 17:07 +0100
        Re: How does an app estimate charging current? Nigel Wade <nmw@local.domain> - 2016-08-17 15:50 +0100
          Re: How does an app estimate charging current? Aardvarks <aardvarks@a.b.c.com> - 2016-08-17 17:12 +0000
      Re: How does an app estimate charging current? crankypuss <undisclosedUserid@gmail.com> - 2016-08-16 05:22 -0600
        Re: How does an app estimate charging current? pamela <invalid@nospam.com> - 2016-08-16 21:07 +0100

csiph-web