Our Electrons sleep most of the time with the modem still active. They wake up for approx 5 seconds to do some house keeping then go back to sleep for about 10 minutes. What we’ve noticed during this cycle is that the reported battery voltage level doesn’t change. Resetting the Electron results in the fuel gauge reporting a much lower voltage than before the reset.
I have tried the following calls after the CPU has woken up.
FuelGauge fuelGauge; ... ... fuelGauge.sleep(); delay(1000); fuelGauge.wakeup(); delay(1000); fuelGauge.reset(); delay(1000); fuelGauge.quickStart();
None of the calls result in a correct reading from the fuel gauge. The fuel gauge reports VCell value of 5 after a reset. I never see this default value when running the commands above.
Is there a way to completely reset the fuel gauge without resetting the Electron?