Energy storage charging pile coding policy