skuphundaku matei.vasile at gmail.com
Sun Feb 6 11:36:54 CET 2011

Martin Jansa wrote:
> quick find shows similar nodes in
> /sys/devices/platform/s3c2440-i2c/i2c-0/0-0073/hdq/bq27000-battery.0/power_supply/battery/
> isn't it what you're looking for?

I see in
the same nodes I see in /sys/class/power_supply/battery/. My problem is that
I don't see the charge_now node. I see charge_full, current_now, voltage_now
etc., but I don't know of any way I could easily use them to get what I
need, which is the data that I was getting from charge_now. current_now
could be used and integrated to get the difference in charge, but getting
the right sampling period and the integration interval for that is a
non-trivial task, leaving alone the fact that I would need to implement a
numerical integration algorithm to get the actual data I'm looking for, all
of this making it far more complex than just reading a value from a file,
the way it was possible some time ago.


View this message in context: http://openmoko-public-mailinglists.1958.n2.nabble.com/sys-class-power-supply-battery-charge-now-tp5994314p5997369.html
Sent from the Openmoko Devel mailing list archive at Nabble.com.

More information about the devel mailing list