Electric vehicle discharge control method, device, equipment and medium

By monitoring and controlling the charging and discharging status of electric vehicles, the problem of low charging and discharging safety of electric vehicles is solved, safe charging and discharging in different scenarios is achieved, user experience is improved and charging time is shortened.

CN118554572APending Publication Date: 2024-08-27VOYAH AUTOMOBILE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410531237.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-29
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

In the existing technology, improper control of charging and discharging of electric vehicles results in low safety and potential safety hazards.

Method used

By monitoring the status of the external charging port and the status of the in-vehicle socket of the electric vehicle, the target discharge operation is determined according to the sequence of status changes, and the electric vehicle is controlled to discharge according to the target operation, including sending high-voltage circuit establishment instructions, inverter start instructions, and power limits. instructions, etc., to ensure the safety of the charging and discharging process.

Benefits of technology

It improves the charging and discharging safety of electric vehicles in different scenarios, reduces the charging power limitation caused by enabling the in-car discharge function during the charging process, provides a more convenient and safe use experience, and shortens the charging time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118554572A
    Figure CN118554572A
Patent Text Reader

Abstract

The invention discloses an electric vehicle discharging control method, device and equipment and a medium. The method comprises the steps that the state of an external charging port and the state of an internal socket of a target electric vehicle are monitored; when at least one of the outside charging port state and the inside socket state is switched to the working state, the state of the inside socket is switched to the working state according to the current first state of the outside charging port state, the current second state of the inside socket state and the sequence of state change of the outside charging port state and the inside socket state; determining a target discharge operation corresponding to the target electric vehicle in the current scene; and controlling the target electric vehicle to discharge according to the target discharge operation. According to the method and the device, the requirement of a user for the inside and outside discharging function in various scenes can be met, specifically, the requirement for the inside and outside discharging function in the scenes of driving, parking, charging, locking and the like of the user can be met, the electricity utilization safety of the electric vehicle in different inside and outside discharging scenes is improved, and more convenient and safer use experience is provided for the user.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of new energy vehicles, and in particular to a method, device, equipment and medium for controlling discharge of an electric vehicle. Background Art

[0002] In order to cope with the energy crisis of non-renewable resources, the popularity of electric vehicles is increasing. Electric vehicles involve charging and discharging, and the safety of charging and discharging is crucial for electric vehicles. When charging and discharging are not properly controlled, electric vehicles will have safety hazards. Therefore, how to improve the safety of charging and discharging of electric vehicles is an urgent problem to be solved. Summary of the invention

[0003] The embodiments of the present application provide an electric vehicle discharge control method, device, equipment and medium to solve the technical problem in the prior art that the safety of electric vehicles is low when charging and discharging are not properly controlled, thereby achieving the technical effect of improving the safety of charging and discharging of electric vehicles.

[0004] In a first aspect, the present application provides a method for controlling discharge of an electric vehicle, the method comprising:

[0005] Monitor the status of the target electric vehicle's external charging port and internal socket;

[0006] When at least one of the state of the external charging port and the state of the in-vehicle socket is switched to the working state, according to the first state of the external charging port, the second state of the in-vehicle socket, and the sequence of the state changes of the external charging port and the in-vehicle socket, the target discharge operation corresponding to the target electric vehicle in the current scenario is determined;

[0007] The target electric vehicle is controlled to discharge according to the target discharge operation.

[0008] Further, according to the first state of the external charging port, the second state of the internal socket, and the sequence of state changes of the external charging port and the internal socket, the target discharge operation corresponding to the target electric vehicle in the current scenario is determined, including:

[0009] When the state of the external charging port is not switched to the working state, the state of the internal socket is switched to the working state and the second state is the state of allowing discharge in the vehicle, a high-voltage circuit establishment instruction is sent to the battery management system of the target electric vehicle, and the high-voltage circuit establishment instruction is used to trigger the battery management system to close the battery relay to establish a high-voltage circuit;

[0010] Sending an inverter start instruction to the on-board charger of the target electric vehicle, the inverter start instruction is used to trigger the on-board charger to convert the DC power of the battery of the target electric vehicle into AC power to supply power to the in-vehicle socket of the target electric vehicle;

[0011] Obtain the actual in-vehicle current of the in-vehicle socket from the on-vehicle charger, and determine whether the on-vehicle charger is overloaded according to the actual in-vehicle current and the in-vehicle discharge current limit;

[0012] When the on-board charger is overloaded, the on-board charger is controlled to stop supplying power to the socket in the vehicle.

[0013] Furthermore, the method for determining the in-vehicle discharge current limit includes:

[0014] Obtain the maximum discharge power and current voltage of the battery fed back by the battery management system, and obtain the actual power consumption of the high-voltage accessories of the target electric vehicle;

[0015] The in-vehicle discharge current limit is determined based on the maximum discharge power, current voltage and actual power consumption.

[0016] Further, according to the first state of the external charging port, the second state of the internal socket, and the sequence of state changes of the external charging port and the internal socket, the target discharge operation corresponding to the target electric vehicle in the current scenario is determined, including:

[0017] When the state of the external charging port is switched to the working state and the first state is the discharging state, and the state of the internal socket is switched to the working state and the second state is the state allowing the internal discharging, a high-voltage circuit establishment instruction is sent to the battery management system of the target electric vehicle, and the high-voltage circuit establishment instruction is used to trigger the battery management system to close the battery relay to establish a high-voltage circuit;

[0018] Send an inverter start instruction and an off-vehicle charging port power-drawing instruction to the on-vehicle charger of the target electric vehicle, the inverter start instruction is used to trigger the on-vehicle charger to convert the DC power of the battery of the target electric vehicle into AC power to supply power to the in-vehicle socket of the target electric vehicle, and the off-vehicle charging port power-drawing instruction is used to trigger the on-vehicle charger to convert the DC power of the battery of the target electric vehicle into AC power to supply power to the off-vehicle charging port of the target electric vehicle;

[0019] Obtain the actual in-vehicle current of the in-vehicle socket from the on-board charger, and determine whether the on-board charger is overloaded according to the actual in-vehicle current and the in-vehicle discharge current limit; when the on-board charger is overloaded, control the on-board charger to stop supplying power to the in-vehicle socket;

[0020] The total output current is obtained from the on-board charger, and whether the on-board charger is overloaded is determined based on the total output current and the total discharge current limit of the on-board charger; when the on-board charger is overloaded, the on-board charger is controlled to stop supplying power to the in-vehicle socket and the external charging port.

[0021] Further, according to the first state of the external charging port, the second state of the internal socket, and the sequence of state changes of the external charging port and the internal socket, the target discharge operation corresponding to the target electric vehicle in the current scenario is determined, including:

[0022] After the state of the external charging port is switched to the working state and the first state is the charging state, when the state of the internal socket is switched to the working state and the second state is the state of allowing discharge in the vehicle, a power limiting instruction is sent to the on-board charger of the target electric vehicle, and the power limiting instruction is used to trigger the on-board charger to reduce the charging current of the external charging port of the target electric vehicle to a preset limiting current;

[0023] Sending a high-voltage circuit establishment instruction to the battery management system of the target electric vehicle, where the high-voltage circuit establishment instruction is used to trigger the battery management system to close the battery relay to establish a high-voltage circuit;

[0024] Controlling the on-board charger to use the charging current of the external charging port to supply power to the internal socket of the target electric vehicle and to charge the battery of the target electric vehicle;

[0025] After the charging current of the external charging port starts to supply power to the in-vehicle socket of the target electric vehicle, the actual in-vehicle current of the in-vehicle socket and the allowed charging power of the external charging port are obtained, the charging power limit of the external charging port for charging the battery is determined, and the external charging port is controlled to charge the battery according to the charging power limit.

[0026] Further, according to the first state of the external charging port, the second state of the internal socket, and the sequence of state changes of the external charging port and the internal socket, the target discharge operation corresponding to the target electric vehicle in the current scenario is determined, including:

[0027] After the state of the in-vehicle socket is switched to the working state and the second state is the state of allowing in-vehicle discharge, when the state of the external charging port is switched to the working state and the first state is the charging state, an in-vehicle discharge termination instruction is sent to the on-board charger of the target electric vehicle, and the in-vehicle discharge termination instruction is used to trigger the on-board charger to stop supplying power to the in-vehicle socket of the target electric vehicle;

[0028] Sending a charging instruction and a power limit instruction of the external charging port of the target electric vehicle to the on-board charger, wherein the charging instruction of the external charging port is used to trigger the on-board charger to allow the external charging port of the target electric vehicle to start charging, and the power limit instruction is used to trigger the on-board charger to reduce the charging current of the external charging port to a preset limit current;

[0029] Sending a high-voltage circuit establishment instruction to the battery management system of the target electric vehicle, where the high-voltage circuit establishment instruction is used to trigger the battery management system to close the battery relay to establish a high-voltage circuit;

[0030] Controlling the on-board charger to use the charging current of the external charging port to supply power to the internal socket of the target electric vehicle and to charge the battery of the target electric vehicle;

[0031] After the charging current of the external charging port starts to supply power to the in-vehicle socket of the target electric vehicle, the actual in-vehicle current of the in-vehicle socket and the allowed charging power of the external charging port are obtained, the charging power limit of the external charging port for charging the battery is determined, and the external charging port is controlled to charge the battery according to the charging power limit.

[0032] Further, when a vehicle lock signal of the target vehicle is received, the method further includes:

[0033] Detect whether the target electric vehicle's leave-the-vehicle-without-powering function is in a permitted state;

[0034] When the leave-the-car-without-power-down function of the target electric vehicle is in the allowed state, after the target electric vehicle is locked, the on-board charger of the target electric vehicle is controlled to continuously supply power to the in-vehicle socket of the target electric vehicle;

[0035] When the leave-the-car-without-power-down function of the target electric vehicle is in a not-permitted state, after the target electric vehicle is locked, the on-board charger is controlled to stop supplying power to the socket in the vehicle.

[0036] In a second aspect, the present application provides an electric vehicle discharge control device, the device comprising:

[0037] A status monitoring module is used to monitor the status of the external charging port and the internal socket of the target electric vehicle;

[0038] a discharge control module, for determining a target discharge operation corresponding to the target electric vehicle in the current scenario according to a first state of the external charging port, a second state of the internal socket, and a sequence of state changes of the external charging port and the internal socket when at least one of the state of the external charging port and the state of the internal socket is switched to a working state;

[0039] The target electric vehicle is controlled to discharge according to the target discharge operation.

[0040] Furthermore, the discharge control module is used to:

[0041] When the state of the external charging port is not switched to the working state, the state of the internal socket is switched to the working state and the second state is the state of allowing discharge in the vehicle, a high-voltage circuit establishment instruction is sent to the battery management system of the target electric vehicle, and the high-voltage circuit establishment instruction is used to trigger the battery management system to close the battery relay to establish a high-voltage circuit;

[0042] Sending an inverter start instruction to the on-board charger of the target electric vehicle, the inverter start instruction is used to trigger the on-board charger to convert the DC power of the battery of the target electric vehicle into AC power to supply power to the in-vehicle socket of the target electric vehicle;

[0043] Obtain the actual in-vehicle current of the in-vehicle socket from the on-vehicle charger, and determine whether the on-vehicle charger is overloaded according to the actual in-vehicle current and the in-vehicle discharge current limit;

[0044] When the on-board charger is overloaded, the on-board charger is controlled to stop supplying power to the socket in the vehicle.

[0045] Furthermore, the discharge control module is used to:

[0046] Obtain the maximum discharge power and current voltage of the battery fed back by the battery management system, and obtain the actual power consumption of the high-voltage accessories of the target electric vehicle;

[0047] The in-vehicle discharge current limit is determined based on the maximum discharge power, current voltage and actual power consumption.

[0048] Furthermore, the discharge control module is used to:

[0049] When the state of the external charging port is switched to the working state and the first state is the discharging state, and the state of the internal socket is switched to the working state and the second state is the state allowing the internal discharging, a high-voltage circuit establishment instruction is sent to the battery management system of the target electric vehicle, and the high-voltage circuit establishment instruction is used to trigger the battery management system to close the battery relay to establish a high-voltage circuit;

[0050] Send an inverter start instruction and an off-vehicle charging port power-drawing instruction to the on-vehicle charger of the target electric vehicle, the inverter start instruction is used to trigger the on-vehicle charger to convert the DC power of the battery of the target electric vehicle into AC power to supply power to the in-vehicle socket of the target electric vehicle, and the off-vehicle charging port power-drawing instruction is used to trigger the on-vehicle charger to convert the DC power of the battery of the target electric vehicle into AC power to supply power to the off-vehicle charging port of the target electric vehicle;

[0051] Obtain the actual in-vehicle current of the in-vehicle socket from the on-board charger, and determine whether the on-board charger is overloaded according to the actual in-vehicle current and the in-vehicle discharge current limit; when the on-board charger is overloaded, control the on-board charger to stop supplying power to the in-vehicle socket;

[0052] The total output current is obtained from the on-board charger, and whether the on-board charger is overloaded is determined based on the total output current and the total discharge current limit of the on-board charger; when the on-board charger is overloaded, the on-board charger is controlled to stop supplying power to the in-vehicle socket and the external charging port.

[0053] Furthermore, the discharge control module is used to:

[0054] After the state of the external charging port is switched to the working state and the first state is the charging state, when the state of the internal socket is switched to the working state and the second state is the state of allowing discharge in the vehicle, a power limiting instruction is sent to the on-board charger of the target electric vehicle, and the power limiting instruction is used to trigger the on-board charger to reduce the charging current of the external charging port of the target electric vehicle to a preset limiting current;

[0055] Sending a high-voltage circuit establishment instruction to the battery management system of the target electric vehicle, where the high-voltage circuit establishment instruction is used to trigger the battery management system to close the battery relay to establish a high-voltage circuit;

[0056] Controlling the on-board charger to use the charging current of the external charging port to supply power to the internal socket of the target electric vehicle and to charge the battery of the target electric vehicle;

[0057] After the charging current of the external charging port starts to supply power to the in-vehicle socket of the target electric vehicle, the actual in-vehicle current of the in-vehicle socket and the allowed charging power of the external charging port are obtained, the charging power limit of the external charging port for charging the battery is determined, and the external charging port is controlled to charge the battery according to the charging power limit.

[0058] Furthermore, the discharge control module is used to:

[0059] After the state of the in-vehicle socket is switched to the working state and the second state is the state of allowing in-vehicle discharge, when the state of the external charging port is switched to the working state and the first state is the charging state, an in-vehicle discharge termination instruction is sent to the on-board charger of the target electric vehicle, and the in-vehicle discharge termination instruction is used to trigger the on-board charger to stop supplying power to the in-vehicle socket of the target electric vehicle;

[0060] Sending a charging instruction and a power limit instruction of the external charging port of the target electric vehicle to the on-board charger, wherein the charging instruction of the external charging port is used to trigger the on-board charger to allow the external charging port of the target electric vehicle to start charging, and the power limit instruction is used to trigger the on-board charger to reduce the charging current of the external charging port to a preset limit current;

[0061] Sending a high-voltage circuit establishment instruction to the battery management system of the target electric vehicle, where the high-voltage circuit establishment instruction is used to trigger the battery management system to close the battery relay to establish a high-voltage circuit;

[0062] Controlling the on-board charger to use the charging current of the external charging port to supply power to the internal socket of the target electric vehicle and to charge the battery of the target electric vehicle;

[0063] After the charging current of the external charging port starts to supply power to the in-vehicle socket of the target electric vehicle, the actual in-vehicle current of the in-vehicle socket and the allowed charging power of the external charging port are obtained, the charging power limit of the external charging port for charging the battery is determined, and the external charging port is controlled to charge the battery according to the charging power limit.

