A charging and discharging integrated gun logic control circuit and a charging and discharging integrated gun

By designing an integrated charging and discharging gun logic control circuit, integrated control of charging and discharging is achieved, solving the problems of inconvenience and safety hazards in separate charging guns, and improving safety and ease of use.

CN115693855BActive Publication Date: 2026-07-21ZHUHE (XIAMEN) NEW ENERGY TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
ZHUHE (XIAMEN) NEW ENERGY TECH CO LTD
Filing Date
2022-11-02
Publication Date
2026-07-21

AI Technical Summary

Technical Problem

The existing charging gun and discharging gun are separate units, which are inconvenient to use and pose safety hazards. How can we improve the safety of their use and control?

Method used

Design a charging and discharging integrated gun logic control circuit, including a charging AC-DC module, a discharging AC-DC module, a DC power supply module, an MCU module, a contactor, a charging and discharging identification module, a CP signal generation and detection module, and a CC control module. By identifying the charging and discharging mode and switching the CC resistor, integrated charging and discharging control is achieved.

Benefits of technology

It achieves integrated charging and discharging, simplifies circuit wiring, improves safety, and supports a three-in-one function of charging, V2L discharging, and V2V discharging, enhancing ease of use and safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115693855B_ABST
    Figure CN115693855B_ABST
Patent Text Reader

Abstract

The application discloses a charging and discharging integrated gun logic control circuit, which comprises a charging AC-DC module, a discharging AC-DC module, a DC power supply module, an MCU module, a contactor, a charging and discharging identification module, a CP signal generation and detection module and a CC control module; one end of the charging AC-DC module is connected with a mains end, and the other end is connected with the DC power supply module; one end of the discharging AC-DC module is connected with a first vehicle end, and the other end is connected with the DC power supply module; the DC power supply module is connected with the MCU module; the charging and discharging identification module is used for identifying a charging mode and a discharging mode and transmitting signals to the MCU module; the CC control module comprises a control switch; when the control switch is connected with a CC1 end, a CC1 resistor is connected, and the charging and discharging integrated gun is controlled to enter a charging state; when the control switch is connected with a CC2 end, a CC2 resistor is connected, and the charging and discharging integrated gun is controlled to enter a discharging state. The application further discloses a charging and discharging integrated gun provided with the circuit; the circuit realizes safe charging and discharging control and is integrated, and is more convenient and fast.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of charging and discharging technology for new energy vehicles, specifically to a logic control circuit for an integrated charging and discharging gun, and an integrated charging and discharging gun using this circuit. Background Technology

[0002] The charging gun serves as the medium for connecting and transmitting current between the charging station and the new energy vehicle. Existing charging guns generally only have a charging function; the front end is the charging plug that connects to the car or charging station. The discharge gun is used for discharging and can be used in situations such as hiking and camping. By plugging the discharge gun into the car, it discharges power to outdoor electrical appliances. Existing charging and discharge guns are generally separate units, making them inconvenient to use and carry.

[0003] Patent CN113844293A discloses an integrated charging and discharging gun, and patent CN113022341A discloses a charging and discharging integrated gun and its control method. They studied how to integrate the two functions of charging and discharging into one. However, the existing control circuit has safety hazards during discharge. How to improve the safety of use and control is an urgent technical challenge to be solved. Summary of the Invention

[0004] The purpose of this invention is to provide a logic control circuit for an integrated charging and discharging gun, thereby controlling the charging and discharging of the gun and improving safety. To achieve the above objective, this invention adopts the following technical solution:

[0005] This invention discloses a charging and discharging integrated gun logic control circuit, connected between the mains power end and the first vehicle end, including a charging AC-DC module, a discharging AC-DC module, a DC power supply module, an MCU module, a contactor, a charging and discharging identification module, a CP signal generation and detection module, and a CC control module.

[0006] The mains power terminal includes L terminal, N terminal and PE terminal, and the first vehicle terminal includes Lout terminal, Nout terminal, CP1 terminal, PE terminal and CC terminal; the CC terminal includes at least CC1 terminal and CC2 terminal.

[0007] The charging AC-DC module is connected to the mains power supply at one end and to the DC power supply module at the other end. The discharging AC-DC module is connected to the first vehicle at one end and to the DC power supply module at the other end. The DC power supply module is connected to the MCU module to supply power to the MCU module. The contactor is connected to the MCU module and is used to control the connection and disconnection between the mains power supply and the first vehicle. The charging and discharging identification module is used to identify the charging mode and discharging mode and transmit the signal to the MCU module.

[0008] The CP signal generation and detection module is connected to the MCU module at one end and to the CP1 terminal at the other end, and is used to collect and detect the CP signal at the vehicle end. The CC control module is connected to the MCU module at one end and to the CC terminal at the other end. The CC control module includes a control switch. When the control switch is turned on at the CC1 terminal, the CC1 resistor is connected, and the charging and discharging gun is controlled to enter the charging state. When the control switch is turned on at the CC2 terminal, the CC2 resistor is connected, and the charging and discharging gun is controlled to enter the discharging state and supply power to the outside.

[0009] Furthermore, the charging AC-DC module includes a charging EMC circuit and a rectifier bridge DB1 connected thereto; the discharging AC-DC module includes a discharging EMC circuit and a rectifier bridge DB2 connected thereto; the DC power supply module includes a step-down circuit, an isolation transformer T1, and a voltage regulator circuit; the output terminals of the rectifier bridges DB1 and DB2 are both connected to the DC power supply module.

