PMIC Slow Flashing - Is there a way to reset in code?

I am reposting this as this issue is coming up in a small number of devices in my fleet.

I have been working through some charging issues with deviceOS@2.1.x and in some cases the devices will not charge and have a 1 Hz flashing yellow charge led.

Is there a way to reset the PMIC short of manually removing power from the device?

I have tried pmic.watchdogReset() and power cycling using the EN pin but no luck. Any suggestions?

Thanks,

Chip

Hi Chip,

This works to reset the PMIC completely:

System.setPowerConfiguration(SystemPowerConfiguration());

Enable/disable charging with the new API is not yet in.

1 Like

This shows charing enabled/disabled in 3.0
https://go.particle.io/shared_apps/608a98db456ab200168b553b

1 Like

@no1089 ,

Thank you for sharing, this is an essential functionality and I am very happy to see it in deviceOS@3.x

I can’t wait to be able to move to the new power management API but my production devices are on the deviceOS@2.x track. I guess this is something I will have to look forward to using sometime in 2022?

Thanks,

Chip

1 Like

@no1089 , Great FAQ document! Any chance you could cover this topic as well. Seems like there are three things we need to clean up: PMIC, FUEL and the Power Configuration API.

Thanks,

Chip

1 Like

Yes, unfortunately, It won’t be implemented in 2.x as LTS has been feature locked.
3.x has been pre-released and thus far behaves very well. It is however the development branch and I am not 100% sure when the next LTS will be released.

Just to clarify - 2.x includes the new Power management API, just not the disable charging feature.

Thanks!
The document will evolve over time - it’s missing the 3.x changes right now and I will definitely add Fuel gauge advice as well. An incorrect SoC is certainly annoying to deal with.

@no1089 ,

Understand about the new Power Management API and I am using that as well to manage solar charging.

I also understand that the 2.x release is feature and I believe this is a smart approach - all move production devices are on this release after all.

Chip

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.