Charging and discharging control method and circuit and charging and discharging integrated gun

By detecting the PWM signal of the interface module in the charging and discharging control circuit of a new energy vehicle, it automatically determines whether the vehicle end is connected to the charging pile or the power grid, and the problem of inaccurate charging mode selection in the existing technology is solved, and accurate charging mode control of the vehicle end is achieved.

CN119749286APending Publication Date: 2025-04-04LUXSHARE PRECISION IND (JIANGSU) CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411942854.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-26
Publication Date
2025-04-04

AI Technical Summary

Technical Problem

The charging and discharging control technology of existing new energy vehicles is difficult to effectively determine whether the vehicle end is connected to the charging pile or the power grid, resulting in inaccurate selection of the charging mode.

Method used

By introducing the first interface module and the second interface module into the charge and discharge control circuit, and using the processor to detect whether there is a PWM signal at the signal end of the first interface module, it is then judged whether the vehicle end is connected to the charging pile or the power grid, thereby controlling the vehicle end to enter the corresponding charging mode.

Benefits of technology

The charging method of automatically judging the access of the vehicle end based on the interface signal is realized to ensure that the vehicle end can correctly enter the charging pile charging mode or grid charging mode, and meet the charging needs of new energy vehicles.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119749286A_ABST
    Figure CN119749286A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a charging and discharging control method and circuit and a charging and discharging integrated gun. The charging and discharging control circuit comprises a first interface module, a second interface module and a processor, the second interface module is used for being electrically connected with a vehicle end, the first interface module and the second interface module are both electrically connected with the processor, and the first interface module is used for being connected with a load or a power source. Controlling the vehicle end to enter a charging mode; the method for controlling the vehicle end to enter the charging mode comprises the following steps: detecting whether the signal end of the first interface module has a first PWM signal; if the signal end of the first interface module has the first PWM signal, the vehicle end is controlled to enter a charging pile charging mode; and if the signal end of the first interface module does not have the first PWM signal, the vehicle end is controlled to enter a power grid charging mode. According to the technical scheme provided by the embodiment of the invention, the charging requirements of the charging pile or the power grid can be met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to a charge and discharge control technology, and in particular to a charge and discharge control method, a circuit and a charge and discharge integrated gun. Background Art

[0002] For scenarios with charging and discharging control requirements, such as the use of new energy vehicles, new energy vehicles can be charged through charging piles or household electricity and can also supply power to loads. With the development of new energy vehicles, the requirements for charging and discharging control are becoming higher and higher. Summary of the invention

[0003] The embodiments of the present invention provide a charging and discharging control method, a circuit and an integrated charging and discharging gun to meet the needs of charging piles or grid charging.

[0004] In a first aspect, an embodiment of the present invention provides a charge and discharge control method, which is executed by a processor in a charge and discharge control circuit, wherein the charge and discharge control circuit includes a first interface module, a second interface module, and a processor, wherein the second interface module is used to be electrically connected to the vehicle end, and the first interface module and the second interface module are both electrically connected to the processor, and the first interface module is used to access a load or a power supply, wherein the power supply includes a power grid or a charging pile, and the charge and discharge control method includes:

[0005] When the first interface module is electrically connected to the power supply, the vehicle end is controlled to enter a charging mode;

[0006] The controlling the vehicle end to enter a charging mode includes:

[0007] Detecting whether a signal terminal of the first interface module has a first PWM signal;

[0008] If the signal end of the first interface module has the first PWM signal, the vehicle end is controlled to enter the charging pile charging mode;

[0009] If the signal end of the first interface module does not have the first PWM signal, the vehicle end is controlled to enter the grid charging mode.

[0010] Optionally, the charge and discharge control circuit also includes a first signal detection module, the first signal detection module includes a first field effect transistor, the gate of the first field effect transistor is used to receive the voltage signal of the signal end of the first interface module, the drain of the first field effect transistor is electrically connected to the processor through a first resistor, the drain of the first field effect transistor inputs the supply voltage through a pull-up resistor, and the source of the first field effect transistor is grounded.

[0011] Optionally, controlling the vehicle end to enter a charging pile charging mode includes:

[0012] Acquire the frequency and duty cycle of the first PWM signal through the first signal detection module;

[0013] According to the frequency and duty cycle of the first PWM signal, a first target PWM signal is output to the vehicle end.

[0014] Optionally, the first interface module is electrically connected to the power grid through an accessory, the accessory comprising at least one of a 10A plug, a 16A plug, and a 32A industrial plug adapted to the first interface module, and the 10A plug, the 16A plug, and the 32A industrial plug are respectively provided with voltage-dividing identification resistors with different resistance values;

[0015] The charge and discharge control circuit further includes a type detection module, and the type detection module is used to output an AD value according to the resistance value of the identification resistor;

[0016] The controlling the vehicle end to enter the grid charging mode comprises:

[0017] The AD value output by the type detection module is obtained, and according to the AD value, it is determined whether the second interface module is connected to a 10A plug, a 16A plug or a 32A industrial plug.

[0018] Optionally, the charge and discharge control circuit further includes a switch module, through which the L end of the first interface module is connected to the L end of the second interface module; the N end of the first interface module is connected to the N end of the second interface module through the switch module; the switch module is used to control the on-off between the L end and the N end of the first interface module and the L end and the N end of the second interface module respectively;

[0019] The charge and discharge control method further includes:

[0020] Detecting voltage signals at the L end and the N end of the first interface module and voltage signals at the L end and the N end of the second interface module;

[0021] If there are voltage signals at the L and N terminals of the first interface module, and there are no voltage signals at the L and N terminals of the second interface module, it is determined that the first interface module is electrically connected to the power supply;

[0022] If there is no voltage signal at the L terminal and the N terminal of the first interface module, and there is a voltage signal at the L terminal and the N terminal of the second interface module, it is determined that the first interface module is electrically connected to the load.

[0023] Optionally, the charge and discharge control circuit further includes a state switching module, the state switching module includes a first identification resistor unit for adapting the charging mode, a second identification resistor unit for adapting the discharging mode, and a first switch, the first switch is used to control the first identification resistor unit or the second identification resistor unit to be connected to the second interface module;

[0024] The charge and discharge control method further includes:

[0025] Detecting voltage signals at the L end and the N end of the first interface module and voltage signals at the L end and the N end of the second interface module;

[0026] If there are voltage signals at the L and N terminals of the first interface module, and there are voltage signals at the L and N terminals of the second interface module, control the first identification resistor unit to be connected to the second interface module;

[0027] Detecting the voltage signals at the L and N terminals of the first interface module and the voltage signals at the L and N terminals of the second interface module again;

[0028] If there are voltage signals at the L and N terminals of the first interface module, and there are no voltage signals at the L and N terminals of the second interface module, controlling and determining that the first interface module is electrically connected to the power supply;

[0029] If there are voltage signals at the L and N terminals of the first interface module, and there are voltage signals at the L and N terminals of the second interface module, it is determined that the vehicle end is abnormal or the switch module is abnormal.

[0030] Optionally, when the first interface module is connected to the power supply, before controlling the vehicle end to enter a charging mode, the method includes:

[0031] An initial state is set, where the initial state includes that the L end and the N end of the first interface module are disconnected from the L end and the N end of the second interface module, and the second identification unit is connected to the second interface module.

[0032] Optionally, when it is determined that the vehicle end enters an abnormal mode, the L end and the N end of the first interface module are controlled to be disconnected from the L end and the N end of the second interface module.

[0033] In the second aspect, an embodiment of the present invention provides a charge and discharge control circuit, including: a first interface module, a second interface module, a first signal detection module and a processor, the second interface module is used to be electrically connected to the vehicle end, the first interface module and the second interface module are both electrically connected to the processor, the first interface module is used to connect to a load or a power supply, and the power supply includes a power grid or a charging pile.

[0034] Optionally, the charge and discharge control circuit also includes a first signal detection module, the first signal detection module includes a first field effect transistor, the gate of the first field effect transistor is used to receive the voltage signal of the signal end of the first interface module, the drain of the first field effect transistor is electrically connected to the processor through a first resistor, the drain of the first field effect transistor inputs the supply voltage through a pull-up resistor, and the source of the first field effect transistor is grounded.

[0035] Optionally, the charge and discharge control circuit also includes a switch module, through which the L end of the first interface module is connected to the L end of the second interface module; the N end of the first interface module is connected to the N end of the second interface module through the switch module; the switch module is used to respectively control the on and off between the L end and N end of the first interface module and the L end and N end of the second interface module.

[0036] Optionally, the charge and discharge control circuit also includes a state switching module, which includes a first identification resistor unit for adapting the charging mode, a second identification resistor unit for adapting the discharge mode, and a first switch, wherein the first switch is used to control the first identification resistor unit or the second identification resistor unit to be connected to the second interface module.

[0037] Optionally, the charge and discharge control circuit further includes a type detection module, the type detection module includes a second resistor, and when the type detection module is working, one end of the second resistor inputs a supply voltage, and the other end of the second resistor is electrically connected to the signal end of the first interface module;

[0038] When the first interface module is connected to the load or power supply, the first interface module is electrically connected to the load or power supply through an accessory, wherein the accessory includes at least one of a three-wire plug, a power strip, and an accessory charging gun, and at least one of the three-wire plug and the power strip is provided with a voltage divider identification resistor, one end of the voltage divider identification resistor is electrically connected to the signal end of the first interface module, and the other end of the voltage divider identification resistor is grounded;

[0039] The processor is used to obtain the AD value of the signal end of the first interface module.

[0040] Optionally, the charge and discharge control circuit also includes a type detection module, which includes a voltage regulator diode, a clamping diode, a fourth resistor and a filter capacitor; the positive electrode of the voltage regulator diode is grounded, the negative electrode of the voltage regulator diode is electrically connected to the signal end of the first interface module, the negative electrode of the voltage regulator diode is electrically connected to the first end of the clamping diode through the fourth resistor, the second end of the clamping diode is grounded, the third end of the clamping diode is connected to the power supply voltage, the third end of the clamping diode is grounded through the filter capacitor, and the third end of the clamping diode is electrically connected to the first end of the clamping diode through the fifth resistor;

[0041] When the first interface module is connected to the load or power supply, the first interface module is electrically connected to the load or power supply through an accessory, wherein the accessory includes at least one of a three-wire plug, a power strip, and an accessory charging gun, and at least one of the three-wire plug and the power strip is provided with a temperature sensing IC, and the temperature sensing IC is electrically connected to the signal end of the first interface module;

[0042] The processor is used to obtain digital information of the signal end of the first interface module.

[0043] Optionally, the charge and discharge control circuit also includes a signal generating module, which includes a first triode, a second triode, a third triode and a fourth triode, the base of the first triode inputs a power supply voltage, the collector of the first triode is electrically connected to the base of the third triode, the emitter of the first triode and the emitter of the second triode are connected to different ports of the processor, the base of the second triode is grounded, the collector of the second triode is electrically connected to the base of the fourth triode, the emitter of the fourth triode inputs a second voltage, the collector of the fourth triode is electrically connected to the collector of the third triode, and when the signal generating module is working, the collector of the fourth triode is electrically connected to the signal end of the first interface module or to the control guide end of the second interface module, and the emitter of the third triode inputs a first voltage.

[0044] In the third aspect, an embodiment of the present invention provides an integrated charging and discharging gun, comprising a vehicle-end charging and discharging gun body and accessories, wherein the vehicle-end charging and discharging gun body comprises the charging and discharging control circuit as described in the second aspect; the accessories are adapted to the first interface module, and the accessories include at least one of a three-wire plug, a power strip, and an accessory charging gun body.

[0045] The charge and discharge control method, circuit and integrated charge and discharge gun provided by the embodiment of the present invention are executed by a processor in the charge and discharge control circuit, the charge and discharge control circuit includes a first interface module, a second interface module and a processor, the second interface module is used to be electrically connected to the vehicle end, the first interface module and the second interface module are both electrically connected to the processor, the first interface module is used to access the load or power supply, the power supply includes a power grid or a charging pile, and the charge and discharge control method includes: when the first interface module is electrically connected to the power supply, the vehicle end is controlled to enter the charging mode; the vehicle end is controlled to enter the charging mode, including: detecting whether the signal end of the first interface module has a first PWM signal; if the signal end of the first interface module has a first PWM signal, the vehicle end is controlled to enter the charging pile charging mode; if the signal end of the first interface module has no first PWM signal, the vehicle end is controlled to enter the power grid charging mode. The charge and discharge control method, circuit and integrated charge and discharge gun provided by the embodiment of the present invention can determine whether the vehicle end is connected to the charging pile or the power grid according to whether the signal end of the first interface module has a first PWM signal, and then control the vehicle end to enter the charging pile charging mode or the power grid charging mode to meet the needs of the vehicle end being charged by the charging pile or the power grid. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Figure 1 is a flow chart of a charge and discharge control method provided in Embodiment 1 of the present invention;

[0047] Figure 2 is a flow chart of a charge and discharge control method provided in Embodiment 2 of the present invention;

[0048] Figure 3 is a flow chart of a discharge control method provided by Embodiment 2 of the present invention;

[0049] Figure 4 is a flow chart of a charging control method provided by Embodiment 2 of the present invention;

[0050] Figure 5 It is a structural schematic diagram of a charge and discharge control circuit provided by Embodiment 3 of the present invention;

[0051] Figure 6 is a structural diagram of a state switching module provided in Embodiment 3 of the present invention;

[0052] Figure 7 is a structural diagram of a first signal detection module provided in Embodiment 3 of the present invention;

[0053] Figure 8 is a structural diagram of a second signal detection module provided in Embodiment 3 of the present invention;

[0054] Fig. 9 is a structural schematic diagram of a driving supplementary circuit provided in Embodiment 3 of the present invention;

[0055] Fig.10 is a structural diagram of a type detection module provided in Embodiment 3 of the present invention;

[0056] Fig.11 is a schematic diagram of the structure of another type of detection module provided in Embodiment 3 of the present invention;

[0057] Fig.12 is a structural schematic diagram of a signal generating module provided in Embodiment 3 of the present invention;