[0010] Preferably, the system further includes a current detection circuit, a voltage detection circuit, an integrated chip, an optocoupler assembly, and a chip power supply module. The current detection circuit includes a sampling resistor connected in series in the circuit. One end of the sampling resistor is connected to the IP terminal of the integrated chip, and the other end is connected to the IN terminal of the integrated chip. The voltage detection circuit includes a pull-up resistor and a pull-down resistor. One end of the pull-up resistor is connected to the L terminal, and the other end is connected to the VP terminal of the integrated chip. One end of the pull-down resistor is connected to the VP terminal of the integrated chip, and the other end is connected to the GND terminal of the integrated chip. The chip power supply module supplies power to the integrated chip through its VDD terminal. The current and voltage detection circuits output the detected current and voltage through the serial communication terminal of the integrated chip. The output signals are isolated by the optocoupler assembly and then output to the MCU module.

[0011] Furthermore, it also includes a charge / discharge mode confirmation module, which is connected to the Lout and Nout terminals to detect the output voltage value and perform contactor fault detection.

[0012] Furthermore, it also includes a CP switching module. The charge / discharge identification module is used to identify discharge modes including V2L discharge mode and V2V discharge mode. In V2V discharge mode, the first vehicle discharges to the second vehicle, and the second vehicle includes a CP2 terminal. When the charge / discharge identification module identifies the discharge mode as V2V, it transmits a signal to the MCU module. The MCU module controls the CP switching module to switch from the CP1 terminal to the CP2 terminal. The CC control module connects to the CC1 terminal, controlling the integrated charge / discharge gun to enter the V2V discharge state to achieve discharge to the second vehicle.

[0013] Preferably, the CP switching module includes a relay K4 and a diode D4A. The mains terminal of the relay K4 is connected to the CP signal generation and detection module, the normally closed port of the relay K4 is connected to the CP1 terminal, and the normally open port is connected to the CP2 terminal; the diode D4A is connected in parallel with the relay K4.

[0014] The CC control module includes a control switch S, a first circuit, and a second circuit, which are connected in parallel. The first circuit has a resistor CC2, and the second circuit has a resistor CC1. The control switch S is normally closed and connected to the first circuit.

[0015] Preferably, the first circuit includes a resistor RC' and a series resistor R4', with a switch S3' connected in parallel to resistor R4'; the second circuit includes a resistor RC and a series resistor R4, with a switch S3 connected in parallel to resistor R4. When the control switch S is connected to the first circuit and switch S3' is closed, the circuit enters a discharging state; when the control switch S is connected to the second circuit and switch S3 is closed, the circuit enters a charging state. If either switch S3' or switch S3 is not closed, the circuit does not enter a discharging or charging state. By setting parallel switches S3' and S3 (installed on the charging / discharging gun), the charging / discharging mode is only entered when the parallel switches are closed (by manually pressing the parallel switches on the charging / discharging gun). When the switches are not closed, the charging / discharging mode is not entered. This dual confirmation further enhances safety.

[0016] Preferably, the control switch of the CC control module is a double-pole double-throw relay with 8 pins. The CC1 resistors include RC01 and RC02, and the discharge mode resistors include RC03 and RC04. Pin 1 is connected to the VCC terminal, and pin 8 is connected to the MCU module. Pins 2 and 7 are normally closed contacts; one end of pin 2 is connected to RC03 and RC04 to ground, and pin 7 is connected between RC03 and RC04. Pins 4 and 5 are normally open contacts; one end of pin 4 is connected to RC01 and RC02 to ground, and pin 5 is connected between RC01 and RC02. Pins 3 and 6 are common terminals, connected to the CC terminal and the push-button switch S2 on the charge / discharge gun, respectively. Using a double-pole double-throw relay, because it is bipolar, allows for seamless simultaneous control of two circuits, and wiring is convenient.

[0017] In another embodiment, the CC control module includes a control switch S, a first circuit, and a second circuit, which are connected in parallel. The first circuit has a resistor RC' and a series resistor R4', with a switch S3' connected in parallel across resistor R4'. The second circuit has a resistor RC and a resistor R4, with a switch S3 connected in parallel across resistor R4. When the control switch S is connected to the first circuit and switch S3' is closed, the circuit enters a discharging state. When the control switch S is connected to the second circuit and switch S3 is closed, the circuit enters a charging state. If switch S3' or switch S3 is not closed, the circuit does not enter a discharging or charging state.

[0018] The charge / discharge identification module includes at least one set of pins connected in series with an electronic component or circuit capable of changing physical characteristics and then connected to the MCU module; wherein the electronic component or circuit capable of changing physical characteristics is an electronic component or circuit capable of changing resistance, voltage or current.

[0019] Preferably, it also includes an onboard lightning protection device, an onboard RCD device, a network communication module connected to the MCU module, and several detection modules; the onboard lightning protection device is connected to the mains power terminal, the onboard RCD device is connected to the first vehicle terminal, and the detection modules are one or more of a leakage current detection module, a short circuit detection module, and a grounding detection module.

[0020] The present invention also discloses a charging and discharging gun, including a gun head body and a first connector and a second connector detachably connected to the gun head body. The gun head body is provided with the above-mentioned charging and discharging gun logic control circuit. The first connector is plugged into the mains power terminal to charge the first vehicle connected to the gun head body. The second connector is plugged into the discharge terminal to realize the first vehicle discharging to the discharge terminal.

[0021] The first connector and the second connector are each provided with four pins, namely L pin, N pin, PE pin and charge / discharge identification signal pin, which are connected to the charge / discharge identification module.