[0064] Furthermore, the device also includes a vehicle locking control module, which is used to:

[0065] When receiving a lock signal from the target vehicle, detecting whether the leave-the-vehicle-without-power-down function of the target electric vehicle is in a permitted state;

[0066] When the leave-the-car-without-power-down function of the target electric vehicle is in the allowed state, after the target electric vehicle is locked, the on-board charger of the target electric vehicle is controlled to continuously supply power to the in-vehicle socket of the target electric vehicle;

[0067] When the leave-the-car-without-power-down function of the target electric vehicle is in a not-permitted state, after the target electric vehicle is locked, the on-board charger is controlled to stop supplying power to the socket in the vehicle.

[0068] In a third aspect, the present application provides an electronic device, including:

[0069] processor;

[0070] a memory for storing processor-executable instructions;

[0071] The processor is configured to execute to implement a discharge control method for an electric vehicle as provided in the first aspect.

[0072] In a fourth aspect, the present application provides a non-temporary computer-readable storage medium. When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to implement an electric vehicle discharge control method as provided in the first aspect.

[0073] One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:

[0074] This embodiment monitors the state of the external charging port and the state of the in-vehicle socket of the target electric vehicle. When at least one of the external charging port state and the in-vehicle socket state is switched to the working state, the target discharge operation of the target electric vehicle in the current scene is determined according to the corresponding first state, the second state and the order of switching thereof, and the target electric vehicle is controlled to discharge according to the target discharge operation. It can be seen that this embodiment can meet the needs of users for in-vehicle and out-vehicle discharge functions in various scenarios, and can specifically meet the needs of users for in-vehicle and out-vehicle discharge functions in scenarios such as driving, parking, charging, and locking the vehicle, thereby improving the power safety of electric vehicles in different in-vehicle and out-vehicle discharge scenarios, and providing users with a more convenient and safer use experience. At the same time, this embodiment can minimize the situation in which the charging power is limited due to the activation of the in-vehicle discharge function during the charging process, and can allow users to charge at the maximum power while activating the in-vehicle discharge. Under the premise of ensuring the safety of electric vehicle power consumption, this embodiment satisfies the user's in-vehicle power consumption experience on the one hand, and shortens the charging time as much as possible on the other hand. BRIEF DESCRIPTION OF THE DRAWINGS

[0075] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0076] Figure 1 A schematic flow chart of a method for controlling discharge of an electric vehicle provided in this embodiment;

[0077] Figure 2 A schematic diagram of a high voltage circuit structure provided in this embodiment;

[0078] Figure 3 A schematic diagram of the structure of a low-voltage control architecture provided in this embodiment;

[0079] Figure 4 A schematic diagram of the structure of a discharge control device for an electric vehicle provided in this embodiment;

[0080] Figure 5 A schematic diagram of the structure of an electronic device provided in this embodiment. DETAILED DESCRIPTION

[0081] The embodiment of the present application solves the technical problem in the prior art that the safety of the electric vehicle is low when the charging and discharging are not properly controlled by providing a method for controlling the discharge of the electric vehicle.

[0082] The technical solution of the embodiment of the present application is to solve the above technical problems, and the overall idea is as follows:

[0083] A method for controlling discharge of an electric vehicle, the method comprising: monitoring the state of an external charging port and a state of an in-vehicle socket of a target electric vehicle; when at least one of the state of the external charging port and the state of the in-vehicle socket is switched to a working state, determining a target discharge operation corresponding to the target electric vehicle in a current scenario according to a first state currently in the external charging port state, a second state currently in the in-vehicle socket state, and a sequence in which the state of the external charging port and the state of the in-vehicle socket change; and controlling the target electric vehicle to discharge according to the target discharge operation.

[0084] This embodiment can meet the needs of users for in-car and out-car discharge functions in a variety of scenarios, specifically in driving, parking, charging, locking, etc., improving the power safety of electric vehicles in different in-car and out-car discharge scenarios, and providing users with a more convenient and safer use experience. At the same time, this embodiment can minimize the situation in which the charging power is limited due to the activation of the in-car discharge function during the charging process, allowing users to charge at maximum power while activating the in-car discharge. Under the premise of ensuring the safety of electric vehicle power use, this embodiment not only meets the user's in-car power experience, but also shortens the charging time as much as possible.

[0085] In order to better understand the above technical solution, the above technical solution will be described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0086] First of all, the term "and / or" in this article is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0087] This embodiment provides Figure 1 An electric vehicle discharge control method shown is applied to a vehicle controller of a target electric vehicle, and the method includes steps S11 to S13.

[0088] Step S11, monitoring the status of the external charging port and the internal socket of the target electric vehicle;

[0089] Step S12, when at least one of the state of the external charging port and the state of the in-vehicle socket is switched to the working state, according to the first state of the external charging port, the second state of the in-vehicle socket, and the sequence of the state changes of the external charging port and the in-vehicle socket, determining the target discharge operation corresponding to the target electric vehicle in the current scenario;

[0090] Step S13, controlling the target electric vehicle to discharge according to the target discharge operation.

[0091] Target electric vehicles exist as Figure 2 The high voltage circuit architecture shown in the figure and Figure 3 The low voltage control architecture shown in Figure 2 In the medium and high voltage circuit architecture, an OBC (On-board charger) and a DCDC (DC to DC converter) are used to form a machine, in which PCBA (Printed Circuit Board Assembly) refers to a PCB blank board that has been mounted with SMT (surface mount technology) or DIP (double-sided plug-in).

[0092] Also connected to the OBC are the target electric vehicle's external charging port and in-vehicle socket. Alternating current flows between the in-vehicle socket and the OBC. There is a live wire L and a neutral wire N between the in-vehicle socket and the OBC, and a switch S2 is set on the live wire L. There is a Hall current sensor on the live wire of this circuit of the in-vehicle socket to collect the current value when the in-vehicle socket is discharged. The in-vehicle socket uses a 220V AC socket and is arranged in the passenger compartment. Alternating current flows between the external charging port and the OBC. There is a live wire L and a neutral wire N between the external charging port and the OBC, and a switch S1 is set on the live wire L.

[0093] exist Figure 3 In the present invention, the low-voltage control architecture includes a mobile phone APP (app li cat i on), an in-vehicle infotainment system (IVI) on a large screen, a gateway GW (GateWay), a vehicle terminal TBOX (Telematics BOX), a vehicle controller VCU (Vehicle Communication Unit), a battery management system BMS (Battery Management System) and an on-board charger OBC (On-board Charger). The APP communicates with the TBOX via 4G, and other devices or controllers communicate with each other via CAN. Users can control whether the in-vehicle socket is allowed to discharge on the mobile phone APP or the large screen of the vehicle. The present embodiment provides a method for controlling the discharge of an electric vehicle, which can be performed by Figure 3 The VCU is executed in .

[0094] Regarding step S11, the status of the external charging port and the status of the internal socket of the target electric vehicle are monitored.

[0095] The status of the external charging port is Figure 2 The status of the external charging port in the vehicle can be working state or non-working state. The working state includes charging state and discharging state, and the non-working state is neither charging nor discharging state. The external charging port refers to the interface used by the target electric vehicle to insert the charging gun for charging.

[0096] Normally, the status of the external charging port can be determined by whether a gun is plugged in and the type of gun plugged in. When the VCU detects that there is no gun plugged in the external charging port, it means that the external charging port is in a non-working state. When the VCU detects that there is a gun plugged in the external charging port, it can be identified whether the plugged gun is a charging gun or a discharging gun based on the communication signal between the VCU and the plugged gun. When the plugged gun is a charging gun, it means that the external charging port is in a charging state. When the plugged gun is a discharging gun, it means that the external charging port is in a discharging state.

[0097] The socket status in the car refers to Figure 2 The status of the socket in the car can include working status and non-working status. The working status is a state that allows discharge, and the non-working status is a state that does not allow discharge.