[0058] Fig.13 It is a schematic diagram of a partial structure of a charging and discharging integrated gun provided in Embodiment 3 of the present invention. DETAILED DESCRIPTION

[0059] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0060] Embodiment 1

[0061] Figure 1 It is a flow chart of a charging and discharging control method provided in the first embodiment of the present invention. This embodiment can be applied to aspects such as charging and discharging control of vehicles, such as new energy vehicles. The method can be executed by a processor in a charging and discharging control circuit, and the processor can be implemented in the form of software and / or hardware. The charging and discharging control circuit includes a first interface module, a second interface module and a processor. The second interface module is used to be electrically connected to the vehicle end. The first interface module and the second interface module are both electrically connected to the processor. The first interface module is used to access a load or a power supply. The power supply includes a power grid or a charging pile. The charging and discharging control method includes: when the first interface module is electrically connected to the power supply, controlling the vehicle end to enter a charging mode; controlling the vehicle end to enter a charging mode, including:

[0062] Step 110: Detect whether a first PWM signal is present at a signal terminal of the first interface module.

[0063] Among them, the first PWM signal is the PWM signal output by the charging pile.

[0064] Step 120: If there is a first PWM signal at the signal end of the first interface module, the vehicle end is controlled to enter a charging pile charging mode.

[0065] Specifically, if there is a first PWM signal at the signal end of the first interface module, it means that the first interface module is connected to the charging pile, the charging pile outputs the first PWM signal, and transmits the first PWM signal to the second interface module. At this time, the vehicle end is controlled to enter the charging pile charging mode.

[0066] Step 130: If there is no first PWM signal at the signal end of the first interface module, control the vehicle end to enter the grid charging mode.

[0067] Specifically, if there is no first PWM signal at the signal end of the first interface module, it means that the first interface module is connected to the power grid, the power grid has no PWM signal output, and there is no first PWM signal at the signal end of the first interface module. At this time, the vehicle end is controlled to enter the power grid charging mode.

[0068] The charge and discharge control method provided in this embodiment can determine whether the vehicle end is connected to a charging pile or a power grid according to whether there is a first PWM signal at the signal end of the first interface module, and then control the vehicle end to enter the charging pile charging mode or the power grid charging mode to meet the needs of the vehicle end being charged by the charging pile or the power grid.

[0069] Embodiment 2

[0070] Figure 2 It is a flow chart of a charge and discharge control method provided in the second embodiment of the present invention. This embodiment can be applied to charge and discharge control of vehicles, such as new energy vehicles. The method can be executed by a processor in a charge and discharge control circuit, and the processor can be implemented in the form of software and / or hardware. The charge and discharge control circuit includes a first interface module, a second interface module and a processor. The second interface module is used to be electrically connected to the vehicle end. The first interface module and the second interface module are both electrically connected to the processor. The first interface module is used to access a load or a power supply, and the power supply includes a power grid or a charging pile; the charge and discharge control circuit also includes a switch module, and the L end of the first interface module is connected to the L end of the second interface module through the switch module; the N end of the first interface module is connected to the N end of the second interface module through the switch module; the switch module is used to control the on and off between the L end and the N end of the first interface module and the L end and the N end of the second interface module respectively; the charge and discharge control method includes:

[0071] Step 210: Detect voltage signals at the L and N terminals of the first interface module and voltage signals at the L and N terminals of the second interface module.

[0072] The voltage signals at the L and N terminals of the first interface module and the voltage signals at the L and N terminals of the second interface module are both AC voltage signals.

[0073] Furthermore, the charge and discharge control circuit also includes a state switching module, the state switching module includes a first identification resistor unit for a charging mode, a second identification resistor unit for a discharge mode, and a first switch, the first switch is used to control the first identification resistor unit or the second identification resistor unit to be connected to the second interface module. The charge and discharge control circuit also includes a first signal detection module, the first signal detection module includes a first field effect tube, the gate of the first field effect tube is used to receive a voltage signal from the signal end of the first interface module, the drain of the first field effect tube is electrically connected to the processor through a first resistor, the drain of the first field effect tube inputs a power supply voltage through a pull-up resistor, and the source of the first field effect tube is grounded.

[0074] The first interface module is electrically connected to the power grid through accessories, and the accessories include at least one of a 10A plug, a 16A plug, and a 32A industrial plug adapted to the first interface module, and the 10A plug, the 16A plug, and the 32A industrial plug are respectively provided with a second voltage-dividing identification resistor with different resistance values; the charge and discharge control circuit also includes a type detection module, and the type detection module is used to output an AD value according to the resistance value of the second voltage-dividing identification resistor, judge the type of the plug and detect the capacity of the plug; it is also possible to set a temperature sensing IC in the plug, and obtain the digital information output by the corresponding temperature sensing IC through the type detection module, so as to judge the type of the plug, etc. In addition, before detecting the voltage signals of the L and N terminals of the first interface module and the voltage signals of the L and N terminals of the second interface module, an initial state can be set, and the initial state includes that the L and N terminals of the first interface module are disconnected from the L and N terminals of the second interface module, and the second identification resistor unit is connected to the second interface module.

[0075] Step 220: If there are voltage signals at the L and N terminals of the first interface module, and there are voltage signals at the L and N terminals of the second interface module, control the first identification resistor unit to be connected to the second interface module; detect the voltage signals at the L and N terminals of the first interface module and the voltage signals at the L and N terminals of the second interface module again, that is, re-enter step 210.

[0076] Specifically, the first switch is electrically connected to the processor, and the processor controls the first switch to connect the first identification resistor unit or the second identification resistor unit to the second interface module. If there is a voltage signal at the L end and the N end of the first interface module, and there is a voltage signal at the L end and the N end of the second interface module, the processor controls the first switch to connect the first identification resistor unit to the second interface module.

[0077] In this embodiment, in the initial state, the second identification resistor unit is connected to the second interface module. At this time, the vehicle end is adapted to the charging mode, so there are voltage signals at the L and N ends of the second interface module. If there are voltage signals at the L and N ends of the first interface module at the same time, it means that the first interface module may be connected to a power supply. Therefore, it is necessary to control the first identification resistor unit to be connected to the second interface module, and then re-detect the voltage signals at the L and N ends of the first interface module and the voltage signals at the L and N ends of the second interface module.

[0078] Step 230: If there are voltage signals at the L and N terminals of the first interface module, and there are voltage signals at the L and N terminals of the second interface module, it is determined that the vehicle end is abnormal or the switch module is abnormal.

[0079] Specifically, if there are voltage signals at the L and N ends of the first interface module, and there are voltage signals at the L and N ends of the second interface module, it indicates that there is an abnormality on the vehicle side or the switch module. The switch module includes a relay switch, and the relay switch may be stuck, so corresponding abnormal handling is required. The relevant procedures for abnormal handling are not limited in this embodiment.

[0080] Step 240: If there is no voltage signal at the L terminal and the N terminal of the first interface module, and there is a voltage signal at the L terminal and the N terminal of the second interface module, it is determined that the first interface module is electrically connected to the load.

[0081] Figure 3 is a flow chart of a discharge control method provided by Embodiment 2 of the present invention. Figure 3 , controlling the vehicle end to enter the discharge mode includes:

[0082] Step 241: Obtain the AD value output by the type detection module or the digital information output by the temperature sensing IC, and determine whether the first interface module is connected to a vehicle load or a non-vehicle load according to the AD value or the digital information.

[0083] The digital information is a digital high and low level, including information such as the serial number and production date of the product. Different temperature sensing ICs output different digital information, which is used to determine whether the first interface module is connected to a vehicle load or a non-vehicle load. If the AD value is within the preset range, it is determined that the first interface module is connected to a non-vehicle load, otherwise the first interface module is connected to a vehicle load.

[0084] Step 242: If the first interface module is connected to the vehicle load, detect whether the signal terminal of the second interface module has a second PWM signal.

[0085] The second PWM signal is a PWM signal output by the vehicle end.

[0086] Step 243: If there is a second PWM signal at the signal end of the second interface module, output a second target PWM signal to the vehicle load according to the second PWM signal.

[0087] The second target PWM signal may be a PWM signal that matches the second PWM signal, and the second target PWM signal is used to communicate between the vehicle end and the vehicle load.

[0088] Step 244: If the first interface module is connected to a non-vehicle load, the vehicle end is controlled to enter a non-vehicle load discharge mode.

[0089] Step 250: If there are voltage signals at the L and N terminals of the first interface module, and there are no voltage signals at the L and N terminals of the second interface module, it is determined that the first interface module is electrically connected to the power supply.

[0090] Figure 4 is a flow chart of a charging control method provided by Embodiment 2 of the present invention. Figure 4 , control the vehicle end to enter charging mode, including:

[0091] Step 251: Detect whether there is a first PWM signal at the signal end of the first interface module, where the first PWM signal is a PWM signal output by the charging pile.

[0092] Step 252: If the signal end of the first interface module has a first PWM signal, control the vehicle end to enter the charging pile charging mode, specifically including:

[0093] The duty cycle and frequency of the first PWM signal are acquired through the first signal detection module.

[0094] According to the duty cycle and frequency of the first PWM signal, a first target PWM signal is output to the vehicle end.

[0095] Among them, the first target PWM signal can be a PWM signal that matches the duty cycle and frequency of the first PWM signal, and the first target PWM signal is used to communicate with the vehicle end. If there is a first PWM signal at the signal end of the first interface module, it means that the first interface module is connected to the charging pile, and the duty cycle and frequency of the first PWM signal can be obtained through the on-off state of the first field effect tube in the first signal detection module, such as the ratio of the on-time of the first field effect tube to the sum of the on-off time is the duty cycle of the first PWM signal. When the first interface module is connected to the charging pile, the first interface module is electrically connected to the charging pile through the accessory charging gun, and the accessory charging gun can draw power from the charging pile and discharge the vehicle load.

[0096] Step 253: If there is no first PWM signal at the signal end of the first interface module, control the vehicle end to enter the grid charging mode, specifically including:

[0097] Identify the type of three-wire plug and detect the capacity of the three-wire plug.

[0098] According to the capacity of the three-wire plug, a third target PWM signal is output to the vehicle end, and the third target PWM signal is used for communication with the vehicle end.

[0099] Among them, the duty cycle and frequency of the third target PWM signal can be determined according to the capacity of the three-wire plug, which is not limited here. If there is no first PWM signal at the signal end of the first interface module, it means that the first interface module is connected to a power grid such as a household power grid. Exemplarily, the three-wire plug includes a 10A plug, a 16A plug or a 32A industrial plug. A second voltage divider identification resistor can be set in the three-wire plug, and the corresponding AD value can be detected by the type detection module to determine the type of the three-wire plug and detect the capacity of the three-wire plug; a temperature sensing IC can also be set in the three-wire plug, and the corresponding digital information can be obtained through the type detection module to determine the type of the three-wire plug, etc.

[0100] Step 260: Control the L end and N end of the first interface module to be connected with the L end and N end of the second interface module.

[0101] Specifically, by controlling the switch module to be turned on, the L end and N end of the first interface module are connected to the L end and N end of the second interface module, so that the vehicle end is connected to the first interface module through the second interface module. When the first interface module is connected to a power source, electric energy can be transmitted from the power source to the vehicle end. When the first interface module is connected to a load, electric energy can be transmitted from the vehicle end to the load.

[0102] In addition, before controlling the connection between the L end and N end of the first interface module and the L end and N end of the second interface module, parameters such as voltage, current, leakage, grounding, and temperature can be confirmed. If each parameter does not exceed its corresponding set threshold, the L end and N end of the first interface module and the L end and N end of the second interface module are controlled to be connected.

[0103] The charge and discharge control method provided in this embodiment determines whether the first interface module is connected to a power source or a load according to the voltage signals at the L and N terminals of the first interface module and the voltage signals at the L and N terminals of the second interface module; determines whether there is a first PWM signal at the signal terminal of the first interface module through the signal at the output terminal of the first signal detection module, thereby determining whether the power source connected to the first interface module is a charging pile or a power grid; according to the signal at the signal terminal of the first interface module, it can also be determined whether the connected load is a vehicle load or a non-vehicle load, which is specifically achieved by detecting the AD value of the signal terminal of the first interface module, thereby controlling the vehicle end to enter a charging mode or a discharging mode, the charging mode includes a charging pile charging mode or a power grid charging mode, and the discharging mode includes a vehicle load discharging mode or a non-vehicle load discharging mode, so that the vehicle end is charged by the charging pile or the power grid, or the vehicle end supplies power to a vehicle load or a non-vehicle load, thereby meeting the charging requirements of the vehicle end being charged by the charging pile or the power grid, and achieving compatibility with multiple charging and discharging modes.

[0104] Embodiment 3

[0105] Figure 5 Schematic diagram of a charge and discharge control circuit provided by the third embodiment of the present invention. Figure 5 The charge and discharge control circuit includes: a first interface module 10, a second interface module 30 and a processor 40.

[0106] The second interface module 30 is a charging and discharging interface adapted to the vehicle end. It can adopt a five-hole charging and discharging interface or a seven-hole charging and discharging interface for charging and discharging new energy vehicles, etc., as long as the corresponding functions can be realized. In this embodiment, a seven-hole charging and discharging interface is adopted. The second interface module 30 includes an L terminal (AC live wire terminal), an N terminal (AC neutral wire terminal), a PE terminal (AC ground wire terminal), a CC terminal (charging connection confirmation terminal), a CP2 terminal (control guide terminal), an S2 terminal (full connection detection terminal) and an NTC terminal (temperature information transmission terminal).

[0107] The first interface module 10 can adopt a five-hole connector for charging and discharging new energy vehicles, or other connectors, as long as the purpose of this application can be achieved. The first interface module 10 is adapted to the accessories. The first interface module 10 includes an L terminal (AC live wire terminal), an N terminal (AC neutral wire terminal), a PE terminal (AC ground wire terminal), a CP / S terminal (male terminal, that is, the signal terminal of the first interface module in any of the above embodiments) and an NTC terminal (temperature information transmission terminal).

[0108] The accessories include at least one of a three-wire plug, a power strip, and an accessory charging gun; in this embodiment, the first interface module 10 and the accessories are matched with a male end and a female end.

