Charging and discharging control method and circuit and charging and discharging integrated gun
By designing a charging and discharging control method and circuit in the charging and discharging integrated gun, detecting voltage signals and PWM signals, and automatically judging and controlling the charging or discharging mode, the problem that the existing technology cannot be compatible with multiple charging and discharging methods is solved, and efficient and flexible charging and discharging control is achieved.
Patent Information
- Application Number
- CN202411942777.X
- 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
The existing charging and discharging integrated guns are not compatible with multiple charging and discharging methods, and cannot effectively determine whether the vehicle end is connected to the power supply or load, resulting in inconvenient control of charging or discharging modes.
A charging and discharging control method and circuit are designed to determine the charging or discharging mode of the vehicle by detecting the voltage signals of the first interface module and the second interface module, and to control the charging or discharging process through the switch module. The method includes detecting a voltage signal, controlling a charging or discharging mode, and adapting different charging and discharging modes by identifying a resistor unit and a PWM signal.
Compatibility of multiple charging and discharging methods is achieved, and charging or discharging modes can be automatically judged and controlled according to different voltage signals and PWM signals, improving the flexibility and efficiency of charging and discharging control.
Smart Images

Figure CN119749285A_ABST
Abstract
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] With the development of new energy technology, new energy vehicles are being used more and more widely. The charging or discharging of new energy vehicles can be achieved through a charging and discharging integrated gun, but the existing charging and discharging integrated gun is not compatible with multiple charging and discharging methods when performing charging and discharging control. Summary of the invention
[0003] The embodiments of the present invention provide a charge and discharge control method, a circuit and a charge and discharge integrated gun to achieve compatibility with multiple charge and discharge modes.
[0004] In a first aspect, an embodiment of the present invention provides a charge and discharge control method, wherein the charge and discharge control method 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 switch module, a second interface module, and the processor;
[0005] 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 connection and disconnection 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;
[0006] The second interface module is used to be electrically connected to the vehicle end, the first interface module, the switch module, and the second interface module are all electrically connected to the processor, and the first interface module is used to be connected to a load or a power supply;
[0007] The charge and discharge control method comprises:
[0008] 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;
[0009] If there is a voltage signal at the L terminal and the N terminal of the first interface module, and there is no voltage signal at the L terminal and the N terminal of the second interface module, control the vehicle end to enter the charging mode;
[0010] 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, the vehicle end is controlled to enter the discharge mode.
[0011] 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 electrically connected to the second interface module;
[0012] The controlling the vehicle end to enter a charging mode includes:
[0013] 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 state of the first switch to connect the first identification resistor unit to the second interface module;
[0014] 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;
[0015] If there is a voltage signal at the L terminal and the N terminal of the first interface module, and there is no voltage signal at the L terminal and the N terminal of the second interface module, the vehicle end is controlled to enter the charging mode.
[0016] Optionally, before detecting the voltage signals at the L terminal and the N terminal of the first interface module and the voltage signals at the L terminal and the N terminal of the second interface module, the method further includes:
[0017] 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 resistor unit is connected to the second interface module.
[0018] Optionally, the load includes a vehicle load and a non-vehicle load; the non-vehicle load is electrically connected to the first interface module through a power strip; the non-vehicle load is electrically connected to the first interface module through a power strip; the vehicle load is electrically connected to the first interface module through an accessory charging gun, and the power strip includes a first voltage divider identification resistor;
[0019] The charge and discharge control circuit further includes a type detection module, and the type detection module is used to identify the AD value of the resistor output according to the first voltage division;
[0020] The controlling the vehicle end to enter a discharge mode comprises:
[0021] Acquire an AD value output by the type detection module, and determine whether the first interface module is connected to the vehicle load or the non-vehicle load according to the AD value;
[0022] If the first interface module is connected to the vehicle load, the vehicle end is controlled to enter a discharge mode for the vehicle load;
[0023] If the first interface module is connected to the non-vehicle load, the vehicle end is controlled to enter a discharge mode for the non-vehicle load;
[0024] 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.
[0025] Optionally, the load includes a vehicle load and a non-vehicle load; the non-vehicle load is electrically connected to the first interface module via a power strip; the vehicle load is electrically connected to the first interface module via an accessory charging gun, and the power strip includes a temperature sensing IC;
[0026] The charge and discharge control circuit further includes a type detection module, and the type detection module is used to obtain digital information output by the temperature sensing IC;
[0027] The controlling the vehicle end to enter a discharge mode comprises:
[0028] Acquire digital information output by the temperature sensing IC, and determine whether the first interface module is connected to the vehicle load or the non-vehicle load according to the digital information;
[0029] If the first interface module is connected to the vehicle load, the vehicle end is controlled to enter a discharge mode for the vehicle load;
[0030] If the first interface module is connected to the non-vehicle load, the vehicle end is controlled to enter a discharge mode for the non-vehicle load;
[0031] 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.
[0032] Optionally, the controlling the vehicle end to enter the vehicle load discharge mode includes:
[0033] Detecting whether a second PWM signal is present at a signal end of the second interface module;
[0034] If the signal terminal of the second interface module has the second PWM signal, a second target PWM signal is output to the vehicle load according to the second PWM signal.
[0035] Optionally, the power source includes a charging pile or a power grid;
[0036] The controlling the vehicle end to enter a charging mode includes:
[0037] Detecting whether a signal terminal of the first interface module has a first PWM signal;
[0038] 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;
[0039] 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.
[0040] Optionally, the charge and discharge control circuit further 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;
[0041] The controlling the vehicle end to enter the charging pile charging mode includes:
[0042] Acquire the duty cycle and frequency of the first PWM signal through the first signal detection module;
[0043] According to the duty cycle and frequency of the first PWM signal, a first target PWM signal is output to the vehicle end.
[0044] Optionally, the first interface module is used to access the power grid through a three-wire plug, and the controlling the vehicle end to enter the power grid charging mode includes:
[0045] Identifying the type of the three-wire plug and detecting the capacity of the three-wire plug;
[0046] According to the capacity of the three-wire plug, a third target PWM signal is output to the vehicle end.
[0047] In a second aspect, an embodiment of the present invention provides a charge and discharge control circuit, comprising: a first interface module, a switch module, a second interface module and a processor, wherein 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 respectively 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; the second interface module is used to be electrically connected to the vehicle end, the first interface module, the switch module and the second interface module are all electrically connected to the processor, and the first interface module is used to connect to a load or a power supply.
[0048] 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 electrically connected to the second interface module.
[0049] 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.
[0050] Optionally, the charge and discharge control circuit further includes a type detection module, the type detection module includes a second resistor, one end of the second resistor is input with a supply voltage, and the other end of the second resistor is electrically connected to the signal end of the first interface module;
[0051] 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;
[0052] The processor is used to obtain the AD value of the signal end of the first interface module.
[0053] 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;
[0054] 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;
[0055] The processor is used to obtain digital information of the signal end of the first interface module.
[0056] 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.
[0057] 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.
[0058] The charge and discharge control method, circuit and integrated charge and discharge gun provided by the embodiment of the present invention, the charge and discharge control method is executed by a processor in the charge and discharge control circuit, the charge and discharge control circuit includes a first interface module, a switch module, a second interface module and a processor; 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 N end of the first interface module and the L end and N end of the second interface module respectively; the second interface module is used to be electrically connected to the vehicle end, and the first interface module is electrically connected to the vehicle end. An interface module, a switch module, and a second interface module are all electrically connected to a processor, and the first interface module is used to access a load or a power supply; a charge and discharge control method comprises: detecting 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; 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, then the vehicle end is controlled to enter a charging mode; if there are no 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, then the vehicle end is controlled to enter a discharging mode. The charge and discharge control method, circuit, and charge and discharge integrated gun provided in an embodiment of the present invention can determine whether the vehicle end is connected to a power supply 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, and then control the vehicle end to enter a charging mode or a discharging mode, so that a power supply such as a charging pile or a power grid charges the vehicle end through a charge and discharge control circuit, or the vehicle end supplies power to a load such as a vehicle load or a non-vehicle load through a charge and discharge control circuit, thereby achieving compatibility of multiple charge and discharge modes. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] Figure 1 is a flow chart of a charge and discharge control method provided in Embodiment 1 of the present invention;
[0060] Figure 2 is a flow chart of a charge and discharge control method provided in Embodiment 2 of the present invention;
[0061] Figure 3 is a flow chart of a charging control method provided by Embodiment 2 of the present invention;
[0062] Figure 4 is a flow chart of a discharge control method provided by Embodiment 2 of the present invention;
[0063] Figure 5 It is a structural schematic diagram of a charge and discharge control circuit provided by Embodiment 3 of the present invention;
[0064] Figure 6 is a structural diagram of a state switching module provided in Embodiment 3 of the present invention;
[0065] Figure 7is a structural diagram of a first signal detection module provided in Embodiment 3 of the present invention;
[0066] Figure 8 is a structural diagram of a second signal detection module provided in Embodiment 3 of the present invention;
[0067] Fig. 9 is a structural schematic diagram of a driving supplementary circuit provided in Embodiment 3 of the present invention;
[0068] Fig.10 is a structural diagram of a type detection module provided in Embodiment 3 of the present invention;
[0069] Fig.11 is a schematic diagram of the structure of another type of detection module provided in Embodiment 3 of the present invention;
[0070] Fig.12 is a structural schematic diagram of a signal generating module provided in Embodiment 3 of the present invention;
[0071] 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
[0072] 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.
[0073] Embodiment 1
[0074] Figure 1 It is a flow chart of a charge and discharge control method provided in the first 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. 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 switch module, a second interface module and a processor; 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 second interface module is used to be electrically connected to the vehicle end, the first interface module, the switch module, and the second interface module are all electrically connected to the processor, and the first interface module is used to connect to a load or a power supply; the charge and discharge control method specifically includes the following steps:
[0075] Step 110: 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.
[0076] Step 120: If there is a voltage signal at the L terminal and the N terminal of the first interface module, and there is no voltage signal at the L terminal and the N terminal of the second interface module, control the vehicle end to enter the charging mode.
[0077] Exemplarily, the power source includes a charging pile or a power grid, and the vehicle-side enters the charging mode when the vehicle-side enters the charging pile charging mode or the vehicle-side enters the power grid charging mode. After the vehicle-side enters the charging mode, the switch module is controlled to be turned on, so that the L end of the first interface module is connected to the L end of the second interface module, and the N end of the first interface module is connected to the N end of the second interface module through the switch module, thereby realizing vehicle-side charging.
[0078] Step 130: 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, the vehicle end is controlled to enter a discharge mode.
[0079] Exemplarily, the load includes a vehicle load or a non-vehicle load. The vehicle load may be a new energy vehicle. The non-vehicle load is a load other than the vehicle load, such as a kettle, an induction cooker, a mobile phone, etc. The vehicle end enters the discharge mode when the vehicle end enters the vehicle load discharge mode or the vehicle end enters the non-vehicle load discharge mode. After the vehicle end enters the discharge mode, the switch module is controlled to be turned on, so that the L end of the first interface module is turned on with the L end of the second interface module, and the N end of the first interface module is turned on with the N end of the second interface module through the switch module, thereby realizing the vehicle end discharge.
[0080] The charge and discharge control method provided in this embodiment can determine whether the vehicle end is connected to a power source or a load based on 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, and then control the vehicle end to enter a charging mode or a discharging mode, so that a power source such as a charging pile or a power grid charges the vehicle end through a charge and discharge control circuit, or the vehicle end supplies power to a load such as a vehicle load or a non-vehicle load through a charge and discharge control circuit, thereby achieving compatibility with multiple charge and discharge modes.
[0081] Embodiment 2
[0082] Figure 2It 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, etc. 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 switch module, a second interface module and a processor; 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 second interface module is used to be electrically connected to the vehicle end, the first interface module, the switch module, and the second interface module are all electrically connected to the processor, and the first interface module is used to connect to a load or a power supply; the charge and discharge control circuit also 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 discharge mode and a first switch, and the first switch is used to control the first identification resistor unit or the second identification resistor unit to be electrically connected to the second interface module; the charge and discharge control method specifically includes the following steps:
[0083] 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.
[0084] Wherein, 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 are both AC voltage signals. 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.
[0085] Furthermore, the power supply includes a charging pile or a power grid, the first interface module is connected to the power grid through a three-wire plug, and the first interface module is connected to the charging pile through an accessory charging gun. The load includes a vehicle load and a non-vehicle load; the non-vehicle load is electrically connected to the first interface module through a power strip; the vehicle load is electrically connected to the first interface module through an accessory charging gun, and the power strip includes a first voltage-dividing identification resistor; 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 first voltage-dividing identification resistor. The charge and discharge control circuit also includes a first signal detection module, and the first signal detection module includes a first field effect transistor, the gate of the first field effect transistor is used to receive a voltage signal from 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 a supply voltage through a pull-up resistor, and the source of the first field effect transistor is grounded.
[0086] 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 state of the first switch to connect the first identification resistor unit 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.
[0087] 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.
[0088] 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 discharge 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, 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 (at this time, the vehicle end is adapted to the charging mode), 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. If there are voltage signals at the L and N ends of the first interface module and the L and N ends of the second interface module when re-detected, there is an abnormality, such as an abnormality at the vehicle end or an abnormality at the switch module. The switch module includes a relay switch, and the relay switch may be stuck. Therefore, corresponding abnormal processing is required. The relevant procedures for abnormal processing are not limited in this embodiment.
[0089] Step 230: If there is a voltage signal at the L terminal and the N terminal of the first interface module, and there is no voltage signal at the L terminal and the N terminal of the second interface module, control the vehicle end to enter the charging mode.
[0090] Figure 3 is a flow chart of a charging control method provided by Embodiment 2 of the present invention. Figure 3 , control the vehicle end to enter charging mode, including:
[0091] Step 231: 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 232: 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] The first target PWM signal may 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. 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.
[0096] Step 233: If the signal end of the first interface module does not have the first PWM signal, 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, the third target PWM signal is output to the vehicle end, and the third target PWM signal is used to communicate with the vehicle. 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; it is also possible to set a temperature sensing IC in the three-wire plug, and obtain the digital information output by the corresponding temperature sensing IC through the type detection module, so as to determine the type of the three-wire plug, etc.
[0099] 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, the vehicle end is controlled to enter a discharge mode.
[0100] Figure 4 is a flow chart of a discharge control method provided by Embodiment 2 of the present invention. Figure 4 , controlling the vehicle end to enter the discharge mode includes:
[0101] 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.
[0102] 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.
[0103] 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.
[0104] The second PWM signal is a PWM signal output by the vehicle end.
[0105] Step 243: If the signal terminal of the second interface module has a second PWM signal, output a second target PWM signal to the vehicle load according to the second PWM signal.
[0106] 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.
[0107] 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.
[0108] Step 250: 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.
[0109] 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.
[0110] 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.
[0111] 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 signal detection module, thereby determining whether the power source connected to the first interface module is a charging pile or a power grid; and can also determine whether the connected load is a vehicle load or a non-vehicle load according to the signal at the signal terminal of the first interface module, specifically by detecting the AD value at the signal terminal of the first interface module, thereby controlling the vehicle end to enter a charging mode or a discharging mode, wherein 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 achieving compatibility with multiple charging and discharging modes.
[0112] Embodiment 3
[0113] 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 switch module 20, a second interface module 30 and a processor 40.
[0114] 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).
[0115] 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).
[0116] 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.
[0117] The L end of the first interface module 10 is connected to the L end of the second interface module 30 through the switch module 20; the N end of the first interface module 10 is electrically connected to the N end of the second interface module 30 through the switch module 20; the switch module 20 is used to control the on-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; the second interface module 30 is used to be electrically connected to the vehicle end, the first interface module 10, the switch module 20, and the second interface module 30 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.
[0118] Among them, the processor 40 is used to control the charging and discharging of the vehicle end, including controlling the on and 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. 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.
[0119] 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. The switch module 20 includes a second switch K2 and a third switch K3, and the second switch K2 and the third switch K3 are both relay switches.
[0120] 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 on / off state of the switch module 20 by controlling the drive module 90 and the drive module 90 outputting a corresponding control signal.
[0121] 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.
[0122] 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.
[0123] 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.
[0124] 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 7Optionally, 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 CP / S end 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.
[0125] 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.
[0126] In addition, the charge and discharge control circuit further includes a second signal detection module 97, Figure 8 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 CP2 terminal of the second interface module through a 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 a 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 terminal 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.
[0127] 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.
[0128] 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 .
[0129] 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. 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.
[0130] 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.
[0131] 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.
[0132] 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.
[0133] 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.
[0134] 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 the second power supply voltage VCC, 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 the 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 the second voltage V2.
[0135] Specifically, the collector of the fourth transistor Q4 and the collector of the third transistor Q3 are electrically connected to the port CPP of the signal generation module 80 through a series 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.
[0136] 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 and the first interface module 10 are male and female ends matching the accessory charging gun. 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, respectively, and the accessory also includes a 16A to 10A adapter 204.
[0137] 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.
[0138] 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, and the charge and discharge control circuit includes a first interface module, a switch module, a second interface module and the processor; 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 connection and disconnection 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 second interface module is used to be electrically connected to the vehicle end, the first interface module, the switch module, and the second interface module are all electrically connected to the processor, and the first interface module is used to access a load or a power supply; The charge and discharge control method comprises: 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 is a voltage signal at the L terminal and the N terminal of the first interface module, and there is no voltage signal at the L terminal and the N terminal of the second interface module, control the vehicle end to enter the charging mode; 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, the vehicle end is controlled to enter the discharge mode.
2. The charge and discharge control method according to claim 1, characterized in that: 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 electrically connected to the second interface module; The controlling the vehicle end to enter a charging mode includes: 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 state of the first switch to connect the first identification resistor unit 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 is a voltage signal at the L terminal and the N terminal of the first interface module, and there is no voltage signal at the L terminal and the N terminal of the second interface module, the vehicle end is controlled to enter the charging mode.
3. The charge and discharge control method according to claim 2, characterized in that: Before detecting the voltage signals at the L terminal and the N terminal of the first interface module and the voltage signals at the L terminal and the N terminal of the second interface module, 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 resistor unit is connected to the second interface module.
4. The charge and discharge control method according to claim 1, characterized in that: The load includes a vehicle load and a non-vehicle load; the non-vehicle load is electrically connected to the first interface module via a power strip; the vehicle load is electrically connected to the first interface module via an accessory charging gun, and the power strip includes a first voltage-dividing identification resistor; The charge and discharge control circuit further includes a type detection module, and the type detection module is used to identify the AD value of the resistor output according to the first voltage division; The controlling the vehicle end to enter a discharge mode comprises: Acquire an AD value output by the type detection module, and determine whether the first interface module is connected to the vehicle load or the non-vehicle load according to the AD value; If the first interface module is connected to the vehicle load, the vehicle end is controlled to enter a discharge mode for the vehicle load; If the first interface module is connected to the non-vehicle load, the vehicle end is controlled to enter a discharge mode for the non-vehicle load; 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.
5. The charge and discharge control method according to claim 1, characterized in that: The load includes a vehicle load and a non-vehicle load; the non-vehicle load is electrically connected to the first interface module via a power strip; the vehicle load is electrically connected to the first interface module via an accessory charging gun, and the power strip includes a temperature sensing IC; The charge and discharge control circuit further includes a type detection module, and the type detection module is used to obtain digital information output by the temperature sensing IC; The controlling the vehicle end to enter a discharge mode comprises: Acquire digital information output by the temperature sensing IC, and determine whether the first interface module is connected to the vehicle load or the non-vehicle load according to the digital information; If the first interface module is connected to the vehicle load, the vehicle end is controlled to enter a discharge mode for the vehicle load; If the first interface module is connected to the non-vehicle load, the vehicle end is controlled to enter a discharge mode for the non-vehicle load; 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.
6. The charge and discharge control method according to claim 4, characterized in that: The controlling the vehicle end to enter the vehicle load discharge mode includes: Detecting whether a second PWM signal is present at a signal end of the second interface module; If the signal terminal of the second interface module has the second PWM signal, a second target PWM signal is output to the vehicle load according to the second PWM signal.
7. The charge and discharge control method according to claim 1, characterized in that: The power source includes a charging pile or a power grid; 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.
8. The charge and discharge control method according to claim 7, characterized in that: The charge and discharge control circuit further 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; The controlling the vehicle end to enter the charging pile charging mode includes: Acquire the duty cycle and frequency of the first PWM signal through the first signal detection module; According to the duty cycle and frequency of the first PWM signal, a first target PWM signal is output to the vehicle end.
9. The charge and discharge control method according to claim 7, characterized in that: The first interface module is used to access the power grid through a three-wire plug, and the control of the vehicle end entering the power grid charging mode includes: Identifying the type of the three-wire plug and detecting the capacity of the three-wire plug; According to the capacity of the three-wire plug, a third target PWM signal is output to the vehicle end.
10. A charge and discharge control circuit, characterized in that: include: A first interface module, a switch module, a second interface module and a processor, wherein 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-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 second interface module is used to be electrically connected to the vehicle end, the first interface module, the switch module and the second interface module are all electrically connected to the processor, and the first interface module is used to access a load or a power supply.
11. The charge and discharge control circuit according to claim 10, 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 electrically connected to the second interface module.
12. The charge and discharge control circuit according to claim 10, characterized in that: It 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 power supply voltage through a pull-up resistor, and a source of the first field effect transistor is grounded.
13. The charge and discharge control circuit according to claim 10, 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 10, 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 10, 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 a charging and discharging control circuit as described in any one of claims 10-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
Charging and discharging management method and device, storage medium and charging and discharging device
CN120621126A