How to detect the grounding resistance of the battery