How to query the quality of the battery