| CPC G01R 31/3835 (2019.01) [G01R 31/392 (2019.01); H02J 7/005 (2020.01)] | 19 Claims |

|
1. A calculation method for detecting a current power capacity of a battery of an electronic device, comprising:
receiving a highest voltage value and a lowest voltage value of the battery;
generating a unit voltage difference value according to the highest voltage value and the lowest voltage value;
converting a plurality of voltage value of the battery into a plurality of voltage value data, sampling the plurality of voltage value data corresponding to a sampling time length;
performing an average calculation on the plurality of voltage value data based on the sampling time length to generate a sampling average value, and controlling the electronic device in at least one operation mode to obtain at least one time length required for the sampling average value to drop to the unit voltage difference value in the at least one operation mode;
generating a total discharge capacity of the battery according to the at least one time length and at least one use time interval of the electronic device in the at least one operation mode; and
generating the current power capacity according to the total discharge capacity.
|