Other Parts Discussed in Thread: BQSTUDIO, EV2400
Hi!
I am trying to calculate the remaining battery capacity with LiSocI2 battery. Is accumulator mode the correct mode to do this?
I do the following sequence:
-Check that [GMSEL1:0] in Operation Config A = 00.
-Setting GE=1.
-GAUGE_START
-Check that ControlStatus() [GA] = set
-Read AccumulatedCapacity
-(try to) calculate (designCapacity - accumulatedCapacity)/designcapacity to get the percentage
(and then repeat the last 2 steps to get the changing value)
The problem is, that the AccumulatedCapacity() is over 4,29E9 and it lessens every round. For example, the uint values I get are:
4,294,962,398 (first round)
4,294,962,289 (second round, 10s after first round)
Am I doing something incorrectly? Or how should I be able to read the correct Accumulated capacity?