[0098] Normally, the status of the in-car socket can be operated by the user through an APP or IVI. For example, the user can transmit voice to the mobile phone or IVI to control the status of the in-car socket to a state that allows discharge, or control the status of the in-car socket to a state that does not allow discharge through a virtual button of the IVI.

[0099] When both the status of the external charging port and the status of the internal socket are in a non-working state, step S11 can be executed cyclically at a preset periodic frequency. When at least one of the status of the external charging port and the status of the internal socket is switched to a working state, step S12 can be continued to be executed. At the same time, step S11 is also executed cyclically at a preset periodic frequency to continuously monitor the state changes of the external charging port and the internal socket.

[0100] Regarding step S12, when at least one of the external charging port state and the internal socket state is switched to the working state, the target discharge operation corresponding to the target electric vehicle in the current scenario is determined according to the first state of the external charging port state, the second state of the internal socket state, and the order in which the external charging port state and the internal socket state change.

[0101] In order to distinguish the state of the external charging port from the actual state after the state switching, this embodiment records the actual state after the external charging port state switching as the first state. Similarly, in order to distinguish the state of the in-vehicle socket from the actual state after the state switching, this embodiment records the actual state after the in-vehicle socket state switching as the second state.

[0102] That is, when at least one of the state of the external charging port and the state of the internal socket is switched to the working state, the corresponding target discharge operation can be determined according to the first state, the second state, and the order in which the states of the two are switched. It should be noted that the "order" only affects the target discharge operation when both the state of the external charging port and the state of the internal socket are switched to the working state.

[0103] At least one of the external charging port state and the internal socket state is switched to the working state, which may include the following four scenarios:

[0104] In scenario 1, the first state is a non-working state, and the second state is a state allowing discharge in the vehicle.

[0105] In scenario 2, the first state is the discharge state, and the second state is the state allowing discharge in the vehicle.

[0106] Scenario three: after the state of the charging port outside the vehicle is switched to the charging state (ie, the first state), the socket inside the vehicle is switched to a state that allows discharge inside the vehicle (ie, the second state).

[0107] In scenario 4, after the state of the socket in the vehicle is switched to a state allowing discharge in the vehicle (ie, the second state), the charging port outside the vehicle is switched to a charging state (ie, the first state).

[0108] Regarding step S13, the target electric vehicle is controlled to discharge according to the target discharge operation.

[0109] The target discharge operations corresponding to the four scenarios are now described respectively.

[0110] [Scenario 1] The first state is a non-working state, and the second state is a state in which discharge is allowed in the car, that is, when the state of the external charging port has not been switched to the working state, the state of the in-car socket is switched to the working state and the second state is a state in which discharge is allowed in the car, including steps S21-S24. The state of the in-car socket is switched to the state in which discharge is allowed in the car by the user. The user can click the in-car discharge soft switch button on the APP or the large screen of the car to switch the state of the in-car socket to the state in which discharge is allowed in the car. Scenario 1 can exist when the target vehicle is driving or parked.

[0111] Step S21, sending a high-voltage circuit establishment instruction to the battery management system of the target electric vehicle, where the high-voltage circuit establishment instruction is used to trigger the battery management system to close the battery relay to establish a high-voltage circuit;

[0112] Step S22, sending an inverter start instruction to the on-board charger of the target electric vehicle, the inverter start instruction is used to trigger the on-board charger to convert the DC power of the battery of the target electric vehicle into AC power to supply power to the in-vehicle socket of the target electric vehicle;

[0113] Step S23, obtaining the actual in-vehicle current of the in-vehicle socket from the in-vehicle charger, and determining whether the in-vehicle charger is overloaded according to the actual in-vehicle current and the in-vehicle discharge current limit;

[0114] Step S24, when the on-board charger is overloaded, the on-board charger is controlled to stop supplying power to the socket in the vehicle.

[0115] Regarding step S21, the VCU sends a high-voltage circuit establishment instruction to the BMS, and the BMS responds to the high-voltage circuit establishment instruction and further closes the battery relay to establish the high-voltage circuit.

[0116] Regarding step S22, the VCU sends an inverter opening instruction to the OBC, and the OBC responds to the inverter opening instruction and then closes. Figure 2 S2 in the circuit is disconnected, S1 is disconnected, and the DC power of the battery of the target electric vehicle is converted into AC power to power the in-vehicle socket of the target electric vehicle, which is 220V AC. At this time, the user can use a 220V AC device to draw power from the in-vehicle socket. In this case, the power of the in-vehicle socket comes from the battery of the target electric vehicle.

[0117] Regarding step S23 and step S24, during the discharge process, the VCU obtains the actual in-vehicle current of the in-vehicle socket from the OBC, compares the actual in-vehicle current with the in-vehicle discharge current limit, and determines whether the OBC is overloaded. When the actual in-vehicle current is greater than the in-vehicle discharge current limit, it means that the OBC is overloaded. At this time, the VCU needs to send an in-vehicle discharge termination instruction to the on-board charger to control the OBC to stop supplying power to the in-vehicle socket. Among them, the in-vehicle discharge current limit can be determined by steps S231-S232.

[0118] Step S231, obtaining the maximum discharge power and current voltage of the battery fed back by the battery management system, and obtaining the actual power consumption of the high-voltage accessories of the target electric vehicle;

[0119] Step S232, determining the in-vehicle discharge current limit value according to the maximum discharge power, the current voltage and the actual power consumption.

[0120] The VCU first obtains the maximum discharge power of the battery sent by the BMS, and subtracts the actual power consumption of the high-voltage accessories (including the air-conditioning system, DCDC converter, motor controller MCU, etc. in the target electric vehicle) from the maximum discharge power. The remaining power value is the power value allowed for discharge in the vehicle socket. The power value allowed for discharge in the vehicle socket is divided by the current voltage of the battery to obtain the discharge current limit in the vehicle.

[0121] When the in-car socket is supplying power normally, when the user does not need the in-car socket to supply power, the user can click the in-car discharge soft switch button on the APP or the large screen of the car computer to switch the in-car socket state to a state where in-car discharge is not allowed. At this time, after receiving the user's trigger signal, the VCU sends an in-car discharge termination instruction to the on-board charger, controlling the OBC to stop supplying power to the in-car socket, that is, disconnecting S2.

[0122] [Scenario 2] The first state is the discharge state, and the second state is the state allowing discharge in the vehicle, that is, when the state of the charging port outside the vehicle is switched to the working state and the first state is the discharge state, the state of the socket inside the vehicle is switched to the working state and the second state is the state allowing discharge in the vehicle, including steps S31-S34.

[0123] The external charging port switches to the discharge state when the user inserts the discharge gun. The in-vehicle socket state switches to the in-vehicle discharge-allowed state when the user triggers it. The user can click the in-vehicle discharge soft switch button on the APP or the large screen of the vehicle to switch the in-vehicle socket state to the in-vehicle discharge-allowed state. Scenario 2 usually occurs when the target vehicle is parked.

[0124] In scenario two, the state of the charging port outside the vehicle may be switched to the working state first, or the state of the socket inside the vehicle may be switched to the working state first. The order in scenario two has little effect on the target discharge operation.

[0125] Step S31, sending a high-voltage circuit establishment instruction to the battery management system of the target electric vehicle, where the high-voltage circuit establishment instruction is used to trigger the battery management system to close the battery relay to establish a high-voltage circuit;

[0126] Step S32, sending an inverter start instruction and an off-vehicle charging port power-drawing instruction to the on-vehicle charger of the target electric vehicle, the inverter start instruction is used to trigger the on-vehicle charger to convert the DC power of the battery of the target electric vehicle into AC power to supply power to the on-vehicle socket of the target electric vehicle, and the off-vehicle charging port power-drawing instruction is used to trigger the on-vehicle charger to convert the DC power of the battery of the target electric vehicle into AC power to supply power to the off-vehicle charging port of the target electric vehicle;

[0127] Step S33, obtaining the actual in-vehicle current of the in-vehicle socket from the on-board charger, and determining whether the on-board charger is overloaded according to the actual in-vehicle current and the in-vehicle discharge current limit; when the on-board charger is overloaded, controlling the on-board charger to stop supplying power to the in-vehicle socket;

