Vehicle charging and discharging method and system, and controller
By designing a vehicle charging and discharging system that integrates a power battery pack, controller, and relays, multiple charging and discharging modes can be switched, solving the problem of a single charging mode in existing technologies, expanding user scenarios, and improving the charging experience.
Patent Information
- Application Number
- PCT/CN2024/075621
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-06-28
- Filing Date
- 2024-02-02
- Publication Date
- 2025-01-02
AI Technical Summary
Existing vehicle charging and discharging systems have a single charging or discharging control mode, failing to achieve AC external and internal discharging scenarios in DC charging mode, thus limiting the diversity of user scenarios and charging experience.
A vehicle charging and discharging system was designed. By combining a power battery pack, a power battery controller, a bidirectional on-board charger, DC and AC charging and discharging sockets, and a vehicle controller, the system utilizes relays and a CAN bus to achieve switching and control of multiple charging and discharging modes, including DC charging, AC charging, internal discharging, and external discharging, thus expanding the user's usage scenarios.
This approach expands user scenarios and enhances the charging experience without increasing the overall vehicle cost. In particular, it reduces the number of relay switching cycles and extends relay life by using normally closed switch relays.
Smart Images

Figure CN2024075621_02012025_PF_FP_ABST
Abstract
Description
Vehicle charging and discharging method, system and controller
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on June 28, 2023, with application number 202310774852.5 and application name “A vehicle charging and discharging method, system and controller”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the technical field of vehicle charging and discharging, and in particular to a vehicle charging and discharging method, system and controller. Background Art
[0003] With the rapid development of new energy vehicles, users are increasingly demanding charging and power consumption for these vehicles, and the number of scenarios for charging and power consumption is increasing. These diverse scenarios offer diverse functional modes, such as public AC / DC charging, home charging, outdoor camping, in-vehicle 220V power consumption, and simultaneous charging and power consumption. Designing a sound vehicle electrical system architecture and strategy to achieve safe and efficient charging and power consumption is crucial.
[0004] Existing vehicle charging and discharging systems have relatively simple charging and discharging control modes, and none of them consider the possibility of simultaneously discharging the battery internally or externally during DC charging. Therefore, designing a reasonable vehicle electrical system architecture and strategy to expand user usage scenarios and enhance the charging experience without increasing vehicle costs has become an urgent issue.
[0005] Summary of the Invention
[0006] One of the purposes of this application is to provide a vehicle charging and discharging method to solve the problem of relatively single charging or discharging control mode in the prior art; the second purpose is to provide a vehicle charging and discharging system; and the third purpose is to provide a controller.
[0007] In order to achieve the above objectives, the technical solutions adopted in this application are as follows:
[0008] In a first aspect, an embodiment of the present application provides a vehicle charging and discharging system, the system comprising:
[0009] Power battery pack;
[0010] A power battery controller connected to the power battery pack;
[0011] a bidirectional on-board charger connected to the power battery pack;
[0012] A DC charging and discharging socket for connecting to a DC charging and discharging gun, which is connected to the power battery pack through the first normally open switch of the first relay, and forms a DC charging circuit with the power battery pack;
[0013] An AC charging and discharging socket for connecting to an AC charging and discharging gun, which is connected to the bidirectional on-board charger through the normally closed switch of the second relay, and forms an AC charging and discharging circuit with the bidirectional on-board charger and the power battery pack;
[0014] An in-vehicle discharge socket for connecting to in-vehicle electrical equipment, which is connected to the bidirectional on-board charger through the second normally open switch of the third relay, and forms an AC internal discharge circuit with the bidirectional on-board charger and the power battery pack;
[0015] A vehicle controller is connected to the bidirectional on-board charger, the power battery controller, the first relay, the second relay, the third relay and the in-vehicle discharge socket respectively.
[0016] Preferably, it also includes a charging cover switch, which is connected to the vehicle controller.
[0017] In a second aspect, an embodiment of the present application provides a vehicle charging and discharging method, which is applied to the vehicle charging and discharging system described above, and the method includes the following steps:
[0018] S1: Acquire an external charge and discharge mode sent by the power battery controller, wherein the external charge and discharge mode is determined by the power battery controller from operating parameters detected by the power battery controller from a DC charge and discharge socket and an AC charge and discharge socket;
[0019] S2: Determine a final charge and discharge mode based on the external charge and discharge mode and the detected signal from the discharge socket in the vehicle;
[0020] S3: According to the final charge and discharge mode, the vehicle controller sends control signals to the first relay, the second relay, and the third relay, and requests different working modes from the bidirectional vehicle charger so as to operate according to the instructions corresponding to the charge and discharge mode.
[0021] Preferably, in S1, when the external charge and discharge mode sent by the power battery controller is a DC charging mode, control is performed as follows:
[0022] S101: The power battery controller identifies that the external charging and discharging mode is a DC charging mode and sends it to the vehicle controller via the CAN bus;
[0023] S102: The vehicle controller obtains the external charge and discharge mode sent by the power battery controller as the DC charging mode, and simultaneously detects that the discharge socket switch in the vehicle is in the off state; then determines that the final charge and discharge mode is the DC charging mode only;
[0024] S103: The vehicle controller controls the first normally open switch of the first relay to be closed according to the final charging and discharging mode being the DC charging mode only, and simultaneously keeps the second normally open switch of the third relay open, keeps the normally closed switch of the second relay closed, and requests the bidirectional vehicle charger to be in standby mode through the CAN bus;
[0025] S104: The current passes through the DC charging and discharging socket and charges the power battery pack through the first relay.
[0026] Preferably, in S1, when the external charge and discharge mode sent by the power battery controller is a DC charging mode, control is performed as follows:
[0027] S201: The power battery controller identifies that the external charging and discharging mode is a DC charging mode and sends it to the vehicle controller via the CAN bus;
[0028] S202: The vehicle controller obtains the external charge and discharge mode sent by the power battery controller as the DC charging mode, and also detects that the discharge socket switch in the vehicle is in the on state; then determines that the final charge and discharge mode is the DC charging and AC internal discharge mode;
[0029] S203: The vehicle controller controls the second normally open switch of the third relay to close, controls the first normally open switch of the first relay to close, keeps the normally closed switch of the second relay closed, and requests the bidirectional on-board charger to switch to the inverter mode through the CAN bus according to the final charging and discharging mode being the DC charging and AC internal discharging mode;
[0030] S204: The current passes through the DC charging and discharging socket and charges the power battery pack through the first relay; at the same time, after being inverted by the bidirectional vehicle charger, the current passes through the third relay to the discharge socket in the vehicle to power the first electrical device.
[0031] Furthermore, the DC charging mode is confirmed when the power battery controller detects that the CC1 resistance value R1 from the DC charging and discharging socket and does not detect the effective value of the CC2 resistance value and the effective value of the CP voltage value from the AC charging and discharging socket.
[0032] Preferably, in S1, when the external charge and discharge mode sent by the power battery controller is obtained as the no external charge and discharge mode, control is performed in the following manner:
[0033] S301: The power battery controller identifies that the external charge and discharge mode is the no external charge and discharge mode, and sends the information to the vehicle controller via the CAN bus;
[0034] S302: The vehicle controller obtains the external charge and discharge mode sent by the power battery controller as the no external charge and discharge mode, and simultaneously detects that the discharge socket switch in the vehicle is in the on state; then determines that the final charge and discharge mode is the AC internal discharge mode only;
[0035] S303: The vehicle controller controls the second normally open switch of the third relay to close based on the final charging and discharging mode being the AC internal discharge mode only, keeps the first normally open switch of the first relay open, keeps the normally closed switch of the second relay closed, and requests the bidirectional on-board charger to switch to the inverter operating mode via the CAN bus;
[0036] S304: The current flows through the power battery pack, the bidirectional on-board charger, the third relay, and finally to the discharge socket in the vehicle, thereby supplying power to the first electrical device.
[0037] Furthermore, the non-external charge and discharge mode is confirmed when the power battery controller does not detect the effective value of the CC1 resistance value from the DC charge and discharge socket, and does not detect the effective value of the CC2 resistance value and the effective value of the CP voltage value from the AC charge and discharge socket.
[0038] Furthermore, the status signal of the charging cover switch is also detected. If the charging cover switch is open, the normally closed switch of the second relay is controlled to be disconnected. If the charging cover switch is closed, the normally closed switch of the second relay is kept closed.
[0039] Preferably, in S1, when the external charge and discharge mode sent by the power battery controller is the AC charging mode, control is performed as follows:
[0040] S401: The power battery controller identifies that the external charging and discharging mode is the AC charging mode and sends it to the vehicle controller via the CAN bus;
[0041] S402: The vehicle controller obtains the external charge and discharge mode sent by the power battery controller as the AC charging mode; and at the same time detects that the discharge socket switch in the vehicle is in the off state, then determines and identifies the final charge and discharge mode as the AC charging mode only;
[0042] S403: The vehicle controller controls the first normally open switch of the first relay to be opened according to the final charge and discharge mode being the AC charging mode only, keeps the second normally open switch of the third relay open, keeps the normally closed switch of the second relay closed, and requests the bidirectional on-board charger to operate in rectification mode via the CAN bus;
[0043] S404: The current passes through the AC charging and discharging socket, and the DC power rectified by the second relay and the bidirectional on-board charger is used to charge the power battery pack.
[0044] Furthermore, the AC charging mode is confirmed when the power battery controller does not detect the effective value of the CC1 resistance value from the DC charging and discharging socket, and the CC2 resistance value detected from the AC charging and discharging socket is R2 and the CP voltage value is U1.
[0045] Preferably, in S1, when the external charge and discharge mode sent by the power battery controller is the AC discharge mode, control is performed in the following manner:
[0046] S501: The power battery controller identifies that the external charge and discharge mode is the AC discharge mode and sends it to the vehicle controller via the CAN bus;
[0047] S502: The vehicle controller obtains the external charge and discharge mode sent by the power battery controller as the AC discharge mode, and also detects that the discharge socket switch in the vehicle is in the off state; then determines that the final charge and discharge mode is the AC external discharge mode only;
[0048] S503: The vehicle controller controls the first normally open switch of the first relay and the second normally open switch of the third relay to be disconnected according to the final charging and discharging mode being the AC external discharge mode only, keeps the normally closed switch of the second relay normally closed, and requests the bidirectional on-board charger to switch to the inverter operating mode through the CAN bus;
[0049] S504: The current flows through the power battery pack, the bidirectional on-board charger, the second relay, the AC charging and discharging socket, and finally to the external discharge socket connected to the AC charging and discharging socket, thereby supplying power to the second electrical device.
[0050] Furthermore, the AC discharge mode is confirmed when the power battery controller does not detect the effective value of the CC1 resistance value from the DC charge and discharge socket, and detects the external vehicle discharge socket access signal from the AC charge and discharge socket and the CC2 resistance value detected from the AC charge and discharge socket is R3.
[0051] Preferably, in S1, when the external charge and discharge mode sent by the power battery controller is the external AC discharge mode, control is performed as follows:
[0052] S601: The power battery controller identifies that the external charge and discharge mode is an external AC discharge mode and sends it to the vehicle controller via the CAN bus;
[0053] S602: The vehicle controller obtains the external charge and discharge mode sent by the power battery controller as the external AC discharge mode, and also detects that the discharge socket switch in the vehicle is turned on; then determines that the final charge and discharge mode is the AC external and internal discharge mode;
[0054] S603: The vehicle controller controls the second normally open switch of the third relay to close, keeps the normally closed switch of the second relay closed, and keeps the first normally open switch of the first relay open, according to the final charging and discharging mode being the AC external and internal discharge mode; and requests the bidirectional vehicle charger to switch to an inverter operating mode via the CAN bus;
[0055] S604: The current flows through the power battery pack to the bidirectional on-board charger, and then is divided into two paths. The current flows through the third relay to the discharge socket in the vehicle to power the first electrical device, and then through the second relay to the AC charge and discharge socket, and finally to the external discharge socket outside the vehicle connected to the AC charge and discharge socket to power the second electrical device.
[0056] Furthermore, the external AC discharge mode is confirmed when the power battery controller detects an external discharge socket access signal from the AC charge and discharge socket and a CC2 resistance value detected from the AC charge and discharge socket is R3.
[0057] Preferably, in S1, when the external charge and discharge mode sent by the power battery controller is a DC charging and AC discharging mode, control is performed in the following manner:
[0058] S701: The power battery controller identifies the external charge and discharge mode as DC charging and AC discharging, and sends the information to the vehicle controller via the CAN bus;
[0059] S702: The vehicle controller obtains the external charge and discharge mode from the power battery controller as the DC charge and AC discharge mode, and also detects that the discharge socket switch in the vehicle is in the off state; then determines that the final charge and discharge mode is the DC charge and external AC discharge mode;
[0060] S703: The vehicle controller controls the first normally open switch of the first relay to close, keeps the normally closed switch of the second relay closed, keeps the second normally open switch of the third relay open, and requests the bidirectional on-board charger to switch to the inverter mode through the CAN bus;
[0061] S704: The current passes through the DC charging and discharging socket and charges the power battery pack through the first relay. At the same time, after being inverted by the bidirectional on-board charger, the current passes through the second relay and the AC charging and discharging socket, and finally reaches the external discharge socket connected to the AC charging and discharging socket to power the second electrical device.
[0062] Furthermore, the DC charging and AC discharging mode is confirmed when the power battery controller detects a CC1 resistance value of R1 from the DC charging and discharging socket, detects an external discharge socket access signal from the AC charging and discharging socket, and detects a CC2 resistance value of R3 from the AC charging and discharging socket.
[0063] In a third aspect, an embodiment of the present application provides a controller comprising a memory, a processor, and a computer program stored in the memory and executable on the processor. The processor reads the program in the memory and executes the steps in the vehicle charging and discharging method as described above.
[0064] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the vehicle charging and discharging method described in any one of the first aspects.
[0065] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the vehicle charging and discharging method described in any one of the first aspects.
[0066] Beneficial effects of this application:
[0067] This application first identifies the external charge and discharge mode by having the power battery controller detect the operating parameters from the DC charge and discharge sockets and the AC charge and discharge sockets. The vehicle controller then determines the final charge and discharge mode based on the external charge and discharge mode and the signal detected from the discharge socket inside the vehicle. Finally, the operating states of the first relay, the second relay, the third relay, and the bidirectional on-board charger are controlled accordingly according to the final charge and discharge mode to achieve charging and discharging. By controlling the vehicle charging and discharging system, this application realizes a variety of charging and discharging usage scenarios, expands user usage scenarios, and enhances the user experience without increasing the cost of the entire vehicle.
[0068] The second relay in this application is selected as a normally closed switch relay. In the case of in-vehicle discharge, since the second relay is a normally closed switch relay, the number of switching times of the second relay is greatly reduced, and the life of the relay can be more than twice that of the normally open switch in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS
[0069] FIG1 is a functional block diagram of a vehicle charging and discharging system of the present application;
[0070] FIG2 is a flow chart of a vehicle charging and discharging method executed by a vehicle controller of the present application;
[0071] FIG3 is a general flow chart of a vehicle charging and discharging method of the present application;
[0072] FIG4 is a flow chart of the vehicle charging and discharging system of the present application in a DC charging mode only;
[0073] FIG5 is a flow chart of the vehicle charging and discharging system of the present application in DC charging and AC internal discharging modes;
[0074] FIG6 is a flow chart of the vehicle charging and discharging system of the present application in the AC-only internal discharge mode;
[0075] FIG7 is a flow chart of the vehicle charging and discharging system of the present application in AC charging mode only;
[0076] FIG8 is a flow chart of the vehicle charging and discharging system according to the present application in the AC external discharge only mode;
[0077] FIG9 is a flow chart of the vehicle charging and discharging system of the present application in the AC external and internal discharge mode;
[0078] FIG10 is a flow chart of the vehicle charging and discharging system described in the present application in DC charging and external AC discharging modes.
[0079] In the figure: 1-vehicle controller, 2-bidirectional on-board charger, 3-power battery pack, 301-power battery pack, 302-power battery controller, 4-high-voltage electrical box, 401-first relay, 402-second relay, 403-third relay, 5-in-vehicle discharge socket, 6-out-vehicle discharge socket, 7-AC charge and discharge socket, 8-DC charge and discharge socket, 9-charging cover switch. DETAILED DESCRIPTION
[0080] The following will describe the embodiments of the present application with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand the other advantages and effects of the present application from the contents disclosed in this specification. The present application can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be understood that the preferred embodiments are only for the purpose of illustrating the present application and are not intended to limit the scope of protection of the present application.
[0081] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present application. Therefore, the illustrations only show components related to the present application and are not drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component can be changed at will, and the component layout type may also be more complicated.
[0082] This embodiment provides a vehicle charging and discharging system, as shown in FIG1 , which includes:
[0083] Power battery pack 301;
[0084] A power battery controller 302 connected to the power battery pack 301;
[0085] A bidirectional on-board charger 2 connected to the power battery pack 301;
[0086] A DC charging and discharging socket 8 for connecting to a DC charging and discharging gun, which is connected to the power battery pack 301 through the first normally open switch of the first relay 401, and forms a DC charging circuit with the power battery pack 301;
[0087] An AC charging and discharging socket 7 for connecting to an AC charging and discharging gun, which is connected to the bidirectional on-board charger 2 through the normally closed switch of the second relay 402, and forms an AC charging and discharging circuit with the bidirectional on-board charger 2 and the power battery pack 301;
[0088] An in-vehicle discharge socket 5 for connecting to in-vehicle electrical equipment, which is connected to the bidirectional on-board charger 2 via the second normally open switch of the third relay 403, and forms an AC internal discharge circuit with the bidirectional on-board charger 2 and the power battery pack 301;
[0089] The vehicle controller 1 is connected to the bidirectional vehicle charger 2, the power battery controller 302, the first relay 401, the second relay 402, the third relay 403 and the in-vehicle discharge socket 5 respectively;
[0090] The power battery controller 302 is configured to identify the external charge and discharge mode based on the operating parameters detected by the DC charge and discharge socket 8 and the AC charge and discharge socket 7, and send an identification signal of the external charge and discharge mode to the vehicle controller 1 via the CAN bus;
[0091] The vehicle controller 1 is configured to respond to the external charge and discharge mode sent by the power battery controller 302 and the signal detected by the in-vehicle discharge socket 5 to determine the final charge and discharge mode, thereby controlling the on and off of the first relay 401, the second relay 402, and the third relay 403 according to the final charge and discharge mode, and requesting different working modes from the bidirectional vehicle charger 2 through the CAN bus to form the vehicle charging and discharging system.
[0092] The power battery pack 301 is composed of multiple power battery cells connected in series and / or parallel, storing the energy required to operate the vehicle. Power is supplied by an external power grid or other electric vehicles. In this embodiment, the power battery pack 301 and the power battery controller 302 form a power battery pack 3. The power battery pack 3 also includes a battery case that seals the power battery pack 301 and the power battery controller 302. Typically, the battery case is also equipped with a gas release valve to prevent explosion of the power battery pack 301 in the event of a squeeze or short circuit.
[0093] The power battery controller 302 is a power battery management system (BMS) that detects operating parameters at the DC charging and discharging sockets 8 and AC charging and discharging sockets 7 and identifies the corresponding external charging and discharging mode based on the detected operating parameters. The external charging and discharging modes include DC charging mode, AC charging mode, AC discharging mode, and no external charging and discharging mode.
[0094] The vehicle controller 1 may be a vehicle VCU. In this embodiment, the vehicle controller 1 may be a product of the prior art.
[0095] The bidirectional on-board charger 2 operates in standby, rectification, and reverse current modes. When charging the power battery pack 301 with AC current, the bidirectional on-board charger 2 performs rectification; when discharging the power battery pack 301, the bidirectional on-board charger 2 performs reverse current. In this embodiment, the bidirectional on-board charger 2 can be a conventional product.
[0096] In a specific implementation, as shown in Figure 1 , the DC charging and discharging socket 8 is electrically connected to the first relay 401, thereby forming a DC charging circuit with the power battery pack 301. Current flows through the DC socket, the first relay 401, and the power battery pack 301. It should be noted that during DC charging of the power battery pack 301, the current does not need to be processed by the bidirectional onboard charger 2, but instead directly passes through the first relay 401 to charge the power battery pack 301.
[0097] In a specific implementation, as shown in FIG1 , the first relay 401 , the second relay 402 , and the third relay 403 are integrated into the high-voltage electrical box 4 , which is beneficial for protecting the first relay 401 , the second relay 402 , and the third relay 403 , so as to prevent the first relay 401 , the second relay 402 , and the third relay 403 from being exposed to the air, causing certain safety hazards, and at the same time facilitates management.
[0098] In this embodiment, the AC charging / discharging socket 7 is electrically connected to the second relay 402 in the high-voltage electrical box, thereby forming an AC charging circuit with the bidirectional onboard charger 2 and the power battery pack 301. Current flows through the AC charging / discharging socket 7, through the second relay 402 in the high-voltage electrical box, to the bidirectional onboard charger 2, and finally to the power battery pack 301, completing the AC charging circuit.
[0099] In practice, Figure 1 is a functional block diagram of the vehicle charging and discharging system of the present application. As shown in Figure 1 , when AC external discharge is required, the external discharge socket 6 is connected to the AC charging and discharging socket 7 , and electrically connected to the AC charging and discharging socket 7 and the second relay 402 in the high-voltage electrical box, thereby forming an AC external discharge circuit with the bidirectional on-board charger 2 and the power battery pack 301. Current flows through the power battery pack 301, through the bidirectional on-board charger 2, to the second relay 402, and finally through the AC charging and discharging socket 7 to the external discharge socket 6 . The external discharge socket 6 can power outdoor appliances such as induction cookers, outdoor lighting, and electric ovens required for camping.
[0100] In a specific implementation, as shown in Figure 1, the in-vehicle discharge socket 5 is electrically connected to the third relay 403 in the high-voltage electrical box, thereby forming an AC internal discharge circuit with the bidirectional onboard charger 2 and the power battery pack 301. Current flows through the power battery pack 301, through the bidirectional onboard charger 2, to the third relay 403, and finally to the in-vehicle discharge socket 5. In this embodiment, the in-vehicle discharge socket 5 can be configured as a conventional three-hole socket or USB port to power common first-user devices in the vehicle. Such first-user devices include various small loads that require charging, such as humidifiers, mobile phones, and tablets, as well as 220V household appliances in the vehicle, such as external radiators.
[0101] In this embodiment, the first relay 401, the second relay 402, and the third relay 403 can all be normally open switch relays or normally closed switch relays. However, since the power battery pack 301 is directly connected to the DC charging and discharging socket 8 through the first relay 401, if the first relay 401 is a normally closed switch relay, even if DC charging is not performed, the DC charging and discharging socket 8 is energized at this time, which poses a certain safety hazard when used. Therefore, the first relay 401 described in this embodiment is preferably a normally open switch relay.
[0102] Similarly, if the third relay 403 is a normally closed relay, when AC charging or AC discharging is in progress, the discharge socket 5 in the vehicle is energized. To ensure safety, the vehicle controller 1 needs to control the third relay 403 to open. However, AC charging is a frequent power consumption mode, so the frequent control of the third relay 403 is not conducive to the service life of the third relay 403.
[0103] In this embodiment, the second relay 402 is a normally closed switch relay. When AC charging or AC external discharge is required, it is only necessary to control the bidirectional vehicle charger 2 to be in the corresponding working mode. There is no need to additionally control the action of the second relay 402, which greatly reduces the number of times the second relay 402 is used. Compared with a normally open switch relay, its lifespan can be more than twice that of a normally open relay.
[0104] In this embodiment, a charging cover switch 9 is further included, and the charging cover switch 9 is connected to the vehicle controller 1. The charging cover switch 9 is provided at the AC charging and discharging socket 7. The vehicle controller 1 determines whether the charging cover at the AC charging and discharging socket 7 is in a closed or open state by detecting a status signal of the charging cover switch 9. If the status signal of the charging cover switch 9 is off, it indicates that the charging cover at the AC charging and discharging socket 7 is covered on the AC charging and discharging socket 7; if the status signal of the charging cover switch 9 is on, it indicates that the charging cover at the AC charging and discharging socket 7 is open.
[0105] In a specific embodiment, FIG2 is a flow chart of a vehicle charging and discharging method executed by a vehicle controller in this application. As shown in FIG2 , a vehicle charging and discharging method is applied to the vehicle charging and discharging system as described above. In this embodiment, the vehicle charging and discharging method is executed by the vehicle controller 1. The vehicle charging and discharging method executed by the vehicle controller 1 includes the following:
[0106] S1: The vehicle controller 1 obtains the external charge and discharge mode sent by the power battery controller 302, wherein the external charge and discharge mode is determined by the power battery controller 302 from the operating parameters detected by the DC charge and discharge socket 8 and the AC charge and discharge socket 7, and sent to the vehicle controller 1 via the CAN bus;
[0107] S2: The vehicle controller 1 determines a final charge and discharge mode based on the external charge and discharge mode and the detected signal from the in-vehicle discharge socket 5; wherein the final charge and discharge mode includes a DC charging mode only, an AC charging mode only, an AC external discharge mode only, an AC internal discharge mode only, an AC external-internal discharge mode, a DC charging and AC internal discharge mode, and a DC charging and external AC discharge mode;
[0108] S3: According to the final charge and discharge mode, the vehicle controller 1 sends control signals to the first relay 401, the second relay 402, and the third relay 403, and requests different working modes from the bidirectional vehicle charger 2 through the CAN bus, so as to operate according to the instructions corresponding to the charge and discharge mode.
[0109] In this embodiment, the operating parameters detected from the DC charging and discharging socket 8 and the AC charging and discharging socket 7 are: the CC1 resistance value detected from the DC charging and discharging socket 8, or the CC2 resistance value and CP voltage value detected from the AC charging and discharging socket 7, or the off-vehicle discharge request signal detected from the AC charging and discharging socket 7, or the CC1 resistance value detected from the DC charging and discharging socket 8 and the off-vehicle discharge request signal detected from the AC charging and discharging socket 7, or the CC1 resistance value detected from the DC charging and discharging socket 8 and the CC2 resistance value and CP voltage value detected from the AC charging and discharging socket 7; wherein the off-vehicle discharge request signal includes the off-vehicle discharge socket 6 access signal detected from the AC charging and discharging socket 7 and the CC2 resistance value detected from the AC charging and discharging socket 7;
[0110] At the same time, the vehicle controller 1 detects the working status signal of the discharge socket 5 in the vehicle, and determines the final charge and discharge mode in combination with the external charge and discharge mode.
[0111] When the DC charging and discharging socket 8 or the AC charging and discharging socket 7 is connected to the charging gun of the charging pile, the power battery controller 302 communicates and performs a handshake with the charging gun of the charging pile in accordance with national standards. The power battery controller 302 determines whether the handshake is successful based on the CC1 resistance value detected from the DC charging and discharging socket 8 or the CC2 resistance value and CP voltage value detected from the AC charging and discharging socket 7. If the handshake is successful, it means that the corresponding charging and discharging can be carried out. If the handshake fails, the power battery controller 302 sends a handshake failure message to the charging pile, and the charging gun cannot charge the power battery.
[0112] It should be noted that in this embodiment, the DC charging and discharging socket 8, the AC charging and discharging socket 7, and the in-vehicle discharge socket 5 are integrated into the vehicle, while the external discharge socket 6 is connected to the vehicle via the AC charging and discharging socket 7. Therefore, when AC external discharge is required, the external discharge socket 6 must be connected to the AC charging and discharging socket 7. The power battery controller 302 detects the external discharge socket 6 access signal and the CC2 resistance value detected by the AC charging and discharging socket 7, indicating that AC external discharge is required. In this embodiment, the external discharge socket 6 can be used to power external devices such as induction cookers, electric ovens, and lighting.
[0113] In this example, the vehicle controller 1 also detects the status signal of the charging cover switch 9 and controls the on and off of the second relay 402 accordingly according to the switch status of the charging cover switch 9 .
[0114] In this embodiment, FIG3 is a general flow chart of a vehicle charging and discharging method of the present application. As shown in FIG3 , the general steps of the vehicle charging and discharging method are as follows:
[0115] Step S100: The power battery controller 302 identifies the CC1 resistance value detected from the DC charge and discharge socket 8, or the CC2 resistance value and CP voltage value detected from the AC charge and discharge socket 7 according to national standards. The identification result is the external charge and discharge mode BMS_Chrgmode, and the external charge and discharge mode is determined.
[0116] Step S200: The vehicle control unit 1 then obtains the external charge and discharge mode sent by the power battery controller 302 from the CAN bus, and detects the signal of the in-vehicle discharge socket 5 and the status signal of the charging cover switch 9, and finally integrates the vehicle charge and discharge signal into VCU_Chrgmode, and determines the corresponding final charge and discharge mode.
[0117] Step S300: The vehicle controller 1 controls the on / off of the first relay 401 , the second relay 402 , and the third relay 403 in the high-voltage electrical box according to the final charge and discharge mode, and requests the working mode of the bidirectional vehicle charger 2 .
[0118] Step S400: charging the power battery pack 301 or discharging it inside the vehicle or outside the vehicle.
[0119] In this embodiment, if the external charge and discharge mode sent by the power battery controller 302 is a DC charging mode, and at the same time the vehicle controller 1 detects that the switch of the discharge socket 5 in the vehicle is in the off state; then the vehicle controller 1 determines that the final charge and discharge mode is the DC charging mode only;
[0120] The vehicle controller 1 controls the first relay 401 to close according to the final charging and discharging mode being the DC charging mode only, and at the same time keeps the third relay 403 open, keeps the second relay 402 closed, and requests the bidirectional vehicle charger 2 to work in standby mode through the CAN bus.
[0121] The DC charging mode is confirmed when the power battery controller 302 detects that the CC1 resistance value R1 from the DC charging and discharging socket 8 and does not detect the effective value of the CC2 resistance value and the effective value of the CP voltage value from the AC charging and discharging socket 7.
[0122] Specifically, FIG4 is a flow chart of the vehicle charging and discharging system of the present application in the DC charging mode only. As shown in FIG4 , in S1, when the external charging and discharging mode sent by the power battery controller 302 is the DC charging mode, control is performed as follows:
[0123] Step S101: The DC charging gun of the charging pile is separately inserted into the DC charging and discharging socket 8 according to the national standard. The power battery controller 302 detects the CC1 resistance value R1 from the DC charging and discharging socket 8 according to the national standard. Thus, the power battery controller 302 recognizes that the external charging and discharging mode is the DC charging mode and sends it to the vehicle controller 1 through the CAN bus.
[0124] Step S102: The vehicle controller 1 obtains the external charging and discharging mode sent by the power battery controller 302 via the CAN bus as the DC charging mode, and also detects that the switch of the discharge socket 5 in the vehicle is in the off state. The vehicle controller 1 then determines that the final charging and discharging mode is the DC charging mode only.
[0125] Step S103: The vehicle controller 1 controls the first normally open switch of the first relay 401 in the high-voltage electrical box to be closed according to the final charging and discharging mode being the DC charging mode only, and at the same time keeps the second normally open switch of the third relay 403 open, keeps the normally closed switch of the second relay 402 closed, and requests the bidirectional vehicle charger 2 to be in standby mode through the CAN bus.
[0126] Step S104: the current passes through the DC charging and discharging socket 8 and charges the power battery pack 301 through the first relay 401 in the high-voltage electrical box.
[0127] In this embodiment, if the external charge and discharge mode sent by the power battery controller 302 is a DC charging mode, and at the same time the vehicle controller 1 also detects that the switch of the discharge socket 5 in the vehicle is in the on state; then the vehicle controller 1 determines that the final charge and discharge mode is a DC charging and AC internal discharge mode;
[0128] The vehicle controller 1 controls the third relay 403 to close, controls the first relay 401 to close, keeps the second relay 402 closed, and requests the bidirectional vehicle charger 2 to operate in the inverter mode through the CAN bus according to the final charging and discharging mode being DC charging and AC internal discharge mode.
[0129] The DC charging mode is confirmed when the power battery controller 302 detects that the CC1 resistance value R1 from the DC charging and discharging socket 8 and does not detect the effective value of the CC2 resistance value and the effective value of the CP voltage value from the AC charging and discharging socket 7.
[0130] The vehicle controller 1 also detects the status signal of the charging cover switch 9. If the charging cover switch 9 is open, the second relay 402 is controlled to be disconnected. If the charging cover switch 9 is closed, the second relay 402 is kept closed.
[0131] Specifically, FIG5 is a flow chart of the vehicle charging and discharging system of the present application in the DC charging and AC internal discharging mode. As shown in FIG5 , in S1, when the external charging and discharging mode sent by the power battery controller 302 is the DC charging mode, control is performed as follows:
[0132] Step S201: According to the national standard, the DC charging gun of the charging pile is separately inserted into the DC charging and discharging socket 8. The power battery controller 302 detects the CC1 resistance value R1 from the DC charging and discharging socket 8 according to the national standard. Thus, the power battery controller 302 recognizes that the external charging and discharging mode is the DC charging mode and sends it to the vehicle controller 1 through the CAN bus.
[0133] Step S202: The vehicle controller 1 obtains the external charge and discharge mode sent by the power battery controller 302 via the CAN bus, indicating that the external charge and discharge mode is the DC charge mode, and also detects that the switch of the discharge socket 5 in the vehicle is in the on state. The vehicle controller 1 recognizes the final charge and discharge mode as the DC charge and AC internal discharge mode.
[0134] Step S203: The vehicle controller 1 controls the second normally open switch of the third relay 403 in the high-voltage electrical box to close, controls the first normally open switch of the first relay 401 to close, and requests the bidirectional on-board charger 2 to be in the inverter working mode through the CAN bus according to the final charging and discharging mode of DC charging and AC internal discharge. At the same time, the vehicle controller 1 also detects the status signal of the charging cover switch 9. If the charging cover switch 9 is open, the normally closed switch of the second relay 402 is controlled to be disconnected to avoid electric shock safety accidents when people touch the charging port after it is opened; if the charging cover switch 9 is closed, the normally closed switch of the second relay 402 is kept closed.
[0135] Step S204: The current passes through the DC charging and discharging socket 8 and charges the power battery pack 301 through the first relay 401 in the high-voltage electrical box; at the same time, after being inverted by the bidirectional vehicle charger 2, the current passes through the third relay 403 to the discharge socket 5 in the vehicle to power the first electrical device, wherein the first electrical device includes a computer laptop, a tablet computer, an external heater and other in-vehicle electrical devices.
[0136] In this embodiment, if the external charge and discharge mode sent by the power battery controller 302 is a no external charge and discharge mode, and at the same time the vehicle controller 1 detects that the discharge socket switch in the vehicle is turned on; then the vehicle controller 1 determines that the final charge and discharge mode is an AC internal discharge mode only;
[0137] The vehicle controller 1 controls the third relay 403 to close according to the final charging and discharging mode being the AC internal discharge mode only, keeps the first relay 401 open, keeps the second relay 402 closed, and requests the bidirectional vehicle charger 2 to operate in the inverter mode through the CAN bus.
[0138] The vehicle controller 1 also detects the status signal of the charging cover switch 9. If the charging cover switch 9 is open, the second relay 402 is controlled to be disconnected. If the charging cover switch 9 is closed, the second relay 402 is kept closed.
[0139] The non-external charge and discharge mode is confirmed when the power battery controller 302 does not detect the effective value of the CC1 resistance value from the DC charge and discharge socket 8, and does not detect the effective value of the CC2 resistance value and the effective value of the CP voltage value from the AC charge and discharge socket 7.
[0140] Specifically, FIG6 is a flow chart of the vehicle charging and discharging system of the present application in the AC internal discharge mode only. As shown in FIG6 , in S1, when the external charging and discharging mode sent by the power battery controller 302 is obtained as the no external charging and discharging mode, control is performed as follows:
[0141] Step S301: The power battery controller 302 detects no effective value of the CC1 resistance from the DC charging and discharging socket 8 and no effective value of the CC2 resistance and CP voltage from the AC charging and discharging socket 7 in accordance with national standards. The power battery controller 302 identifies the external charging and discharging mode as the no external charging and discharging mode and sends the information to the vehicle controller 1 via the CAN bus.
[0142] Step S302: The vehicle controller 1 obtains the external charge and discharge mode sent by the power battery controller 302 via the CAN bus, indicating that the external charge and discharge mode is the no external charge and discharge mode, and detects that the switch of the discharge socket 5 in the vehicle is in the on state. The vehicle controller 1 identifies the final charge and discharge mode as the AC internal discharge mode only.
[0143] Step S303: Based on the final charge / discharge mode being the AC internal discharge mode only, the vehicle controller 1 controls the second normally-open switch of the third relay 403 in the high-voltage electrical box to close, maintains the first normally-open switch of the first relay 401 to open, and requests the bidirectional on-board charger 2 to switch to the inverter mode via the CAN bus. Simultaneously, the vehicle controller 1 detects the status signal of the charging cover switch 9. If the charging cover switch 9 is open, the normally-closed switch of the second relay 402 is controlled to open to prevent electric shock accidents caused by people touching the opened charging port. If the charging cover switch 9 is closed, the normally-closed switch of the second relay 402 is maintained closed.
[0144] Step S304: The current flows through the power battery pack 301, the bidirectional vehicle charger 2, the third relay 403, and finally to the discharge socket 5 in the vehicle, thereby supplying power to the first electrical device, which includes a computer laptop, a tablet computer, an external heater and other in-vehicle electrical devices.
[0145] This embodiment also detects the status signal of the charging cover switch 9 through the vehicle controller 1, ensuring power safety in the AC internal discharge mode only, or the DC charging and AC internal discharge mode; thereby providing users with more charging and discharging experience while ensuring that the system reliability is more robust and safe.
[0146] In this embodiment, if the external charge and discharge mode sent by the power battery controller 302 is the AC charging mode; and at the same time, the vehicle controller 1 also detects that the switch of the discharge socket 5 in the vehicle is in the off state, the vehicle controller 1 determines that the final charge and discharge mode is the AC charging mode only;
[0147] The vehicle controller 1 controls the first relay 401 to remain disconnected, the third relay 403 to remain disconnected, and the second relay 402 to remain closed according to the final charge and discharge mode being the AC charging mode only, and requests the bidirectional vehicle charger 2 to operate in rectification mode through the CAN bus.
[0148] The AC charging mode is confirmed when the power battery controller 302 does not detect the effective value of the CC1 resistance value from the DC charging and discharging socket 8, and the CC2 resistance value detected from the AC charging and discharging socket 7 is R2 and the CP voltage value is U1.
[0149] Specifically, FIG7 is a flow chart of the vehicle charging and discharging system of the present application in the AC charging mode only. As shown in FIG7 , in S1, when the external charging and discharging mode sent by the power battery controller 302 is the AC charging mode, control is performed as follows:
[0150] Step S401: According to the national standard, the AC charging gun of the charging pile is only inserted into the AC charging and discharging socket 7. The power battery controller 302 detects the CC2 resistance value R2 and the CP voltage value U1 from the AC charging and discharging socket 7 according to the national standard. Thus, the power battery controller 302 recognizes that the external charging and discharging mode is the AC charging mode, and sends it to the vehicle controller 1 through the CAN bus.
[0151] Step S402: The vehicle controller 1 obtains the external charging and discharging mode sent by the power battery controller 302 through the CAN signal as the AC charging mode, and at the same time detects that the switch of the discharge socket 5 in the vehicle is in the disconnected state. The vehicle controller 1 identifies the final charging and discharging mode as the AC charging mode only.
[0152] Step S403: The vehicle controller 1 controls the first normally open switch of the first relay 401 in the high-voltage electrical box to be disconnected according to the final charge and discharge mode being the AC charging mode only, while keeping the second normally open switch of the third relay 403 disconnected, keeping the normally closed switch of the second relay 402 closed, and requests the bidirectional vehicle charger 2 to work in rectification mode through the CAN bus.
[0153] Step S404: the current passes through the AC charging and discharging socket 7, and the DC power rectified by the second relay 402 in the high-voltage electrical box and the bidirectional on-board charger 2 is used to charge the power battery pack 301.
[0154] In this embodiment, if the external charge and discharge mode sent by the power battery controller 302 is the AC discharge mode, and at the same time the vehicle controller 1 also detects that the discharge socket switch in the vehicle is in the off state; then the vehicle controller 1 determines that the final charge and discharge mode is the AC external discharge mode only;
[0155] The vehicle controller 1 controls the first relay 401 and the third relay 403 to remain disconnected and the second relay 402 to remain normally closed according to the final charging and discharging mode being the AC external discharge mode only, and requests the bidirectional vehicle charger 2 to operate in the inverter mode through the CAN bus.
[0156] The AC discharge mode is confirmed when the power battery controller 302 does not detect the effective value of the CC1 resistance value from the DC charge and discharge socket 8, and detects the access signal of the external discharge socket 6 from the AC charge and discharge socket 7 and the CC2 resistance value detected from the AC charge and discharge socket 7 is R3.
[0157] Specifically, FIG8 is a flow chart of the vehicle charging and discharging system of the present application in the AC external discharge mode only. As shown in FIG8 , in S1, when the external charging and discharging mode sent by the power battery controller 302 is the AC discharge mode, control is performed as follows:
[0158] Step S501: According to the national standard, the external discharge socket 6 is separately inserted into the AC charge and discharge socket 7. The power battery controller 302 detects the external discharge socket 6 access signal from the AC charge and discharge socket 7 and the CC2 resistance value detected from the AC charge and discharge socket 7 is R3 according to the national standard. Thus, the power battery controller 302 recognizes that the external charge and discharge mode is the AC discharge mode and sends it to the vehicle controller 1 through the CAN bus.
[0159] Step S502: The vehicle controller 1 obtains the external charge and discharge mode sent by the power battery controller 302 through the CAN bus as the AC discharge mode, and at the same time detects that the switch of the discharge socket 5 in the vehicle is in the disconnected state. Therefore, the vehicle controller 1 recognizes that the final charge and discharge mode is only the AC external discharge mode.
[0160] Step S503: The vehicle controller 1 controls the first normally open switch of the first relay 401 and the second normally open switch of the third relay 403 in the high-voltage electrical box to be disconnected according to the final charging and discharging mode being the AC external discharge mode only, keeps the normally closed switch of the second relay 402 normally closed, and requests the bidirectional vehicle charger 2 to work in the inverter mode through the CAN bus.
[0161] Step S504: The current flows through the power battery pack 301, through the bidirectional vehicle charger 2, then through the second relay 402, the AC charging and discharging socket 7, and finally to the external vehicle discharge socket 6 connected to the AC charging and discharging socket 7, thereby supplying power to the second electrical device, which includes an induction cooker, an electric oven, an external lighting device, and other external electrical devices.
[0162] In this embodiment, if the external charge and discharge mode sent by the power battery controller 302 is the external AC discharge mode, and it is also detected that the switch of the discharge socket 5 in the vehicle is in the on state, then the final charge and discharge mode is determined to be the AC external and internal discharge mode;
[0163] According to the final charging and discharging mode being the AC external and internal discharge mode, the third relay 403 is controlled to be closed, the second relay 402 is kept closed, and the first relay 401 is kept open; and the working mode of the bidirectional vehicle charger 2 is requested to be inverted through the CAN bus.
[0164] The external AC discharge mode is confirmed when the power battery controller 302 detects a signal connected to the external discharge socket 6 from the AC charge and discharge socket 7 and the CC2 resistance value detected from the AC charge and discharge socket 7 is R3.
[0165] Specifically, FIG9 is a flow chart of the vehicle charging and discharging system of the present application in the AC external and internal discharge mode. As shown in FIG9 , in S1, when the external charging and discharging mode sent by the power battery controller 302 is obtained as the external AC discharge mode, control is performed as follows:
[0166] Step S601: According to the national standard, the external discharge socket 6 is separately inserted into the AC charge and discharge socket 7. The power battery controller 302 recognizes that the external discharge socket 6 access signal detected from the AC charge and discharge socket 7 and the CC2 resistance value detected from the AC charge and discharge socket 7 is R3 according to the national standard. Thus, the power battery controller 302 recognizes that the external charge and discharge mode is the external AC discharge mode, and sends it to the vehicle controller 1 through the CAN bus.
[0167] Step S602: The vehicle controller 1 obtains the external charge and discharge mode sent by the power battery controller 302 through the CAN bus as the external AC discharge mode, and also detects that the switch of the discharge socket 5 in the vehicle is in the on state. The vehicle controller 1 recognizes that the final charge and discharge mode is the AC external and internal discharge mode.
[0168] Step S603: The vehicle controller 1 controls the second normally open switch of the third relay 403 in the high-voltage electrical box to close, keeps the normally closed switch of the second relay 402 closed, and keeps the first normally open switch of the first relay 401 open according to the final charging and discharging mode being the AC external and internal discharge mode; and requests the bidirectional vehicle charger 2 to operate in the inverter mode through the CAN bus.
[0169] Step S604: The current flows through the power battery pack 301 to the bidirectional onboard charger 2, where it is split into two paths. The current flows through the third relay 403 to the in-vehicle discharge socket 5, which supplies power to a first electrical device. The current flows through the second relay 402 to the AC charge / discharge socket 7, and finally to the external discharge socket 6 connected to the AC charge / discharge socket 7, which supplies power to a second electrical device. The first electrical device includes in-vehicle electrical devices such as laptops, tablets, and external heaters. The second electrical device includes external electrical devices such as induction cookers and electric ovens.
[0170] In this embodiment, if the external charge and discharge mode sent by the power battery controller 302 is a DC charging and AC discharging mode, and at the same time the vehicle controller 1 also detects that the discharge socket switch in the vehicle is in the off state; then the vehicle controller 1 determines that the final charge and discharge mode is a DC charging and external AC discharging mode;
[0171] The vehicle controller 1 controls the first relay 401 to close, keeps the second relay 402 closed, keeps the third relay 403 open, and requests the bidirectional vehicle charger 2 to operate in inversion mode through the CAN bus according to the final charging and discharging mode being DC charging and external AC discharging mode.
[0172] The DC charging and AC discharging mode is confirmed when the power battery controller 302 detects that the CC1 resistance value from the DC charging and discharging socket 8 is R1, detects that the external discharge socket 6 is connected to the AC charging and discharging socket 7, and detects that the CC2 resistance value from the AC charging and discharging socket 7 is R3.
[0173] Specifically, FIG10 is a flow chart of the vehicle charging and discharging system of the present application in the DC charging and external AC discharging mode. As shown in FIG10 , in S1, when the external charging and discharging mode sent by the power battery controller 302 is obtained as the DC charging and AC discharging mode, control is performed as follows:
[0174] Step S701: Insert the DC charging gun into the DC charging and discharging socket 8 in accordance with the national standard, and insert the external discharge socket 6 into the AC charging and discharging socket 7 in accordance with the national standard. The CC1 resistance value detected by the power battery controller 302 from the DC charging and discharging socket 8 is R1 in accordance with the national standard, and the power battery controller 302 detects the external discharge socket 6 access signal from the AC charging and discharging socket 7 and the CC2 resistance value detected from the AC charging and discharging socket 7. Thus, the power battery controller 302 identifies the external charging and discharging mode as DC charging and AC discharging mode, and sends it to the vehicle controller 1 through the CAN bus.
[0175] Step S702: The vehicle controller 1 obtains the external charge and discharge mode, which is DC charging and AC discharging, from the power battery controller 302 via the CAN bus. It also detects that the switch of the discharge socket 5 in the vehicle is in the off state. The vehicle controller 1 identifies the final charge and discharge mode as DC charging and external AC discharging.
[0176] Step S703: The vehicle controller 1 controls the first normally open switch of the first relay 401 to close, keeps the normally closed switch of the second relay 402 closed, keeps the second normally open switch of the third relay 403 open, and requests the bidirectional vehicle charger 2 to operate in the inverter mode through the CAN bus according to the final charging and discharging mode being DC charging and external AC discharging mode.
[0177] Step S704: The current passes through the DC charging and discharging socket 8 and charges the power battery pack 301 through the first relay 401 in the high-voltage electrical box; at the same time, after being inverted by the bidirectional on-board charger 2, it passes through the second relay 402 and the AC charging and discharging socket 7, and finally reaches the external discharge socket 6 to power the external induction cooker, electric oven, external lighting, etc.
[0178] In another specific embodiment, a controller is also provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor. The processor reads the program in the memory and executes the steps in the vehicle charging and discharging method described above.
[0179] In this embodiment, the controller is a vehicle controller 1. Specifically, the vehicle controller 1 performs the following steps of the vehicle charging and discharging method:
[0180] The vehicle controller 1 obtains the external charge and discharge mode sent by the power battery controller 302, wherein the external charge and discharge mode is determined by the power battery controller 302 from the operating parameters detected by the DC charge and discharge socket 8 and the AC charge and discharge socket 7, and sent to the vehicle controller 1 via the CAN bus;
[0181] The vehicle controller 1 determines the final charge and discharge mode according to the external charge and discharge mode and the detected signal from the in-vehicle discharge socket 5; wherein the final charge and discharge mode includes a DC charging mode only, an AC charging mode only, an AC external discharge mode only, an AC internal discharge mode only, an AC external-internal discharge mode, a DC charging and AC internal discharge mode, and a DC charging and external AC discharge mode;
[0182] The vehicle controller 1 sends control signals to the first relay 401, the second relay 402, and the third relay 403 according to the final charge and discharge mode, and requests different working modes from the bidirectional vehicle charger 2 through the CAN bus to work according to the instructions corresponding to the charge and discharge mode.
[0183] An embodiment of the present application also provides a computer program product, which can be executed by a processor. When the computer program product is executed, the above-mentioned vehicle charging and discharging method can be implemented.
[0184] The vehicle charging and discharging device, controller, computer-readable storage medium and computer program product of the embodiments of the present application can execute the technical solutions shown in the above-mentioned vehicle charging and discharging method embodiments. Their implementation principles and beneficial effects are similar and will not be repeated here.
[0185] All or part of the steps of the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a readable memory. When the program is executed, it performs the steps of the above-mentioned method embodiments; and the aforementioned memory (storage medium) includes: read-only memory (ROM), random access memory (RAM), flash memory, hard disk, solid-state drive, magnetic tape, floppy disk, optical disc, and any combination thereof.
[0186] The present application embodiment is described with reference to the flow chart and / or block diagram of the method, device (system) and computer program product according to the embodiment of the present application. It should be understood that each process and / or box in the flow chart and / or block diagram and the combination of the process and / or box in the flow chart and / or block diagram can be realized by computer execution instructions. These computer execution instructions can be provided to the processing unit of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processing unit of the computer or other programmable data processing device produce a device for realizing the function specified in one process or multiple processes and / or one box or multiple boxes of the flow chart.
[0187] These computer-executable instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0188] These computer-executable instructions may also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0189] Obviously, those skilled in the art may make various changes and modifications to the embodiments of the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the embodiments of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations.
Claims
1. A vehicle charging and discharging system, characterized in that: The system comprises: Power battery pack (301); A power battery controller (302), which is connected to the power battery pack (301); A bidirectional on-board charger (2), which is connected to the power battery pack (301); A DC charging and discharging socket (8) for connecting to a DC charging and discharging gun, which is connected to the power battery pack (301) via a first normally open switch of a first relay (401) and forms a DC charging circuit with the power battery pack (301); An AC charging and discharging socket (7) for connecting to an AC charging and discharging gun, which is connected to the bidirectional on-board charger (2) via a normally closed switch of a second relay (402), and forms an AC charging and discharging circuit with the bidirectional on-board charger (2) and a power battery pack (301); An in-vehicle discharge socket (5) for connecting to in-vehicle electrical equipment, which is connected to the bidirectional on-board charger (2) via a second normally open switch of a third relay (403), and forms an AC internal discharge circuit with the bidirectional on-board charger (2) and a power battery pack (301); A vehicle controller (1), wherein the vehicle controller (1) is respectively connected to the bidirectional on-board charger (2), the power battery controller (302), the first relay (401), the second relay (402), the third relay (403) and the in-vehicle discharge socket (5).
2. The vehicle charging and discharging system according to claim 1, characterized in that: It also comprises a charging cover switch (9), wherein the charging cover switch (9) is connected to the vehicle controller (1).
3. A vehicle charging and discharging method, applied to the vehicle charging and discharging system according to any one of claims 1 to 2, characterized in that: The methods described include the following: S1: obtaining an external charge and discharge mode sent by the power battery controller (302), wherein the external charge and discharge mode is determined by the power battery controller (302) from working parameters detected by the power battery controller (302) from a DC charge and discharge socket (8) and an AC charge and discharge socket (7); S2: determining a final charging and discharging mode according to the external charging and discharging mode and in combination with the detected signal of the in-vehicle discharge socket (5); S3: According to the final charge and discharge mode, the vehicle controller sends a control signal to the first relay (401), the second relay (402), and the third relay (403), and requests a different working mode from the bidirectional vehicle charger (2) so as to operate according to the instructions corresponding to the charge and discharge mode.
4. The vehicle charging and discharging method according to claim 3, characterized in that: In S1, when the external charging and discharging mode sent by the power battery controller (302) is a DC charging mode, control is performed in the following manner: S101: The power battery controller (302) identifies that the external charging and discharging mode is a DC charging mode, and sends the information to the vehicle controller (1) via the CAN bus; S102: the vehicle controller (1) obtains that the external charging and discharging mode sent by the power battery controller (302) is a DC charging mode, and at the same time detects that the switch of the discharge socket (5) in the vehicle is in an off state; then determines that the final charging and discharging mode is a DC charging mode only; S103: the vehicle controller (1) controls the first normally open switch of the first relay (401) to close according to the final charging and discharging mode being the DC charging mode only, and at the same time keeps the second normally open switch of the third relay (403) open, keeps the normally closed switch of the second relay (402) closed, and requests the bidirectional on-board charger (2) to be in standby mode through the CAN bus; S104: The current passes through the DC charging and discharging socket (8) and charges the power battery pack (301) via the first relay (401).
5. The vehicle charging and discharging method according to claim 3, characterized in that: In S1, when the external charging and discharging mode sent by the power battery controller (302) is a DC charging mode, control is performed in the following manner: S201: The power battery controller (302) identifies that the external charging and discharging mode is a DC charging mode, and sends the information to the vehicle controller (1) via the CAN bus; S202: The vehicle controller (1) obtains that the external charging and discharging mode sent by the power battery controller (302) is a DC charging mode, and at the same time detects that the switch of the discharge socket (5) in the vehicle is in the on state; then determines that the final charging and discharging mode is a DC charging and AC internal discharging mode; S203: the vehicle controller (1) controls the second normally open switch of the third relay (403) to close, controls the first normally open switch of the first relay (401) to close, keeps the normally closed switch of the second relay (402) closed, and requests the bidirectional on-board charger (2) to switch to an inversion working mode through the CAN bus according to the final charging and discharging mode being a direct current charging and alternating current internal discharge mode; S204: The current passes through the DC charging and discharging socket (8) and charges the power battery pack (301) through the first relay (401); at the same time, after being inverted by the bidirectional on-board charger (2), the current passes through the third relay (403) to the in-vehicle discharge socket (5) to supply power to the first electrical device.
6. The vehicle charging and discharging method according to any one of claims 4 or 5, characterized in that: The DC charging mode is confirmed when the CC1 resistance value detected by the power battery controller (302) from the DC charging and discharging socket (8) is R1, and the effective value of the CC2 resistance value and the effective value of the CP voltage value are not detected from the AC charging and discharging socket (7).
7. The vehicle charging and discharging method according to claim 3, characterized in that: In S1, when the external charge and discharge mode sent by the power battery controller (302) is obtained as a non-external charge and discharge mode, control is performed in the following manner: S301: The power battery controller (302) identifies that the external charging and discharging mode is a non-external charging and discharging mode, and sends the information to the vehicle controller (1) via the CAN bus; S302: the vehicle controller (1) obtains the external charge and discharge mode sent by the power battery controller (302) as a non-external charge and discharge mode, and at the same time detects that the switch of the discharge socket (5) in the vehicle is in the on state; then determines that the final charge and discharge mode is an AC internal discharge mode only; S303: the vehicle controller (1) controls the second normally open switch of the third relay (403) to be closed, keeps the first normally open switch of the first relay (401) open, keeps the normally closed switch of the second relay (402) closed, and requests the bidirectional on-board charger (2) to be in the inversion working mode through the CAN bus according to the final charging and discharging mode being the AC internal discharge mode only; S304: The current flows through the power battery pack (301), the bidirectional on-board charger (2), the third relay (403), and finally to the discharge socket (5) in the vehicle, thereby supplying power to the first electrical device.
8. The vehicle charging and discharging method according to claim 7, characterized in that: The non-external charge and discharge mode is confirmed when the power battery controller (302) does not detect the effective value of the CC1 resistance value from the DC charge and discharge socket (8), and does not detect the effective value of the CC2 resistance value and the effective value of the CP voltage value from the AC charge and discharge socket (7).
9. The vehicle charging and discharging method according to any one of claims 5 or 7, characterized in that: The state signal of the charging cover switch (9) is also detected. If the charging cover switch (9) is opened, the normally closed switch of the second relay (402) is controlled to be opened. If the charging cover switch (9) is closed, the normally closed switch of the second relay (402) is kept closed.
10. The vehicle charging and discharging method according to claim 3, characterized in that: In S1, when the external charging and discharging mode sent by the power battery controller (302) is the AC charging mode, control is performed in the following manner: S401: The power battery controller (302) identifies that the external charging and discharging mode is an AC charging mode, and sends the information to the vehicle controller (1) via the CAN bus; S402: the vehicle controller (1) obtains the external charging and discharging mode sent by the power battery controller (302) as an AC charging mode; and at the same time detects that the switch of the discharge socket (5) in the vehicle is in an off state, then determines and identifies the final charging and discharging mode as an AC charging mode only; S403: the vehicle controller (1) controls the first normally open switch of the first relay (401) to be disconnected according to the final charging and discharging mode being the AC charging mode only, and keeps the second normally open switch of the third relay (403) disconnected, keeps the normally closed switch of the second relay (402) closed, and requests the bidirectional on-board charger (2) to operate in the rectification mode through the CAN bus; S404: The current passes through the AC charging and discharging socket (7), and the DC power rectified by the second relay (402) and the bidirectional on-board charger (2) is used to charge the power battery pack (301).
11. The vehicle charging and discharging method according to claim 10, characterized in that: The AC charging mode is confirmed when the power battery controller (302) does not detect an effective value of the CC1 resistance value from the DC charging and discharging socket (8), and the CC2 resistance value detected from the AC charging and discharging socket (7) is R2 and the CP voltage value is U1.
12. The vehicle charging and discharging method according to claim 3, characterized in that: In S1, when the external charge and discharge mode sent by the power battery controller (302) is the AC discharge mode, control is performed in the following manner: S501: The power battery controller (302) identifies that the external charging and discharging mode is an AC discharge mode, and sends the information to the vehicle controller (1) via the CAN bus; S502: the vehicle controller obtains that the external charging and discharging mode sent by the power battery controller (302) is an AC discharging mode, and at the same time detects that the switch of the discharge socket (5) in the vehicle is in an off state; then determines that the final charging and discharging mode is an AC external discharging mode only; S503: the vehicle controller controls the first normally open switch of the first relay (401) and the second normally open switch of the third relay (403) to be disconnected according to the final charging and discharging mode being the AC external discharge mode only, keeps the normally closed switch of the second relay (402) normally closed, and requests the bidirectional on-board charger (2) to be in the inversion working mode through the CAN bus; S504: The current flows through the power battery pack (301) through the bidirectional on-board charger (2), then through the second relay (402), the AC charging and discharging socket (7), and finally to the off-board discharge socket (6) externally connected to the AC charging and discharging socket (7), thereby supplying power to the second electrical device.
13. The vehicle charging and discharging method according to claim 12, characterized in that: The AC discharge mode is confirmed when the power battery controller (302) does not detect the effective value of the CC1 resistance value from the DC charge and discharge socket (8), detects the access signal of the external discharge socket (6) from the AC charge and discharge socket (7), and the CC2 resistance value detected from the AC charge and discharge socket (7) is R3.
14. The vehicle charging and discharging method according to claim 3, characterized in that: In S1, when the external charge and discharge mode sent by the power battery controller (302) is an external AC discharge mode, control is performed in the following manner: S601: The power battery controller (302) identifies that the external charging and discharging mode is an external AC discharging mode, and sends the information to the vehicle controller (1) via the CAN bus; S602: the vehicle controller obtains that the external charging and discharging mode sent by the power battery controller (302) is an external AC discharging mode, and at the same time detects that the switch of the discharge socket (5) in the vehicle is in the on state; then determines that the final charging and discharging mode is an AC external and internal discharging mode; S603: the vehicle controller controls the second normally open switch of the third relay (403) to be closed, keeps the normally closed switch of the second relay (402) closed, and keeps the first normally open switch of the first relay (401) open according to the final charging and discharging mode being the AC external and internal discharge mode; and requests the bidirectional on-board charger (2) to be in an inversion working mode through the CAN bus; S604: The current passes through the power battery pack (301) to the bidirectional on-board charger (2), and is divided into two paths, respectively passing through the third relay (403) to the in-vehicle discharge socket (5) to supply power to the first electrical device, and passing through the second relay (402) to the AC charge and discharge socket (7), and finally to the out-vehicle discharge socket (6) externally connected to the AC charge and discharge socket (7) to supply power to the second electrical device.
15. The vehicle charging and discharging method according to claim 14, characterized in that: The external AC discharge mode is confirmed when the power battery controller (302) detects a signal connected to the vehicle external discharge socket (6) from the AC charge and discharge socket (7) and the CC2 resistance value detected from the AC charge and discharge socket (7) is R3.
16. The vehicle charging and discharging method according to claim 3, characterized in that: In S1, when the external charging and discharging mode sent by the power battery controller (302) is a DC charging and AC discharging mode, control is performed in the following manner: S701: The power battery controller (302) identifies that the external charging and discharging mode is a DC charging and AC discharging mode, and sends the information to the vehicle controller (1) via the CAN bus; S702: The vehicle controller (1) obtains the external charging and discharging mode sent by the power battery controller (302) as a DC charging and AC discharging mode, and at the same time detects that the discharge socket (5) in the vehicle is turned on. The switch is in the off state; then the final charge and discharge mode is determined to be a DC charging and external AC discharging mode; S703: The vehicle controller (1) controls the first normally open switch of the first relay (401) to close, keeps the normally closed switch of the second relay (402) closed, keeps the second normally open switch of the third relay (403) open, and requests the bidirectional on-board charger (2) to switch to an inversion working mode through the CAN bus according to the final charging and discharging mode being a direct current charging and external alternating current discharging mode; S704: The current passes through the DC charging and discharging socket (8) and charges the power battery pack (301) through the first relay (401); at the same time, after being inverted by the bidirectional on-board charger (2), the current passes through the second relay (402), the AC charging and discharging socket (7), and finally reaches the off-board discharge socket (6) externally connected to the AC charging and discharging socket (7) to supply power to the second electrical device.
17. The vehicle charging and discharging method according to claim 16, characterized in that: The DC charging and AC discharging mode is confirmed when the CC1 resistance value detected by the power battery controller (302) from the DC charging and discharging socket (8) is R1, and the external vehicle discharge socket (6) access signal is detected from the AC charging and discharging socket (7) and the CC2 resistance value detected from the AC charging and discharging socket (7) is R3.
18. A controller comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: The processor reads the program in the memory and executes the steps in the vehicle charging and discharging method according to any one of claims 3 to 17.
19. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the steps in the vehicle charging and discharging method according to any one of claims 3 to 17.
20. A computer program product, characterized in that The method comprises a computer program, which, when executed by a processor, implements the steps in the vehicle charging and discharging method according to any one of claims 3 to 17.
Citation Information
Patent Citations
Electric automobile and power system capable of being switched between charge-discharge function and drive function
CN103182948A
Control method and device for car charging and discharging and car
CN107264309A
Vehicle-mounted charging and power supply system
CN107539146A
Charging and discharging control method and electric vehicle
CN108258761A
Charging and discharging method and system, controller and electric vehicle
CN110614930A
Cited By
Discharge control method, device, system and equipment and vehicle
CN119858464A
