My phone stopped charging this week. it would begin charging, and five minutes later randomly stop. Online, the recommended that I have the connector replaced; which I obviously decided to do myself. I decided to bench charge my battery outside the phone (sometimes it is handy being a EE) until I could find a connector.
Then I started thinking about the charge process on a phone. The phone uses a PWM (Pulse Width Modulation) signal to charge the battery, and monitors the condition of charge when the battery is in the no charge part of the cycle. This is where the % full readout originates. The CPU (Central Processor Unit) also monitors boring things like temperature and loading to decide how much charge to put in the battery.
I have deliberately avoided telling you make and model on my phone, because all phones share this required function.
NOW, the solution I found that will work on all undamaged phones, over half the time, (if the connector has worn out, or has come loose, it will need hardware repair) in spite of the brand. You phone is a computer; but unlike most home computers, it is left running 24 / 7 / 365!
TURN IT OFF, and back on (reboot the system) and over half the time, it will fix the charge issue entirely! Mine is fine now, charging normally; whatever had affected the charge routine in the CPU was cleared with the reboot
"If the girls don't find you handsom, they should find you handy." Red Green