[0128] Step S34, obtaining the total output current from the on-board charger, and determining whether the on-board charger is overloaded according to the total output current and the total discharge current limit of the on-board charger; when the on-board charger is overloaded, controlling the on-board charger to stop supplying power to the in-vehicle socket and the external charging port.

[0129] Regarding step S31, similar to step S21, the VCU sends a high-voltage circuit establishment instruction to the BMS, and the BMS responds to the high-voltage circuit establishment instruction and further closes the battery relay to establish the high-voltage circuit.

[0130] Regarding step S32, the VCU sends an inverter opening instruction to the OBC, and the OBC responds to the inverter opening instruction and then closes. Figure 2 S2 in the target electric vehicle converts the DC power of the battery of the target electric vehicle into AC power to supply power to the in-vehicle socket of the target electric vehicle, and the in-vehicle socket is 220V AC. At this time, the user can use a 220V AC device to draw power from the in-vehicle socket.

[0131] The VCU sends a command to the OBC to draw power from the external charging port. The OBC responds to the command and closes the charging port. Figure 2 S1 in the example converts the DC power of the battery of the target electric vehicle into AC power to supply power to the external charging port of the target electric vehicle.

[0132] In this case, the electricity drawn from the in-car socket and the external charging port all comes from the battery of the target electric vehicle.

[0133] Regarding step S33, similar to step S23 and step S24, during the discharge process, the VCU obtains the actual in-vehicle current of the in-vehicle socket from the OBC, compares the actual in-vehicle current with the in-vehicle discharge current limit, and determines whether the OBC is overloaded. When the actual in-vehicle current is greater than the in-vehicle discharge current limit, it means that the OBC is overloaded. At this time, the VCU needs to send an in-vehicle discharge termination instruction to the on-board charger to control the OBC to stop supplying power to the in-vehicle socket, that is, disconnect S2, and S1 can continue to be closed.

[0134] Regarding step S34, the principle is similar to step S33. During the discharge process, the VCU obtains the total output current from the OBC, compares the total output current with the total discharge current limit, and determines whether the OBC is overloaded. When the total output current is greater than the total discharge current limit, it means that the OBC is overloaded. At this time, the VCU needs to send an in-vehicle discharge termination instruction to the on-board charger to control the OBC to stop supplying power to the in-vehicle socket and the external charging port, that is, disconnect S1 and S2. The total discharge current limit can be determined according to the operating parameters of the OBC.

[0135] When OBC normally supplies power to the in-car socket and the external charging port, when the user does not need power from the in-car socket but has not unplugged the discharge gun, the user can click the in-car discharge soft switch button on the APP or the large screen of the car computer to switch the in-car socket state to a state that does not allow in-car discharge. At this time, after receiving the user's trigger signal, the VCU sends an in-car discharge termination instruction to the on-board charger to control the OBC to stop supplying power to the in-car socket, that is, disconnect S2. When the user unplugs the discharge gun of the external charging port according to actual needs but the in-car socket state is in a state that allows in-car discharge, the VCU can control the OBC to disconnect S1 and keep S2 closed. When the user unplugs the discharge gun and turns off the in-car socket, the VCU can control the OBC to disconnect S1 and S2.

[0136] [Scenario 3] The state of the external charging port is first switched to the charging state (i.e., the first state), and the socket inside the vehicle is then switched to the state that allows discharge inside the vehicle (i.e., the second state). That is, after the external charging port is switched to the working state and the first state is the charging state, when the socket inside the vehicle is then switched to the working state and the second state is the state that allows discharge inside the vehicle, steps S41 to S44 are included.

[0137] In scenario three, it is necessary to distinguish the switching order of the first state and the second state. Scenario three corresponds to the first state switching first and the second state switching later.

[0138] The external charging port switches to the charging state when the user inserts the charging gun. The in-vehicle socket state switches to the in-vehicle discharge-allowed state when the user triggers it. The user can click the in-vehicle discharge soft switch button on the APP or the large screen of the vehicle to switch the in-vehicle socket state to the in-vehicle discharge-allowed state. Scenario 3 usually occurs when the target vehicle is parked.

[0139] Step S41, sending a power limit instruction to the on-board charger of the target electric vehicle, the power limit instruction is used to trigger the on-board charger to reduce the charging current of the external charging port of the target electric vehicle to a preset limit current;

[0140] Step S42, sending a high-voltage circuit establishment instruction to the battery management system of the target electric vehicle, where the high-voltage circuit establishment instruction is used to trigger the battery management system to close the battery relay to establish the high-voltage circuit;

[0141] Step S43, controlling the on-board charger to use the charging current of the external charging port to supply power to the internal socket of the target electric vehicle and to charge the battery of the target electric vehicle;

[0142] Step S44, after the charging current of the external charging port starts to supply power to the in-vehicle socket of the target electric vehicle, the actual in-vehicle current of the in-vehicle socket and the allowed charging power of the external charging port are obtained, the charging power limit of the external charging port for charging the battery is determined, and the external charging port is controlled to charge the battery according to the charging power limit.

[0143] Regarding step S41, during the battery charging process, when the state of the in-vehicle socket is switched to a state that allows in-vehicle discharge, the VCU sends a power limit instruction to the OBC, and the OBC responds to the power limit instruction, thereby reducing the charging current of the target electric vehicle's external charging port to the preset limit current, thereby achieving the purpose of limiting the OBC charging power. This can reduce the probability of shutdown due to overcurrent at the pile end output caused by simultaneous charging and in-vehicle discharge. In general, the maximum output current of a 7kw AC pile is 32A, and the power of a common OBC is also 7kw, so the output of the pile cannot be given to the OBC in full, and a portion must be reserved for the in-vehicle discharge circuit to avoid overload of the charging pile output. The preset limit current can be set according to actual conditions. Step S42 is executed after the OBC limits the charging current of the external charging port.

[0144] Regarding step S42, similar to step S31, the VCU sends a high-voltage circuit establishment instruction to the BMS, and the BMS responds to the high-voltage circuit establishment instruction and further closes the battery relay to establish the high-voltage circuit.

[0145] Regarding step S43, the external charging port charges the battery of the target electric vehicle through the charging gun, and the socket inside the vehicle is using electricity. In order to avoid the situation where the electric energy is first charged into the battery and then the socket inside the vehicle draws power from the battery, the VCU controls the OBC to directly use the charging current of the external charging port to power the socket inside the vehicle, and at the same time, the charging current of the external charging port also charges the battery of the target electric vehicle. This can reduce the complexity of the current flow, and also reduce the power consumption during the transmission process, achieving the purpose of energy saving.

[0146] Regarding step S44, after the charging current of the external charging port starts to supply power to the in-vehicle socket of the target electric vehicle, the power supply power of the in-vehicle socket needs to be reduced again. The actual in-vehicle current corresponding to the in-vehicle socket and the allowed charging power of the external charging port can be obtained. The power consumption of the in-vehicle socket is determined according to the product of the actual in-vehicle current and the voltage (that is, 220V). The charging power limit of the battery charging can be determined by subtracting the power consumption of the in-vehicle socket from the allowed charging power, and the battery is charged according to the charging power limit. When there is no electrical device using electricity in the in-vehicle socket, the corresponding in-vehicle socket power supply power is 0, and the charging power limit of the battery charging can be the maximum value, such as 7kw.

[0147] When OBC normally supplies power to the car socket and battery, when the user does not need power from the car socket but has not unplugged the charging gun, the user can click the in-car discharge soft switch button on the APP or the large screen of the car computer to switch the state of the in-car socket to a state where in-car discharge is not allowed. At this time, after receiving the user's trigger signal, the VCU sends an in-car discharge termination instruction to the on-board charger, controlling the OBC to stop supplying power to the in-car socket, that is, disconnecting S2. After that, the charging gun can charge the battery at the maximum charging power.

