W3C home > Mailing lists > Public > public-device-apis@w3.org > December 2011

Re: no longer possible to detect battery presence? RE: Battery API in Last Call

From: Philip Gladstone <pgladstone@cisco.com>
Date: Fri, 02 Dec 2011 09:16:01 -0500
Message-ID: <4ED8DDA1.9030401@cisco.com>
To: public-device-apis@w3.org

On 12/2/2011 8:32 AM, Mounir Lamouri wrote:
> You seem to complain because the API doesn't let the webapp know if 
> there is a battery or not in the device but do you actually need that? 
> If yes, I would be interested in the use case. While discussing this, 
> the only use case that was mentioned was a system UI for the battery 
> which is a tiny use case that could be fulfilled with another API or a 
> future version of the API (very likely requiring permissions).

There are cases when the device cannot figure out the runtime left, and 
yet it does have a battery. Consider a handheld device like an advanced 
TV remote control (think Harmony on steroids). It might only contain a 
primary cell (i.e. not rechargeable). The remaining runtime is 
critically dependent on what the usage of the device is. Probably the 
runtime is unknowable until right near the end. I know that batteries in 
my remote controls last from months to years (at least an order of 
magnitude difference). Part of this may be that sometimes I put in cheap 
batteries. Sometimes the kids jam the remote controls by the side of the 
chairs and I suspect that the buttons get held down.


Philip Gladstone
Distinguished Engineer
Product Development
Phone: +1 978-ZEN-TOAD (+1 978 936 8623)
Google: +1 978 800 1010
Ham radio: N1DQ

Received on Friday, 2 December 2011 14:16:30 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 14:53:51 UTC