The invention provides a power supply
mode switching method and device, a vehicle and a storage medium, and relates to the field of high-
voltage power supply. And when the motor supplies power to the whole vehicle and the power supply for supplying power to the whole vehicle needs to be converted from the motor to the high-
voltage battery, the motor is controlled to stop generating power. Therefore, when the motor and the high-
voltage battery are a high-voltage power supply, the high-voltage battery is regarded as a load, and the battery
relay of the high-voltage battery is closed, the battery
relay is prevented from being damaged. After the motor stops generating power, the motor is in a
driving mode, the motor cuts a
stator winding due to residual
magnetism and generates back
electromotive force with residual
inductance, and when the back
electromotive force is large, the motor enters a three-phase parallel common-path active
discharge mode, so that the current of the three-phase winding is multiplied. And when the current of the three-phase winding is multiplied, the back
electromotive force is rapidly reduced, and the rapid
discharge of the back electromotive force can be realized. After the motor enters the active
discharge mode, the
counter electromotive force is detected, so that the battery
relay of the high-voltage battery is closed when the
counter electromotive force is small, and the error switching risk when the active discharge mode does not reach the expectation is avoided.