[0148] When the user unplugs the charging gun from the external charging port according to actual needs, but still needs to use the socket inside the car for power, the VCU can control the OBC to stop charging the battery and stop supplying power to the socket inside the car, that is, disconnect S1 and S2. After that, if the user still needs to use the socket inside the car for power, scenario one is formed, and the operation process of scenario one can be followed.

[0149] [Scenario 4] The state of the socket in the car is first switched to the state that allows discharge in the car (i.e., the second state), and the charging port outside the car is then switched to the charging state (i.e., the first state). That is, when the state of the socket in the car is first switched to the working state and the second state is the state that allows discharge in the car, when the state of the charging port outside the car is then switched to the working state and the first state is the charging state, it includes steps S51 to S55.

[0150] In scenario 4, it is necessary to distinguish the switching order of the first state and the second state. Scenario 4 corresponds to the second state being switched first and the first state being switched later.

[0151] The external charging port switches to the charging state when the user inserts the charging gun. The in-vehicle socket state switches to the in-vehicle discharge-allowed state when the user triggers it. The user can click the in-vehicle discharge soft switch button on the APP or the large screen of the vehicle to switch the in-vehicle socket state to the in-vehicle discharge-allowed state. Scenario 4 usually occurs when the target vehicle is parked.

[0152] Step S51, sending an in-vehicle discharge termination instruction to the on-board charger of the target electric vehicle, where the in-vehicle discharge termination instruction is used to trigger the on-board charger to stop supplying power to the in-vehicle socket of the target electric vehicle;

[0153] Step S52, sending a charging instruction and a power limit instruction of the external charging port of the target electric vehicle to the on-board charger, wherein the charging instruction of the external charging port is used to trigger the on-board charger to allow the external charging port of the target electric vehicle to start charging, and the power limit instruction is used to trigger the on-board charger to reduce the charging current of the external charging port to a preset limit current;

[0154] Step S53, sending a high-voltage circuit establishment instruction to the battery management system of the target electric vehicle, where the high-voltage circuit establishment instruction is used to trigger the battery management system to close the battery relay to establish the high-voltage circuit;

[0155] Step S54, controlling the on-board charger to use the charging current of the external charging port to supply power to the internal socket of the target electric vehicle and to charge the battery of the target electric vehicle;

[0156] Step S55, after the charging current of the external charging port starts to supply power to the in-vehicle socket of the target electric vehicle, the actual in-vehicle current of the in-vehicle socket and the allowed charging power of the external charging port are obtained, the charging power limit of the external charging port for charging the battery is determined, and the external charging port is controlled to charge the battery according to the charging power limit.

[0157] Regarding step S51, when the in-car socket is using electricity, the charging gun is inserted for charging. At this time, the VCU sends an in-car discharge termination instruction to the OBC, thereby controlling the OBC to stop supplying power to the in-car socket.

[0158] Regarding step S52, the VCU sends a charging instruction and a power limit instruction to the OBC for the external charging port. The OBC responds to the charging instruction for the external charging port to charge the battery, and responds to the power limit instruction at the same time, thereby reducing the charging current of the external charging port of the target electric vehicle to the preset limit current, so as to achieve the purpose of limiting the OBC charging power. This can reduce the probability of shutdown due to overcurrent at the pile end output caused by simultaneous charging and discharge in the car. In general, the maximum output current of a 7kw AC pile is 32A, and the power of a common OBC is also 7kw, so the output of the pile cannot be given to the OBC in full, and a part of it must be reserved for the discharge circuit in the car to avoid overload of the charging pile output. The preset limit current can be set according to the actual situation. After the OBC limits the charging current of the external charging port, execute step S53.

[0159] Regarding step S53, similar to step S42, the VCU sends a high-voltage circuit establishment instruction to the BMS, and the BMS responds to the high-voltage circuit establishment instruction and further closes the battery relay to establish the high-voltage circuit.

[0160] Regarding step S54, the external charging port charges the battery of the target electric vehicle through the charging gun, and the socket inside the vehicle is using electricity. In order to avoid the situation where the electric energy is first charged into the battery and then the socket inside the vehicle draws power from the battery, the VCU controls the OBC to directly use the charging current of the external charging port to power the socket inside the vehicle, and at the same time, the charging current of the external charging port also charges the battery of the target electric vehicle. This can reduce the complexity of the current flow, and also reduce the power consumption during the transmission process, achieving the purpose of energy saving.

[0161] Regarding step S55, after the charging current of the external charging port starts to supply power to the in-vehicle socket of the target electric vehicle, the power supply power of the in-vehicle socket needs to be reduced again. The actual in-vehicle current corresponding to the in-vehicle socket and the allowed charging power of the external charging port can be obtained. The power consumption of the in-vehicle socket is determined according to the product of the actual in-vehicle current and the voltage (that is, 220V). The charging power limit of the battery charging can be determined by subtracting the power consumption of the in-vehicle socket from the allowed charging power, and the battery is charged according to the charging power limit. When there is no electrical device using electricity in the in-vehicle socket, the corresponding in-vehicle socket power supply is 0, and the charging power limit of the battery charging can be the maximum value, such as 7kw.

[0162] When OBC normally supplies power to the car socket and battery, if the user does not need power from the car socket but has not unplugged the charging gun, the user can click the in-car discharge soft switch button on the APP or the large screen of the car computer to switch the in-car socket state to a state where in-car discharge is not allowed. At this time, after receiving the user's trigger signal, the VCU sends an in-car discharge termination instruction to the on-board charger, controlling the OBC to stop supplying power to the in-car socket, that is, disconnecting S2. After that, the charging gun can charge the battery at the maximum charging power.

[0163] When the user unplugs the charging gun from the external charging port according to actual needs, but still needs to use the socket inside the car for power, the VCU can control the OBC to stop charging the battery and stop supplying power to the socket inside the car, that is, disconnect S1 and S2. After that, if the user still needs to use the socket inside the car for power, scene one is formed, and the operation process of scene one can be followed.

[0164] In addition to the above four scenarios, this embodiment also provides a vehicle locking scenario.

[0165] [Car locking scenario] includes steps S61 to S63.

[0166] Step S61, when receiving a lock signal from a target vehicle, detecting whether the leave-the-vehicle-without-power-down function of the target electric vehicle is in a permitted state;

[0167] Step S62, when the leave-the-car function of the target electric vehicle is in the enabled state, after the target electric vehicle is locked, controlling the on-board charger of the target electric vehicle to continuously supply power to the in-vehicle socket of the target electric vehicle;

[0168] Step S63, when the leave-the-car function of the target electric vehicle is in a disallowed state, after the target electric vehicle is locked, the on-board charger is controlled to stop supplying power to the socket in the vehicle.

[0169] The target electric vehicle's function of not discharging the battery when leaving the vehicle can be pre-set on the mobile phone or IVI. After receiving the target electric vehicle's lock signal, check whether the function of not discharging the battery when leaving the vehicle is turned on, that is, determine whether it is in a permitted state. If it is in the on state, the target electric vehicle will not turn off the discharge function of the in-vehicle socket after the user closes the door and locks the vehicle. If it is in the off state, the target electric vehicle will turn off the discharge function of the in-vehicle socket after the user closes the door and locks the vehicle.

[0170] In summary, this embodiment monitors the state of the external charging port and the state of the in-vehicle socket of the target electric vehicle. When at least one of the external charging port state and the in-vehicle socket state is switched to the working state, the target discharge operation of the target electric vehicle in the current scene is determined according to the corresponding first state, the second state and the order of switching thereof, and the target electric vehicle is controlled to discharge according to the target discharge operation. It can be seen that this embodiment can meet the needs of users for in-vehicle and out-vehicle discharge functions in various scenarios, and can specifically meet the needs of users for in-vehicle and out-vehicle discharge functions in scenarios such as driving, parking, charging, and locking the car, thereby improving the power safety of electric vehicles in different in-vehicle and out-vehicle discharge scenarios, and providing users with a more convenient and safer use experience. At the same time, this embodiment can minimize the situation in which the charging power is limited due to the activation of the in-vehicle discharge function during the charging process, and can allow users to charge at maximum power while enabling the in-vehicle discharge. On the premise of ensuring the safety of electric vehicle power consumption, this embodiment satisfies the user's in-vehicle power consumption experience on the one hand, and shortens the charging time as much as possible on the other hand.

