Vehicle starting method, power supply, and vehicle
Examples of vehicle starting methods, power supplies, and vehicles are described. One example method includes obtaining a voltage of a first battery of a vehicle by an external power supply. When the voltage of the first battery is lower than a first voltage threshold, a second battery of the external power supply is controlled to supply power to the vehicle, to start the vehicle. In this way, whether the first battery has an insufficient voltage may be determined by obtaining the voltage of the first battery of the vehicle, and after it is determined that the first battery has the insufficient voltage, electrical energy for starting the vehicle is provided by the second battery of the external power supply, to start the vehicle.
1 . A vehicle, comprising:
a first battery, wherein the first battery is connected to at least one controller of the vehicle;
a connection portion, wherein the connection portion is a cigarette lighter interface of the vehicle connected to the first battery and the at least one controller, and the connection portion is further configured to be connected to an external power supply; and
a switching circuit, wherein:
the switching circuit is configured to switch to a first mode under a first condition, and wherein:
in the first mode, the switching circuit is configured to connect the connection portion to the at least one controller through a first circuit; and
the first condition comprises: a voltage of the first battery is lower than a first voltage threshold, or the switching circuit receives a first signal, and the first signal is used to control the switching circuit to work in the first mode; and
the switching circuit is configured to switch to a third mode under a third condition, and wherein:
in the third mode, the switching circuit is configured to enable the vehicle to supply power to the connection portion through a first circuit; and
the third condition comprises: the switching circuit receives a third signal, and the third signal is used to control the switching circuit to work in the third mode.
2 . The vehicle according to claim 1 , wherein the switching circuit is configured to switch to a second mode under a second condition, and wherein:
in the second mode, the switching circuit is configured to connect the connection portion to the first battery through a second circuit; and
the second condition comprises: a voltage of the first battery is higher than a second voltage threshold, or the switching circuit receives a second signal, and the second signal is used to control the switching circuit to work in the second mode.
3 . A method for controlling a vehicle power system of a vehicle, wherein the vehicle comprises a first battery, at least one controller, a switching circuit, and a connection portion, wherein the connection portion is a cigarette lighter interface of the vehicle connected to the first battery and the at least one controller, and the connection portion is further configured to be connected to an external power supply, the method comprising:
controlling the switching circuit to switch to a first mode under a first condition or switch to a third mode under a third condition,
wherein controlling the switching circuit to switch to the first mode under the first condition comprises:
in the first mode, connecting the connection portion to the at least one controller through a first circuit of the switching circuit; and
the first condition comprises: a voltage of the first battery is lower than a first voltage threshold, or the switching circuit receives a first signal, and the first signal is used to control the switching circuit to work in the first mode; and
wherein controlling the switching circuit to switch to the third mode under a third condition comprises:
in the third mode, enabling the vehicle to supply power to the connection portion through the first circuit; and
the third condition comprises: the switching circuit receives a third signal, and the third signal is used to control the switching circuit to work in the third mode.
4 . The method according to claim 3 , further comprising:
controlling the switching circuit to switch to a second mode under a second condition, wherein controlling the switching circuit to switch to the second mode under the second condition comprises:
in the second mode, connecting the connection portion to the first battery through a second circuit; and
the second condition comprises: a voltage of the first battery is higher than a second voltage threshold, or the switching circuit receives a second signal, and the second signal is used to control the switching circuit to work in the second mode.
5 . A non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores program instructions, and when the program instructions are executed by a computer of a vehicle, cause the computer to perform operations for controlling a power system of the vehicle, wherein the vehicle comprises a first battery, at least one controller, a switching circuit, and a connection portion, wherein the connection portion is a cigarette lighter interface of the vehicle connected to the first battery and the at least one controller, and the connection portion is further configured to be connected to an external power supply; the operations comprising:
controlling the switching circuit to switch to a first mode under a first condition or switch to a third mode under a third condition,
wherein controlling the switching circuit to switch to the first mode under the first condition comprises:
in the first mode, connecting the connection portion to the at least one controller through a first circuit of the switching circuit; and
the first condition comprises: a voltage of the first battery is lower than a first voltage threshold, or the switching circuit receives a first signal, and the first signal is used to control the switching circuit to work in the first mode; and
wherein controlling the switching circuit to switch to the third mode under a third condition comprises:
in the third mode, enabling the vehicle to supply power to the connection portion through the first circuit; and
the third condition comprises: the switching circuit receives a third signal, and the third signal is used to control the switching circuit to work in the third mode.
6 . The non-transitory computer-readable storage medium according to claim 5 , the operations further comprising:
controlling the switching circuit to switch to a second mode under a second condition, wherein controlling the switching circuit to switch to the second mode under the second condition comprises:
in the second mode, connecting the connection portion to the first battery through a second circuit; and
the second condition comprises: a voltage of the first battery is higher than a second voltage threshold, or the switching circuit receives a second signal, and the second signal is used to control the switching circuit to work in the second mode.