Vehicle charging and discharging control method and device, vehicle and storage medium

By acquiring the power topology and adjusting the series and parallel states of the battery modules, the problem of low charging efficiency of electric vehicles was solved, enabling matching with charging piles of different voltage levels and flexible charging and discharging operations, thereby improving the adaptability and energy utilization efficiency of electric vehicles.

CN121157728APending Publication Date: 2025-12-19CHINA FAW CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511510636.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-10-21
Publication Date
2025-12-19

AI Technical Summary

Technical Problem

In existing charging technologies, electric vehicles have low charging efficiency, cannot be matched with charging piles of different voltage levels, and their idle resources are not fully utilized, lacking intelligent interaction and energy scheduling technologies.

Method used

By acquiring the power topology of the vehicle battery, the battery mode is determined, and the series and parallel connection status of the battery modules is adjusted according to the mode. The power topology connection status is dynamically adjusted to match the voltage level of the charging pile, thereby enabling flexible charging and discharging operations.

Benefits of technology

It improves charging efficiency and compatibility, shortens charging time, enhances the adaptability and energy exchange function of electric vehicles in different scenarios, and improves user experience and battery utilization efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121157728A_ABST
    Figure CN121157728A_ABST
Patent Text Reader

Abstract

The invention discloses a vehicle charging and discharging control method and device, a vehicle and a storage medium, the vehicle charging and discharging control method comprises the steps that the power source topology of a vehicle battery is obtained, and the power source topology comprises a plurality of battery modules, a plurality of alternating current charging and discharging interfaces and a direct current charging interface; determining a battery mode of the vehicle battery; determining the connection state of the power supply topology according to the battery mode; and controlling the vehicle to charge and discharge according to the connection state. The technical problem that in the prior art, the vehicle charging and discharging efficiency is low is solved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of automation control, in particular to a vehicle charging and discharging control method and device, a vehicle and a storage medium. BACKGROUND

[0002] Under the background of the increasing popularity of new energy vehicles, although the construction of charging infrastructure has gradually developed, it still faces challenges in some key areas. On the one hand, with the improvement of the energy density and capacity of electric vehicle batteries, the demand for fast charging of vehicles is more urgent. However, the existing charging solutions often cannot achieve ideal matching with the battery pack voltage due to the voltage level limitation of the charging pile, resulting in low charging efficiency, especially under low voltage level charging piles, the charging speed is significantly slowed down, affecting the user experience and the popularization and promotion of vehicles.

[0003] On the other hand, the idle resource potential of electric vehicles in non-driving state has not been fully utilized. Although electric vehicles are considered as a kind of large-scale energy storage equipment, which can play an active role in the regulation of peak and valley electricity price difference, but at present there is a lack of effective technology and system in the market, which can realize the intelligent interaction between electric vehicle battery and power grid, charging in low price period and discharging as mobile power in high price or emergency situation.

[0004] In the prior art, traditional alternating current charging often relies on a single charging pile, and the charging speed is limited by the power output of the charging pile; while in the direct current charging scene, the problem of voltage mismatch of the battery pack is particularly prominent, and the vehicle is difficult to be compatible with charging piles of different voltage levels, causing inconvenience and efficiency loss. In addition, even if the vehicle has the function of selling electricity, the existing control strategy is difficult to realize efficient and accurate energy scheduling, so that the two-way energy flow of electric vehicles cannot fully play its economic benefit and social value.

[0005] Therefore, an innovative vehicle charging and discharging control method is needed to make up for the shortcomings of the prior art. SUMMARY

[0006] The embodiments of the present application provide a vehicle charging and discharging control method, device, vehicle and storage medium, which at least solve the technical problem that there is no test method for dynamically simulating and testing the vehicle decelerator in the prior art.

[0007] According to an embodiment of the present application, a vehicle charging and discharging control method is provided, comprising: obtaining a power supply topology of a vehicle battery, wherein the power supply topology comprises a plurality of battery modules, a plurality of alternating current charging and discharging interfaces and a direct current charging interface; determining a battery mode of the vehicle battery; determining a connection state of the power supply topology according to the battery mode; and controlling the vehicle to perform charging and discharging operation according to the connection state.

[0008] Optionally, the control method of vehicle charging and discharging further comprises: in response to the battery mode being the discharging mode, determining that the connection state is a first connection state, wherein the first connection state is a state in which the first battery module, the second battery module, the third battery module, and the fourth battery module are connected in parallel with the first AC charging and discharging interface.

[0009] Optionally, the control method of vehicle charging and discharging further comprises: in response to the battery mode being the DC charging mode, determining a rated voltage of the DC charging device; in response to the rated voltage being a first voltage, determining that the connection state is a second connection state, wherein the second connection state is a state in which a second target module is connected in parallel with the DC charging interface, the second target module being a module obtained by connecting the first series module and the second series module in parallel, the first series module being a module obtained by connecting the first battery module and the second battery module in series, and the second series module being a module obtained by connecting the third battery module and the fourth battery module in series; and in response to the rated voltage being a second voltage, determining that the connection state is a third connection state, wherein the third connection state is a state in which a third series module is connected in parallel with the DC charging interface, the third series module being a module obtained by connecting the first battery module, the second battery module, the third battery module, and the fourth battery module in series, and the second voltage being greater than the first voltage.

[0010] Optionally, the control method of vehicle charging and discharging further comprises: in response to the battery mode being the AC charging mode, determining a device type of the AC charging device; and determining the connection state according to the device type.

[0011] Optionally, the control method of vehicle charging and discharging further comprises: in response to the device type being a single AC charging device, determining that the connection state is a fourth connection state, wherein the fourth connection state is a state in which the first battery module, the second battery module, the third battery module, and the fourth battery module are connected in parallel with the second AC charging and discharging interface.

[0012] Optionally, the control method of vehicle charging and discharging further comprises: in response to the device type being a double AC charging device, determining that the connection state is a fifth connection state, wherein the fifth connection state is a state in which the first series module is connected in parallel with the second AC charging and discharging interface, and the second series module is connected in parallel with the first AC charging and discharging interface.

[0013] Optionally, the control method of vehicle charging and discharging further comprises: in response to the device type being a four AC charging device, determining that the connection state is a sixth connection state, wherein the sixth connection state is a state in which the first battery module is connected in parallel with the second AC charging and discharging interface, the second battery module is connected in parallel with the third AC charging and discharging interface, the third battery module is connected in parallel with the first AC charging and discharging interface, and the fourth battery module is connected in parallel with the fourth AC charging and discharging interface, and a voltage range of the first AC charging and discharging interface and the second AC charging and discharging interface is greater than that of the third AC charging and discharging interface and the fourth AC charging and discharging interface.

[0014] According to one of the embodiments of the present application, a control device for charging and discharging of a vehicle is provided, comprising: an acquisition module configured to acquire a power supply topology of a vehicle battery, wherein the power supply topology comprises a plurality of battery modules, a plurality of AC charging and discharging interfaces, and a DC charging interface; a first determination module configured to determine a battery mode of the vehicle battery; a second determination module configured to determine a connection state of the power supply topology according to the battery mode; and a charging and discharging module configured to control the vehicle to perform a charging and discharging operation according to the connection state.

[0015] Optionally, the second determination module comprises: a first determination unit configured to, in response to the battery mode being a discharging mode, determine that the connection state is a first connection state, wherein the first connection state is a state in which the first battery module, the second battery module, the third battery module, and the fourth battery module are connected in parallel with the first AC charging and discharging interface.