[0022] Preferably, it also includes a third connector detachably connected to the gun head body, the third connector being used to connect to the second vehicle to enable the first vehicle to discharge to the second vehicle.

[0023] Furthermore, the first connector, the second connector, and the third connector are each provided with five pins, namely the L pin, the N pin, the PE pin, the charge / discharge identification signal pin, and the CP communication pin. The charge / discharge identification signal pin is connected to the charge / discharge identification module; the CP communication pin on the third connector is connected to the CP2 terminal on the second vehicle.

[0024] After adopting the above technical solution, the present invention has the following effects:

[0025] 1. The circuit of this invention enables the vehicle to receive or discharge 220V voltage. Through the charging and discharging identification module, it enables the MCU module to enter the corresponding mode. At the same time, it is controlled by the CC control module. By switching different CC resistors, the vehicle enters the corresponding charging mode or discharging mode, realizing integrated charging and discharging, which is more convenient and faster.

[0026] 2. The circuit of this invention includes a charging AC-DC module and a discharging AC-DC module to supply power to the MCU module in different states, thereby realizing the charging or discharging function. The charging AC-DC module and the discharging AC-DC module share the same DC power supply module, making the circuit wiring simpler.

[0027] 3. By setting a charging / discharging mode confirmation module, which is connected to the Lout and Nout terminals, the output voltage value is detected and the contactor fault is detected. When the charging / discharging identification module recognizes the discharging mode, the charging / discharging mode confirmation module and the voltage detection module jointly confirm that it is the discharging mode before discharging begins. Discharging is only started after comprehensive confirmation, which improves the safety of discharging.

[0028] 4. By introducing a CP switching module, the circuit of this invention can realize three-in-one control of charging, V2L discharging, and V2V discharging, making the charging and discharging gun integrate the functions of three modes at the same time, which is more convenient to use.

[0029] 5. This invention enables the CC control module to default to the discharge mode. When the discharge terminal is connected, the circuit can supply power to the MCU module. After waking up the MCU module, the charge and discharge identification module identifies the charge and discharge mode. The same set of contactors can be used for charging and discharging, and the corresponding mode can be entered at the same time, realizing automatic switching between the required CC terminal and CP terminal. Attached Figure Description

[0030] Figure 1 This is a connection diagram of the present invention.

[0031] Figure 2 This is a schematic diagram of the framework of the present invention.

[0032] Figure 3 This is a circuit diagram of the mains power terminal, the charging EMC circuit, and the grounding detection module.

[0033] Figure 4 The circuit diagram showing the connection between the charging AC-DC module and the discharging AC-DC module and the DC power supply module.

[0034] Figure 5 The circuit diagram is for the charge / discharge identification module and the board temperature detection module.

[0035] Figure 6This is a circuit diagram of one implementation of the CC control module.

[0036] Figure 7 This is a circuit diagram of another implementation of the CC control module.

[0037] Figure 8 This is the circuit diagram for the contactor.

[0038] Figure 9 Circuit diagram for the charge / discharge mode confirmation module.

[0039] Figure 10 This is the circuit diagram for the current detection module and the voltage detection module.

[0040] Figure 11 This is the circuit diagram for the CP switching module.

[0041] Figure 12 This is a schematic diagram of the charging and discharging integrated gun of the present invention.

[0042] Figure 13 This is a schematic diagram of the connection between the common connector and the charge / discharge identification terminal in Example 1.

[0043] Figure 14 This is a schematic diagram showing the connection between the charging adapter and the mains power supply in Example 1.

[0044] Figure 15 This is a schematic diagram showing the connection between the V2L discharge converter and the discharge socket in Example 1.

[0045] Figure 16 This is a schematic diagram of the connection between the common connector and the charge / discharge identification terminal in Embodiment 2.

[0046] Figure 17 This is a schematic diagram showing the connection between the charging adapter and the mains power supply in Example 2.

[0047] Figure 18 This is a schematic diagram showing the connection between the V2L discharge converter and the discharge socket in Example 2.

[0048] Figure 19 This is a schematic diagram showing the connection between the V2V discharge converter and the second vehicle gun head in Example 2.

[0049] Main component symbols:

[0050] 1: Mains power terminal; 2: Charging AC-DC module; 21: Charging EMC circuit; 3: Discharging AC-DC module; 31: Discharging EMC circuit; 4: MCU module; 5: DC power supply module; 6: Contactor; 7: Charge / discharge identification module; 71: Charge / discharge identification terminal; 8: CC control module; 9: Charge / discharge mode confirmation module; 10: First vehicle terminal; 111: Current detection module; 112: Voltage detection module; 113: Chip power supply module; 114: Filter circuit; 12: Leakage detection module; 13: Short circuit detection module; 14: Grounding detection module; 15: CP signal generation and detection module; 16: Indicator light module; 17: Board temperature detection module; 18: Network communication module; 20: CP switching module; 30: Gun head body; 40: Common connector; 50: Charging converter; 60: V2L discharge converter; 70: V2V discharge converter; 80: Second vehicle gun head. Detailed Implementation

[0051] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments.

[0052] Example 1

[0053] This embodiment discloses a charge-discharge integrated gun and its logic control circuit, which is a two-in-one control circuit for charging and V2L discharging.