[0109] The L end of the first interface module 10 is electrically connected to the L end of the second interface module 30; the N end of the first interface module 10 is electrically connected to the N end of the second interface module 30; the second interface module 30 is used to be electrically connected to the vehicle end, the first interface module 10, the second interface module 30, and the first signal detection module 60 are all electrically connected to the processor 40, and the first interface module 10 is used to connect to a load or a power supply, and the power supply includes a power grid or a charging pile.

[0110] The three-wire plug is used to connect the first interface module to the power grid, the power strip is used to connect the first interface module to a non-vehicle load, and the accessory charging gun is used to connect the first interface module to a charging pile or to connect the first interface module to a vehicle load.

[0111] Among them, the processor 40 is used to control the charging and discharging of the vehicle end, including controlling the conduction or disconnection between the L end and N end of the coupler 10 and the L end and N end of the interface module 30. The specific control process of the processor 40 controlling the charging and discharging of the vehicle end can refer to any of the above embodiments and will not be repeated here.

[0112] Optionally, the charge and discharge control circuit also includes a switch module 20, and the L end of the first interface module is connected to the L end of the second interface module through the switch module 20; the N end of the first interface module 10 is connected to the N end of the second interface module through the switch module 20; the switch module 20 is used to control the on and off between the L end and N end of the first interface module 10 and the L end and N end of the second interface module 30 respectively.

[0113] Specifically, the switch module 20 includes a second switch K2 and a third switch K3, both of which are relay switches, and the second switch K2 and the third switch K3 are respectively arranged on the line where the L end of the first interface module 10 and the L end of the second interface module 30 are located, and the line where the N end of the first interface module 10 and the N end of the second interface module 30 are located. The switch module 20 is electrically connected to the processor 40, and the processor 40 is used to control the charging and discharging of the vehicle end, including controlling the on-off state of the switch module 20, so that the L end and N end of the first interface module 10 and the L end and N end of the second interface module 30 are connected or disconnected.

[0114] In addition, the PE terminal of the first interface module 10 is electrically connected to the PE terminal of the second interface module 30 , and is grounded in the charging mode and is floating in the discharging mode.

[0115] The charge and discharge control circuit also includes a drive module 90, which is electrically connected to the processor 40 and the switch module 20. The processor 40 is used to control the drive module 90, and the drive module 90 outputs a corresponding control signal to control the on-off state of each switch in the switch module 20, so as to realize the on-off control between the L end and the N end of the first interface module 10 and the L end and the N end of the second interface module 30.

[0116] The charge and discharge control circuit also includes a first voltage detection module 91, a second voltage detection module 92, a ground detection module 93, a temperature detection module 94, a DC-DC module 95, a first AC-DC module 96 and a second AC-DC module 98; the first voltage detection module 91 and the ground detection module 93 are electrically connected to the L end and the N end of the first interface module 10, the second voltage detection module 92 is electrically connected to the L end and the N end of the second interface module 30, the temperature detection module 94 is electrically connected to the NTC end of the first interface module 10 and the NTC end of the second interface module 30, the DC-DC module 95 is electrically connected to the first voltage detection module 91 through the first AC-DC module 96, and is electrically connected to the second voltage detection module 92 through the second AC-DC module 98, and the DC-DC module 95 is electrically connected to the processor 40; the first voltage detection module 91 is used to detect the voltage signals at the L end and the N end of the first interface module 10, and the second voltage detection module 92 is used to detect the voltage signal of the second interface module 30.

[0117] Figure 6 Schematic diagram of a state switching module provided by Embodiment 3 of the present invention. Figure 5 and Figure 6 Optionally, the charge and discharge control circuit also includes a state switching module 50, which includes a first identification resistor unit 51 for adapting the charging mode, a second identification resistor unit 52 for adapting the discharging mode, and a first switch K1, and the first switch K1 is used to control the first identification resistor unit 51 or the second identification resistor unit 52 to be electrically connected to the second interface module 30.

[0118] Specifically, the first identification resistor unit 51 or the second identification resistor unit 52 is electrically connected to the CC terminal of the second interface module 30 through the first switch K1. Each identification resistor unit includes two resistors with different resistance values. For example, the first identification resistor unit 51 includes two resistors with resistance values ​​of 2.3K and 1K connected in series, and the second identification resistor unit 52 includes two resistors with resistance values ​​of 3.3K and 220R connected in series. The first switch K1 is a double-pole double-throw relay switch, and the second coil end of the first switch K1 is connected to the first power supply voltage VDD, which can be a 5V power supply voltage. The first coil end of the first switch K1 is electrically connected to the port DRV of the state switching module 50 through a transistor and a resistor, and the port DRV of the state switching module 50 is electrically connected to the processor 40. The first end of the second identification resistor unit 52 is connected to the first normally closed contact of the first switch K1, and the second end of the second identification resistor unit 52 is grounded; the connection end of the two series resistors in the second identification resistor unit 52 is connected to the second normally closed contact of the first switch K1; the first end of the first identification resistor unit 51 is connected to the first normally open contact of the first switch K1, and the second end of the first identification resistor unit 51 is grounded; the connection end of the two series resistors in the first identification resistor unit 51 is connected to the second normally open contact of the first switch K1; the first common end of the first switch K1 is connected to the CC end of the second interface module 30, and the second common end of the first switch K1 is connected to the S2 end of the second interface module 30. The processor 40 is used to control the state of the first switch K1 so that the first identification resistor unit 51 or the second identification resistor unit 52 is electrically connected to the second interface module 30. If the processor 40 detects that there is a voltage signal at the L end and the N end of the first interface module, and detects that there is a voltage signal at the L end and the N end of the second interface module, the processor 40 controls the first switch K1 to connect the first identification resistor unit 51 to the second interface module 30.

[0119] Figure 7 is a schematic diagram of the structure of a first signal detection module provided by Embodiment 3 of the present invention. Figure 5 and Figure 7 Optionally, the charge and discharge control circuit also includes a first signal detection module 60, the first signal detection module 60 includes a first field effect transistor M1, the gate of the first field effect transistor M1 is used to receive the voltage signal of the signal terminal CP / S of the first interface module 10, the drain of the first field effect transistor M1 is electrically connected to the processor 40 through the first resistor R11, and the source of the first field effect transistor M1 is grounded.