[0016] Optionally, the second determination module further comprises: a second determination unit configured to, in response to the battery mode being a DC charging mode, determine a rated voltage of a DC charging device; a third determination unit configured to, in response to the rated voltage being a first voltage, determine that the connection state is a second connection state, wherein the second connection state is a state in which a second target module is connected in parallel with the DC charging interface, the second target module being a module obtained by connecting the first series module and the second series module in parallel, the first series module being a module obtained by connecting the first battery module and the second battery module in series, and the second series module being a module obtained by connecting the third battery module and the fourth battery module in series; and a fourth determination unit configured to, in response to the rated voltage being a second voltage, determine that the connection state is a third connection state, wherein the third connection state is a state in which a third series module is connected in parallel with the DC charging interface, the third series module being a module obtained by connecting the first battery module, the second battery module, the third battery module, and the fourth battery module in series, and the second voltage being greater than the first voltage.

[0017] Optionally, the second determination module further comprises: a fifth determination unit configured to, in response to the battery mode being an AC charging mode, determine a device type of an AC charging device; and a sixth determination unit configured to determine the connection state according to the device type.

[0018] Optionally, the sixth determination unit comprises: a first determination sub-unit configured to, in response to the device type being a single-AC charging device, determine that the connection state is a fourth connection state, wherein the fourth connection state is a state in which the first battery module, the second battery module, the third battery module, and the fourth battery module are connected in parallel with the second AC charging and discharging interface.

[0019] Optionally, the sixth determination unit further comprises: a second determination sub-unit configured to, in response to the device type being a double-AC charging device, determine that the connection state is a fifth connection state, wherein the fifth connection state is a state in which the first series module is connected in parallel with the second AC charging and discharging interface, and the second series module is connected in parallel with the first AC charging and discharging interface.

[0020] Optionally, the sixth determining unit further comprises a third determining sub-unit, configured to determine, in response to the device type being a four AC charging device, that the connection state is a sixth connection state, wherein the sixth connection state is a state in which the first battery module is connected in parallel with the second AC charging and discharging interface, the second battery module is connected in parallel with the third AC charging and discharging interface, the third battery module is connected in parallel with the first AC charging and discharging interface, and the fourth battery module is connected in parallel with the fourth AC charging and discharging interface, and the voltage range of the first AC charging and discharging interface and the second AC charging and discharging interface is greater than that of the third AC charging and discharging interface and the fourth AC charging and discharging interface.

[0021] According to one of the embodiments of the present application, a vehicle is also provided, comprising a memory and a processor, the memory storing a computer program, and the processor being configured to execute the computer program to perform the control method of vehicle charging and discharging in any of the above.

[0022] According to one of the embodiments of the present application, an electronic device is also provided, comprising a memory and a processor, the memory storing a computer program, and the processor being configured to execute the computer program to perform the control method of vehicle charging and discharging in any of the above.

[0023] According to one of the embodiments of the present application, a non-volatile storage medium is also provided, the non-volatile storage medium storing a computer program, and the computer program being configured to perform the control method of vehicle charging and discharging in any of the above when executed.

[0024] According to one of the embodiments of the present application, a computer program product is also provided, the computer program product storing a computer program, and the computer program being configured to implement the steps of the control method of vehicle charging and discharging in any of the above when executed by a processor.

[0025] In the embodiments of the present application, the power supply topology of the vehicle battery is acquired, wherein the power supply topology comprises a plurality of battery modules, a plurality of AC charging and discharging interfaces, and a DC charging interface, the battery mode of the vehicle battery is determined, the connection state of the power supply topology is determined according to the battery mode, the technical effect of controlling the vehicle to perform charging and discharging operation according to the connection state is achieved, and the technical problem of low charging and discharging efficiency of the vehicle in the prior art is solved. BRIEF DESCRIPTION OF DRAWINGS

[0026] The accompanying drawings, which are included to provide a further understanding of the present application and are incorporated in and constitute a part of this application, illustrate embodiments of the present application and serve to explain the present application. In the drawings:

[0027] Figure 1 is a flowchart of the control method of vehicle charging and discharging according to one of the embodiments of the present application;

[0028] Figure 2 is a power supply topology of a vehicle battery according to an embodiment of the present application;

[0029] Figure 3 is a structure block diagram of a control device for vehicle charging and discharging according to an embodiment of the present application. DETAILED DESCRIPTION

[0030] In order to make the personnel in the technical field better understand the present application scheme, the technical scheme in the embodiment of the present application will be described clearly and completely in the following with reference to the drawings in the embodiment of the present application. Obviously, the described embodiment is only a part of the embodiment of the present application, not all. Based on the embodiment in the present application, all other embodiments obtained by the person skilled in the art without creative labor should belong to the scope of protection of the present application.

[0031] It should be noted that the terms "first", "second", and the like in the specification and claims of the present application and the above-described drawings are used to distinguish similar objects, and do not necessarily have to describe a specific order or sequence. It should be understood that the terms used in this way can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device including a series of steps or units does not have to be limited to those steps or units clearly listed, but can include other steps or units not clearly listed or inherent to these processes, methods, products or devices.

[0032] According to an embodiment of the present application, an embodiment of a control method for vehicle charging and discharging is provided. It should be noted that the steps shown in the flowchart of the drawings can be executed in a computer system including at least one set of computer executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described herein can be executed in an order different from that described herein.

[0033] The method embodiment can also be executed in an electronic device including a memory and a processor, a similar control device or a vehicle terminal. Taking the vehicle terminal as an example, the vehicle terminal can include one or more processors and a memory for storing data. Optionally, the above-mentioned vehicle terminal can also include a communication device for communication function and a display device. Those skilled in the art can understand that the above structure description is only illustrative, which does not limit the structure of the above-mentioned vehicle terminal. For example, the vehicle terminal can also include more or less components than the above structure description, or have a different configuration from the above structure description.

[0034] The processor can include one or more processing units. For example, the processor can include a central processing unit (CPU), a graphics processing unit (GPU), a digital signal processing (DSP) chip, a microprocessor, a programmable logic device (FPGA), a neural-network processing unit (NPU), a tensor processing unit (TPU), an artificial intelligent (AI) type processor, and the like. Different processing units can be independent components or integrated in one or more processors. In some examples, the electronic device can also include one or more processors.

[0035] The memory can be used to store a computer program, for example, a computer program corresponding to the vehicle charging and discharging control method in the embodiments of the present application. The processor can realize the vehicle charging and discharging control method described above by running the computer program stored in the memory. The memory can include a high-speed random access memory, and can also include a non-volatile memory, such as one or more magnetic storage devices, flash memories, or other non-volatile solid-state memories. In some examples, the memory can further include a memory remotely arranged with respect to the processor, and these remote memories can be connected to the electronic device through a network. Examples of the network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.

[0036] The communication device is used to receive or send data via a network. Specific examples of the network can include a wireless network provided by a communication provider of a mobile terminal. In one example, the communication device includes a network interface controller (NIC) which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the communication device can be a radio frequency (RF) module which is used to communicate with the Internet in a wireless manner. In some embodiments of the present application, the communication device is used to connect with mobile devices such as mobile phones and tablets, and can send instructions to the vehicle terminal through the mobile devices.

[0037] The display device can be a touch screen type liquid crystal display (LCD) and a touch display (also referred to as a "touch screen" or "touch display screen"). The liquid crystal display can enable a user to interact with a user interface of the in-vehicle terminal. In some embodiments, the in-vehicle terminal described above has a graphical user interface (GUI), and a user can interact with the GUI through finger contact and / or gestures on a touch-sensitive surface, where the human-computer interaction function can include a vehicle gear shifting function, and executable instructions for executing the human-computer interaction function are configured / stored in one or more processor-executable computer program products or readable storage media.

[0038] Figure 1 is a flowchart of a control method for vehicle charging and discharging according to an embodiment of the present application, as shown in Figure 1 , the method comprises the following steps:

[0039] In step S102, the power supply topology of the vehicle battery is obtained, wherein the power supply topology includes a plurality of battery modules, a plurality of AC charging and discharging interfaces, and a DC charging interface.

[0040] Optionally, the execution subject of the present embodiment is the whole vehicle control system, and it should be noted that other electronic devices and processors can also be the execution subject, which is not limited here.

