The Maximum Charging Time; Abnormality; Query Device Information - Quectel LTE Module Series Charging User Manual

Hide thumbs Also See for LTE Module Series:
Table of Contents

Advertisement

4.3. The Maximum Charging Time

A timer can be enabled in the driver files according to the configuration in DTS (qcom, tchg-mins). When
charging timer reaches the set time, the module will stop charging.
Set timer as follows:
static int qpnp_lbc_tchg_max_set(struct qpnp_lbc_chip *chip, int minutes)
{
xxx
/* Enable timer */
rc = qpnp_lbc_masked_write(chip, chip->chgr_base + CHG_TCHG_MAX_EN_REG,
CHG_TCHG_MAX_EN_BIT, CHG_TCHG_MAX_EN_BIT);
if (rc) {
pr_err("Failed to write tchg_max_en rc=%d\n", rc);
return rc;
}
return rc;
}

4.4. Abnormality

When the battery temperature crosses high temperature threshold or low temperature threshold, it will
stop charging.

4.5. Query Device Information

You can query battery temp/capacity /health information via adb tool, for example:
adb root
adb remount
adb shell
cat /sys/class/power_supply/battery/temp
cat /sys/class/power_supply/battery/capacity
cat /sys/class/power_supply/battery/health
cat /sys/class/power_supply/battery/ voltage_now
SC20_Charging_User_Guide
SC20 Charging User Guide
//Query battery temperature
//Query battery capacity
//Query battery status
//Query battery voltage
Confidential / Released
LTE Module Series
14 / 14

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sc20

Table of Contents