I have a Boron deployed to a site where it monitors solar power for another system. The Boron is plugged into a 5VUSB power adapter which is fed from a large lead acid battery. Occasionally the lead acid battery is disconnected if enough solar is not available. The Boron's 6000mah battery then takes over. The issue I am having is that the charge state is always "Not charging" and power source is VIN. Essentially the lipo is never recharged. Once on site I noticed the charge LED will not turn on either. Tried another lipo, another usb cable and double checked other devices charge from the USB port.
The only power management code in my firmware is to prevent charging below 32F:
void enableCharging()
{
auto powerConfig = System.getPowerConfiguration();
if (powerConfig.isFeatureSet(SystemPowerFeature::DISABLE_CHARGING)) {
powerConfig.clearFeature(SystemPowerFeature::DISABLE_CHARGING);
System.setPowerConfiguration(powerConfig);
chargeOn = true;
}
}
void disableCharging()
{
auto powerConfig = System.getPowerConfiguration();
if (!powerConfig.isFeatureSet(SystemPowerFeature::DISABLE_CHARGING)) {
powerConfig.feature(SystemPowerFeature::DISABLE_CHARGING);
System.setPowerConfiguration(powerConfig);
chargeOn = false;
}
}
Somehow in the process of trying different batteries etc. the SOC went from 30 to 75%. Trying to understand if this is a hardware issue with the PMIC or a charge voltage calibration or something else. Will go back to site and measure some voltages with the meter.