[0041] In the technical solution provided in the above step S102 of the present application, by reading the configuration information of the battery management system of the vehicle, the series and parallel states of each battery module are determined, i.e. the state of the positive and negative connection points of each module, as shown in Figure 2 , that is, the closing and opening of the relays (Q10-Q34) are checked to determine the network structure formed between the battery modules. Further, the connection state of each AC charging and discharging interface is detected, and this step is realized by monitoring the physical or electrical connection of the interface to determine which interfaces are being used for charging or which interfaces can be used for discharging, that is, the acquisition of the connection state also depends on the closing state of the related relays (Q35, Q36) to ensure the effective connection of the interface and the battery module.

[0042] Specifically, through the communication protocol with the charging pile, the voltage level information of the currently connected DC charging interface is obtained to ensure that the battery pack can withstand and store the power from the charging pile, regardless of whether its voltage is 500V, 750V or 1000V.

[0043] Optionally, the battery management system (BMS) is responsible for monitoring and managing the state of the battery module, including voltage, current, temperature and other parameters, to optimize the performance and life of the battery and ensure that the battery operates within a safe range.

[0044] Optionally, the electrical connection state refers to determining whether the electrical path between the battery modules is formed by detecting the closing of the relay, so as to determine the actual state of the power supply topology.

[0045] It is worth noting that by obtaining the power supply topology of the vehicle battery, the state and configuration of the battery modules, AC charging and discharging interface and DC charging interface can be accurately identified in time, thereby providing basic information for subsequent charging and power selling operations. This step ensures that the vehicle can automatically adjust its internal power distribution and conversion mechanism according to different charging or discharging requirements, achieving efficient energy management and utilization.

[0046] Further, by flexibly adjusting the series-parallel connection mode of the battery modules, the vehicle can be charged at DC charging piles of multiple voltage levels, avoiding charging failure or low efficiency due to voltage mismatch. At the same time, when multiple AC charging piles are available, the vehicle can select the best charging strategy, such as parallel charging to speed up the charging speed, or distributing the battery modules to different voltage levels as needed to optimize the charging process.

[0047] Step S104, determine the battery mode of the vehicle battery.

[0048] In the technical solution provided by the above step S104 of the present application, the charge and discharge control instruction issued by the vehicle control unit can be used to determine the battery mode, and the vehicle system analyzes the instruction of the vehicle control unit to identify the current demand state of the vehicle, whether it is a charging mode, a discharging mode, or only needs to maintain a high-voltage power-on and power-off state.

[0049] Further, according to the instruction of the vehicle control unit, the current charging and discharging state is further detected. By monitoring the communication information with the charging pile, it is determined whether the vehicle is in the charging process and the voltage level of the charging pile, so as to determine whether the battery configuration needs to be adjusted to the series-parallel mode suitable for DC charging.

[0050] Specifically, in the non-DC charging state, the system needs to check the connection state of the AC charging interface to determine whether a single AC, double AC or four AC charging pile is connected to the vehicle.

[0051] Optionally, the series-parallel selection between the modules can be determined according to the actual working conditions. Series connection can increase the voltage, while parallel connection can provide greater current or higher capacity. The selection of this mode can be based on the voltage level of the charging pile and the charging and discharging demand to ensure the best charging efficiency and safety.

[0052] As an optional implementation, when the vehicle control unit receives a charging request and detects that the AC charging interface is connected, the system adjusts the number of parallel connections of the battery modules according to the number of connected charging piles. If a single AC charging pile is detected, all battery modules will be connected in parallel to fully utilize the power of the AC charging pile and charge quickly even in a low-voltage environment.

[0053] As another optional implementation, when a discharge request is received (power selling mode), the system closes all inter-module negative relays and specific positive relays to ensure that the battery modules can form series-parallel connections. At the same time, by controlling the Q36 relay, it ensures that all AC charging interfaces are connected to the battery high-voltage loop, enabling the vehicle to efficiently discharge externally to serve the power selling market or emergency rescue scenarios.

[0054] It is worth noting that determining the battery mode of the vehicle battery enables the vehicle to intelligently respond to different charging and discharging environments, whether it is DC charging or AC charging, and automatically adjusts the series-parallel structure of its internal battery modules to adapt to the voltage and current characteristics of the external power source, improving the flexibility and efficiency of charging and discharging operations, and further enhancing the compatibility of the vehicle under different charging facilities and the potential in the power selling market.

[0055] Furthermore, by dynamically adjusting the battery mode, not only does it enhance the practicality of the vehicle as an energy carrier, but it also reduces charging waiting time and improves user experience.

[0056] Step S106: Determine the connection state of the power supply topology according to the battery mode.

[0057] In the technical solution provided by the above step S106 of the present application, the system first determines the requirements of the battery mode based on the control instructions of the vehicle control unit and the current charging and discharging state, i.e., whether DC charging, AC charging, discharging, or only maintaining the power-on or power-off state of the high-voltage system is required.

[0058] Furthermore, according to the determined battery mode, the system will automatically adjust the series-parallel relationship between the battery modules. For example, in the DC charging mode, if the charging pile provides a specific voltage level (such as 500V), the system will form a two-series-two-parallel structure by closing and opening specific relays to match the voltage of the charging pile, ensuring charging efficiency and safety.

[0059] Furthermore, in the AC charging and discharging mode, the system will adjust the connection state between the battery modules and the AC interface according to the number and position of the connected AC charging piles. For example, in the dual-AC charging pile charging mode, the Q11, Q33, Q20, Q2, and Q35 relays are closed to ensure that the two groups of battery modules form effective charging paths with the two AC charging piles, achieving efficient parallel charging.

[0060] It is worth noting that determining the connection state of the power supply topology according to the battery mode can realize flexible configuration of the battery pack in different charging and discharging modes, thereby ensuring that the vehicle can automatically adjust the voltage output capability of the battery pack according to the voltage level of the charging pile during charging, improving charging compatibility and efficiency; and in the discharging mode, the circuit topology can be quickly adjusted to realize the discharging capability of multiple interfaces, enhancing the energy exchange function of the vehicle. Further, by adjusting the connection relationship between the battery module and the charging pile in real time, the vehicle can better adapt to the charging and discharging demand in different scenarios without manual intervention, improving the intelligent and automatic level of the charging and discharging process.

[0061] In step S108, the vehicle is controlled to charge and discharge according to the connection state.

[0062] In the technical solution provided by the above step S108 of the application, based on the determined battery mode and the connection state of the power supply topology, the system establishes or breaks the electrical connection between the battery module and the charging interface by controlling the closing or opening of specific relays (such as Q1 to Q36). It is worth noting that the system needs to ensure that the connection state matches the charging and discharging demand.

[0063] Specifically, after the adjustment of the relays is completed, the system can start the corresponding power management strategy according to the connection state of the current power supply topology. In the charging mode, this may include adjusting the charging power, monitoring the battery temperature and voltage to ensure an efficient and safe charging process. In the discharging mode, it involves optimization and monitoring of power output to ensure the stability and efficiency of the discharging process. During the charging and discharging operation, the system will also continuously monitor the battery state and external power conditions, and if necessary, dynamically adjust the relay state or power management strategy to respond to possible environmental changes or battery demand adjustments.

[0064] Optionally, the above-mentioned power management strategy can involve power regulation, temperature control, voltage monitoring and other strategies during charging and discharging to optimize the charging and discharging operation, prolong the battery life, and maintain the safety and efficiency of the charging and discharging process.

[0065] It is worth noting that controlling the vehicle to charge and discharge according to the connection state of the power supply topology can ensure that the vehicle automatically optimizes the charging efficiency and safety of the battery pack according to the voltage level of the charging pile in the charging mode; and in the discharging mode, the system flexibly adjusts the discharging power according to the external load demand to realize intelligent power selling. This mechanism avoids the errors and inconvenience of manual operation, improves the automation level and response speed of the charging and discharging operation, and at the same time ensures the safety of the operation and the health status of the battery.

