Principle of energy storage charging pile detection system