Battery loading ...

Christoph Anton Mitterer calestyo at scientia.net
Tue Jul 8 00:11:45 CEST 2008


Hi.

I've looked a bit into the following:


1) The battery seems to be charging:
But why is the value POWER_SUPPLY_CURRENT_NOW negative?

root at om-gta02:/sys/devices/platform/bq27000-battery.0/power_supply/bat#
cat uevent 
POWER_SUPPLY_NAME=bat
POWER_SUPPLY_TYPE=Battery
POWER_SUPPLY_STATUS=Charging
POWER_SUPPLY_VOLTAGE_NOW=4183000
POWER_SUPPLY_CURRENT_NOW=-33750
POWER_SUPPLY_CHARGE_FULL=1223082
POWER_SUPPLY_TEMP=348
POWER_SUPPLY_TECHNOLOGY=Li-ion
POWER_SUPPLY_PRESENT=1
POWER_SUPPLY_TIME_TO_EMPTY_NOW=3932100
POWER_SUPPLY_TIME_TO_FULL_NOW=0
POWER_SUPPLY_CAPACITY=100
root at om-gta02:/sys/devices/platform/bq27000-battery.0/power_supply/bat#
cat uevent 
POWER_SUPPLY_NAME=bat
POWER_SUPPLY_TYPE=Battery
POWER_SUPPLY_STATUS=Charging
POWER_SUPPLY_VOLTAGE_NOW=4186000
POWER_SUPPLY_CURRENT_NOW=-28500
POWER_SUPPLY_CHARGE_FULL=1223082
POWER_SUPPLY_TEMP=351
POWER_SUPPLY_TECHNOLOGY=Li-ion
POWER_SUPPLY_PRESENT=1
POWER_SUPPLY_TIME_TO_EMPTY_NOW=3932100
POWER_SUPPLY_TIME_TO_FULL_NOW=0
POWER_SUPPLY_CAPACITY=100


2) Now it is full...
It seems that now the power is taken from the battery and not from the
(still connected) USB cable.... is this desired?

You see a up and down of the POWER_SUPPLY_CURRENT_NOW, although the
status is always "Discharging"...


root at om-gta02:/sys/devices/platform/bq27000-battery.0/power_supply/bat#
cat uevent 
POWER_SUPPLY_NAME=bat
POWER_SUPPLY_TYPE=Battery
POWER_SUPPLY_STATUS=Discharging
POWER_SUPPLY_VOLTAGE_NOW=4183000
POWER_SUPPLY_CURRENT_NOW=5062
POWER_SUPPLY_CHARGE_FULL=1223082
POWER_SUPPLY_TEMP=348
POWER_SUPPLY_TECHNOLOGY=Li-ion
POWER_SUPPLY_PRESENT=1
POWER_SUPPLY_TIME_TO_EMPTY_NOW=913440
POWER_SUPPLY_TIME_TO_FULL_NOW=3932100
POWER_SUPPLY_CAPACITY=100
root at om-gta02:/sys/devices/platform/bq27000-battery.0/power_supply/bat#
cat uevent 
POWER_SUPPLY_NAME=bat
POWER_SUPPLY_TYPE=Battery
POWER_SUPPLY_STATUS=Discharging
POWER_SUPPLY_VOLTAGE_NOW=4181000
POWER_SUPPLY_CURRENT_NOW=3937
POWER_SUPPLY_CHARGE_FULL=1223082
POWER_SUPPLY_TEMP=348
POWER_SUPPLY_TECHNOLOGY=Li-ion
POWER_SUPPLY_PRESENT=1
POWER_SUPPLY_TIME_TO_EMPTY_NOW=1174440
POWER_SUPPLY_TIME_TO_FULL_NOW=3932100
POWER_SUPPLY_CAPACITY=100
root at om-gta02:/sys/devices/platform/bq27000-battery.0/power_supply/bat#
cat uevent 
POWER_SUPPLY_NAME=bat
POWER_SUPPLY_TYPE=Battery
POWER_SUPPLY_STATUS=Discharging
POWER_SUPPLY_VOLTAGE_NOW=4181000
POWER_SUPPLY_CURRENT_NOW=6937
POWER_SUPPLY_CHARGE_FULL=1223082
POWER_SUPPLY_TEMP=348
POWER_SUPPLY_TECHNOLOGY=Li-ion
POWER_SUPPLY_PRESENT=1
POWER_SUPPLY_TIME_TO_EMPTY_NOW=666600
POWER_SUPPLY_TIME_TO_FULL_NOW=3932100
POWER_SUPPLY_CAPACITY=100
root at om-gta02:/sys/devices/platform/bq27000-battery.0/power_supply/bat#
cat uevent 
POWER_SUPPLY_NAME=bat
POWER_SUPPLY_TYPE=Battery
POWER_SUPPLY_STATUS=Discharging
POWER_SUPPLY_VOLTAGE_NOW=4181000
POWER_SUPPLY_CURRENT_NOW=9750
POWER_SUPPLY_CHARGE_FULL=1223082
POWER_SUPPLY_TEMP=348
POWER_SUPPLY_TECHNOLOGY=Li-ion
POWER_SUPPLY_PRESENT=1
POWER_SUPPLY_TIME_TO_EMPTY_NOW=666600
POWER_SUPPLY_TIME_TO_FULL_NOW=3932100
POWER_SUPPLY_CAPACITY=100



Best wishes,
Chris.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5108 bytes
Desc: not available
Url : http://lists.openmoko.org/pipermail/community/attachments/20080708/67a88438/attachment.bin 


More information about the community mailing list