[0120] Among them, the gate of the first field effect tube M1 receives the voltage signal of the CP / S terminal of the first interface module 10 through the fourth switch K4 and the fifth switch K5, the drain of the first field effect tube M1 is electrically connected to the port CP1 of the processor 40 through the first resistor R11, the drain of the first field effect tube M1 is connected to the second power supply voltage VCC through the pull-up resistor R10, and the second power supply voltage VCC can be a 3.3V power supply voltage, the gate of the first field effect tube M1 is electrically connected to the cathode of the first diode D1 through the third resistor R13, the anode of the first diode D1 is electrically connected to the fourth switch K4, and the cathode of the first diode D1 is grounded through two parallel resistors. The voltage signal of the signal terminal of the first interface module 10 can be a PWM signal, and the on-off time of the first field effect tube M1 is controlled by the duty cycle and frequency of the above-mentioned PWM signal, and the processor 40 determines the duty cycle and frequency of the PWM signal according to the on-off of the first field effect tube M1. The fourth switch K4 and the fifth switch K5 are both single-pole double-throw relay switches, the first coil end of the fourth switch K4 is connected to the first power supply voltage VDD, the second coil end of the fourth switch K4 is electrically connected to the port K4-1 of the driving supplementary circuit corresponding to the fourth switch K4, the normally closed contact of the fourth switch K4 is electrically connected to the positive electrode of the first diode D1, the charge and discharge control circuit further includes a type detection module 70, and the normally open contact of the fourth switch K4 is connected to the second power supply voltage VCC through the type detection module 70. The first coil end of the fifth switch K5 is connected to the first power supply voltage VDD, the second coil end of the fifth switch K5 is electrically connected to the port K5-1 of the driving supplementary circuit corresponding to the fifth switch K5, the normally closed contact of the fifth switch K5 is electrically connected to the common end of the fourth switch K4, the normally open contact of the fifth switch K5 is electrically connected to the port CPP of the signal generation module, and the common end of the fifth switch K5 is electrically connected to the CP / S end of the first interface module.

[0121] In addition, the charge and discharge control circuit further includes a second signal detection module 97, Figure 8 is a schematic diagram of the structure of a second signal detection module provided by Embodiment 3 of the present invention. Figure 5 and Figure 8The second signal detection module 97 includes a second field effect transistor M2, the gate of the second field effect transistor M2 is electrically connected to the port CP2 of the second interface module through the sixth switch K6, the second field effect transistor M2 is electrically connected to the port CPT of the processor 40 through a resistor, the drain of the second field effect transistor M2 is connected to the second power supply voltage VCC through another resistor, the gate of the second field effect transistor M2 is electrically connected to the cathode of the second diode D2 through the resistor, the anode of the second diode D2 is electrically connected to the sixth switch K6, and the cathode of the second diode D2 is grounded through two parallel resistors. The sixth switch K6 is a single-pole double-throw relay switch, the first coil end of the sixth switch K6 is connected to the first power supply voltage VDD, the second coil end of the sixth switch K6 is electrically connected to the port K6-1 of the driving supplementary circuit corresponding to the sixth switch K6, the normally closed contact of the sixth switch K6 is electrically connected to the anode of the second diode D2, the normally open contact of the sixth switch K6 is electrically connected to the port CPP of the signal generation module, and the common end of the sixth switch K6 is electrically connected to the CP2 end of the second interface module. The second signal detection module is used to detect the second PWM signal of the signal end of the second interface module under the vehicle load discharge mode; the new energy vehicles on the market nowadays do not strictly implement discharge in accordance with the national standard documents, so the amount of current that can be discharged by the vehicle end is unknown, so there is a loophole. The second signal detection module can capture the duty cycle of the second PWM signal, and then know the limit value of the current that can be discharged by the vehicle end.

[0122] Furthermore, the charge and discharge control circuit also includes a driving supplementary circuit, Fig. 9 Schematic diagram of a driving supplementary circuit provided by an embodiment of the present invention. Fig. 9 The driving supplementary circuit includes a third field effect transistor M3, the gate of the third field effect transistor M3 is electrically connected to the GPIO port of the processor 40 through a resistor, the drain of the third field effect transistor M3 is electrically connected to the port KX-1 of the driving supplementary circuit, the source of the third field effect transistor M3 is grounded, and X in KX-1 can be 4, 5, or 6. Figure 7 and Figure 8 Each switch in the system has its own driving supplementary circuit, and the driving supplementary circuit structure corresponding to each switch is the same, that is, Figure 7 and Figure 8 Each switch is electrically connected to a corresponding port of the driving supplementary circuit through its respective port K4-1, K5-1, and K6-1.

[0123] Fig.10 Schematic diagram of a type detection module provided by Embodiment 3 of the present invention. Figure 5 and Fig.10Optionally, the charge and discharge control circuit further includes a type detection module 70, the type detection module 70 includes a second resistor R12, a first end of the second resistor R12 inputs a second power supply voltage VCC, a second end TX1 of the second resistor R12 is electrically connected to the signal end of the first interface module 10 through a fourth switch K4 and a fifth switch K5, specifically, the second end TX1 of the second resistor R12 is electrically connected to the normally open contact of the fourth switch K4, and the second end TX1 of the second resistor R12 is electrically connected to the processor 40; when the first interface module 10 is connected to a load or a power supply, the first interface module 10 is electrically connected to the load or the power supply through an accessory, and the accessory includes at least one of a three-wire plug, a power strip and an accessory charging gun, and at least one of the three-wire plug and the power strip is provided with a voltage divider identification resistor Rx (including a first voltage divider identification resistor or a second voltage divider identification resistor), and one end of the voltage divider identification resistor Rx is electrically connected to the signal end of the first interface module 10, and when the fourth switch K4 and the fifth switch K5 are closed, as Fig.10 As shown, the voltage-dividing identification resistor Rx is electrically connected to the second resistor R12 , and the other end of the voltage-dividing identification resistor Rx is grounded; the processor 40 is used to obtain the AD value of the signal end of the first interface module 10 .

[0124] Exemplarily, the accessory includes a three-wire plug, and the three-wire plug includes at least one of a 10A plug, a 16A plug, and a 32A industrial plug, and different plugs are provided with second voltage-dividing identification resistors with different resistance values. When the second resistor R12 is electrically connected to the voltage-dividing identification resistors Rx with different resistance values, the voltage of the second resistor R12 is different, so that the processor 40 identifies the type of the three-wire plug according to different AD values.

[0125] When the first interface module 10 is connected to a load, the non-vehicle load is electrically connected to the first interface module 10 through a power strip; the vehicle load is electrically connected to the first interface module 10 through an accessory charging gun, and the power strip includes a first voltage-dividing identification resistor; the resistance value of the first voltage-dividing identification resistor and the resistance value of the second voltage-dividing identification resistor are different; the connection method between the first voltage-dividing identification resistor and the first interface module 10 is the same as that of the second voltage-dividing identification resistor, that is, by setting different voltage-dividing identification resistors Rx, it can also be determined whether the connected load is a vehicle load or a non-vehicle load.

[0126] As another scheme of this embodiment, at least one of the three-wire plug and the socket strip is provided with a temperature sensing IC, and the type detection module uses the digital information of the temperature sensing IC to identify the type of the three-wire plug and the type of the socket strip. The digital information is a digital high and low level, including information such as the product serial number and production date.

[0127] Fig.11 FIG. 1 is a schematic diagram of the structure of another type of detection module provided in Embodiment 3 of the present invention. Figure 5 and Fig.11Optionally, the type detection module 70 includes a Zener diode D3, a clamping diode D4, a fourth resistor R14 and a filter capacitor C1; the positive electrode of the Zener diode D3 is grounded, and the negative electrode of the Zener diode D3 is electrically connected to the signal end of the first interface module 10 through the fourth switch K4 and the fifth switch K5. Specifically, the negative electrode of the Zener diode D3 is electrically connected to the normally open contact of the fourth switch K4; the negative electrode of the Zener diode D3 is electrically connected to the first end TX2 of the clamping diode D4 through the fourth resistor R14, the first end TX2 of the clamping diode D4 is electrically connected to the processor 40, the second end of the clamping diode D4 is grounded, the third end of the clamping diode D4 is connected to the second power supply voltage VCC, the third end of the clamping diode D4 is grounded through the filter capacitor C1, and the third end of the clamping diode D4 is electrically connected to the first end of the clamping diode D4 through the fifth resistor R15.