[0054] like Figure 12 As shown, the charging / discharging gun of this embodiment includes a gun head body 30 and a first connector and a second connector detachably connected to the gun head body 30. The first connector includes a common connector 40 and a charging adapter 50, and the second connector includes a common connector 40 and a V2L discharge adapter 60. When the common connector 40 is a female terminal, both the charging adapter 50 and the V2L discharge adapter 60 are male terminals, enabling docking with the female terminal; or when the common connector 40 is a male terminal, both the charging adapter 50 and the V2L discharge adapter 60 are female terminals, enabling docking with the male terminal. The common connector 40 is connected to the gun head body 30. The charging / discharging gun logic control circuit of the present invention is provided inside the gun head body 30. The charging adapter 50 is connected to the mains power terminal 1. When the common connector 40 and the charging adapter 50 are plugged in, the mains power terminal 1 charges the first vehicle connected to the gun head body 30. The V2L discharge converter 60 is connected to the discharge end. When the common connector 40 is plugged into the discharge end, the first vehicle can discharge to the discharge end.

[0055] The AC power terminal 1 is typically a 220V three-prong plug, connected to AC power. AC power terminal 1 includes the L (live) terminal, N (neutral) terminal, and PE (ground) terminal. The first vehicle terminal 10 connects to the main body of the charging / discharging gun and includes the Lout terminal, Nout terminal, CP1 terminal (signal terminal for vehicle communication), PE terminal, and CC terminal (charging / discharging control terminal). The discharging terminal can be a discharging socket or a connection terminal for a specific electrical appliance.

[0056] like Figures 13-15 As shown, both the first and second connectors have four pins: an L pin (pin 1 in the diagram), an N pin (pin 2 in the diagram), a PE pin (pin 3 in the diagram), and a charge / discharge identification signal pin (pin 4 in the diagram). The charge / discharge identification signal pin of the common connector 40 is connected to the charge / discharge identification terminal 71 of the charge / discharge identification module 7. The four pins of the charging converter 50 and the V2L discharge converter 60 are connected to resistors of different resistance values ​​for identification by the charge / discharge identification terminal 71.

[0057] like Figure 1 , Figure 2 As shown, the present invention discloses a charging and discharging integrated gun logic control circuit, including a charging AC-DC module 2, a discharging AC-DC module 3, a DC power supply module 5, an MCU module 4, a contactor 6, a charging and discharging identification module 7, a CC control module 8, and a charging and discharging mode confirmation module 9.

[0058] like Figure 3 , Figure 4 As shown, one end of the charging AC-DC module 2 is connected to the mains power supply, and the other end is connected to the DC power supply module 5. One end of the discharging AC-DC module 3 is connected to the first vehicle terminal, and the other end is connected to the DC power supply module 5. The DC power supply module 5 is connected to the MCU module 4 to supply power to the MCU module 4. By using this connection circuit, the DC power supply module 5 for both charging and discharging can be shared, simplifying the circuit structure.

[0059] The charging AC-DC module 2 includes a charging EMC circuit 21 and a rectifier bridge DB1 connected thereto. The discharging AC-DC module 3 includes a discharging EMC circuit 31 and a rectifier bridge DB2 connected thereto. The DC power supply module 5 includes a Buck step-down circuit, an isolation transformer T1, and a voltage regulator circuit. The output terminals of rectifier bridges DB1 and DB2 are both connected to the DC power supply module 5.

[0060] MCU module 4 is a single-chip microcomputer U3. The single-chip microcomputer U3 is connected to the indicator light module 16 (G, R, B) to display indicator lights of different states.

[0061] like Figure 5As shown, the charge / discharge identification module 7 is used to identify the charging mode and the discharging mode, and transmits the signal to the MCU module 4. The charge / discharge identification module 7 includes at least one set of pins connected in series with an electronic component or circuit that can realize changes in physical characteristics and then connected to the MCU module; wherein the electronic component or circuit that can realize changes in physical characteristics is an electronic component or circuit that can realize changes in resistance, voltage or current.

[0062] In this embodiment, the charge / discharge identification module 7 includes a charge / discharge identification terminal 71 with two sets of pins. One set of pins is connected in series with an electronic component or circuit that can realize changes in physical characteristics and then connected to the MCU module. The other set of pins is grounded.

[0063] In this embodiment, the electronic components or circuits that can achieve changes in physical characteristics are ordinary resistors or NTC resistors with different resistance values. The MCU module identifies different resistance values ​​to enter different modes. For example... Figure 5 In the middle, pin 1 is connected to MCU module 4, and pin 2 is grounded.

[0064] The charging and discharging identification module 7 is connected to the board temperature detection module 17 at both ends. The board temperature detection module 17 includes a thermistor RT1, a resistor R44, a resistor R38, and a capacitor C44A. Thermistor RT1 is connected to the VDD terminal as a pull-up resistor, and resistor R44 is connected to ground as a pull-down resistor. One end of resistor R38 is connected between thermistor RT1 and resistor R44, and the other end is connected to the MCU module. Capacitor C44A is connected in parallel across R44.

[0065] Combination Figure 1 As shown, the CC control module 8 is connected to the MCU module at one end and to the CC terminal at the other end. The charging and discharging control principle of this invention is as follows: when the CC control module 8 is connected to the CC1 terminal, the charging mode resistor CC1 is connected, controlling the charging and discharging gun to enter the charging state; when the control switch is connected to the CC2 terminal, the discharging mode resistor CC2 is connected, controlling the charging and discharging gun to enter the discharging state and supply power to the outside.

[0066] To achieve the effect of charge and discharge control, various implementation circuits can be used, such as Figure 6 and Figure 7 There are two implementation circuit forms.

