Applied to the controller of wireless charging and discharging module, the method includes: determining whether the electric energy receiving unit of wireless charging and discharging module has voltage output; If there is no voltage output, control the wireless charging and discharging module to open the discharge circuit; If there is voltage output, collect the voltage of the energy storage unit in the wireless charging and discharging module; Determine whether the voltage of the energy storage unit is greater than the preset threshold; If the voltage of the energy storage unit is less than or equal to the preset threshold, the wireless charging and discharging module is controlled to open the charging circuit.