Discharge control method and device, equipment and storage medium
By customizing power output parameters and using current and voltage acquisition technology, the problem of vehicles being unable to adapt to the power needs of different external devices has been solved, achieving safe and reliable power output and preventing equipment damage.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- CHERY NEW ENERGY AUTOMOBILE TECH CO LTD
- Filing Date
- 2026-01-05
- Publication Date
- 2026-05-19
AI Technical Summary
The vehicle cannot dynamically adjust voltage and power according to the needs of external devices, which makes it unable to meet the power requirements of different external devices, and there is a risk of equipment damage due to voltage mismatch and frequency difference.
By acquiring custom power output parameters, detecting discharge signals, and outputting power to external devices based on these parameters, including limiting charging power in charging and discharging modes, and using the parallel structure of the discharge and charging circuits to collect current and voltage to determine reasonable power output.
It enables flexible adjustment of the vehicle's output power, is compatible with the power needs of different external devices, avoids equipment damage, and improves the safety and reliability of power supply.
Smart Images

Figure CN122058752A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of vehicle control technology, and in particular to a discharge control method, apparatus, device, and storage medium. Background Technology
[0002] With the rise in outdoor activities, people's demand for electricity outdoors has also increased. For example, when camping outdoors, people use electric grills or kettles.
[0003] In related technologies, vehicles are equipped with power outlets to supply power to plugged-in external devices (such as high-power electrical appliances). The vehicles also include a bidirectional on-board charger that converts the high-voltage direct current from the power battery into high-voltage alternating current to meet the power needs of the external devices.
[0004] In related technologies, vehicles supply power to external devices at a fixed voltage via a bidirectional on-board charger, which cannot meet the needs of external devices with different voltage requirements. Summary of the Invention
[0005] This application provides a discharge control method, apparatus, device, and storage medium. The technical solutions provided by this application are as follows: According to one aspect of the embodiments of this application, a discharge control method is provided, the method being executed by a first vehicle, the method comprising: Obtain custom power output parameters, which are used to indicate the power output of the first vehicle in discharge mode. The discharge mode of the first vehicle refers to the mode in which the first vehicle outputs power to external devices. Detect a discharge signal, the discharge signal being used to indicate that the first vehicle has entered the discharge mode; Upon detecting the discharge signal, power is output to the external device based on the power output parameters.
[0006] In some embodiments, the charging mode of the first vehicle is detected to obtain a charging detection result, wherein the charging mode of the first vehicle refers to the mode in which the first vehicle is being charged; if the charging detection result indicates that the first vehicle is in the charging mode, the charging power of the first vehicle is limited, and the step of outputting electrical energy to the external device based on the electrical energy output parameters is executed, wherein the charging power of the first vehicle refers to the power used to charge the first vehicle; or, if the charging detection result indicates that the first vehicle is not in the charging mode, the step of outputting electrical energy to the external device based on the electrical energy output parameters is executed.
[0007] In some embodiments, limiting the charging power of the first vehicle includes: acquiring a discharge output power and a charging input power, wherein the discharge output power refers to the power of electrical energy output by the first vehicle to the external device, and the charging input power refers to the total power of electrical energy input to the first vehicle; determining a charging limit power based on the discharge output power and the charging input power, wherein the charging limit power is used to indicate the maximum charging power of the first vehicle; and limiting the charging power of the first vehicle based on the charging limit power.
[0008] In some embodiments, the first vehicle includes a discharge circuit and a charging circuit. The discharge circuit is used to output electrical energy to the external device, and the charging circuit is used to input electrical energy to the first vehicle. The discharge circuit and the charging circuit are connected in parallel. Obtaining the discharge output power and the charging input power includes: acquiring the discharge current on the discharge circuit, where the discharge current refers to the current output to the external device; determining the discharge output power based on the discharge current; acquiring the parallel current on the discharge circuit and the charging circuit, where the parallel current refers to the total current input to the first vehicle; and determining the charging input power based on the parallel current.
[0009] In some embodiments, the first vehicle includes at least one discharge interface for outputting electrical energy to the external device; the detection of the discharge signal includes: detecting the insertion state of the at least one discharge interface to obtain an insertion detection result; and generating the discharge signal if the insertion detection result indicates that the at least one discharge interface includes a discharge interface in an inserted state.
[0010] In some embodiments, the first vehicle includes a human-machine interface unit for receiving input custom power output parameters.
[0011] According to one aspect of the embodiments of this application, a discharge control device is provided, the device comprising: The acquisition module is used to acquire custom power output parameters, which are used to indicate the power output of the first vehicle in the discharge mode. The discharge mode of the first vehicle refers to the mode in which the first vehicle outputs power to external devices. A detection module is used to detect a discharge signal, which is used to indicate that the first vehicle has entered the discharge mode; A discharge module is used to output electrical energy to the external device based on the electrical energy output parameters when the discharge signal is detected.
[0012] According to one aspect of the embodiments of this application, a computer device is provided, the computer device including a processor and a memory, the memory storing a computer program, the computer program being loaded and executed by the processor to implement the above-described discharge control method.
[0013] According to one aspect of the embodiments of this application, a computer-readable storage medium is provided, wherein a computer program is stored in the storage medium, the computer program being loaded and executed by a processor to implement the above-described discharge control method.
[0014] According to one aspect of the embodiments of this application, a computer program product is provided, the computer program product including a computer program, the computer program being loaded and executed by a processor to implement the above-described discharge control method.
[0015] The technical solutions provided in this application have at least the following beneficial effects: By allowing users to customize the electrical energy output parameters of the first vehicle when it is in a discharging state, the electrical energy output of the first vehicle when an external device is discharging is controlled, thus enabling flexible adjustment of the electrical energy output of the first vehicle to be compatible with different external devices and meet the power needs of different external devices. Attached Figure Description
[0016] Figure 1 This is a schematic diagram of a charging and discharging system provided in one embodiment of this application; Figure 2 This is a flowchart of a discharge control method provided in one embodiment of this application; Figure 3 This is a flowchart of setting electrical output parameters provided in one embodiment of this application; Figure 4 This is a flowchart of discharge based on custom power output parameters provided in one embodiment of this application; Figure 5 This is a schematic diagram of a charging and discharging system provided in another embodiment of this application; Figure 6 This is a flowchart illustrating the external power supply in a charging mode according to one embodiment of this application; Figure 7 This is a block diagram of a discharge control device provided in one embodiment of this application; Figure 8 This is a structural block diagram of a computer device provided in one embodiment of this application. Detailed Implementation
[0017] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.
[0018] Please refer to Figure 1 The diagram illustrates a charging and discharging system according to an embodiment of this application. This charging and discharging system is used to provide electrical energy to a first vehicle. The system may include: an AC charging and distribution unit 10, a power battery unit 20, a human-machine interface unit 30, and at least one discharging interface 40.
[0019] The AC charging and distribution unit 10 is a device for accessing, managing, and distributing AC power, while simultaneously providing AC power to the first vehicle or external equipment. In some embodiments, the AC charging and distribution unit 10 includes a bidirectional on-board charger 11 (Bi-OBC). The bidirectional on-board charger 11 is used to convert externally input AC power into high-voltage DC power, and can also convert high-voltage DC AC power into AC power. The high-voltage DC side of the AC charging and distribution unit 10 is connected to the power battery unit 20 via a high-voltage circuit, and the AC side of the AC charging and distribution unit 10 is connected to at least one discharge interface 40 via a high-voltage circuit.
[0020] The charging and discharging system also includes a charging interface 50. The AC side of the AC charging and distribution unit 10 is connected to the charging interface 50 via a high-voltage circuit. The charging interface is a socket device used to charge the first vehicle.
[0021] The power battery unit 20 is a device for storing high-voltage direct current (HVDC) electrical energy. The power battery unit 20 is connected to the bidirectional on-board charger 11 in the AC charging and distribution unit 10 via a high-voltage circuit. The power battery unit 20 can receive and store the HVDC electrical energy input from the bidirectional on-board charger 11, and can also convert the HVDC electrical energy into AC electrical energy via the bidirectional on-board charger 11 before outputting it externally. The power battery unit 20 interacts with other units in the first vehicle via low-voltage signals and a CAN (Controller Area Network) communication circuit, and interacts with other units in the first vehicle via a high-voltage circuit.
[0022] The human-machine interface unit 30 is a system that provides interaction functions between the driver or passenger and the first vehicle. Optionally, the human-machine interface unit 30 is used to receive power output parameters set by the driver or passenger. Optionally, the human-machine interface unit 30 is also used to receive instructions from the driver or passenger to turn the external discharge function on or off. Optionally, the human-machine interface unit 30 can be implemented as at least one of the following: a central control touch screen, physical buttons, a button panel, a knob, a voice recognition system, etc., and can also be implemented as other devices, which are not limited in this application embodiment.
[0023] The discharge interface 40 is an interface device used to provide power to external devices. The driver or passenger can connect the plug of the external device to the discharge interface 40, and the high-voltage DC power stored in the power battery unit 20 will be converted into AC power by the bidirectional on-board charger 11 and output to the discharge interface 40 to provide AC power to the external device.
[0024] Optionally, the AC charging and distribution unit 10, the power battery unit 20, the human-machine interaction unit 30, and at least one discharge interface 40 are connected via a communication circuit or a high-voltage circuit.
[0025] Please refer to Figure 2 The diagram illustrates a flowchart of a discharge control method provided in one embodiment of this application. The execution entity for each step of this method can be a computer device; for example, the computer device could be... Figure 1 The AC charging and discharging system shown includes an AC charging and distribution unit 10. The method may include at least one of the following steps (210-230): Step 210: Obtain custom power output parameters. Power output parameters are used to indicate the power output of the first vehicle in discharge mode. The discharge mode of the first vehicle refers to the mode in which the first vehicle outputs power to external devices.
[0026] Customized power output parameters are defined by the driver or passenger. These parameters describe or characterize the electrical energy output of the first vehicle in discharge mode. The discharge mode of the first vehicle refers to its operating state when supplying power to external systems.
[0027] In some embodiments, the electrical energy output parameters include at least one parameter index, each parameter index being used to describe a characteristic of the electrical energy output by the first vehicle in discharge mode. Optionally, the parameter index may include, but is not limited to, at least one of the following: output voltage, output frequency, maximum dischargeable power, etc., and may also include other parameter indexes, which are not limited in this application embodiment.
[0028] Output voltage refers to the voltage value output by the first vehicle to external devices in discharge mode. Output frequency refers to the frequency at which the first vehicle outputs electrical energy to external devices in discharge mode. Maximum dischargeable power refers to the maximum output power that the first vehicle can provide in discharge mode.
[0029] An external device refers to a device connected to the first vehicle and capable of obtaining electrical energy from the first vehicle. In this application, an external device is a device with an electrical demand. Optionally, an external device may include, but is not limited to, at least one of the following: induction cooker, electric kettle, refrigerator, lamp, audio equipment, computer, projector, electric drill, electric saw, electric air compressor, mobile phone, smartwatch, tablet computer, medical equipment, emergency rescue equipment, engineering operation equipment, etc., and may also include other external devices, which are not limited in this embodiment.
[0030] In this embodiment of the application, the first vehicle has been powered on, that is, the process of the electrical system of the first vehicle entering the working state from the dormant state.
[0031] In some embodiments, the first vehicle includes a human-machine interface unit for receiving input custom electrical output parameters.
[0032] In this application, the human-computer interaction unit can be as follows: Figure 1 The human-machine interaction unit 30 in the charging and discharging system shown.
[0033] In some embodiments, the human-computer interaction unit may include at least one of the following types: touch input type, voice interaction type, button or knob type, mobile terminal interaction type, etc., and may also include other types, which are not limited in this application embodiment.
[0034] Touch-input type human-machine interaction units refer to those that input electrical output parameters via touch. Optionally, touch-input type human-machine interaction units may include, but are not limited to, at least one of the following: central control touch screen, passenger touch screen, touchpad, etc., and may also include other touch-input type human-machine interaction units, which are not limited in this application embodiment.
[0035] In some embodiments, when the human-machine interface unit (HMI) is a touch input type, the driver or passenger directly inputs custom power output parameters on the HMI. Optionally, when the HMI is a touch input type, the HMI displays a parameter input control; the HMI determines the custom power output parameters in response to an operation on the parameter input control. The parameter input control is an interface element displayed in the HMI for receiving power output parameters input by the driver or passenger. Optionally, the parameter input control can be implemented as at least one of the following: an input box, a selection item, a toggle control, a slider, a numerical adjustment control, a checkbox, etc., and may also include other input controls, which are not limited in this embodiment. For example, by displaying an input box in the HMI, the driver or passenger can obtain custom power output parameters by inputting a set output voltage in the input box. For example, by displaying at least one candidate output voltage selection item in the HMI, the driver or passenger can obtain custom power output parameters by operating on one of the candidate output voltage selection items. It should be noted that the above example is only for illustrating the setting of output voltage. Other parameters in the power output parameters can also be achieved in a similar way, and will not be illustrated one by one in this application.
[0036] Voice-interactive human-machine interface units (HMIs) refer to units that input electrical output parameters via voice input. These HMIs include a microphone. For example, a driver inputs voice commands through the microphone of the HMI to set electrical output parameters. It should be noted that the format of the voice commands is designed by those skilled in the art, and this application does not limit this aspect.
[0037] A button or knob-type human-machine interface unit refers to a unit that inputs electrical output parameters by operating a button or knob. Optionally, the human-machine interface unit includes at least one button with candidate output frequencies. The driver or passenger operates one of the candidate output frequency buttons to achieve a customized output frequency. Optionally, the human-machine interface unit includes a frequency adjustment knob. The driver or passenger selects a customized output frequency by rotating the frequency adjustment knob. It should be noted that the above examples are only illustrative of output frequency settings; other parameters in the electrical output parameters can also be implemented in a similar manner, and are not illustrated in detail in this application.
[0038] A human-machine interface unit (HMI) for mobile terminals refers to a unit that allows remote input of electrical output parameters through interaction with a mobile terminal device. Optionally, the mobile terminal device (such as a smartphone, tablet, or smartwatch) has a vehicle control application client installed. This vehicle control application is an application developed specifically for controlling the first vehicle. The vehicle control program includes a function to customize electrical output parameters, meaning that the driver or passengers can input electrical output parameters through the vehicle control application client running on the mobile terminal device.
[0039] In this manner, the driver or passengers can set the power output parameters to match the power needs of external devices via the human-machine interface unit of the first vehicle, enabling the first vehicle to better meet the power requirements of different external devices. Furthermore, outputting appropriate power to different external devices effectively avoids problems such as equipment damage caused by voltage mismatch, frequency differences, or insufficient power, thus improving the safety of the vehicle's external power supply.
[0040] In some embodiments, when the human-machine interaction unit receives a custom power output parameter, the human-machine interaction unit sends the custom power output parameter to the AC charging and distribution unit; the AC charging and distribution unit performs a reasonableness determination on the power output parameter and obtains a reasonableness determination result of the power output parameter, which is used to indicate whether the power output parameter is reasonable.
[0041] Reasonableness determination refers to checking the input electrical energy output parameters to determine whether the parameters are reasonable (e.g., whether they meet constraints such as vehicle safety and battery health). Optionally, reasonableness determination may include, but is not limited to, at least one of the following: range checking, interrelationship checking, etc., and may also include other checks, which are not limited in this embodiment. Range checking refers to determining whether the electrical energy output parameters are within the permissible range of the first vehicle. For example, checking whether the output voltage in the electrical energy output parameters is greater than the maximum permissible voltage. The maximum permissible voltage is the maximum voltage that the first vehicle is allowed to output. It should be noted that the maximum permissible voltage is preset by relevant technical personnel. Interrelationship checking refers to determining whether there are conflicts between the various parameter indicators in the electrical energy output parameters.
[0042] In some embodiments, if the reasonableness determination result of the power output parameters is that the power output parameters are reasonable, the AC charging and distribution unit stores the power output parameters in the first storage unit. The first storage unit is used to store the successfully customized power output parameters. The first storage unit belongs to the storage unit of the first vehicle.
[0043] In some embodiments, if the reasonableness determination result of the power output parameters is that the power output parameters are unreasonable, the AC charging and distribution unit sends a setting failure message to the human-machine interface unit. The setting failure message indicates that the customized power output parameters are unreasonable; the setting failure message is displayed through the human-machine interface unit. Optionally, the setting failure message includes the reason why the customized power output parameters are unreasonable.
[0044] Optionally, if the rationality determination result of the power output parameters is that the power output parameters are unreasonable, the AC charging and distribution unit uses the initial power output parameters to output power to external devices. The initial power output parameters can be the default power output parameters or the previously defined power output parameters.
[0045] Optionally, the steps described above, such as determining the rationality of the customized power output parameters, can be performed by the bidirectional on-board charger in the AC charging and distribution unit.
[0046] For example, please refer to Figure 3 The diagram illustrates a flowchart of setting power output parameters according to an embodiment of this application. The process of setting power output parameters for a bidirectional on-board charger is as follows.
[0047] S1: Receive custom power output parameters.
[0048] The driver or passenger sets the power output parameters of the bidirectional on-board charger through the human-machine interface unit, and the human-machine interface unit transmits the set power output parameters to the bidirectional on-board charger.
[0049] S2. Determine if the power output parameters are reasonable. If yes, proceed to S3; otherwise, proceed to S4.
[0050] The bidirectional on-board charger determines the rationality of the power output parameters.
[0051] S3. Store the power output parameters into the first storage unit.
[0052] In this situation, if the bidirectional on-board charger determines that the power output parameters have been successfully set, it will store the set power output parameters and output power according to the set power output parameters during the subsequent discharge process.
[0053] S4. Send setting failure information to the human-machine interaction unit, and output power to external devices using the initial power output parameters.
[0054] In this situation, if the bidirectional on-board charger determines that the power output parameter setting has failed, it will report the setting failure information to the human-machine interaction unit and reset the power output parameter to the initial state.
[0055] Step 220: Detect the discharge signal, which is used to indicate that the first vehicle has entered the discharge mode.
[0056] If a discharge signal is detected, it indicates that the first vehicle is about to output electrical energy to an external device. In some embodiments, the discharge signal can be triggered by at least one of the following: a discharge interface, a charging interface, a human-machine interaction unit, a mobile terminal device, etc., and can also be triggered by other means, which are not limited in this application embodiment.
[0057] The discharge signal is triggered via the discharge interface when the driver or passenger inserts an external device into the discharge interface. The discharge interface is a power output port located on the first vehicle, used to output the vehicle's electrical energy to external devices. Optionally, the discharge interface includes an in-vehicle discharge interface and an external discharge interface.
[0058] The in-vehicle discharge interface is located inside the passenger compartment of the first vehicle and serves as an interface for providing power to external devices within the vehicle. Optionally, the in-vehicle discharge interface can be at least one of the following: an AC socket, a DC socket, a wireless charging device, etc., and can also be other discharge interfaces; this application embodiment does not limit this. The in-vehicle discharge interface is installed in an area within the passenger compartment of the first vehicle that is convenient for the driver or passengers to use.
[0059] An external discharge interface is an interface located only on the exterior of the first vehicle, used to provide power to external devices outside the vehicle.
[0060] In some embodiments, the external discharge interface and the charging interface are implemented as a single charging / discharging interface. The charging / discharging interface is an interface device that conforms to the corresponding standard definition. After a user connects a charging gun conforming to the corresponding standard definition to the charging / discharging interface, the first vehicle can be charged; or, after a user connects a discharging gun conforming to the corresponding standard definition to the charging / discharging interface, an external device can be discharged through the first vehicle to meet the functional requirements of using external devices outside the first vehicle.
[0061] In some embodiments, the first vehicle includes at least one discharge interface for outputting electrical energy to an external device; detecting the insertion state of at least one discharge interface to obtain an insertion detection result; and generating a discharge signal when the insertion detection result indicates that at least one discharge interface includes a discharge interface in an inserted state.
[0062] The discharge interface being in the inserted state indicates that an external device is inserted into the discharge interface.
[0063] In some embodiments, the detection method for the insertion state of the discharge interface may include, but is not limited to, at least one of the following: setting a micro switch inside the discharge interface, electrical load detection, etc., and may also include other detection methods, which are not limited in this application embodiment.
[0064] The discharge interface incorporates a microswitch, meaning that when an external device is inserted into the discharge interface, the microswitch closes, triggering a discharge signal. A microswitch is an electromechanical switching device that can switch the circuit on and off with extremely small mechanical displacement.
[0065] In some embodiments, when an external device is plugged into the discharge port, a first state value of the micro switch is transmitted to the bidirectional on-board charger, indicating that the micro switch is in a closed state. Optionally, when the external device is disconnected from the discharge port, a second state value of the micro switch is transmitted to the bidirectional on-board charger, indicating that the micro switch is in an open state; the bidirectional on-board charger stops discharging externally when at least one discharge port is in an open state.
[0066] Electrical load detection refers to determining whether an external device is connected by detecting changes in current, voltage, or impedance at the interface.
[0067] In some embodiments, before step 220, the bidirectional on-board charger performs a self-test and obtains a self-test result, which indicates whether the bidirectional on-board charger is malfunctioning. If the self-test result indicates that the bidirectional on-board charger is malfunctioning, charger malfunction information is sent to the human-machine interaction unit, which indicates that the bidirectional on-board charger is malfunctioning. If the self-test result indicates that the bidirectional on-board charger is normal, step 220 is executed. Optionally, the charger malfunction information is displayed through the human-machine interaction unit.
[0068] The above method, by detecting the insertion status of the discharge interface and generating a discharge signal when at least one discharge interface is in the insertion state, can effectively avoid accidental activation of the discharge mode, improve the safety, reliability and energy efficiency of the vehicle discharge process, and enhance the convenience of user operation.
[0069] Step 230: Upon detecting a discharge signal, power is output to an external device based on the power output parameters.
[0070] After detecting a discharge signal and determining the presence of an inserted external device, power is output to the external device according to the user-defined power output parameters, i.e., discharge.
[0071] In some embodiments, the human-machine interface unit is further configured to receive a stop-discharge command, which instructs the first vehicle to exit the discharge mode. Upon receiving the stop-discharge command, the first vehicle stops discharging to the external device. Optionally, the human-machine interface unit is further configured to receive a start-discharge command, which instructs the first vehicle to enter the discharge mode. The user can execute the start-discharge command through the human-machine interface unit to cause the first vehicle to discharge to the external device again. Alternatively, the user can re-plug the discharge interface to cause the first vehicle to discharge to the external device again.
[0072] For example, please refer to Figure 4 The diagram illustrates a flowchart of a discharge process based on custom power output parameters provided in one embodiment of this application. The discharge process of the bidirectional on-board charger based on custom power output parameters is shown below.
[0073] S1. Perform a self-test and obtain the self-test results.
[0074] S2. Determine if the self-test result indicates an abnormality. If yes, proceed to S3; otherwise, proceed to S9.
[0075] S3. Confirm the stored power output parameters and enter the ready state.
[0076] S4. Determine if the discharge interface is connected. If yes, proceed to S5; otherwise, proceed to S3.
[0077] S5. Discharge according to the set power output parameters.
[0078] S6. The user executes a stop discharge operation.
[0079] The user triggers a stop-discharge command through the human-computer interaction unit.
[0080] S7. Reconnection ready state.
[0081] S8. The user performs a discharge operation.
[0082] The user can trigger the discharge command through the human-computer interaction unit, or unplug and plug the discharge interface again, so that the first vehicle can discharge to the external device again.
[0083] S9. Send charger malfunction information to the human-computer interaction unit.
[0084] In summary, the technical solution provided by the embodiments of this application allows users to customize the electrical energy output parameters of the first vehicle when it is in a discharging state, so as to control the electrical energy output of the first vehicle when the external device is discharging. This enables flexible adjustment of the electrical energy output of the first vehicle to be compatible with different external devices and meet the power needs of different external devices.
[0085] The following describes the process of the first vehicle supplying power to the outside while in charging mode.
[0086] This application provides a method for external discharge in charging mode. The charging mode of the first vehicle refers to the mode in which the first vehicle obtains electrical energy from an external power source and stores the electrical energy in the power battery cell.
[0087] In some embodiments, the charging mode of the first vehicle is detected to obtain a charging detection result, wherein the charging mode of the first vehicle refers to the mode in which the first vehicle is charged; if the charging detection result indicates that the first vehicle is in a charging mode, the charging power of the first vehicle is limited, and a step of outputting electrical energy to an external device based on electrical energy output parameters is performed, wherein the charging power of the first vehicle refers to the power used to charge the first vehicle; or, if the charging detection result indicates that the first vehicle is not in a charging mode, a step of outputting electrical energy to an external device based on electrical energy output parameters is performed.
[0088] Detecting the charging mode of the first vehicle refers to detecting whether the first vehicle is in charging mode. When the first vehicle is in charging mode, it is necessary to limit its charging power during charging and discharging. The charging power of the first vehicle refers to the electrical energy input from an external power source to the first vehicle.
[0089] If the first vehicle is charging and discharging simultaneously, it is prone to power overload. Therefore, it is necessary to limit the power output at the charging or discharging end to prevent overload of the first vehicle.
[0090] In other words, if the first vehicle is not in charging mode, then step 230 above is executed.
[0091] The above method limits the charging power of the first vehicle when it is charging and discharging simultaneously, so as to avoid the problem of power overload of the first vehicle due to simultaneous charging and discharging, thereby improving the safety of the first vehicle in charging mode and discharging mode.
[0092] In some embodiments, the discharge output power and charging input power are obtained, wherein the discharge output power refers to the power of electrical energy output by the first vehicle to an external device, and the charging input power refers to the total power of electrical energy input to the first vehicle; based on the discharge output power and charging input power, a charging limit power is determined, wherein the charging limit power is used to indicate the maximum charging power of the first vehicle; and based on the charging limit power, the charging power of the first vehicle is limited.
[0093] Discharge output power refers to the electrical power output by the first vehicle to external devices through the discharge interface in discharge mode. Discharge output power reflects the actual load level of the first vehicle's current power supply. Charging input power refers to the total power of electrical energy input to the first vehicle. The source of electrical energy input to the first vehicle can be an external charging station or the power grid. Charging input power reflects the current level of electrical energy received by the first vehicle from external sources.
[0094] During the simultaneous charging and discharging of the first vehicle, the charging power of the first vehicle is always kept below the charging limit power.
[0095] The greater the discharge output power of the first vehicle, the lower the charging limit power of the first vehicle; the smaller the discharge output power of the first vehicle, the higher the charging limit power of the first vehicle can be.
[0096] Optionally, the value obtained by subtracting the discharge output power from the charging input power is determined as the first difference; based on the first difference, the charging limit power of the first vehicle is determined.
[0097] Optionally, the first difference can be determined as the charging limit power of the first vehicle.
[0098] Optionally, based on the first difference and a safety factor, the charging limit power of the first vehicle is determined, and the safety system is used to correct the charging limit power. The safety factor is used to correct the first difference to prevent the first vehicle from approaching or exceeding the system's maximum load capacity when charging and discharging simultaneously. The safety factor is a positive number less than or equal to 1. When the safety factor is equal to 1, it means that no power margin is reserved; when the safety factor is less than 1, it means that a certain power margin is reserved based on the first difference. For example, the charging limit power of the first vehicle is obtained by multiplying the first difference by the safety factor. By reserving a power margin based on the theoretical power or ultimate capacity, the system can still operate safely and stably under complex operating conditions or in the presence of uncertainties.
[0099] The above method, by obtaining the discharge output power and the charging input power, and determining the charging limit power based on the two, enables the first vehicle to dynamically adjust the charging power when charging and discharging simultaneously. This effectively prevents the charging power and discharging power from superimposing and causing the vehicle's electrical system to exceed the design power limit when the discharge output power is large, thereby improving the system's operational safety.
[0100] In some embodiments, the first vehicle includes a discharge circuit and a charging circuit. The discharge circuit is used to output electrical energy to an external device, and the charging circuit is used to input electrical energy to the first vehicle. The discharge circuit and the charging circuit are connected in parallel. The discharge current on the discharge circuit is collected, where the discharge current refers to the current output to the external device. Based on the discharge current, the discharge output power is determined. The parallel current on the discharge circuit and the charging circuit is collected, where the parallel current refers to the total current input to the first vehicle. Based on the parallel current, the charging input power is determined.
[0101] The discharge circuit is used to output electrical energy from the first vehicle to external devices. The charging circuit is used to input external electrical energy to the first vehicle. Parallel connection of the discharge and charging circuits means that the discharge and charging circuits are connected in parallel to the power supply side of the first vehicle. With this parallel connection, the first vehicle can perform both charging and discharging operations simultaneously.
[0102] The discharge current refers to the current output by the first vehicle to external equipment, reflecting the power demand of the external equipment on the first vehicle. Optionally, a second current sampling point is provided on the discharge circuit to collect the discharge current. The second current sampling point is a current detection location set on the discharge circuit. The discharge current is collected at the second current sampling point using any of the following methods: a current sensor, a current sampling resistor, and a Hall sensor, etc.
[0103] Parallel current refers to the current input to the first vehicle, used to reflect the overall current flowing into the vehicle from an external power source. Optionally, a first current sampling point is set at the parallel node of the discharge circuit and the charging circuit, and the first current sampling point is used to collect the parallel current. The discharge current is collected at the first current sampling point using any of the following methods: current sensor, current sampling resistor, and Hall sensor, etc.
[0104] In some embodiments, the output voltage of the discharge circuit and the parallel voltage of the discharge circuit and the charging circuit are acquired; the discharge output power is determined based on the discharge current and the output voltage; and the charging input power is determined based on the parallel current and the input current.
[0105] It should be noted that the output voltage of the discharge circuit and the parallel voltage of the discharge circuit and the charging circuit can be collected using a similar method, which will not be elaborated here in the embodiments of this application.
[0106] For example, please refer to Figure 5 The diagram illustrates a charging and discharging system according to another embodiment of this application. The AC charging and distribution unit 10 further includes a first current sampling point 12 and a second current sampling point 15. The first current sampling point 12 is used to collect parallel current, and the second current sampling point 15 is used to collect discharge current.
[0107] In some embodiments, a first switching device is provided on the discharge circuit, and a second switching device is provided on the charging circuit.
[0108] The closing conditions of the first switching device include at least one of the following: triggering a discharge start command or detecting a discharge signal. That is, when it is determined that discharge needs to be sent to an external device through the discharge interface, the first switching device closes. The closing conditions of the second switching device include at least one of the following: triggering a discharge stop command or disconnecting the discharge interface. That is, when it is determined that discharge to an external device through the discharge interface will stop, the first switching device opens.
[0109] The closing condition of the second switching device includes: the charging interface being connected to an external power source. That is, when it is determined that charging of the first vehicle needs to be done through the charging interface, the second switching device closes. The opening condition of the second switching device includes: the charging interface being disconnected from the external power source. That is, when it is determined that charging of the first vehicle through the charging interface will stop, the second switching device opens.
[0110] For example, such as Figure 5 As shown, the AC charging and distribution unit 10 also includes a first switching device 14 and a second switching device 16.
[0111] For example, please refer to Figure 6 The document illustrates a flowchart of power supply in charging mode according to an embodiment of this application. The process of the first vehicle supplying power in charging mode is as follows.
[0112] S1. Determine if the first vehicle is charging. If yes, proceed to S2; otherwise, proceed to S7.
[0113] S2. Determine if the discharge interface is connected. If yes, proceed to S5; otherwise, proceed to S3.
[0114] S3. Determine if the user triggered the discharge command through the human-computer interaction unit. If yes, execute S5; otherwise, execute S4.
[0115] If the discharge interface is not connected to an external device, the system will further determine whether the user has activated the discharge command to start the in-vehicle discharge switch on the human-machine interface (i.e. whether the discharge command has been triggered).
[0116] S4. Keep charging.
[0117] S5, Limit charging power.
[0118] The bidirectional on-board charger actively limits the charging power to ensure that the sum of the discharge output power and the charging power does not exceed the charging input power.
[0119] S6. Close the first switching device and start discharging according to the set power output parameters.
[0120] After confirming the charging power limit, the bidirectional on-board charger closes the first switching device and monitors the first and second current sampling points in real time to ensure that the power of each circuit is within the allowable range. At this time, the power of the discharge interface is provided by the power input from the charging interface, and the bidirectional on-board charger continues to charge.
[0121] S7. Discharge according to the set power output parameters.
[0122] If the first vehicle is not in charging mode, then press Figure 4 The described process discharges external devices.
[0123] The above method, by collecting discharge current and parallel current in parallel discharge circuit and charging circuit respectively, achieves accurate acquisition of discharge output power and charging input power, so as to accurately determine the charging display power used to limit the charging power, thereby improving the safety and control accuracy of the first vehicle during charging and discharging.
[0124] The following are embodiments of the apparatus described in this application, which can be used to execute the embodiments of the method described in this application. For details not disclosed in the apparatus embodiments of this application, please refer to the embodiments of the method described in this application.
[0125] Please refer to Figure 7 This diagram illustrates a block diagram of a discharge control device according to an embodiment of this application. The device has the functions described above, which can be implemented in hardware or by hardware executing corresponding software. The device can be the AC charging and distribution unit 10 described above, or it can be disposed within the AC charging and distribution unit 10. Figure 7 As shown, the device 700 may include an acquisition module 710, a detection module 720, and a discharge module 730.
[0126] The acquisition module 710 is used to acquire custom power output parameters, which are used to indicate the power output of the first vehicle in the discharge mode. The discharge mode of the first vehicle refers to the mode in which the first vehicle outputs power to external devices.
[0127] The detection module 720 is used to detect a discharge signal, which is used to indicate that the first vehicle has entered the discharge mode.
[0128] The discharge module 730 is used to output electrical energy to the external device based on the electrical energy output parameters when the discharge signal is detected.
[0129] In some embodiments, the device 700 further includes a charging detection module (in Figure 7(Not shown in the image) is used to detect the charging mode of the first vehicle and obtain a charging detection result. The charging mode of the first vehicle refers to the mode in which the first vehicle is being charged. If the charging detection result indicates that the first vehicle is in the charging mode, the charging power of the first vehicle is limited, and the step of outputting electrical energy to the external device based on the electrical energy output parameters is executed. The charging power of the first vehicle refers to the power used to charge the first vehicle. Alternatively, if the charging detection result indicates that the first vehicle is not in the charging mode, the step of outputting electrical energy to the external device based on the electrical energy output parameters is executed.
[0130] In some embodiments, the charging detection module is further configured to acquire discharge output power and charging input power, wherein the discharge output power refers to the power of electrical energy output by the first vehicle to the external device, and the charging input power refers to the total power of electrical energy input to the first vehicle; determine a charging limit power based on the discharge output power and the charging input power, wherein the charging limit power is used to indicate the maximum charging power of the first vehicle; and limit the charging power of the first vehicle based on the charging limit power.
[0131] In some embodiments, the first vehicle includes a discharge circuit and a charging circuit. The discharge circuit is used to output electrical energy to the external device, and the charging circuit is used to input electrical energy to the first vehicle. The discharge circuit and the charging circuit are connected in parallel. The charging detection module is further configured to collect the discharge current on the discharge circuit, which is the current output to the external device; determine the discharge output power based on the discharge current; collect the parallel current on the discharge circuit and the charging circuit, which is the total current input to the first vehicle; and determine the charging input power based on the parallel current.
[0132] In some embodiments, the first vehicle includes at least one discharge interface for outputting electrical energy to the external device; the detection module 720 is further configured to detect the insertion state of the at least one discharge interface and obtain an insertion detection result; if the insertion detection result indicates that the at least one discharge interface includes a discharge interface in an inserted state, the discharge signal is generated.
[0133] In some embodiments, the first vehicle includes a human-machine interface unit for receiving input custom power output parameters.
[0134] In summary, the technical solution provided by the embodiments of this application allows users to customize the electrical energy output parameters of the first vehicle when it is in a discharging state, so as to control the electrical energy output of the first vehicle when the external device is discharging. This enables flexible adjustment of the electrical energy output of the first vehicle to be compatible with different external devices and meet the power needs of different external devices.
[0135] It should be noted that the apparatus provided in the above embodiments is only illustrated by the division of the above functional modules when implementing its functions. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the apparatus and method embodiments provided in the above embodiments belong to the same concept, and the specific implementation process can be found in the method embodiments, which will not be repeated here.
[0136] Please refer to Figure 8 This diagram illustrates a structural block diagram of a computer device 800 provided in one embodiment of this application. The computer device 800 may be... Figure 1 The AC charging and discharging unit 10 in the charging and discharging system shown is used to implement the discharge control method provided in the above embodiments. Specifically: Typically, computer device 800 includes a processor 810 and a memory 820.
[0137] Processor 810 may include one or more processing cores, such as a quad-core processor or an octa-core processor. Processor 810 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). Processor 810 may also include a main processor and a coprocessor. The main processor, also known as the Central Processing Unit (CPU), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, processor 810 may integrate a Graphics Processing Unit (GPU), which is responsible for rendering and drawing the content to be displayed on the screen. In some embodiments, processor 810 may also include an AI (Artificial Intelligence) processor, which is used to handle computational operations related to machine learning.
[0138] The memory 820 may include one or more computer-readable storage media, which may be non-transitory. The memory 820 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In some embodiments, the non-transitory computer-readable storage media in the memory 820 are used to store a computer program configured to be executed by one or more processors to implement the discharge control method described above.
[0139] Those skilled in the art will understand that Figure 8 The structure shown does not constitute a limitation on the computer device 800, and may include more or fewer components than shown, or combine certain components, or use different component arrangements.
[0140] In an exemplary embodiment, a computer-readable storage medium is also provided, wherein a computer program is stored in the storage medium, and the computer program, when executed by a processor, implements the above-described discharge control method. Optionally, the computer-readable storage medium may include: read-only memory (ROM), random access memory (RAM), solid-state drives (SSDs), or optical discs, etc. The random access memory may include resistive random access memory (ReRAM) and dynamic random access memory (DRAM).
[0141] In an exemplary embodiment, a computer program product is also provided, the computer program product including a computer program stored in a computer-readable storage medium. A processor of a computer device reads the computer program from the computer-readable storage medium, and the processor executes the computer program, causing the computer device to perform the above-described discharge control method.
[0142] It should be understood that "multiple" as used herein refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. Furthermore, the step numbers described herein are merely illustrative of one possible execution order. In some other embodiments, the steps may not be executed in numerical order, such as two steps with different numbers being executed simultaneously, or two steps with different numbers being executed in the reverse order of the illustration. This application does not limit this.
[0143] The above description is merely an optional embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
Claims
1. A discharge control method, characterized in that, The method is performed by a first vehicle, and the method includes: Obtain custom power output parameters, which are used to indicate the power output of the first vehicle in discharge mode. The discharge mode of the first vehicle refers to the mode in which the first vehicle outputs power to external devices. Detect a discharge signal, the discharge signal being used to indicate that the first vehicle has entered the discharge mode; Upon detecting the discharge signal, power is output to the external device based on the power output parameters.
2. The method according to claim 1, characterized in that, The method further includes: The charging mode of the first vehicle is detected, and the charging detection result is obtained. The charging mode of the first vehicle refers to the mode in which the first vehicle is charged. When the charging detection result indicates that the first vehicle is in the charging mode, the charging power of the first vehicle is limited, and the step of outputting electrical energy to the external device based on the electrical energy output parameters is performed. The charging power of the first vehicle refers to the power used to charge the first vehicle. or, If the charging detection result indicates that the first vehicle is not in the charging mode, the step of outputting electrical energy to the external device based on the electrical energy output parameters is performed.
3. The method according to claim 2, characterized in that, The limitation on the charging power of the first vehicle includes: The discharge output power and charging input power are obtained. The discharge output power refers to the power of electrical energy output by the first vehicle to the external device, and the charging input power refers to the total power of electrical energy input to the first vehicle. Based on the discharge output power and the charging input power, a charging limit power is determined, which is used to indicate the maximum charging power of the first vehicle; Based on the aforementioned charging power limit, the charging power of the first vehicle is limited.
4. The method according to claim 3, characterized in that, The first vehicle includes a discharge circuit and a charging circuit. The discharge circuit is used to output electrical energy to the external device, and the charging circuit is used to input electrical energy to the first vehicle. The discharge circuit and the charging circuit are connected in parallel. The acquisition of discharge output power and charging input power includes: The discharge current in the discharge circuit is collected, and the discharge current refers to the current output from the external device; The discharge output power is determined based on the discharge current; The parallel current in the discharge circuit and the charging circuit is collected, and the parallel current refers to the total current input to the first vehicle; The charging input power is determined based on the parallel current.
5. The method according to any one of claims 1 to 4, characterized in that, The first vehicle includes at least one discharge port for outputting electrical energy to the external device; The detected discharge signal includes: The insertion status of at least one discharge interface is detected to obtain an insertion detection result; The discharge signal is generated when the insertion detection result indicates that at least one discharge interface includes a discharge interface in an inserted state.
6. The method according to any one of claims 1 to 5, characterized in that, The first vehicle includes a human-machine interface unit, which is used to receive the input of the custom power output parameters.
7. A discharge control device, characterized in that, The device includes: The acquisition module is used to acquire custom power output parameters, which are used to indicate the power output of the first vehicle in the discharge mode. The discharge mode of the first vehicle refers to the mode in which the first vehicle outputs power to external devices. A detection module is used to detect a discharge signal, which is used to indicate that the first vehicle has entered the discharge mode; A discharge module is used to output electrical energy to the external device based on the electrical energy output parameters when the discharge signal is detected.
8. A computer device, characterized in that, The computer device includes a processor and a memory, the memory storing a computer program that is loaded and executed by the processor to implement the method as described in any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that, The storage medium stores a computer program that is executed by a processor to implement the method as described in any one of claims 1 to 6.
10. A computer program product, characterized in that, The computer program product includes a computer program that is loaded and executed by a processor to implement the method as described in any one of claims 1 to 6.