I have a battery powered Boron LTE running OS 1.5.2 that wakes up hourly to do some work. Each sleep cycle completes with a System.reset(). Sometime during the sleep cycle the Boron might be connected to a USB power source by a person who determines that the battery needs to be charged. However the Boron never senses the USB power supply and continues to faithfully run until the battery fails. Our recourse (instructions to person) are, before connecting the USB source turn the boron off (we have a switch built into the battery line), connect the USB, turn it back on. The preference would be to auto-detect the USB source without having to completely cut power and recycle the Boron.
Question: My PMIC power object is currently defined as a global variable. Is it possible that constructing this object in setup() or loop() would force the detection of USB?
Question: is an explicit PMIC.begin() necessary. My code currently does not call it.
Question: is there a downside (power consumption) if charging is always enabled? I don’t leave it enabled at present.