[0128] Among them, the voltage regulator diode D3 is used for voltage stabilization to prevent excessive voltage from burning the temperature sensing IC. The clamping diode D4 is a dual diode structure, including a third diode D41 and a fourth diode D42. The cathode of the third diode D41 serves as the first end of the clamping diode D4, and the anode of the third diode D41 serves as the second end of the clamping diode D4. The cathode of the third diode D41 is electrically connected to the anode of the fourth diode D42, and the cathode of the fourth diode D42 serves as the third end of the clamping diode D4. The clamping diode D4 is used to prevent the processor 40 from being damaged by excessively high or low voltage. The fourth resistor R14 is used to prevent excessive current from flowing into the temperature sensing IC. The filter capacitor C1 is used to filter out high-frequency interference and noise of the second power supply voltage VCC. Specifically, when the first interface module 10 is connected to a load or power supply, the first interface module 10 is electrically connected to the load or power supply through an accessory. A temperature sensing IC (Integrated Circuit) is provided in the accessory. The temperature sensing IC is electrically connected to the signal end of the first interface module 10. When the fourth switch K4 and the fifth switch K5 are closed, as shown Fig.10 As shown, it is equivalent to that the temperature sensing IC is electrically connected to the cathode of the voltage stabilizing diode D3; the processor 40 is used to obtain the digital information of the signal end of the first interface module 10. Exemplarily, the accessories include a three-wire plug, and the three-wire plug includes a 10A plug, a 16A plug, and a 32A industrial plug. The digital information transmitted by the temperature sensing IC in different plugs is different, so that the processor 40 identifies the type of the three-wire plug according to different digital information.

[0129] Fig.12 Schematic diagram of the structure of a signal generation module provided by Embodiment 3 of the present invention. Figure 5 and Fig.12Optionally, the charge and discharge control circuit also includes a signal generating module 80, the signal generating module 80 includes a first transistor Q1, a second transistor Q2, a third transistor Q3 and a fourth transistor Q4, the base of the first transistor Q1 inputs a power supply voltage, the collector of the first transistor Q1 is electrically connected to the base of the third transistor Q2, the emitter of the first transistor Q1 and the emitter of the second transistor Q2 are connected to different ports of the processor 40, the base of the second transistor Q2 is grounded, the collector of the second transistor Q2 is electrically connected to the base of the fourth transistor Q4, the emitter of the third transistor Q3 inputs a first voltage V1, the collector of the fourth transistor Q4 and the collector of the third transistor Q3 are both electrically connected to the first interface module 10, and the emitter of the fourth transistor Q4 inputs a second voltage V2.

[0130] Specifically, the collector of the fourth transistor Q4 and the collector of the third transistor Q3 are both electrically connected to the port CPP of the signal generation module 80 through a resistor and an inductor. The emitter of the first transistor Q1 and the emitter of the second transistor Q2 are respectively connected to the two channels n1 and n2 of the same timer of the processor 40 through different resistors, and can be configured in a complementary mode or a synchronous mode. A synchronized square wave signal is generated by the timer of the processor 40, and a square wave signal of a high level first voltage V1 such as +12V and a low level second voltage V2 such as -12V can be generated through the first transistor Q1, the second transistor Q2, the third transistor Q3 and the fourth transistor Q4 according to the superposition theorem.

[0131] Fig.13 Schematic diagram of a partial structure of a charging and discharging integrated gun provided by the third embodiment of the present invention. Fig.13 The charging and discharging integrated gun includes a vehicle-end charging and discharging gun body 100 and an accessory 200. The vehicle-end charging and discharging gun body 100 includes a charging and discharging control circuit as described in any embodiment of the present invention; the accessory 200 is adapted to the first interface module 10, and the accessory 200 includes at least one of a three-wire plug 201, a power strip 202, and an accessory charging gun 203. Specifically, the second interface module 30 is arranged at one end of the vehicle-end charging and discharging gun body 100 connected to the vehicle end, and the first interface module 10 is arranged at one end of the vehicle-end charging and discharging gun body 100 connected to the accessory 200; the accessory 200 and the first interface module 10 are male and female ends. Among them, the first interface module 10 includes a first interface module male end 10M and a first interface module female end 10F, the three-wire plug 201 includes three types of three-wire plugs, such as 10A plug 2011, 16A plug 2012, and 32A industrial plug 2013, and the accessory also includes a 16A to 10A adapter 204.

[0132] The charge and discharge control circuit and the integrated charge and discharge gun provided in this embodiment belong to the same inventive concept as the charge and discharge control method provided in any embodiment of the present invention, and have corresponding beneficial effects. For technical details not detailed in this embodiment, please refer to the charge and discharge control method provided in any embodiment of the present invention.

[0133] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments, combinations and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A charge and discharge control method, characterized in that: The charge and discharge control method is executed by a processor in a charge and discharge control circuit, the charge and discharge control circuit includes a first interface module, a second interface module and a processor, the second interface module is used to be electrically connected to the vehicle end, the first interface module and the second interface module are both electrically connected to the processor, the first interface module is used to access a load or a power supply, the power supply includes a power grid or a charging pile, and the charge and discharge control method includes: When the first interface module is electrically connected to the power supply, the vehicle end is controlled to enter a charging mode; The controlling the vehicle end to enter a charging mode includes: Detecting whether a signal end of the first interface module has a first PWM signal; If the signal end of the first interface module has the first PWM signal, the vehicle end is controlled to enter the charging pile charging mode; If the signal end of the first interface module does not have the first PWM signal, the vehicle end is controlled to enter the grid charging mode.

2. The charge and discharge control method according to claim 1, characterized in that: The charge and discharge control circuit also includes a first signal detection module, which includes a first field effect transistor, a gate of the first field effect transistor is used to receive a voltage signal from the signal end of the first interface module, a drain of the first field effect transistor is electrically connected to the processor through a first resistor, a drain of the first field effect transistor inputs a supply voltage through a pull-up resistor, and a source of the first field effect transistor is grounded.

3. The charge and discharge control method according to claim 2, characterized in that: The controlling the vehicle end to enter the charging pile charging mode comprises: Acquire the frequency and duty cycle of the first PWM signal through the first signal detection module; According to the frequency and duty cycle of the first PWM signal, a first target PWM signal is output to the vehicle end.

4. The charge and discharge control method according to claim 1, characterized in that: The first interface module is electrically connected to the power grid through accessories, and the accessories include at least one of a 10A plug, a 16A plug, and a 32A industrial plug adapted to the first interface module, and the 10A plug, the 16A plug, and the 32A industrial plug are respectively provided with voltage-dividing identification resistors with different resistance values; The charge and discharge control circuit further includes a type detection module, and the type detection module is used to output an AD value according to the resistance value of the voltage dividing identification resistor; The controlling the vehicle end to enter the grid charging mode comprises: The AD value output by the type detection module is obtained, and according to the AD value, it is determined whether the second interface module is connected to a 10A plug, a 16A plug or a 32A industrial plug.