[0171] Based on the same inventive concept, this embodiment provides Figure 4 An electric vehicle discharge control device is shown, the device comprising:

[0172] A status monitoring module 41 is used to monitor the status of the external charging port and the internal socket of the target electric vehicle;

[0173] The discharge control module 42 is used to determine the target discharge operation corresponding to the target electric vehicle in the current scenario according to the first state of the external charging port state, the second state of the internal socket state, and the sequence of the state changes of the external charging port state and the internal socket state when at least one of the state of the external charging port and the state of the internal socket is switched to the working state;

[0174] The target electric vehicle is controlled to discharge according to the target discharge operation.

[0175] Furthermore, the discharge control module 42 is used to:

[0176] When the state of the external charging port is not switched to the working state, the state of the internal socket is switched to the working state and the second state is the state of allowing discharge in the vehicle, a high-voltage circuit establishment instruction is sent to the battery management system of the target electric vehicle, and the high-voltage circuit establishment instruction is used to trigger the battery management system to close the battery relay to establish a high-voltage circuit;

[0177] Sending an inverter start instruction to the on-board charger of the target electric vehicle, the inverter start instruction is used to trigger the on-board charger to convert the DC power of the battery of the target electric vehicle into AC power to supply power to the in-vehicle socket of the target electric vehicle;

[0178] Obtain the actual in-vehicle current of the in-vehicle socket from the on-vehicle charger, and determine whether the on-vehicle charger is overloaded according to the actual in-vehicle current and the in-vehicle discharge current limit;

[0179] When the on-board charger is overloaded, the on-board charger is controlled to stop supplying power to the socket in the vehicle.

[0180] Furthermore, the discharge control module 42 is used to:

[0181] Obtain the maximum discharge power and current voltage of the battery fed back by the battery management system, and obtain the actual power consumption of the high-voltage accessories of the target electric vehicle;

[0182] The in-vehicle discharge current limit is determined based on the maximum discharge power, current voltage and actual power consumption.

[0183] Furthermore, the discharge control module 42 is used to:

[0184] When the state of the external charging port is switched to the working state and the first state is the discharging state, and the state of the internal socket is switched to the working state and the second state is the state allowing the internal discharging, a high-voltage circuit establishment instruction is sent to the battery management system of the target electric vehicle, and the high-voltage circuit establishment instruction is used to trigger the battery management system to close the battery relay to establish a high-voltage circuit;

[0185] Send an inverter start instruction and an off-vehicle charging port power-drawing instruction to the on-vehicle charger of the target electric vehicle, the inverter start instruction is used to trigger the on-vehicle charger to convert the DC power of the battery of the target electric vehicle into AC power to supply power to the in-vehicle socket of the target electric vehicle, and the off-vehicle charging port power-drawing instruction is used to trigger the on-vehicle charger to convert the DC power of the battery of the target electric vehicle into AC power to supply power to the off-vehicle charging port of the target electric vehicle;

[0186] Obtain the actual in-vehicle current of the in-vehicle socket from the on-board charger, and determine whether the on-board charger is overloaded according to the actual in-vehicle current and the in-vehicle discharge current limit; when the on-board charger is overloaded, control the on-board charger to stop supplying power to the in-vehicle socket;

[0187] The total output current is obtained from the on-board charger, and whether the on-board charger is overloaded is determined based on the total output current and the total discharge current limit of the on-board charger; when the on-board charger is overloaded, the on-board charger is controlled to stop supplying power to the in-vehicle socket and the external charging port.

[0188] Furthermore, the discharge control module 42 is used to:

[0189] After the state of the external charging port is switched to the working state and the first state is the charging state, when the state of the internal socket is switched to the working state and the second state is the state of allowing discharge in the vehicle, a power limiting instruction is sent to the on-board charger of the target electric vehicle, and the power limiting instruction is used to trigger the on-board charger to reduce the charging current of the external charging port of the target electric vehicle to a preset limiting current;

[0190] Sending a high-voltage circuit establishment instruction to the battery management system of the target electric vehicle, where the high-voltage circuit establishment instruction is used to trigger the battery management system to close the battery relay to establish a high-voltage circuit;

[0191] Controlling the on-board charger to use the charging current of the external charging port to supply power to the internal socket of the target electric vehicle and to charge the battery of the target electric vehicle;

[0192] After the charging current of the external charging port starts to supply power to the in-vehicle socket of the target electric vehicle, the actual in-vehicle current of the in-vehicle socket and the allowed charging power of the external charging port are obtained, the charging power limit of the external charging port for charging the battery is determined, and the external charging port is controlled to charge the battery according to the charging power limit.

[0193] Furthermore, the discharge control module 42 is used to:

[0194] After the state of the in-vehicle socket is switched to the working state and the second state is the state of allowing in-vehicle discharge, when the state of the external charging port is switched to the working state and the first state is the charging state, an in-vehicle discharge termination instruction is sent to the on-board charger of the target electric vehicle, and the in-vehicle discharge termination instruction is used to trigger the on-board charger to stop supplying power to the in-vehicle socket of the target electric vehicle;

[0195] Sending a charging instruction and a power limit instruction of the external charging port of the target electric vehicle to the on-board charger, wherein the charging instruction of the external charging port is used to trigger the on-board charger to allow the external charging port of the target electric vehicle to start charging, and the power limit instruction is used to trigger the on-board charger to reduce the charging current of the external charging port to a preset limit current;

[0196] Sending a high-voltage circuit establishment instruction to the battery management system of the target electric vehicle, where the high-voltage circuit establishment instruction is used to trigger the battery management system to close the battery relay to establish a high-voltage circuit;

[0197] Controlling the on-board charger to use the charging current of the external charging port to supply power to the internal socket of the target electric vehicle and to charge the battery of the target electric vehicle;

[0198] After the charging current of the external charging port starts to supply power to the in-vehicle socket of the target electric vehicle, the actual in-vehicle current of the in-vehicle socket and the allowed charging power of the external charging port are obtained, the charging power limit of the external charging port for charging the battery is determined, and the external charging port is controlled to charge the battery according to the charging power limit.

[0199] Furthermore, the device also includes a vehicle locking control module, which is used to:

[0200] When receiving a lock signal from the target vehicle, detecting whether the leave-the-vehicle-without-power-down function of the target electric vehicle is in a permitted state;

[0201] When the leave-the-car-without-power-down function of the target electric vehicle is in the allowed state, after the target electric vehicle is locked, the on-board charger of the target electric vehicle is controlled to continuously supply power to the in-vehicle socket of the target electric vehicle;

[0202] When the leave-the-car-without-power-down function of the target electric vehicle is in a not-permitted state, after the target electric vehicle is locked, the on-board charger is controlled to stop supplying power to the socket in the vehicle.

[0203] Based on the same inventive concept, this embodiment provides Figure 5 An electronic device as shown includes:

[0204] Processor 51;

[0205] A memory 52 for storing instructions executable by the processor 51;

[0206] The processor 51 is configured to execute to implement an electric vehicle discharge control method as provided above.

[0207] Based on the same inventive concept, this embodiment provides a non-temporary computer-readable storage medium. When the instructions in the storage medium are executed by the processor 51 of the electronic device, the electronic device can execute and implement an electric vehicle discharge control method as provided above.

[0208] Since the electronic device introduced in this embodiment is an electronic device used to implement the information processing method in the embodiment of the present application, based on the information processing method introduced in the embodiment of the present application, a person skilled in the art can understand the specific implementation of the electronic device of the present embodiment and its various variations, so how the electronic device implements the method in the embodiment of the present application is not described in detail here. As long as a person skilled in the art implements the electronic device used by the information processing method in the embodiment of the present application, it belongs to the scope of protection of this application.