[0066] The steps S102 to S108 can know that, in the application, the power supply topology of the vehicle battery is obtained, the power supply topology includes a plurality of battery modules, a plurality of alternating current charging and discharging interfaces and a direct current charging interface, the battery mode of the vehicle battery is determined, the connection state of the power supply topology is determined according to the battery mode, so as to achieve the technical effect of controlling the vehicle to charge and discharge according to the connection state, and the technical problem of low charging and discharging efficiency of the vehicle in the prior art can be solved.

[0067] The above method of the embodiment will be further described in detail.

[0068] In step S1061, in response to the battery mode being the discharging mode, the connection state is determined as the first connection state, wherein the first connection state is a state in which the first battery module, the second battery module, the third battery module and the fourth battery module are connected in parallel with the first alternating current charging and discharging interface.

[0069] In this embodiment, the system first receives a discharging instruction from the vehicle control unit, and in response to the start of the discharging mode, the system closes all the negative electrode relays (such as Q10, Q20, Q30) between the battery modules and the main negative relay Q2, to ensure that the negative electrodes of the battery modules form a parallel circuit. At the same time, the positive electrode relays (such as Q12, Q23, Q34) are closed to connect the positive electrodes of the battery modules and form a unified power output end.

[0070] It is worth noting that the relay Q36 also needs to be closed to ensure the connection between the first alternating current charging and discharging interface (the alternating current charging port 3 in the figure) Figure 2 and the high-voltage loop of the battery, so that the battery energy can be output to the external power grid or load through the interface.

[0071] As an optional implementation, in the electricity selling scenario, when the vehicle is parked at the electricity selling charging station, the user triggers the discharging mode by swiping the card, and the system closes the above-mentioned relays in response to this signal to form the parallel state of the battery modules, and the vehicle starts to sell electricity to the external power grid through the first alternating current charging and discharging interface, realizing the commercial value conversion of the battery energy.

[0072] As another optional implementation, when the emergency rescue or power supplement demand in remote areas is needed, the discharging mode of the vehicle is activated, the system connects all the battery modules in parallel with the first alternating current charging and discharging interface to quickly provide the required power support, thereby being able to quickly respond to the power demand in the emergency situation and improve the multifunctionality and rescue efficiency of the vehicle.

[0073] It is worth noting that in response to the discharging mode, the battery module is placed in a parallel state with the first alternating current charging and discharging interface, which can significantly improve the efficiency and flexibility of vehicle power sales or emergency power supply, thereby enabling the vehicle to act as a unified power output and quickly respond to external power demand through the alternating current charging and discharging interface without being limited by the capacity or output capability of individual battery modules.

[0074] In step S1062, in response to the battery mode being a direct current charging mode, the rated voltage of the direct current charging device is determined.

[0075] In step S1063, in response to the rated voltage being a first voltage, the connection state is determined to be a second connection state, wherein the second connection state is a state in which a second target module is connected in parallel with the direct current charging interface, the second target module is a module obtained by connecting a first series module and a second series module in parallel, the first series module is a module obtained by connecting the first battery module and the second battery module in series, and the second series module is a module obtained by connecting the third battery module and the fourth battery module in series.

[0076] In step S1064, in response to the rated voltage being a second voltage, the connection state is determined to be a third connection state, wherein the third connection state is a state in which a third series module is connected in parallel with the direct current charging interface, the third series module is a module obtained by connecting the first battery module, the second battery module, the third battery module, and the fourth battery module in series, and the second voltage is greater than the first voltage.

[0077] In this embodiment, the system detects a direct current charging instruction of the vehicle control unit, indicating that the vehicle enters a direct current charging preparation state, and obtains the rated output voltage of the charging pile through a communication protocol with the charging pile to determine the working voltage level of the charging pile.

[0078] Specifically, if the rated voltage of the charging pile is a first voltage (such as 500V), the system will adjust the connection state to a second connection state, that is, form a second target module composed of a first series module (the first battery module and the second battery module connected in series) and a second series module (the third battery module and the fourth battery module connected in series) connected in parallel, and connect the second target module in parallel with the direct current charging interface.

[0079] Specifically, if the rated voltage of the charging pile is a second voltage (such as 750V or 1000V, i.e., the second voltage is greater than the first voltage), the system will adjust the connection state to a third connection state, that is, the third series module (the first battery module, the second battery module, the third battery module, and the fourth battery module connected in series) is directly connected in parallel with the direct current charging interface.

[0080] Optionally, the direct current charging mode refers to a mode in which the vehicle battery is charged by a direct current power supply, and the charging pile directly provides direct current and communicates with the battery management system of the vehicle to determine the charging rate and the battery state.

[0081] As an optional implementation, for a 500V DC charging pile, the system automatically closes the main positive relay Q1 and the main negative relay Q2, and simultaneously closes the charging positive relay Q3 and the charging negative relay Q4, to realize the connection of the charging pile and the battery pack. In addition, the inter-module relays Q11 and Q33 are closed to ensure that the first and second battery modules are connected in series, and the third and fourth battery modules are connected in series, and then Q20 and Q23 are closed to make the two series modules parallel, forming a unified charging path to match the voltage requirement of the 500V charging pile.

[0082] As another optional implementation, for a 750V or 1000V DC charging pile, the system connects all battery modules in series and then directly connects them in parallel with the DC charging interface to adapt to higher voltage levels. This includes closing the main positive and negative relays, as well as the inter-module positive and negative relays such as Q11, Q22, and Q33, to form a series structure of all battery modules to meet the charging conditions of high-voltage charging piles.

[0083] It is worth noting that adjusting the connection state of the battery modules according to the rated voltage of the DC charging device can effectively adapt the vehicle to different voltage level charging piles. The formation of the second connection state enables the vehicle to use lower DC charging pile voltage and maintain charging efficiency by adjusting the series-parallel composition of the battery modules, avoiding the problem of low charging efficiency or inability to charge due to voltage mismatch. The implementation of the third connection state improves the charging speed of the vehicle under high-voltage charging piles, fully utilizes the high-voltage output capability of the charging pile, and shortens the charging time.

[0084] Step S1065, in response to the battery mode being an AC charging mode, determining the device type of the AC charging device;

[0085] Step S1066, determining the connection state according to the device type.

[0086] In this embodiment, the system first confirms that the vehicle enters the AC charging mode through the signal of the vehicle control unit. Further, the system identifies the specific type of the AC charging device by monitoring the connection state and communication protocol between the vehicle and the charging device, such as a single AC charging pile, a double AC charging pile, or a four AC charging pile.

[0087] Specifically, according to the identified type of the AC charging device, the system automatically adjusts the connection state between the battery modules and the AC charging device.

[0088] Optionally, the AC charging mode refers to the mode in which the vehicle battery is charged by an AC power source. Typically, the charging pile provides AC power, and the vehicle's built-in on-board charger converts the AC power into DC power, which is stored in the battery.

[0089] It is worth mentioning that dynamically adjusting the connection state of the battery module according to the type of alternating current charging equipment can significantly improve the adaptability and charging efficiency of the electric vehicle in the alternating current charging scene. In the single alternating current charging pile mode, although the charging speed is limited, by connecting all battery modules in parallel, the uniformity and consistency of the charging process are ensured, and potential charging imbalance problems are avoided. In the multi-alternating current charging pile mode, especially in the four-alternating current charging pile mode, the system connects the battery modules and the charging piles one by one to maximize the charging speed, because each module can receive the maximum charging power without being affected by other modules. Therefore, this technical step overcomes the limitations of traditional alternating current charging by intelligently adjusting the circuit topology, realizing faster and smarter charging experience.

