Other Parts Discussed in Thread: AM3354, BQSTUDIO,
For reference this is in a linux system, based on AM3354 platform.
When watching the status of our fuel gauge (bq27441) through the command watch -n 1 cat /sys/class/power_supply/bq27441-0/uevent we occasionally see the POWER_SUPPLY_PRESENT value change from 1 to 0. The power supply does not go away or disconnect from the board. After this occurs the only other printed value is POWER_SUPPLY_NAME. During the tests that result in this state, the board is not interacted with and we have no other application accessing the data. The test is essentially letting the board boot to console, sending the watch command and walking away. We have found no consistent period with which this issue occurs. Rebooting the board through the command line reboot does not fix this issue. The only way to fix this state is to fully power cycle the board. Do you have any suggestions on why this is occurring and how we can remedy it?
Normal output:
POWER_SUPPLY_NAME=bq27441-0
POWER_SUPPLY_STATUS=Charging
POWER_SUPPLY_PRESENT=1
POWER_SUPPLY_VOLTAGE_NOW=4152000
POWER_SUPPLY_CURRENT_NOW=0
POWER_SUPPLY_CAPACITY=100
POWER_SUPPLY_CAPACITY_LEVEL=Normal
POWER_SUPPLY_TEMP=286
POWER_SUPPLY_TECHNOLOGY=Li-ion
POWER_SUPPLY_CHARGE_FULL=1214000
POWER_SUPPLY_CHARGE_NOW=1251000
POWER_SUPPLY_CHARGE_FULL_DESIGN=1340000
POWER_SUPPLY_MANUFACTURER=Texas Instruments
Issue Output:
POWER_SUPPLY_NAME=bq27441-0
POWER_SUPPLY_PRESENT=0