[0209] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0210] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0211] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0212] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0213] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.

[0214] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A discharge control method for an electric vehicle, characterized in that: The method comprises: Monitor the status of the target electric vehicle's external charging port and internal socket; When at least one of the state of the external charging port and the state of the in-vehicle socket switches to the working state, determining a target discharge operation corresponding to the target electric vehicle in the current scenario according to the first state of the external charging port, the second state of the in-vehicle socket, and the order in which the state of the external charging port and the state of the in-vehicle socket change; The target electric vehicle is controlled to discharge according to the target discharge operation.

2. The method according to claim 1, wherein The determining, based on the first state currently in which the external charging port is in, the second state currently in which the in-vehicle socket is in, and the order in which the external charging port state and the in-vehicle socket state change, a target discharging operation corresponding to the target electric vehicle in the current scenario includes: When the state of the external charging port has not been switched to the working state, the state of the internal socket has been switched to the working state and the second state is a state in which discharge in the vehicle is allowed, a high-voltage circuit establishment instruction is sent to the battery management system of the target electric vehicle, wherein the high-voltage circuit establishment instruction is used to trigger the battery management system to close the battery relay to establish a high-voltage circuit; Sending an inverter start instruction to the onboard charger of the target electric vehicle, wherein the inverter start instruction is used to trigger the onboard charger to convert the DC power of the battery of the target electric vehicle into AC power to power the in-vehicle socket of the target electric vehicle; obtaining the actual in-vehicle current of the in-vehicle socket from the on-board charger, and determining whether the on-board charger is overloaded according to the actual in-vehicle current and the in-vehicle discharge current limit; When the on-board charger is overloaded, the on-board charger is controlled to stop supplying power to the in-vehicle socket.

3. The method according to claim 2, wherein The method for determining the in-vehicle discharge current limit value includes: Obtaining the maximum discharge power and current voltage of the battery fed back by the battery management system, and obtaining the actual power consumption of the high-voltage accessories of the target electric vehicle; The in-vehicle discharge current limit is determined according to the maximum discharge power, the current voltage, and the actual consumed power.

4. The method according to claim 1, wherein The determining, based on the first state currently in which the external charging port is in, the second state currently in which the in-vehicle socket is in, and the order in which the external charging port state and the in-vehicle socket state change, a target discharging operation corresponding to the target electric vehicle in the current scenario includes: When the state of the external charging port is switched to the working state and the first state is the discharging state, and the state of the internal socket is switched to the working state and the second state is the state allowing internal discharge, a high-voltage circuit establishment instruction is sent to the battery management system of the target electric vehicle, wherein the high-voltage circuit establishment instruction is used to trigger the battery management system to close the battery relay to establish a high-voltage circuit; Sending an inverter start instruction and an off-vehicle charging port power-drawing instruction to the on-vehicle charger of the target electric vehicle, wherein the inverter start instruction is used to trigger the on-vehicle charger to convert the DC power of the battery of the target electric vehicle into AC power to supply power to the on-vehicle socket of the target electric vehicle, and the off-vehicle charging port power-drawing instruction is used to trigger the on-vehicle charger to convert the DC power of the battery of the target electric vehicle into AC power to supply power to the off-vehicle charging port of the target electric vehicle; obtaining the actual in-vehicle current of the in-vehicle socket from the on-board charger, and determining whether the on-board charger is overloaded based on the actual in-vehicle current and the in-vehicle discharge current limit; and controlling the on-board charger to stop supplying power to the in-vehicle socket when the on-board charger is overloaded; Obtain a total output current from the on-board charger, and determine whether the on-board charger is overloaded based on the total output current and the total discharge current limit of the on-board charger; when the on-board charger is overloaded, control the on-board charger to stop supplying power to the in-vehicle socket and the external charging port.

5. The method according to claim 1, wherein The determining, based on the first state currently in which the external charging port is in, the second state currently in which the in-vehicle socket is in, and the order in which the external charging port state and the in-vehicle socket state change, a target discharging operation corresponding to the target electric vehicle in the current scenario includes: After the external charging port is switched to a working state and the first state is a charging state, when the internal socket is switched to a working state and the second state is a state allowing internal discharge, a power limiting instruction is sent to the on-board charger of the target electric vehicle, wherein the power limiting instruction is used to trigger the on-board charger to reduce the charging current of the external charging port of the target electric vehicle to a preset limit current; Sending a high-voltage circuit establishment instruction to the battery management system of the target electric vehicle, wherein the high-voltage circuit establishment instruction is used to trigger the battery management system to close the battery relay to establish a high-voltage circuit; Controlling the on-board charger to use the charging current of the external charging port to supply power to the in-vehicle socket of the target electric vehicle and to charge the battery of the target electric vehicle; After the charging current of the external charging port starts to power the in-vehicle socket of the target electric vehicle, the actual in-vehicle current of the in-vehicle socket and the allowed charging power of the external charging port are obtained, the charging power limit of the external charging port for charging the battery is determined, and the external charging port is controlled to charge the battery according to the charging power limit.

6. The method according to claim 1, wherein The determining, based on the first state currently in which the external charging port is in, the second state currently in which the in-vehicle socket is in, and the order in which the external charging port state and the in-vehicle socket state change, a target discharging operation corresponding to the target electric vehicle in the current scenario includes: After the in-vehicle socket state is switched to the working state and the second state is a state allowing in-vehicle discharge, when the external charging port state is switched to the working state and the first state is a charging state, sending an in-vehicle discharge termination instruction to the on-board charger of the target electric vehicle, the in-vehicle discharge termination instruction is used to trigger the on-board charger to stop supplying power to the in-vehicle socket of the target electric vehicle; Sending a charging instruction and a power limit instruction for the external charging port of the target electric vehicle to the on-board charger, wherein the external charging port charging instruction is used to trigger the on-board charger to allow the external charging port of the target electric vehicle to start charging, and the power limit instruction is used to trigger the on-board charger to reduce the charging current of the external charging port to a preset limit current; Sending a high-voltage circuit establishment instruction to the battery management system of the target electric vehicle, wherein the high-voltage circuit establishment instruction is used to trigger the battery management system to close the battery relay to establish a high-voltage circuit; Controlling the on-board charger to use the charging current of the external charging port to supply power to the in-vehicle socket of the target electric vehicle and to charge the battery of the target electric vehicle; After the charging current of the external charging port starts to power the in-vehicle socket of the target electric vehicle, the actual in-vehicle current of the in-vehicle socket and the allowed charging power of the external charging port are obtained, the charging power limit of the external charging port for charging the battery is determined, and the external charging port is controlled to charge the battery according to the charging power limit.

7. The method according to claim 1, wherein When a vehicle lock signal of the target vehicle is received, the method further includes: Detecting whether a leave-behind function of the target electric vehicle is in an enabled state; When the leave-the-vehicle-without-power-down function of the target electric vehicle is in an enabled state, after the target electric vehicle is locked, controlling the onboard charger of the target electric vehicle to continuously supply power to the in-vehicle socket of the target electric vehicle; When the leave-the-vehicle-without-power-down function of the target electric vehicle is in a disallowed state, after the target electric vehicle is locked, the on-board charger is controlled to stop supplying power to the in-vehicle socket.

8. An electric vehicle discharge control device, characterized in that: The device comprises: A status monitoring module is used to monitor the status of the target electric vehicle's external charging port and internal socket; a discharge control module, configured to, when at least one of the state of the external charging port and the state of the internal socket switches to an operating state, determine a target discharge operation corresponding to the target electric vehicle in a current scenario based on a first state currently in the external charging port, a second state currently in the internal socket, and a sequence in which the state of the external charging port and the state of the internal socket change; The target electric vehicle is controlled to discharge according to the target discharge operation.

9. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute to implement a discharge control method for an electric vehicle according to any one of claims 1 to 7.

10. A non-transitory computer-readable storage medium, which, when instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to implement the electric vehicle discharge control method according to any one of claims 1 to 7.