[0090] In step S10661, in response to the device type being a single alternating current charging device, the connection state is determined to be a fourth connection state, wherein the fourth connection state is a state in which the first battery module, the second battery module, the third battery module and the fourth battery module are connected in parallel with the second alternating current charging and discharging interface.

[0091] In this embodiment, the system determines that the vehicle enters the alternating current charging mode according to the signal of the vehicle control unit or the user operation. Further, the system detects that the charging equipment connected with the vehicle is a single alternating current charging equipment, that is, only one alternating current charging and discharging interface is activated for charging.

[0092] Specifically, in response to the confirmation of this device type, the system adjusts the connection between the battery modules to the fourth connection state. In order to realize this connection state, the system closes the relays Q10, Q20, Q30 and Q2 to ensure that the negative poles of all battery modules are connected to form a unified negative connection point. Then, the relays Q12, Q23 and Q34 are closed to connect the positive poles of all battery modules, realizing the parallel structure of the entire battery pack. Finally, the system connects the adjusted parallel battery structure with the second alternating current charging and discharging interface (i.e. the alternating current charging port 1 in Figure 2 by closing the relay Q36 or other necessary relays to ensure that the external alternating current power can effectively access all battery modules to start the charging process.

[0093] Optionally, the single alternating current charging equipment refers to a charging equipment with a single alternating current charging and discharging interface, which is commonly used in public parking lots and home environments to provide stable alternating current for vehicle charging.

[0094] As an optional implementation, in the parking lot charging scenario, the user connects the vehicle to a common single alternating current charging column. The system immediately identifies the device type as single alternating current, automatically adjusts the battery modules to the fourth connection state, and realizes the parallel connection of all battery modules to the second alternating current charging and discharging interface. Although the charging speed may be limited by the single pile power, this connection state ensures that all battery modules can receive charging at the same time, improves the uniformity of the charging process, and avoids the problem of uneven charging caused by series connection.

[0095] It is worth noting that by identifying single alternating current charging devices and adjusting the battery modules to the fourth connection state in parallel with the second alternating current charging and discharging interface, synchronous charging of all battery modules can be achieved, ensuring the uniformity of the charging process even under low-power charging devices. This technical step ensures that all battery modules can be fully charged even under low-power conditions, avoiding the potential for shortened battery life and safety hazards caused by uneven charging. At the same time, through parallel connection, the vehicle's charging system can better adapt to different charging devices, improving the flexibility and compatibility of the charging process.

[0096] Step S10662, in response to the device type being a dual alternating current charging device, determining the connection state to be the fifth connection state, wherein the fifth connection state is a state in which the first series module is connected in parallel with the second alternating current charging and discharging interface and the second series module is connected in parallel with the first alternating current charging and discharging interface.

[0097] In this embodiment, the system first detects the signals of the vehicle control unit to confirm that the vehicle enters alternating current charging mode. The system further confirms through communication protocol or hardware detection that the vehicle has connected a dual alternating current charging device, meaning that there are two independent alternating current charging and discharging interfaces available.

[0098] Specifically, the system groups the battery modules, with the first battery module and the second battery module connected in series to form a first series module, and the third battery module and the fourth battery module connected in series to form a second series module, which can be achieved by closing specific relays such as Q11, Q22, Q33, ensuring the series connection within the battery modules.

[0099] Specifically, the system connects the first series module in parallel with the second alternating current charging and discharging interface, and simultaneously connects the second series module in parallel with the first alternating current charging and discharging interface. This connection state adjustment is completed by controlling the closure of relays Q35 and other related relays, ensuring that the two series modules form parallel connections with the two alternating current charging interfaces, thereby realizing the dual alternating current charging mode.

[0100] Optionally, the dual alternating current charging device refers to a charging device with two independent alternating current charging and discharging interfaces, which can simultaneously charge multiple battery modules of the vehicle, or allow multiple battery modules to discharge at the same time.

[0101] As an optional implementation, at a public charging station, the vehicle is connected to a dual AC charging post for charging. After the system detects that the device type is a dual AC charging device, it automatically adjusts the battery module connection to the fifth connection state, i.e., the first series module is connected in parallel with the second AC charging and discharging interface, and the second series module is connected in parallel with the first AC charging and discharging interface. In this state, the two AC charging posts can work in parallel, respectively charging the two series modules, significantly improving the charging efficiency and reducing the charging waiting time.

[0102] It is worth noting that when the vehicle is connected to a dual AC charging device, it is adjusted to the fifth connection state according to the present solution, which can achieve parallel connection of two groups of series battery modules with two AC charging and discharging interfaces, significantly improving the charging efficiency of the vehicle in an AC charging scenario, especially under a larger power charging post, effectively reducing the charging time and improving the user experience. In the discharging mode, through parallel connection, the external power grid or load can be output with higher total power, increasing the flexibility and efficiency of power sales.

[0103] Step S10663, in response to the device type being a four AC charging device, determining that the connection state is the sixth connection state, wherein the sixth connection state is a state in which the first battery module is connected in parallel with the second AC charging and discharging interface, and the second battery module is connected in parallel with the third AC charging and discharging interface, and the third battery module is connected in parallel with the first AC charging and discharging interface, and the fourth battery module is connected in parallel with the fourth AC charging and discharging interface, and the voltage range of the first AC charging and discharging interface and the second AC charging and discharging interface is greater than that of the third AC charging and discharging interface and the fourth AC charging and discharging interface.

[0104] In this embodiment, the system confirms that the current connection is a four AC charging device with four independent AC charging and discharging interfaces by monitoring the connection state and communication protocol of the vehicle and the charging post. After determining the device type, the system adjusts the connection state of the battery module to the sixth connection state, i.e., the first battery module is directly connected in parallel with the second AC charging and discharging interface (AC charging port 1 in Figure 2 ), the second battery module is connected in parallel with the third AC charging and discharging interface (AC charging port 2 in Figure 2 ), the third battery module is connected in parallel with the first AC charging and discharging interface (AC charging port 3 in Figure 2 ), and the fourth battery module is connected in parallel with the fourth AC charging and discharging interface (AC charging port 4 in Figure 2 ). This adjustment of the connection state involves closing specific relays, such as Q10, Q20, Q30, Q2, and Q36, to ensure that each battery module is connected to an independent AC charging and discharging interface, forming a parallel circuit.

[0105] It is worth noting that in the sixth connection state, the first and second AC charging and discharging interfaces have a wider voltage range, while the voltage range of the third and fourth AC charging and discharging interfaces is relatively narrow. The system utilizes this feature to connect the battery modules to the interfaces with matching voltage ranges to ensure the efficiency and safety of the charging process.

[0106] Specifically, the four AC charging device refers to a charging device with four independent AC charging and discharging interfaces, which can simultaneously charge multiple battery modules of a vehicle in different voltage ranges, or allow multiple battery modules to discharge simultaneously.

[0107] As an optional implementation, in a high-speed service area or a large charging station, the vehicle is connected to a large-power charging pile with four independent AC charging and discharging interfaces. After the system detects that the device type is a four AC charging device, it automatically adjusts the connection of the battery modules to the sixth connection state, realizing parallel charging of each battery module with an AC charging and discharging interface. Even in the face of high power demand, each battery module can be charged at maximum efficiency, significantly shortening the charging time and improving the charging flexibility.

[0108] It is worth noting that when the vehicle is connected to the four AC charging device, it is adjusted to the sixth connection state, which can realize parallel connection of each battery module with different AC charging and discharging interfaces, greatly improving the charging efficiency of the vehicle. Especially under a high-power charging pile, each battery module can be charged at the maximum allowed power, greatly shortening the charging time. Further, this technical step also optimizes the allocation of charging resources. Even in a power-limited environment, by connecting in parallel to different interfaces, the charging demand of each battery module can be met, improving the flexibility of the overall charging system.

[0109] From the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be realized by means of software and the necessary general hardware platform, of course, it can also be realized by hardware, but in many cases the former is a better implementation. Based on such understanding, the technical solutions of the present application can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes a plurality of instructions for causing a terminal device (which can be a mobile phone, computer, server, or grid device, etc.) to execute the method of each embodiment of the present application.

[0110] A control device for vehicle charging and discharging is also provided in the embodiments, which is used to implement the above embodiments and preferred embodiments, and will not be described again. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware is also possible and contemplated.

[0111] Figure 3 is a structural block diagram of a control device 300 for vehicle charging and discharging according to an embodiment of the present application, as shown in Figure 3 The device includes an acquisition module 301, a first determination module 302, a second determination module 303, and a charging and discharging module 304.

[0112] The acquisition module 301 is configured to acquire a power supply topology of a vehicle battery, wherein the power supply topology includes a plurality of battery modules, a plurality of alternating current charging and discharging interfaces, and a direct current charging interface.

[0113] The first determination module 302 is configured to determine a battery mode of the vehicle battery.

[0114] The second determination module 303 is configured to determine a connection state of the power supply topology according to the battery mode.

[0115] The charging and discharging module 304 is configured to control the vehicle to perform charging and discharging operations according to the connection state.

[0116] Optionally, the second determination module 303 includes a first determination unit configured to determine that the connection state is a first connection state in response to the battery mode being a discharging mode, wherein the first connection state is a state in which the first battery module, the second battery module, the third battery module, and the fourth battery module are connected in parallel with the first alternating current charging and discharging interface.

[0117] Optionally, the second determination module 303 further includes a second determination unit configured to determine a rated voltage of the direct current charging device in response to the battery mode being a direct current charging mode, a third determination unit configured to determine that the connection state is a second connection state in response to the rated voltage being a first voltage, wherein the second connection state is a state in which a second target module is connected in parallel with the direct current charging interface, the second target module being a module obtained by connecting the first series module and the second series module in parallel, the first series module being a module obtained by connecting the first battery module and the second battery module in series, and the second series module being a module obtained by connecting the third battery module and the fourth battery module in series, and a fourth determination unit configured to determine that the connection state is a third connection state in response to the rated voltage being a second voltage, wherein the third connection state is a state in which a third series module is connected in parallel with the direct current charging interface, the third series module being a module obtained by connecting the first battery module, the second battery module, the third battery module, and the fourth battery module in series, and the second voltage being greater than the first voltage.

[0118] Optionally, the second determining module 303 further comprises: a fifth determining unit, configured to determine a device type of the alternating current charging device in response to the battery mode being the alternating current charging mode; and a sixth determining unit, configured to determine the connection state according to the device type.

[0119] Optionally, the sixth determining unit comprises: a first determining sub-unit, configured to determine the connection state as a fourth connection state in response to the device type being a single alternating current charging device, wherein the fourth connection state is a state in which the first battery module, the second battery module, the third battery module and the fourth battery module are connected in parallel with the second alternating current charging and discharging interface.

[0120] Optionally, the sixth determining unit further comprises: a second determining sub-unit, configured to determine the connection state as a fifth connection state in response to the device type being a double alternating current charging device, wherein the fifth connection state is a state in which the first series module is connected in parallel with the second alternating current charging and discharging interface and the second series module is connected in parallel with the first alternating current charging and discharging interface.

[0121] Optionally, the sixth determining unit further comprises: a third determining sub-unit, configured to determine the connection state as a sixth connection state in response to the device type being a four alternating current charging device, wherein the sixth connection state is a state in which the first battery module is connected in parallel with the second alternating current charging and discharging interface, the second battery module is connected in parallel with the third alternating current charging and discharging interface, the third battery module is connected in parallel with the first alternating current charging and discharging interface, and the fourth battery module is connected in parallel with the fourth alternating current charging and discharging interface, and a voltage range of the first alternating current charging and discharging interface and the second alternating current charging and discharging interface is greater than that of the third alternating current charging and discharging interface and the fourth alternating current charging and discharging interface.

[0122] Embodiments of the present application also provide a vehicle comprising a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the above-mentioned control method for charging and discharging of a vehicle.

[0123] Optionally, in the present embodiment, the above-mentioned vehicle can be configured to store a computer program for performing the following steps:

[0124] Step S102, acquiring a power supply topology of a vehicle battery, wherein the power supply topology comprises a plurality of battery modules, a plurality of alternating current charging and discharging interfaces and a direct current charging interface;

[0125] Step S104, determining a battery mode of the vehicle battery;

[0126] Step S106, determining a connection state of the power supply topology according to the battery mode;

[0127] Step S108, controlling the vehicle to perform charging and discharging operation according to the connection state.

[0128] Optionally, the processor, when executing the program, further implements the following steps: in response to the battery mode being the discharging mode, determining that the connection state is a first connection state, wherein the first connection state is a state in which the first battery module, the second battery module, the third battery module, and the fourth battery module are connected in parallel with the first alternating current charging and discharging interface.

[0129] Optionally, the processor, when executing the program, further implements the following steps: in response to the battery mode being the direct current charging mode, determining a rated voltage of the direct current charging device; in response to the rated voltage being a first voltage, determining that the connection state is a second connection state, wherein the second connection state is a state in which a second target module is connected in parallel with the direct current charging interface, the second target module being a module obtained by connecting the first series module and the second series module in parallel, the first series module being a module obtained by connecting the first battery module and the second battery module in series, and the second series module being a module obtained by connecting the third battery module and the fourth battery module in series; and in response to the rated voltage being a second voltage, determining that the connection state is a third connection state, wherein the third connection state is a state in which a third series module is connected in parallel with the direct current charging interface, the third series module being a module obtained by connecting the first battery module, the second battery module, the third battery module, and the fourth battery module in series, and the second voltage being greater than the first voltage.

[0130] Optionally, the processor, when executing the program, further implements the following steps: in response to the battery mode being the alternating current charging mode, determining a device type of the alternating current charging device; and determining the connection state according to the device type.

[0131] Optionally, the processor, when executing the program, further implements the following steps: in response to the device type being a single alternating current charging device, determining that the connection state is a fourth connection state, wherein the fourth connection state is a state in which the first battery module, the second battery module, the third battery module, and the fourth battery module are connected in parallel with the second alternating current charging and discharging interface.

[0132] Optionally, the processor, when executing the program, further implements the following steps: in response to the device type being a double alternating current charging device, determining that the connection state is a fifth connection state, wherein the fifth connection state is a state in which the first series module is connected in parallel with the second alternating current charging and discharging interface, and the second series module is connected in parallel with the first alternating current charging and discharging interface.

[0133] Optionally, the processor, when executing the program, further implements the following steps: in response to the device type being a four alternating current charging device, determining that the connection state is a sixth connection state, wherein the sixth connection state is a state in which the first battery module is connected in parallel with the second alternating current charging and discharging interface, the second battery module is connected in parallel with the third alternating current charging and discharging interface, the third battery module is connected in parallel with the first alternating current charging and discharging interface, and the fourth battery module is connected in parallel with the fourth alternating current charging and discharging interface, and a voltage range of the first alternating current charging and discharging interface and the second alternating current charging and discharging interface is greater than that of the third alternating current charging and discharging interface and the fourth alternating current charging and discharging interface.

[0134] Optionally, the specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementation manners, which will not be described here again.

[0135] The embodiment of the application further provides an electronic device comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the computer program to perform the control method of vehicle charging and discharging described above.

[0136] Optionally, in this embodiment, the electronic device described above can be configured to store a computer program for performing the following steps:

[0137] Step S102, acquiring a power supply topology of a vehicle battery, wherein the power supply topology comprises a plurality of battery modules, a plurality of alternating current charging and discharging interfaces, and a direct current charging interface;

[0138] Step S104, determining a battery mode of the vehicle battery;

[0139] Step S106, determining a connection state of the power supply topology according to the battery mode;

[0140] Step S108, controlling the vehicle to perform charging and discharging operation according to the connection state.

[0141] Optionally, when the processor executes the program, the following steps are further implemented: in response to the battery mode being a discharging mode, determining that the connection state is a first connection state, wherein the first connection state is a state in which the first battery module, the second battery module, the third battery module, and the fourth battery module are connected in parallel with the first alternating current charging and discharging interface.

[0142] Optionally, when the processor executes the program, the following steps are further implemented: in response to the battery mode being a direct current charging mode, determining a rated voltage of a direct current charging device; in response to the rated voltage being a first voltage, determining that the connection state is a second connection state, wherein the second connection state is a state in which a second target module is connected in parallel with the direct current charging interface, the second target module being a module obtained by connecting the first series module and the second series module in parallel, the first series module being a module obtained by connecting the first battery module and the second battery module in series, and the second series module being a module obtained by connecting the third battery module and the fourth battery module in series; in response to the rated voltage being a second voltage, determining that the connection state is a third connection state, wherein the third connection state is a state in which a third series module is connected in parallel with the direct current charging interface, the third series module being a module obtained by connecting the first battery module, the second battery module, the third battery module, and the fourth battery module in series, and the second voltage being greater than the first voltage.

[0143] Optionally, when the processor executes the program, the following steps are further implemented: in response to the battery mode being an alternating current charging mode, determining a device type of an alternating current charging device; and determining the connection state according to the device type.

[0144] Optionally, the processor, when executing the program, further implements the following steps: in response to the device type being a single alternating current charging device, determining that the connection state is a fourth connection state, wherein the fourth connection state is a state in which the first battery module, the second battery module, the third battery module, and the fourth battery module are connected in parallel with the second alternating current charging and discharging interface.

[0145] Optionally, the processor, when executing the program, further implements the following steps: in response to the device type being a double alternating current charging device, determining that the connection state is a fifth connection state, wherein the fifth connection state is a state in which the first series module is connected in parallel with the second alternating current charging and discharging interface, and the second series module is connected in parallel with the first alternating current charging and discharging interface.

[0146] Optionally, the processor, when executing the program, further implements the following steps: in response to the device type being a four alternating current charging device, determining that the connection state is a sixth connection state, wherein the sixth connection state is a state in which the first battery module is connected in parallel with the second alternating current charging and discharging interface, the second battery module is connected in parallel with the third alternating current charging and discharging interface, the third battery module is connected in parallel with the first alternating current charging and discharging interface, and the fourth battery module is connected in parallel with the fourth alternating current charging and discharging interface, and the voltage range of the first alternating current charging and discharging interface and the second alternating current charging and discharging interface is greater than that of the third alternating current charging and discharging interface and the fourth alternating current charging and discharging interface.

[0147] Optionally, specific examples in the present embodiment can refer to the examples described in the above embodiments and optional implementation manners, which will not be described herein again.

[0148] The embodiments of the present application also provide a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the computer program is configured to execute the above-mentioned vehicle charging and discharging control method when running on a computer or a processor.

[0149] Optionally, in the present embodiment, the above-mentioned computer readable storage medium can be configured to store a computer program for executing the following steps:

[0150] Step S102: acquiring a power supply topology of a vehicle battery, wherein the power supply topology comprises a plurality of battery modules, a plurality of alternating current charging and discharging interfaces, and a direct current charging interface;

[0151] Step S104: determining a battery mode of the vehicle battery;

[0152] Step S106: determining a connection state of the power supply topology according to the battery mode;

[0153] Step S108: controlling the vehicle to perform a charging and discharging operation according to the connection state.

[0154] Optionally, the storage medium is configured to store program code for performing the following steps: in response to the battery mode being the discharging mode, determining that the connection state is a first connection state, wherein the first connection state is a state in which the first battery module, the second battery module, the third battery module, and the fourth battery module are connected in parallel with the first AC charging and discharging interface.

[0155] Optionally, the storage medium is configured to store program code for performing the following steps: in response to the battery mode being the DC charging mode, determining a rated voltage of the DC charging device; in response to the rated voltage being a first voltage, determining that the connection state is a second connection state, wherein the second connection state is a state in which a second target module is connected in parallel with the DC charging interface, the second target module being a module obtained by connecting the first series module and the second series module in parallel, the first series module being a module obtained by connecting the first battery module and the second battery module in series, and the second series module being a module obtained by connecting the third battery module and the fourth battery module in series; and in response to the rated voltage being a second voltage, determining that the connection state is a third connection state, wherein the third connection state is a state in which a third series module is connected in parallel with the DC charging interface, the third series module being a module obtained by connecting the first battery module, the second battery module, the third battery module, and the fourth battery module in series, and the second voltage being greater than the first voltage.

[0156] Optionally, the storage medium is configured to store program code for performing the following steps: in response to the battery mode being the AC charging mode, determining a device type of the AC charging device; and determining the connection state according to the device type.

[0157] Optionally, the storage medium is configured to store program code for performing the following steps: in response to the device type being a single AC charging device, determining that the connection state is a fourth connection state, wherein the fourth connection state is a state in which the first battery module, the second battery module, the third battery module, and the fourth battery module are connected in parallel with the second AC charging and discharging interface.

[0158] Optionally, the storage medium is configured to store program code for performing the following steps: in response to the device type being a double AC charging device, determining that the connection state is a fifth connection state, wherein the fifth connection state is a state in which the first series module is connected in parallel with the second AC charging and discharging interface, and the second series module is connected in parallel with the first AC charging and discharging interface.

[0159] Optionally, the storage medium is configured to store program code for performing the following steps: in response to the device type being a four alternating current charging device, determining that the connection state is a sixth connection state, wherein the sixth connection state is a state in which the first battery module is connected in parallel with the second alternating current charging and discharging interface, the second battery module is connected in parallel with the third alternating current charging and discharging interface, the third battery module is connected in parallel with the first alternating current charging and discharging interface, and the fourth battery module is connected in parallel with the fourth alternating current charging and discharging interface, and the voltage ranges of the first alternating current charging and discharging interface and the second alternating current charging and discharging interface are greater than those of the third alternating current charging and discharging interface and the fourth alternating current charging and discharging interface.

[0160] Optionally, specific examples in the present embodiment can refer to the examples described in the above embodiments and optional implementation manners, which will not be repeated here.

[0161] The embodiments of the present application also provide a computer program product comprising a computer program, wherein the computer program implements the steps of the above-mentioned vehicle charging and discharging control method when executed by a processor.

[0162] Optionally, in the present embodiment, the above-mentioned computer program product can be configured to store a computer program for performing the following steps:

[0163] Step S102: acquiring a power supply topology of a vehicle battery, wherein the power supply topology comprises a plurality of battery modules, a plurality of alternating current charging and discharging interfaces, and a direct current charging interface;

[0164] Step S104: determining a battery mode of the vehicle battery;

[0165] Step S106: determining a connection state of the power supply topology according to the battery mode;

[0166] Step S108: controlling the vehicle to perform charging and discharging operations according to the connection state.

[0167] Optionally, the computer program further implements the following steps when the program is executed: in response to the battery mode being a discharging mode, determining that the connection state is a first connection state, wherein the first connection state is a state in which the first battery module, the second battery module, the third battery module, and the fourth battery module are connected in parallel with the first alternating current charging and discharging interface.

[0168] Optionally, the computer program further implements the following steps when the program is executed: in response to the battery mode being the direct current charging mode, determining a rated voltage of the direct current charging device; in response to the rated voltage being a first voltage, determining that the connection state is a second connection state, wherein the second connection state is a state in which a second target module is connected in parallel with the direct current charging interface, the second target module is a module obtained by connecting a first series module and a second series module in parallel, the first series module is a module obtained by connecting the first battery module and the second battery module in series, and the second series module is a module obtained by connecting the third battery module and the fourth battery module in series; and in response to the rated voltage being a second voltage, determining that the connection state is a third connection state, wherein the third connection state is a state in which a third series module is connected in parallel with the direct current charging interface, the third series module is a module obtained by connecting the first battery module, the second battery module, the third battery module, and the fourth battery module in series, and the second voltage is greater than the first voltage.

[0169] Optionally, the computer program further implements the following steps when the program is executed: in response to the battery mode being the alternating current charging mode, determining a device type of the alternating current charging device; and determining the connection state according to the device type.

[0170] Optionally, the computer program further implements the following steps when the program is executed: in response to the device type being a single alternating current charging device, determining that the connection state is a fourth connection state, wherein the fourth connection state is a state in which the first battery module, the second battery module, the third battery module, and the fourth battery module are connected in parallel with the second alternating current charging and discharging interface.

[0171] Optionally, the computer program further implements the following steps when the program is executed: in response to the device type being a double alternating current charging device, determining that the connection state is a fifth connection state, wherein the fifth connection state is a state in which the first series module is connected in parallel with the second alternating current charging and discharging interface, and the second series module is connected in parallel with the first alternating current charging and discharging interface.

[0172] Optionally, the computer program further implements the following steps when the program is executed: in response to the device type being a four alternating current charging device, determining that the connection state is a sixth connection state, wherein the sixth connection state is a state in which the first battery module is connected in parallel with the second alternating current charging and discharging interface, the second battery module is connected in parallel with the third alternating current charging and discharging interface, the third battery module is connected in parallel with the first alternating current charging and discharging interface, and the fourth battery module is connected in parallel with the fourth alternating current charging and discharging interface, and a voltage range of the first alternating current charging and discharging interface and the second alternating current charging and discharging interface is greater than that of the third alternating current charging and discharging interface and the fourth alternating current charging and discharging interface.

[0173] Optionally, specific examples in the embodiments can refer to the examples described in the above embodiments and optional implementation manners, which will not be described herein again.

[0174] In the above-mentioned embodiments of the present application, the description of each embodiment is focused on, and the part not described in detail in a certain embodiment can be referred to the relevant description of other embodiments.

[0175] In some embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. Among them, the above-mentioned device embodiments are only schematic, for example, the division of units can be a logical function division, and actual implementation can have another division way, for example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the units shown or discussed can be indirect coupling or communication connection through some interface, unit or module, which can be electrical or other forms.

[0176] The units described as separate components can or can not be physically separate, and the components shown as units can or can not be physical units, that is, they can be located in one place, or they can be distributed to multiple units. Part or all of the units can be selected according to actual needs to achieve the purpose of the present embodiment.

[0177] In addition, each functional unit in each embodiment of the present application can be integrated in a processing unit, or each unit can exist physically, or two or more units can be integrated in one unit. The above integrated unit can be realized in the form of hardware or in the form of software functional unit.

[0178] If the integrated unit is realized in the form of software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application essentially or the part that contributes to the prior art or the whole or part of the technical solutions can be embodied in the form of software product, which is stored in a storage medium and includes a plurality of instructions to make a computer device (which can be a personal computer, a server or a grid device, etc.) execute all or part of the steps of the embodiments of the present application. The foregoing storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and various program code storage media.

[0179] The above is only the preferred embodiment of the present application, and it should be pointed out that for ordinary skilled in the art, without departing from the principles of the present application, a number of improvements and refinements can be made, and these improvements and refinements should be considered as the protection scope of the present application.

Claims

1. A control method of vehicle charging and discharging, characterized by, The method comprises: acquiring a power supply topology of a vehicle battery, wherein the power supply topology comprises a plurality of battery modules, a plurality of alternating current charging and discharging interfaces, and a direct current charging interface; determining a battery mode of the vehicle battery; determining a connection state of the power supply topology according to the battery mode; controlling the vehicle to perform a charging and discharging operation according to the connection state.

2. The control method of charging and discharging of a vehicle according to claim 1, characterized by, The battery mode comprises a discharging mode, wherein determining the connection state according to the battery mode comprises: in response to the battery mode being the discharging mode, determining that the connection state is a first connection state, wherein the first connection state is a state in which the first battery module, the second battery module, the third battery module, and the fourth battery module are connected in parallel with the first alternating current charging and discharging interface.

3. The control method of charging and discharging of a vehicle according to claim 2, characterized by, The battery mode comprises a direct current charging mode, wherein determining the connection state according to the battery mode comprises: in response to the battery mode being the direct current charging mode, determining a rated voltage of a direct current charging device; in response to the rated voltage being a first voltage, determining that the connection state is a second connection state, wherein the second connection state is a state in which a second target module is connected in parallel with the direct current charging interface, the second target module being a module obtained by connecting a first series module and a second series module in parallel, the first series module being a module obtained by connecting the first battery module and the second battery module in series, and the second series module being a module obtained by connecting the third battery module and the fourth battery module in series; in response to the rated voltage being a second voltage, determining that the connection state is a third connection state, wherein the third connection state is a state in which a third series module is connected in parallel with the direct current charging interface, the third series module being a module obtained by connecting the first battery module, the second battery module, the third battery module, and the fourth battery module in series, and the second voltage being greater than the first voltage.

4. The control method of charging and discharging of a vehicle according to claim 3, characterized by, The battery mode comprises an alternating current charging mode, wherein determining the connection state according to the battery mode comprises: in response to the battery mode being the alternating current charging mode, determining a device type of an alternating current charging device; determining the connection state according to the device type.

5. The control method of charging and discharging of a vehicle according to claim 4, characterized by, The device type comprises a single alternating current charging device, wherein determining the connection state according to the device type comprises: in response to the device type being the single alternating current charging device, determining that the connection state is a fourth connection state, wherein the fourth connection state is a state in which the first battery module, the second battery module, the third battery module, and the fourth battery module are connected in parallel with a second alternating current charging and discharging interface.

6. The control method of charging and discharging of a vehicle according to claim 5, characterized by, The device type comprises a double alternating current charging device, wherein determining the connection state according to the device type comprises: in response to the device type being the double alternating current charging device, determining that the connection state is a fifth connection state, wherein the fifth connection state is a state in which the first series module is connected in parallel with the second alternating current charging and discharging interface, and the second series module is connected in parallel with the first alternating current charging and discharging interface.

7. The control method of charging and discharging of a vehicle according to claim 5, characterized by, The device type comprises a four alternating current charging device, wherein determining the connection state according to the device type comprises: In response to the device type being the four alternating current charging device, the connection state is determined as a sixth connection state, where the sixth connection state is a state in which the first battery module is connected in parallel with the second alternating current charging and discharging interface, the second battery module is connected in parallel with the third alternating current charging and discharging interface, the third battery module is connected in parallel with the first alternating current charging and discharging interface, and the fourth battery module is connected in parallel with the fourth alternating current charging and discharging interface, and the voltage range of the first alternating current charging and discharging interface and the second alternating current charging and discharging interface is greater than that of the third alternating current charging and discharging interface and the fourth alternating current charging and discharging interface.

8. A vehicle charging and discharging control device, characterized in that, Comprise: An acquisition module configured to acquire a power supply topology of a vehicle battery, wherein the power supply topology comprises a plurality of battery modules, a plurality of alternating current charging and discharging interfaces, and a direct current charging interface; A first determination module configured to determine a battery mode of the vehicle battery; A second determination module configured to determine a connection state of the power supply topology according to the battery mode; A charging and discharging module configured to control the vehicle to perform a charging and discharging operation according to the connection state.

9. A vehicle comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to execute the computer program to perform the vehicle charging and discharging control method in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, The computer readable storage medium stores a computer program, wherein the computer program is configured to execute the vehicle charging and discharging control method in any one of claims 1 to 7 when running on a computer or a processor.