[0067] like Figure 6As shown, this is a simplified implementation. The CC control module includes a control switch S, a first circuit, and a second circuit, which are connected in parallel. A resistor CC2 is installed on the first circuit, consisting of resistors RC' and R4' connected in series. A resistor CC1 is installed on the second circuit, also consisting of resistors RC and R4 connected in series. The control switch S is normally closed and connected to the first circuit. To improve safety, a switch S3' and a switch S3 can be connected in parallel across resistor R4' and R4, respectively. When the control switch S is connected to the first circuit and switch S3' is closed (indicating a normal charging gun connection), the system enters the V2L discharge state. When the control switch S is connected to the second circuit and switch S3 is closed (indicating a normal charging gun connection), the system enters the charging state. If switch S3' or switch S3 is not closed, it indicates a faulty charging gun connection, and the CC module will not enter either the discharge or charging state.

[0068] like Figure 7 As shown, the control switch of the CC control module 8 is a double-pole double-throw relay K3 with 8 pins. The charging mode resistor CC1 includes RC01 and RC02, and the discharging mode resistor includes RC03 and RC04.

[0069] Pin 1 connects to the VCC terminal, and pin 8 connects to the MCU module. Pins 2 and 7 are normally closed contacts; one end of pin 2 connects to RC03 and RC04 to ground, and pin 7 connects between RC03 and RC04. Pins 4 and 5 are normally open contacts; one end of pin 4 connects to RC01 and RC02 to ground, and pin 5 connects between RC01 and RC02. Pins 3 and 6 are common terminals, connected to the CC terminal and the push-button switch S2 on the charge / discharge gun, respectively. During discharge, pins 2 and 7 are closed. During charging, pins 4 and 5 are closed. A double-pole double-throw relay is used for more convenient control.

[0070] In this embodiment, the resistance value of the CC resistor is shown in Table 1 below. The charging levels include a 10A charging level and a 16A charging level. When the charging and discharging identification module 71 identifies the resistance as 10K±20%, it enters the 10A charging level. When the resistance value is 27K±20%, it enters the 16A charging level. The discharging level is 16A, and the resistance value in the discharging mode is 3.3K±20%.

[0071] Table 1

[0072]

[0073] In the initial state, the charging and discharging gun is not powered on and is in discharge mode by default, waiting to receive the discharge signal from the vehicle.

[0074] When the power is turned on, the AC power terminal (three-prong plug) is detected, and the charging mode is entered. The CC2 resistor is switched to the CC1 resistor, and the charging and discharging identification module resistor is detected simultaneously. When the resistance value is 10K±20%, the charging 8A level is entered, and when the resistance value is 27K±20%, the charging 16A level is entered. If a resistance level other than 8A or 16A is detected, a red alarm for "wiring abnormality" will be triggered.

[0075] When power is applied and the first terminal (gun head) receives power, the device enters discharge mode and simultaneously identifies the resistance of the trigger pin. When the resistance value is 3.3K±20%, the relay closes, initiating discharge. When the resistance value is between 10K±20% and 27K±20%, a red alarm for "wiring abnormality" is triggered, prohibiting discharge. If the resistance value is not as described above, the product enters a discharge waiting state, and the relay remains closed. If power is detected from the mains terminal during this waiting state, the device automatically exits discharge mode and enters charging mode.

[0076] Contactor 6 is a component used to automatically connect or disconnect current circuits. The contact system of contactor 6 can be driven by electromagnets, compressed air, or liquid pressure, or it can be implemented using silicon controlled rectifiers (SCRs). Figure 8 As shown, contactor 6 is connected to MCU module 4 and is used to control the connection and disconnection between the mains power terminal and the first vehicle terminal. Combined with... Figure 11 As shown, contactor 6 includes relays K1 and K2, diodes D1 and D2. The positive terminals of the primary coils of relays K1 and K2 are powered by the power supply module, and the negative terminals of the primary coils are connected to the controller output pins. One end of the secondary coil of relay K1 is connected to the live wire L, and the other end is connected to the Lout terminal. One end of the secondary coil of relay K2 is connected to the neutral wire N, and the other end is connected to the Nout terminal. Diode D1 is connected in parallel with the primary coil of relay K1, and diode D2 is connected in parallel with the primary coil of relay K2. Diodes D1 and D2 prevent the relays from being damaged by reverse voltage spikes from the microcontroller, thus protecting the relays.

[0077] like Figure 9 As shown, the charge / discharge mode confirmation module 9 is connected to the Lout and Nout terminals to detect the output voltage value and perform fault detection on the contactor 6. The charge / discharge mode confirmation module 9 can detect whether there is high voltage at the first vehicle end, and further communicate with the MCU module to confirm whether the current mode is charging or discharging.

[0078] like Figure 10As shown, the circuit of this invention does not require a current transformer and a voltage transformer, but uses the following circuit to achieve current detection and voltage detection: current detection module 111, voltage detection module 112, integrated chip U1, optocoupler assembly and chip power supply module 113. The current detection module 111 includes a sampling resistor R1 connected in series in the circuit. One end of the sampling resistor R1 is connected to the IP terminal of the integrated chip U1, and the other end is connected to the IN terminal of the integrated chip U1.

[0079] The voltage detection module 112 includes pull-up resistors (R2, R3) and pull-down resistors R4. One end of the pull-up resistors (R2, R3) is connected to the live wire L terminal, and the other end is connected to the VP terminal of the integrated chip U1. One end of the pull-down resistor R4 is connected to the VP terminal of the integrated chip U1, and the other end is connected to the GND terminal of the integrated chip U1.

