Should I have received my final order eMail already?


Cooper

Newbie
Joined
Apr 19, 2021
Messages
9
There are a few ways we can see the charge current:

The 'Power Statistics' app reports charge rates in watts.

For more detail, you can type 'sensors' in a terminal window. That reports the power supply current and charging rate of the battery management chip (see the "bq24297-i2c-1-6b" chip section). It also reports the current flow to or from the battery (see the "bq27421-i2c-1-55" chip section). There are things we can learn from the temperatures reported by the "sensors" command too.

There's another command that gives more low level detail:
sudo /usr/share/pyra/scripts/letux/charger
Well, had to pull myself from playing some GBA. Device is relatively hot. No charging happens (USB3 plugged in this particular case):

bq24297-i2c-1-6b
Adapter: OMAP I2C adapter
in0: +0.00 V
temp ambient: +22.5°C
curr1: +0.00 A (max = +3.00 A)

bq27421_0-i2c-1-55
Adapter: OMAP I2C adapter
in0: +3.79 V
temp ambient: +40.9°C
curr1: -0.61 A

Now I will turn it off, cool down, repeat and report. By the way, maybe we shall move to some other tread? Like Pyra General information and bug tracker?
Post automatically merged:

And for some really low level detail, you can try:
Bash:
me@pyra:~$ cat /sys/class/power_supply/bq24297/device/registers

Register 09 is the fault state of the battery management chip. It should be 00 if all is good. If its not 00 then we can try to make sense of the value.
Reg 09 looks OK:

pyra:~$ cat /sys/class/power_supply/bq24297/device/registers
reg 00 value 37
reg 01 value 17
reg 02 value 60
reg 03 value 00
reg 04 value 8a
reg 05 value 8c
reg 06 value 73
reg 07 value 4b
reg 08 value 00
reg 09 value 00
reg 0a value 60
 

ouzle

Member
Joined
Jun 3, 2019
Messages
86
Location
England
Well that all looks normal for a pyra with no charger plugged in.

What about the "charger" script?

Bash:
me@pyra:~$ sudo /usr/share/pyra/scripts/letux/charger
Palmas System STATUS
====================
VSYS: 4061mV
VBUS: 4862mV
VCHG: 0mV
VBATT: 4010mV ca. 74%
IBATT: 0mA
VBKUP: 2513mV
temp: 39mV
type: 1245mV
audio: 186mV
usb id: 2848mV
VMODEM: 4085 mV
IMODEM: 23 mA
PMODEM: 90625 uW

USB Charger /sys/class/power_supply/bq24297
===================
type: USB
online: 1
status: Charging
mode:
volt: 5000000uV
current: 2048000uA
max_current: 3000000uA
temperature: 22.5°C
ID:

Battery /sys/class/power_supply/bq27421-0
==================
type: Battery
present: 1
technology: Li-ion
capacity: 52%
status: Charging
level: Normal
volt: 3982000uV
current: 1226000uA
temp: 42.5°C
charge: 3035000uAh
full: 5334000uAh
design: 6000000uAh
energy: J?
power: W?
cycles:
health:
discharge: s to empty average
remaining: s to empty
charging: s to full
 

Cooper

Newbie
Joined
Apr 19, 2021
Messages
9
Well that all looks normal for a pyra with no charger plugged in.

What about the "charger" script?

Bash:
me@pyra:~$ sudo /usr/share/pyra/scripts/letux/charger
Palmas System STATUS
====================
VSYS: 4061mV
VBUS: 4862mV
VCHG: 0mV
VBATT: 4010mV ca. 74%
IBATT: 0mA
VBKUP: 2513mV
temp: 39mV
type: 1245mV
audio: 186mV
usb id: 2848mV
VMODEM: 4085 mV
IMODEM: 23 mA
PMODEM: 90625 uW

USB Charger /sys/class/power_supply/bq24297
===================
type: USB
online: 1
status: Charging
mode:
volt: 5000000uV
current: 2048000uA
max_current: 3000000uA
temperature: 22.5°C
ID:

Battery /sys/class/power_supply/bq27421-0
==================
type: Battery
present: 1
technology: Li-ion
capacity: 52%
status: Charging
level: Normal
volt: 3982000uV
current: 1226000uA
temp: 42.5°C
charge: 3035000uAh
full: 5334000uAh
design: 6000000uAh
energy: J?
power: W?
cycles:
health:
discharge: s to empty average
remaining: s to empty
charging: s to full
Well, the charger WAS plugged in when these readings were taken. Multiple chargers in fact, but the readings were exactly the same, except bq24297-i2c-1-6b curr1 was showing "max = +2.00 A" (here we see 3.00 A) at some point either due to high voltage, or temperature, or both.

Pyra is chilling now - I will run more tests, including the charging script, a bit later and report here.
 

Cooper

Newbie
Joined
Apr 19, 2021
Messages
9
What about the "charger" script?
Well, nothing changed. Except the Pyra did not want to turn on so I had to pull out the battery. Script results (5A QC Huawei charger connected to USB3):
~$ sudo /usr/share/pyra/scripts/letux/charger
Palmas System STATUS

====================
VSYS: 3582mV
VBUS: 36mV
VCHG: 0mV
VBATT: 3610mV ca. 32%
IBATT: 0mA
VBKUP: 2485mV
temp: 52mV
type: 106mV
audio: 331mV
usb id: 938mV
VMODEM: 3603 mV
IMODEM: 5 mA
PMODEM: 18750 uW

USB Charger /sys/class/power_supply/bq24297
===================
type: USB
online: 0
status: Not charging
mode:
volt: 0uV
current: 0uA
max_current: 3000000uA
temperature: 22.5°C
ID:

Battery /sys/class/power_supply/bq27421-0
==================
type: Battery
present: 1
technology: Li-ion
capacity: 22%
status: Discharging
level: Normal
volt: 3721000uV
current: -789000uA
temp: 29.3°C
charge: 1332000uAh
full: 5415000uAh
design: 6000000uAh
energy: J?
power: W?
cycles:
health:
discharge: s to empty average
remaining: s to empty
charging: s to full

~$ sensors
ina231-i2c-1-4f
Adapter: OMAP I2C adapter
in0: +0.00 V
in1: +3.63 V
power1: 128.12 mW
curr1: +0.04 A

bq24297-virtual-0
Adapter: Virtual device
temp1: +22.5°C

bq27421_0-virtual-0
Adapter: Virtual device
temp1: +32.2°C

bq24297-i2c-1-6b
Adapter: OMAP I2C adapter
in0: +0.00 V
temp ambient: +22.5°C
curr1: +0.00 A (max = +3.00 A)

bq27421_0-i2c-1-55
Adapter: OMAP I2C adapter
in0: +3.72 V
temp ambient: +32.2°C
curr1: -0.72 A
 
Top