Working principle of battery cabinet