[0080] The optocoupler assembly includes optocouplers U12-U14. The serial communication ports of integrated chip U1 include a TX (transmitter) and an RX (receiver) pin. MCU module 4 has a TX pin (transmitter pin, TX-8) and an RX pin (receiver pin, RX-9). The TX pin couples the signal to the RX pin (RX-9) via optocoupler U12, meaning the integrated chip's signal is isolated by optocoupler U12 and then coupled to the microcontroller. The TX pin of MCU module 4 couples the signal (TX-8) to the RX pin via optocoupler U13, meaning the microcontroller's signal is isolated by optocoupler U13 and then coupled to integrated chip U1, enabling MCU module 4 to initialize integrated chip U1. This establishes the communication connection between integrated chip U1 and MCU module 4. Optocoupler U14 can independently output voltage and current related signals such as current, zero-crossing, overload, and short-circuit signals, enabling fast interrupt output.

[0081] The chip power supply module 113 supplies power to the integrated chip U1 through the VDD terminal of the integrated chip U1. The chip power supply module 113 includes a rectifier circuit, a step-down chip UA, and a filter circuit 114. The L terminal is connected to the rectifier circuit, and the rectifier circuit is connected to the step-down chip UA. The potential ground is provided by the neutral line N. The step-down chip UA reduces the 220V voltage to the standard voltage and supplies it to the integrated chip U1 after passing through the filter circuit 114.

[0082] In addition, the control circuit of this invention also includes an onboard surge protection device connected to the mains terminal 1, and an onboard RCD device connected to the first vehicle terminal 10. The onboard surge protection device mainly protects against surges, eliminates dangerous potential differences, and reduces electromagnetic fields. The onboard RCD device is a leakage current protection device that turns on the load and turns off the current under normal operating conditions; when the residual current in the circuit reaches its specified value under specified conditions, it will cause the contacts to actuate and disconnect the main circuit, thus providing protection.

[0083] The control circuit of the present invention also includes several detection modules that are connected to the MCU module 4 via signals. The detection modules are several of the following: leakage current detection module 12, short circuit detection module 13, and grounding detection module 14.

[0084] The leakage current detection module 12 is used to detect the magnitude of leakage current in the circuit. The short circuit detection module 13 is used to detect whether a short circuit has occurred in the circuit. The grounding detection module 14 is used to detect the grounding status of the power supply when the charging / discharging gun is plugged into the power supply, in order to improve safety. The grounding detection module 14 can adopt the circuit structure disclosed in CN213689887U. The CP signal generation and detection module 15 is used to detect the CP signal, making the generation of the PWM rectangular wave voltage required for the CP signal more stable and reliable. The CP signal generation and detection module 15 is used to detect the CP signal, making the generation of the PWM rectangular wave voltage required for the CP signal more stable and reliable, and can adopt the circuit structure disclosed in CN214138295U. Before the charging / discharging gun starts charging, the above-mentioned detection modules, as well as the voltage detection module and current detection module, detect and monitor abnormal conditions such as overvoltage, undervoltage, overcurrent, undercurrent, and leakage current, to achieve safe and intelligent control.

[0085] MUC module 4 is also connected to network communication module 18, which can be a Bluetooth communication module or a Wi-Fi communication module to enable communication with mobile devices (such as mobile phones).

[0086] The control circuit process of this invention is as follows: When the charging / discharging identification module 7, voltage detection module 112, and charging / discharging mode confirmation module 9 collectively detect an incoming power supply from the mains terminal, the charging AC-DC module 2 performs EMC filtering and rectification, and then supplies power to the MCU module 4 through the DC power supply module, thus entering the charging mode. The CC control module 8 is switched to the CC1 resistor position, and by identifying different resistance values, it enters either the 10A charging level or the 16A charging level. If the charging / discharging identification module 7, voltage detection module 112, and charging / discharging mode confirmation module 9 collectively detect an incoming power supply from the first vehicle terminal, that is, after the discharging AC-DC module performs EMC filtering and rectification of the incoming power from the first vehicle terminal, it supplies power to the MCU module 4 through the DC power supply module, then it enters the discharging mode. The CC control module 8 is switched to the CC2 resistor position, and by identifying the resistance value, it enters the 16A discharging level. The MCU module 4 sends a signal to the contactor 6, and at the same time, the charging / discharging mode confirmation module 9 performs relay fault detection. After confirming that there is no abnormality, the contactor 6 closes, and the discharging mode begins.

[0087] Example 2

[0088] This embodiment discloses a charging and discharging gun and its logic control circuit, which is a three-in-one control circuit for charging, V2L discharging, and V2V discharging.

[0089] like Figure 12 As shown, the charging / discharging gun of this embodiment includes a gun head body 30 and a first connector, a second connector, and a third connector detachably connected to the gun head body 30. The first connector includes a common connector 40 and a charging adapter 50; the second connector includes a common connector 40 and a V2L discharge adapter 60; and the third connector includes a common connector 40 and a V2V discharge adapter 70. The common connector 40 of the three connectors is shared. When the common connector 40 is a female terminal, the charging adapter 50, the V2L discharge adapter 60, and the V2V discharge adapter 70 are all male terminals, allowing them to connect with the female terminal; or when the common connector 40 is a male terminal, the charging adapter 50, the V2L discharge adapter 60, and the V2V discharge adapter 70 are all female terminals, allowing them to connect with the male terminal. The common connector 40 is connected to the gun head body 30. The charging / discharging integrated gun logic control circuit of the present invention is provided inside the gun head body 30. The charging converter 50 is connected to the mains power terminal 1. When the common connector 40 is plugged into the charging converter 50, the mains power terminal 1 charges the first vehicle connected to the gun head body 30. The V2L discharge converter 60 is connected to the discharge terminal. When the common connector 40 is plugged into the discharge terminal, the first vehicle can discharge to the discharge terminal. The V2V discharge converter 70 is used to connect to the gun head 70 of the second vehicle to realize the discharge of the first vehicle to the second vehicle. Figure 14 (The area within the dashed box).