5. The charge and discharge control method according to claim 1, characterized in that: The charge and discharge control circuit further includes a switch module, through which the L end of the first interface module is connected to the L end of the second interface module; the N end of the first interface module is connected to the N end of the second interface module through the switch module; the switch module is used to control the on and off between the L end and the N end of the first interface module and the L end and the N end of the second interface module respectively; The charge and discharge control method further includes: Detecting voltage signals at the L end and the N end of the first interface module and voltage signals at the L end and the N end of the second interface module; If there are voltage signals at the L and N terminals of the first interface module, and there are no voltage signals at the L and N terminals of the second interface module, it is determined that the first interface module is electrically connected to the power supply; If there is no voltage signal at the L terminal and the N terminal of the first interface module, and there is a voltage signal at the L terminal and the N terminal of the second interface module, it is determined that the first interface module is electrically connected to the load.

6. The charge and discharge control method according to claim 5, characterized in that: The charge and discharge control circuit further includes a state switching module, which includes a first identification resistor unit for adapting the charging mode, a second identification resistor unit for adapting the discharging mode, and a first switch, wherein the first switch is used to control the first identification resistor unit or the second identification resistor unit to be connected to the second interface module; The charge and discharge control method further includes: Detecting voltage signals at the L end and the N end of the first interface module and voltage signals at the L end and the N end of the second interface module; If there are voltage signals at the L and N terminals of the first interface module, and there are voltage signals at the L and N terminals of the second interface module, control the first identification resistor unit to be connected to the second interface module; Detecting the voltage signals at the L and N terminals of the first interface module and the voltage signals at the L and N terminals of the second interface module again; If there are voltage signals at the L and N terminals of the first interface module, and there are no voltage signals at the L and N terminals of the second interface module, it is determined that the first interface module is electrically connected to the power supply; If there are voltage signals at the L and N terminals of the first interface module, and there are voltage signals at the L and N terminals of the second interface module, it is determined that the vehicle end is abnormal or the switch module is abnormal.

7. The charge and discharge control method according to claim 6, characterized in that: When the first interface module is connected to the power supply, before controlling the vehicle end to enter the charging mode, the method includes: An initial state is set, where the initial state includes that the L end and the N end of the first interface module are disconnected from the L end and the N end of the second interface module, and the second identification unit is connected to the second interface module.

8. The charge and discharge control method according to claim 1, characterized in that: When it is determined that the vehicle end enters the abnormal mode, the L end and the N end of the first interface module are controlled to be disconnected from the L end and the N end of the second interface module.

9. A charge and discharge control circuit, characterized in that: include: A first interface module, a second interface module and a processor, the second interface module is used to be electrically connected to the vehicle end, the first interface module and the second interface module are both electrically connected to the processor, the first interface module is used to access a load or a power supply, and the power supply includes a power grid or a charging pile.

10. The charge and discharge control circuit according to claim 9, characterized in that: The charge and discharge control circuit also includes a first signal detection module, which includes a first field effect transistor, a gate of the first field effect transistor is used to receive a voltage signal from the signal end of the first interface module, a drain of the first field effect transistor is electrically connected to the processor through a first resistor, a drain of the first field effect transistor inputs a supply voltage through a pull-up resistor, and a source of the first field effect transistor is grounded.

11. The charge and discharge control circuit according to claim 9, characterized in that: It also includes a switch module, through which the L end of the first interface module is connected to the L end of the second interface module; the N end of the first interface module is connected to the N end of the second interface module through the switch module; the switch module is used to respectively control the connection and disconnection between the L end and N end of the first interface module and the L end and N end of the second interface module.

12. The charge and discharge control circuit according to claim 9, characterized in that: It also includes a state switching module, which includes a first identification resistor unit for adapting the charging mode, a second identification resistor unit for adapting the discharging mode, and a first switch, wherein the first switch is used to control the first identification resistor unit or the second identification resistor unit to be connected to the second interface module.

13. The charge and discharge control circuit according to claim 9, characterized in that: It also includes a type detection module, the type detection module includes a second resistor, when the type detection module is working, one end of the second resistor inputs a supply voltage, and the other end of the second resistor is electrically connected to the signal end of the first interface module; When the first interface module is connected to the load or power supply, the first interface module is electrically connected to the load or power supply through an accessory, wherein the accessory includes at least one of a three-wire plug, a power strip, and an accessory charging gun, and at least one of the three-wire plug and the power strip is provided with a voltage divider identification resistor, one end of the voltage divider identification resistor is electrically connected to the signal end of the first interface module, and the other end of the voltage divider identification resistor is grounded; The processor is used to obtain the AD value of the signal end of the first interface module.

14. The charge and discharge control circuit according to claim 9, characterized in that: It also includes a type detection module, which includes a voltage regulator diode, a clamping diode, a fourth resistor and a filter capacitor; the positive electrode of the voltage regulator diode is grounded, the negative electrode of the voltage regulator diode is electrically connected to the signal end of the first interface module, the negative electrode of the voltage regulator diode is electrically connected to the first end of the clamping diode through the fourth resistor, the second end of the clamping diode is grounded, the third end of the clamping diode is connected to the power supply voltage, the third end of the clamping diode is grounded through the filter capacitor, and the third end of the clamping diode is electrically connected to the first end of the clamping diode through the fifth resistor; When the first interface module is connected to the load or power supply, the first interface module is electrically connected to the load or power supply through an accessory, wherein the accessory includes at least one of a three-wire plug, a power strip, and an accessory charging gun, and at least one of the three-wire plug and the power strip is provided with a temperature sensing IC, and the temperature sensing IC is electrically connected to the signal end of the first interface module; The processor is used to obtain digital information of the signal end of the first interface module.

15. The charge and discharge control circuit according to claim 9, characterized in that: It also includes a signal generating module, which includes a first triode, a second triode, a third triode and a fourth triode, the base of the first triode inputs a power supply voltage, the collector of the first triode is electrically connected to the base of the third triode, the emitter of the first triode and the emitter of the second triode are connected to different ports of the processor, the base of the second triode is grounded, the collector of the second triode is electrically connected to the base of the fourth triode, the emitter of the fourth triode inputs a second voltage, the collector of the fourth triode is electrically connected to the collector of the third triode, and when the signal generating module is working, the collector of the fourth triode is electrically connected to the signal end of the first interface module or to the control guide end of the second interface module, and the emitter of the third triode inputs a first voltage.

16. A charging and discharging integrated gun, characterized in that: It includes a vehicle-end charging and discharging gun body and accessories, and the vehicle-end charging and discharging gun body includes the charging and discharging control circuit as described in any one of claims 9-15; the accessories are adapted to the first interface module, and the accessories include at least one of a three-wire plug, a power strip and an accessory charging gun.

Citation Information

Cited By

  • Intelligent charging and discharging switching and mode recognition circuit structure and method for three-in-one charging pile

    CN120735643A