[0090] like Figures 16-19 As shown, each of the three connectors has five pins: L pin (pin 1 in the diagram), N pin (pin 2 in the diagram), PE pin (pin 3 in the diagram), charge / discharge identification signal pin (pin 4 in the diagram), and CP communication pin (pin 5 in the diagram). The charge / discharge identification signal pin is connected to the charge / discharge identification terminal 71 of the charge / discharge identification module 7, and the CP communication pin on the third connector is connected to the CP2 terminal on the second vehicle.

[0091] The control circuit in this embodiment adds a V2V discharge control function based on the first embodiment. The difference from the first embodiment is that the circuit in this embodiment also includes a CP switching module 20 and a charge / discharge identification module 7, which can be used to identify the charging mode, V2L discharge mode and V2V discharge mode, three mode states.

[0092] V2V discharge mode is for vehicle-to-vehicle discharge, where the second vehicle needs to discharge through the existing first vehicle when the second vehicle is out of power. Since the CC resistor is the same for both V2V discharge and charging modes, the CC1 resistor is shared between the two modes.

[0093] like Figure 7As shown, the CC control circuit structure in this embodiment is the same as in Embodiment 1. Resistors CC1 include RC01 and RC02, and resistors CC2 include RC03 and RC04. Specifically: RC01 has a resistance of 100Ω, RC02 has a resistance of 3.3KΩ, compatible with charging and V2V discharging modes at 10A, 16A, 32A, and 63A. RC03 has a resistance of 470Ω, and RC04 has a resistance of 0Ω, compatible with V2L discharging modes at 10A, 16A, 32A, and 63A. The resistance tolerance of RC01, RC02, RC03, and RC04 is 1%. Through the setting of the resistance values, the circuit effectively accommodates the resistance conditions of the three modes, achieving a three-in-one CC control.

[0094] like Figure 11 As shown, the CP switching module 20 includes a relay K4 and a diode D4A. The input terminal of the relay K4 is connected to the CP signal generation and detection module 16, the normally closed port of the relay K4 is connected to the CP1 terminal, and the normally open port is connected to the CP2 terminal; the diode D4A is connected in parallel with the relay K4 to prevent the microcontroller's reverse voltage spike from damaging the relay K4, thus protecting the relay K4.

[0095] When in charging mode or V2L discharging mode, the CP switching module 20 is connected to the CP1 terminal. In charging mode, the CC control module is connected to the CC1 terminal, and the charge / discharge gun enters the charging state. In V2L discharging mode, the CC control module is connected to the CC2 terminal, and the charge / discharge gun enters the V2L discharging state.

[0096] When the charge / discharge identification module identifies the V2V discharge mode, it transmits the signal to the MCU module 4. The MCU module 4 controls the CP switching module 20 to switch from the CP1 terminal to the CP2 terminal. The CC control module 8 connects to the CC1 terminal and controls the integrated charge / discharge gun to enter the V2V discharge state to achieve discharge to the second vehicle.

[0097] The above description is merely a preferred embodiment of the present invention. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in the present invention should be included within the protection scope of the present invention.

Claims

1. A logic control circuit for a charging / discharging integrated gun, connected between the mains power terminal and the first vehicle terminal, characterized in that: It includes a charging AC-DC module, a discharging AC-DC module, a DC power supply module, an MCU module, a contactor, a charging / discharging identification module, a CP signal generation and detection module, and a CC control module; The mains power terminal includes L terminal, N terminal and PE terminal, and the first vehicle terminal includes Lout terminal, Nout terminal, CP1 terminal, PE terminal and CC terminal; the CC terminal includes at least CC1 terminal and CC2 terminal; The charging AC-DC module is connected to the mains power supply at one end and to the DC power supply module at the other end; the discharging AC-DC module is connected to the first vehicle at one end and to the DC power supply module at the other end; the DC power supply module is connected to the MCU module to supply power to the MCU module. The contactor is connected to the MCU module and is used to control the connection and disconnection between the mains power terminal and the first vehicle terminal; The charge / discharge identification module is used to identify the charging mode and the discharging mode, and transmit the signal to the MCU module. The charge / discharge identification module includes a charge / discharge identification terminal with at least one set of pins, and the at least one set of pins is connected in series with an electronic component or circuit that can realize changes in physical characteristics and then connected to the MCU module. The electronic component or circuit that can realize changes in physical characteristics is an electronic component or circuit that can realize changes in resistance, voltage or current. The CP signal generation and detection module is connected to the MCU module at one end and to the CP1 terminal at the other end, and is used to collect and detect the CP signal at the vehicle end. The CC control module is connected to the MCU module at one end and to the CC terminal at the other end. The CC control module includes a control switch, a first circuit, and a second circuit, which are connected in parallel. The CC2 resistor is installed on the first circuit, and the CC1 resistor is installed on the second circuit. The control switch is normally closed and connected to the first circuit. When the control switch is turned on at the CC1 terminal, the CC1 resistor is connected, controlling the charge / discharge gun to enter the charging state. When the control switch is turned on at the CC2 terminal, the CC2 resistor is connected, controlling the charge / discharge gun to enter the discharging state and supply power to the outside.

2. The logic control circuit for the integrated charging and discharging gun as described in claim 1, characterized in that: The charging AC-DC module includes a charging EMC circuit and a rectifier bridge DB1 connected thereto; the discharging AC-DC module includes a discharging EMC circuit and a rectifier bridge DB2 connected thereto; the DC power supply module includes a step-down circuit, an isolation transformer T1, and a voltage regulator circuit; the output terminals of the rectifier bridges DB1 and DB2 are both connected to the DC power supply module.

3. The logic control circuit for the integrated charging and discharging gun as described in claim 1, characterized in that: It also includes current detection circuits, voltage detection circuits, integrated chips, optocoupler components, and chip power supply modules. The current detection circuit includes a sampling resistor connected in series in the circuit. One end of the sampling resistor is connected to the IP terminal of the integrated chip, and the other end is connected to the IN terminal of the integrated chip. The voltage detection circuit includes a pull-up resistor and a pull-down resistor. One end of the pull-up resistor is connected to the L terminal and the other end is connected to the VP terminal of the integrated chip. One end of the pull-down resistor is connected to the VP terminal of the integrated chip and the other end is connected to the GND terminal of the integrated chip. The chip power supply module supplies power to the integrated chip through the VDD terminal of the integrated chip; the current detection circuit and voltage detection circuit output the detected current and voltage through the serial communication terminal of the integrated chip, and the output signal is output to the MCU module after being isolated by the optocoupler component.

4. The logic control circuit for the integrated charging and discharging gun as described in claim 1, characterized in that: It also includes a charge / discharge mode confirmation module, which is connected to the Lout and Nout terminals to detect the output voltage value and perform contactor fault detection.

5. The logic control circuit for the integrated charging and discharging gun as described in claim 1, characterized in that: It also includes a CP switching module. The charge / discharge identification module is used to identify discharge modes including V2L discharge mode and V2V discharge mode. In V2V discharge mode, the discharge is from the first vehicle to the second vehicle, and the second vehicle includes a CP2 terminal. When the charge / discharge identification module identifies the V2V discharge mode, it transmits the signal to the MCU module. The MCU module controls the CP switching module to switch from the CP1 terminal to the CP2 terminal. The CC control module connects to the CC1 terminal and controls the charge / discharge gun to enter the V2V discharge state to achieve discharge to the second vehicle.

6. The logic control circuit for the integrated charging and discharging gun as described in claim 5, characterized in that: The CP switching module includes a relay K4 and a diode D4A. The mains power terminal of the relay K4 is connected to the CP signal generation and detection module, the normally closed port of the relay K4 is connected to the CP1 terminal, and the normally open port is connected to the CP2 terminal. The diode D4A is connected in parallel with the relay K4.

7. The logic control circuit for the integrated charge / discharge gun as described in any one of claims 1 to 6, characterized in that: The first circuit is equipped with a resistor RC' and a series resistor R4', and a switch S3' is connected in parallel with the resistor R4'; the second circuit is equipped with a resistor RC and a series resistor R4, and a switch S3 is connected in parallel with the resistor R4. When the control switch is connected to the first circuit and switch S3' is closed, the system enters the discharge state. When the control switch is connected to the second circuit and switch S3 is closed, the system enters the charging state. If switch S3' or switch S3 is not closed, the system does not enter the discharge or charging state.

8. The logic control circuit for the integrated charging and discharging gun as described in any one of claims 1 to 6, characterized in that: The control switch of the CC control module is a double-pole double-throw relay with 8 pins. The CC1 resistors include RC01 and RC02, and the discharge mode resistors include RC03 and RC04. Pin 1 is connected to the VCC terminal, and pin 8 is connected to the MCU module; pins 2 and 7 are normally closed contacts, with one end of pin 2 connected to RC03 and RC04 to ground, and pin 7 connected between RC03 and RC04; pins 4 and 5 are normally open contacts, with one end of pin 4 connected to RC01 and RC02 to ground, and pin 5 connected between RC01 and RC02; pins 3 and 6 are common terminals, connected to the CC terminal and the push-button switch S2 on the charge / discharge gun, respectively.

9. The logic control circuit for the integrated charging and discharging gun as described in claim 3, characterized in that: It also includes an onboard lightning protection device, an onboard RCD device, a network communication module connected to the MCU module, and several detection modules; The onboard lightning protection device is connected to the mains power supply, the onboard RCD device is connected to the first vehicle end, and the detection module is one or more of the following: leakage current detection module, short circuit detection module, and grounding detection module.

10. A charging and discharging integrated gun, characterized in that: The device includes a gun head body and a first connector and a second connector detachably connected to the gun head body. The gun head body is provided with a charging and discharging integrated gun logic control circuit as described in any one of claims 1 to 9. The first connector is plugged into the mains power terminal to charge the first vehicle connected to the gun head body, and the second connector is plugged into the discharge terminal to realize the first vehicle discharging to the discharge terminal.

11. The charging and discharging integrated gun as described in claim 10, characterized in that: Both the first connector and the second connector are provided with four pins, namely the L pin, N pin, PE pin and charge / discharge identification signal pin, which are connected to the charge / discharge identification module.

12. The charging and discharging integrated gun as described in claim 10, characterized in that: It also includes a third connector that is detachably connected to the gun head body, the third connector being used to connect to a second vehicle to enable the first vehicle to discharge to the second vehicle.

13. The charging and discharging integrated gun as described in claim 12, characterized in that: The first connector, the second connector, and the third connector are each provided with five pins, namely the L pin, the N pin, the PE pin, the charge / discharge identification signal pin, and the CP communication pin. The charge / discharge identification signal pin is connected to the charge / discharge identification module; the CP communication pin on the third connector is connected to the CP2 terminal on the second vehicle.