A charging connection state detection method and system for a charging device

Through the PWM wave generation circuit and voltage comparison circuit, the voltage comparison circuit composed of an op amp circuit and an optocoupler is used to output a logic level signal, which solves the high cost problem in the existing charging status detection technology and realizes a simple and economical charging connection. Status detection.

CN115107552BActive Publication Date: 2024-10-15KGE
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210690009.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-17
Publication Date
2024-10-15
Estimated Expiration
2042-06-17

AI Technical Summary

Technical Problem

The existing charging status detection technology relies on AD chips, resulting in high costs and complicated steps. There is an urgent need for a low-cost and simple detection method.

Method used

A PWM wave generation circuit is used to convert the PWM wave signal output by the processor into a rectangular wave, and the charging connection status is determined through a voltage comparison circuit and a level conversion circuit. A voltage comparison circuit composed of an op amp circuit and an optocoupler is used to output a logic level. signal to the processor.

Benefits of technology

It achieves low-cost, simple-step charging connection status detection, avoids the use of AD chips, and improves detection efficiency and readability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115107552B_ABST
    Figure CN115107552B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of charging detection technology, and discloses a charging connection state detection method for a charging device: S1: using a PWM wave generation circuit to convert a PWM wave signal output by a processor into a rectangular wave that can be recognized by a charging terminal and input into a charging device, and at the same time converting the output rectangular wave into a voltage signal and inputting into a voltage comparison circuit; S2: converting the voltage signal output by the PWM wave generation circuit into a level signal through a voltage comparison circuit; S3: using a level conversion circuit to convert the level signal output by the voltage comparison circuit into a logic level signal readable by a processor and inputting into the processor; S4: the processor determines the charging connection state of the charging device according to different logic level combinations. The present invention solves the problem that the existing charging state detection technology relies on AD chips and has high costs, and has the characteristics of simple steps and convenient connection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a charging detection technology, and more specifically, to a charging connection state detection method and system for a charging device. Background Art

[0002] According to the requirements of GB / T 18487.1-2015 Electric Vehicle Conductive Charging System, in order to ensure the safety of the charging process, the charging connection status of the charging pile needs to be monitored in real time and divided into three states: 1 not connected; 2 connected but the S2 switch on the vehicle end is not closed; 3 fully connected.

[0003] The main solution currently used is to perform AD sampling on the PWM wave output by the charging pile, calculate the voltage value under different connection states, and then make a judgment. The existing technology requires an ADC chip and a reference voltage for AD sampling.

[0004] The prior art has an intelligent charging control system, which includes a microprocessor MCU, an ADC signal detection circuit, a serial port display screen and a card swiping detection circuit.

[0005] The existing technology requires an AD chip to calculate the voltage value under different connection states, which has the problem of high cost. Therefore, how to invent a low-cost and simple-step electrical connection state detection method is an urgent problem to be solved in this technical field. Summary of the invention

[0006] In order to solve the problem that the existing charging state detection technology relies on AD chips and has high costs, the present invention provides a charging connection state detection method, which has the characteristics of simple steps and convenient connection.

[0007] In order to achieve the above-mentioned purpose of the present invention, the technical scheme adopted is as follows:

[0008] A method for detecting a charging connection state of a charging device:

[0009] S1: Using the PWM wave generation circuit, the PWM wave signal output by the processor is converted into a rectangular wave that can be recognized by the charging terminal and input into the charging device, and at the same time, the output rectangular wave is converted into a voltage signal and input into the voltage comparison circuit;

[0010] S2: Convert the voltage signal output by the PWM wave generation circuit into a level signal through a voltage comparison circuit;

[0011] S3: using a level conversion circuit to convert the level signal output by the voltage comparison circuit into a logic level signal readable by the processor and input the signal into the processor;

[0012] S4: The processor determines the charging connection state of the charging device according to different logic level combinations;

[0013] The charging connection states of the charging device are respectively:

[0014] connected but non-charging state, unconnected state, and chargeable state; the peak values ​​of the voltage signal output by the PWM wave generating circuit are different in different charging states; the peak voltage of the voltage signal output by the PWM wave generating circuit in the connected but non-charging state is lower than the peak voltage of the voltage signal output by the PWM wave generating circuit in the unconnected state, and the peak voltage of the voltage signal output by the PWM wave generating circuit in the unconnected state is lower than the peak voltage of the voltage signal output by the PWM wave generating circuit in the chargeable state;

[0015] The voltage comparison circuit comprises a first operational amplifier circuit, a second operational amplifier circuit and a third operational amplifier circuit; the voltage signal input to the first operational amplifier circuit and the second operational amplifier circuit is the voltage signal output by the PWM wave generating circuit, and the voltage signal input to the third operational amplifier circuit is 1 / 2 of the voltage signal output by the PWM wave generating circuit;

[0016] The reference voltage at the input end of the first operational amplifier circuit is less than the peak voltage of the voltage signal output by the PWM wave generating circuit when the circuit is in a connected but non-charging state;

[0017] The reference voltage at the input end of the second operational amplifier circuit is greater than the peak voltage of the voltage signal output by the PWM wave generating circuit when in a connected but non-charging state and is less than the peak voltage of the voltage signal output by the PWM wave generating circuit when in a non-connected state;

[0018] The reference voltage at the input end of the third operational amplifier circuit is greater than 1 / 2 of the peak voltage of the voltage signal output by the PWM wave generating circuit in the unconnected state and less than 1 / 2 of the peak voltage of the voltage signal output by the PWM wave generating circuit in the chargeable state.

[0019] Preferably, when the charging connection state is the unconnected state, the first operational amplifier circuit, the second operational amplifier circuit, and the third operational amplifier circuit all output a high level, and the logic output of the level conversion circuit is 111;

[0020] When the charging connection state is a connected but non-charging state, the first operational amplifier circuit and the second operational amplifier circuit output a high level, the third operational amplifier circuit outputs a low level, and the logic output of the level conversion circuit is 110;

[0021] When the charging connection state is a chargeable state, the first operational amplifier circuit outputs a high level, the second operational amplifier circuit and the third operational amplifier circuit output a low level, and the logic output of the level conversion circuit is 100.

[0022] A charging connection state detection system for a charging device, used to implement the charging connection state detection method, comprising a processor for judging the charging connection state and outputting a PWM wave signal, a PWM wave generation circuit for converting the PWM wave signal output by the processor into a rectangular wave recognizable by a charging terminal and inputting the rectangular wave into a charging device and converting the outputted rectangular wave into a voltage signal, a voltage comparison circuit for converting the voltage signal output by the PWM wave generation circuit into a level signal, and a level conversion circuit for converting the level signal output by the voltage comparison circuit into a logic level signal readable by the processor; the PWM wave generation circuit, the voltage comparison circuit, the level conversion circuit, and the processor are connected in sequence; and the PWM wave generation circuit is connected to the processor.

[0023] Preferably, the PWM wave generating circuit comprises an isolated optocoupler and a push-pull circuit, the input end of the push-pull circuit is electrically connected to the voltage output end of the isolated optocoupler; the push-pull circuit converts a rectangular wave into a voltage signal, the output end of the push-pull circuit is electrically connected to the input end of the voltage comparison circuit; the push-pull circuit comprises a transistor Q1 and a triode Q2, the base region of the transistor Q1 and the base region of the triode Q2 are respectively electrically connected to the voltage output end of the isolated optocoupler, and the emitter of the transistor Q1 and the emitter of the triode Q2 are respectively electrically connected to the input end of the voltage comparison circuit.

[0024] Furthermore, the voltage comparison circuit includes a first operational amplifier circuit, a second operational amplifier circuit and a third operational amplifier circuit; the input end of the first operational amplifier circuit, the input end of the second operational amplifier circuit and the input end of the third operational amplifier circuit are electrically connected to the output end of the push-pull circuit respectively; the output end of the first operational amplifier circuit, the output end of the second operational amplifier circuit and the output end of the third operational amplifier circuit are electrically connected to the output end of the level conversion circuit respectively.

[0025] Furthermore, the level conversion circuit includes a first optocoupler H1, a second optocoupler H2, and a third optocoupler H3; the input end of the first optocoupler H1, the input end of the second optocoupler H2, and the input end of the third optocoupler H3 are respectively electrically connected to the output end of the first operational amplifier circuit, the output end of the second operational amplifier circuit, and the output end of the third operational amplifier circuit, and the output end of the first optocoupler H1, the output end of the second optocoupler H2, and the output end of the third optocoupler H3 are electrically connected to the input end of the processor.

[0026] Furthermore, the first operational amplifier circuit includes a resistor R1, a capacitor C1, a resistor R2, a resistor R3, a resistor R4, a capacitor C2, and a first operational amplifier U1;

[0027] One end of the resistor R1 is electrically connected to the output end of the push-pull circuit, the other end of the resistor R1 is electrically connected to one end of the capacitor C1 and the positive input end of the first operational amplifier U1 respectively, and the other end of the capacitor C1 is grounded; one end of the resistor R2 is electrically connected to the negative input end of the first operational amplifier U1, the other end of the resistor R2 is electrically connected to one end of the resistor R3, and the other end of the resistor R3 is electrically connected to a high-level power supply; one end of the resistor R4 is electrically connected to the negative input end of the first operational amplifier U1, and the other end is electrically connected to a low-level power supply; the capacitor C2 is connected in parallel with the resistor R4; the output end of the first operational amplifier U1 is electrically connected to the first optocoupler H1.

[0028] Furthermore, the second operational amplifier circuit includes a resistor R5, a capacitor C3, a resistor R6, a resistor R7, a resistor R8, a capacitor C4, and a second operational amplifier U2;

[0029] One end of the resistor R5 is electrically connected to the output end of the push-pull circuit, the other end of the resistor R5 is electrically connected to one end of the capacitor C3 and the positive input end of the second operational amplifier U2, and the other end of the capacitor C3 is grounded; one end of the resistor R7 is electrically connected to the high-level power supply, the other end of the resistor R7 is electrically connected to the negative input end of the second operational amplifier U2 and one end of the resistor R6, one end of the resistor R8 is electrically connected to the low-level power supply and one end of the capacitor C4, and the other end of the resistor R8 is electrically connected to the other end of the resistor R6; one end of the resistor R6 is also electrically connected to the negative input end of the second operational amplifier U2; the other end of the capacitor C4 is electrically connected to one end of the resistor R6, the other end of the resistor R7, and the negative input end of the second operational amplifier U2.

[0030] Furthermore, the third operational amplifier circuit includes a resistor R9, a resistor R10, a resistor R11, a capacitor C5, a resistor R12, a resistor R13, a resistor R14, a capacitor C6, and a second operational amplifier U3; the resistance value of the resistor R9 is the same as the resistance value of the resistor R10;

[0031] One end of the resistor R9 is electrically connected to the output end of the push-pull circuit, and the other end of the resistor R9 is electrically connected to one end of the resistor R10 and one end of the resistor R11 respectively, the other end of the resistor R10 is grounded, the other end of the resistor R11 is electrically connected to one end of the capacitor C5 and the positive input end of the second operational amplifier U3 respectively, and the other end of the capacitor C5 is grounded; one end of the resistor R12 is electrically connected to the negative input end of the second operational amplifier U3, the other end of the resistor R12 is electrically connected to one end of the resistor R13, and the other end of the resistor R13 is electrically connected to the high-level power supply; one end of the resistor R14 is electrically connected to the negative input end of the second operational amplifier U3, and the other end is electrically connected to the low-level power supply; the capacitor C5 is connected in parallel with the resistor R14; the output end of the third operational amplifier U3 is electrically connected to the third optical coupler H3.

[0032] The beneficial effects of the present invention are as follows:

[0033] The charging connection status detection system utilizes a PWM wave generation circuit to convert the PWM wave signal output by the processor into a rectangular wave that can be recognized by the charging terminal and input into the charging device, and converts the output rectangular wave into a voltage signal, utilizes a voltage comparison circuit to convert the voltage signal output by the PWM wave generation circuit into a level signal, utilizes a level conversion circuit to convert the level signal output by the voltage comparison circuit into a logic level signal readable by the processor, and forms different logic levels to input the processor. Therefore, the present invention solves the problem that the existing charging status detection technology relies on AD chips and has high costs, and has the characteristics of simple steps and convenient connection. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 It is a flow chart of the charging connection status detection method.

[0035] Figure 2 This is the PWM wave generation circuit diagram.

[0036] Figure 3 It is the PWM waveform issued by the processor.

[0037] Figure 4 This is the PWM waveform after the circuit conversion.

[0038] Figure 5 It is a voltage comparison circuit diagram.

[0039] Figure 6 This is the optocoupler and level conversion circuit diagram.

[0040] Figure 7 It is a structural schematic diagram of the charging connection status detection system. DETAILED DESCRIPTION

[0041] The present invention is described in detail below with reference to the accompanying drawings and specific embodiments.

[0042] Example 1

[0043] like Figure 1 As shown, a method for detecting a charging connection status of a charging device:

[0044] S1: Using the PWM wave generation circuit, the PWM wave signal output by the processor is converted into a rectangular wave that can be recognized by the charging terminal and input into the charging device, and at the same time, the output rectangular wave is converted into a voltage signal and input into the voltage comparison circuit;

[0045] S2: Convert the voltage signal output by the PWM wave generation circuit into a level signal through a voltage comparison circuit;

[0046] S3: using a level conversion circuit to convert the level signal output by the voltage comparison circuit into a logic level signal readable by the processor and input the signal into the processor;

[0047] S4: The processor determines the charging connection status of the charging device according to different logic level combinations.

[0048] Example 2

[0049] like Figure 1 As shown, a method for detecting a charging connection status of a charging device:

[0050] S1: Using the PWM wave generation circuit, the PWM wave signal output by the processor is converted into a rectangular wave that can be recognized by the charging terminal and input into the charging device, and at the same time, the output rectangular wave is converted into a voltage signal and input into the voltage comparison circuit;

[0051] S2: Convert the voltage signal output by the PWM wave generation circuit into a level signal through a voltage comparison circuit;

[0052] S3: using a level conversion circuit to convert the level signal output by the voltage comparison circuit into a logic level signal readable by the processor and input the signal into the processor;

[0053] S4: The processor determines the charging connection status of the charging device according to different logic level combinations.

[0054] In a specific embodiment, the charging connection states of the charging device are: 1. Connected but non-charging state; 2. Disconnected state; 3. Chargeable state. The peak values ​​of the voltage signal output by the PWM wave generating circuit are different in different charging states; the peak voltage of the voltage signal output by the PWM wave generating circuit in the connected but non-charging state is lower than the peak voltage of the voltage signal output by the PWM wave generating circuit in the disconnected state, and the peak voltage of the voltage signal output by the PWM wave generating circuit in the disconnected state is lower than the peak voltage of the voltage signal output by the PWM wave generating circuit in the chargeable state;

[0055] The voltage comparison circuit comprises a first operational amplifier circuit, a second operational amplifier circuit and a third operational amplifier circuit; the voltage signal input to the first operational amplifier circuit and the second operational amplifier circuit is the voltage signal output by the PWM wave generating circuit, and the voltage signal input to the third operational amplifier circuit is 1 / 2 of the voltage signal output by the PWM wave generating circuit;

[0056] The reference voltage at the input end of the first operational amplifier circuit is less than the peak voltage of the voltage signal output by the PWM wave generating circuit when the circuit is in a connected but non-charging state;

[0057] The reference voltage at the input end of the second operational amplifier circuit is greater than the peak voltage of the voltage signal output by the PWM wave generating circuit when in a connected but non-charging state and is less than the peak voltage of the voltage signal output by the PWM wave generating circuit when in a non-connected state;

[0058] The reference voltage at the input end of the third operational amplifier circuit is greater than 1 / 2 of the peak voltage of the voltage signal output by the PWM wave generating circuit in the unconnected state and less than 1 / 2 of the peak voltage of the voltage signal output by the PWM wave generating circuit in the chargeable state.

[0059] In this embodiment, the reference voltage of the input end of the first operational amplifier circuit is 4.5V, the reference voltage of the input end of the second operational amplifier circuit is 7.3V, and the reference voltage of the input end of the third operational amplifier circuit is 5.3V.

[0060] As shown in the following table, when the charging connection state is state 1, the voltage signal output by the PWM wave generation circuit is 12V, and the levels output by the voltage comparison circuit are 12V, 12V, and 12V respectively;

[0061] When the charging connection state is state 2, the voltage signal output by the PWM wave generation circuit is 9V, and the levels output by the voltage comparison circuit are 12V, 12V, and 0V respectively;

[0062] When the charging connection state is state 3, the voltage signal output by the PWM wave generation circuit is 6V, and the levels output by the voltage comparison circuit are 12V, 0V, and 0V respectively.

[0063]

[0064] In a specific embodiment, when the charging connection state is state 1, the first operational amplifier circuit, the second operational amplifier circuit, and the third operational amplifier circuit all output levels of 12V, 12V, and 12V, respectively, and the logic levels output by the level conversion circuit are 3.3V, 3.3V, and 3.3V, respectively, and the logic level thus formed is 111;

[0065] When the charging connection state is state 2, the first operational amplifier circuit, the second operational amplifier circuit, and the third operational amplifier circuit all output levels of 12V, 12V, and 0V respectively, and the logic levels output by the level conversion circuit are 3.3V, 3.3V, and 0V respectively, and the logic level thus formed is 110;

[0066] When the charging connection state is state 3, the first operational amplifier circuit, the second operational amplifier circuit, and the third operational amplifier circuit all output levels of 12V, 0V, and 0V respectively, and the logic levels output by the optocoupler are 3.3V, 0V, and 0V respectively, and the logic level thus formed is 100.

[0067] Example 3

[0068] like Figure 7 As shown, a charging connection state detection system for a charging device is used to implement the charging connection state detection method, including a processor for judging the charging connection state and outputting a PWM wave signal, a PWM wave generation circuit for converting the PWM wave signal output by the processor into a rectangular wave recognizable by the charging terminal and inputting the rectangular wave into the charging device and converting the outputted rectangular wave into a voltage signal, a voltage comparison circuit for converting the voltage signal output by the PWM wave generation circuit into a level signal, and a level conversion circuit for converting the level signal output by the voltage comparison circuit into a logic level signal readable by the processor; the PWM wave generation circuit, the voltage comparison circuit, the level conversion circuit, and the processor are connected in sequence; and the PWM wave generation circuit is connected to the processor.

[0069] In a specific embodiment, the PWM wave generating circuit includes an isolated optocoupler and a push-pull circuit, the input end of the push-pull circuit is electrically connected to the voltage output end of the isolated optocoupler; the push-pull circuit converts a rectangular wave into a voltage signal, and the output end of the push-pull circuit is electrically connected to the input end of the voltage comparison circuit; the push-pull circuit includes a transistor Q1 and a transistor Q2, the base region of the transistor Q1 and the base region of the transistor Q2 are respectively electrically connected to the voltage output end of the isolated optocoupler, and the emitter of the transistor Q1 and the emitter of the transistor Q2 are respectively electrically connected to the input end of the voltage comparison circuit.

[0070] like Figure 2 As shown, the isolation optocoupler described in this embodiment is U17, and a 1k ohm resistor is provided between the output end of the isolation optocoupler and the push-pull circuit.

[0071] like Figure 3 , Figure 4 As shown, in a specific embodiment, the PWM wave generating circuit converts the PWM wave signal output by the processor into a ±12V rectangular wave recognizable by the vehicle end.

[0072] In this embodiment, the basic voltage of the transistor Q1 and the transistor Q2 is 12V, and the resistance of the output end of the transistor Q1 and the transistor Q2 is 825 ohms.

[0073] In a specific embodiment, the level conversion circuit includes a first optocoupler H1, a second optocoupler H2, and a third optocoupler H3; the input end of the first optocoupler H1, the input end of the second optocoupler H2, and the input end of the third optocoupler H3 are electrically connected to the output end of the first operational amplifier circuit, the output end of the second operational amplifier circuit, and the output end of the third operational amplifier circuit, respectively, and the output end of the first optocoupler H1, the output end of the second optocoupler H2, and the output end of the third optocoupler H3 are electrically connected to the input end of the processor.

[0074] like Figure 5 As shown, in this embodiment, the reference voltage of the input end of the first operational amplifier circuit is 4.5V, the reference voltage of the input end of the second operational amplifier circuit is 7.3V, and the reference voltage of the input end of the third operational amplifier circuit is 5.3V; the output end of the push-pull circuit is connected in series with an 825 ohm resistor R15, a diode, and a 29mH inductor LB1, and the inductor LB1 is electrically connected to the input end of the voltage comparison circuit; and one end of a 100pF capacitor C6 is electrically connected to the input end of the voltage comparison circuit.

[0075] In a specific embodiment, the first operational amplifier circuit includes a resistor R1, a capacitor C1, a resistor R2, a resistor R3, a resistor R4, a capacitor C2, and a first operational amplifier U1;

[0076] One end of the resistor R1 is electrically connected to the output end of the push-pull circuit, the other end of the resistor R1 is electrically connected to one end of the capacitor C1 and the positive input end of the first operational amplifier U1 respectively, and the other end of the capacitor C1 is grounded; one end of the resistor R2 is electrically connected to the negative input end of the first operational amplifier U1, the other end of the resistor R2 is electrically connected to one end of the resistor R3, and the other end of the resistor R3 is electrically connected to a high-level power supply; one end of the resistor R4 is electrically connected to the negative input end of the first operational amplifier U1, and the other end is electrically connected to a low-level power supply; the capacitor C2 is connected in parallel to the resistor R4; the output end of the first operational amplifier U1 is connected to.

[0077] In this embodiment, the resistor R1 is 20K ohms, the capacitor C1 is 100pF, the resistor R2 is 5.1K ohms, the resistor R3 is 2.74K ohms, the resistor R4 is 4.7K ohms, and the capacitor C2 is 100nF. A 30K ohm resistor R16 is also provided at the output end of the first operational amplifier U1. One end of the resistor R16 is electrically connected to the output end of the first operational amplifier U1, and the other end is connected to a positive 12V voltage.

[0078] In a specific embodiment, the second operational amplifier circuit includes a resistor R5, a capacitor C3, a resistor R6, a resistor R7, a resistor R8, a capacitor C4, and a second operational amplifier U2;

[0079] One end of the resistor R5 is electrically connected to the output end of the push-pull circuit, the other end of the resistor R5 is electrically connected to one end of the capacitor C3 and the positive input end of the second operational amplifier U2, and the other end of the capacitor C3 is grounded; one end of the resistor R7 is electrically connected to the high-level power supply, the other end of the resistor R7 is electrically connected to the negative input end of the second operational amplifier U2 and one end of the resistor R6, one end of the resistor R8 is electrically connected to the low-level power supply and one end of the capacitor C4, and the other end of the resistor R8 is electrically connected to the other end of the resistor R6; one end of the resistor R6 is also electrically connected to the negative input end of the second operational amplifier U2; the other end of the capacitor C4 is electrically connected to one end of the resistor R6, the other end of the resistor R7, and the negative input end of the second operational amplifier U2.

[0080] In this embodiment, the resistor R5 is 20K ohms, the capacitor C3 is 100pF, the resistor R6 is 5.1K ohms, the resistor R7 is 5.1K ohms, the resistor R8 is 2.74K ohms, and the capacitor C4 is 100nF. A 30K ohm resistor R17 is also provided at the output end of the second operational amplifier U2. One end of the resistor R17 is electrically connected to the output end of the second operational amplifier U2, and the other end is connected to a positive 12V voltage.

[0081] In a specific embodiment, the third operational amplifier circuit includes a resistor R9, a resistor R10, a resistor R11, a capacitor C5, a resistor R12, a resistor R13, a resistor R14, a capacitor C6, and a second operational amplifier U3; the resistance value of the resistor R9 is the same as the resistance value of the resistor R10;

[0082] One end of the resistor R9 is electrically connected to the output end of the push-pull circuit, and the other end of the resistor R9 is electrically connected to one end of the resistor R10 and one end of the resistor R11 respectively, the other end of the resistor R10 is grounded, the other end of the resistor R11 is electrically connected to one end of the capacitor C5 and the positive input end of the second operational amplifier U3 respectively, and the other end of the capacitor C5 is grounded; one end of the resistor R12 is electrically connected to the negative input end of the second operational amplifier U3, the other end of the resistor R12 is electrically connected to one end of the resistor R13, and the other end of the resistor R13 is electrically connected to a high-level power supply; one end of the resistor R14 is electrically connected to the negative input end of the second operational amplifier U3, and the other end is electrically connected to a low-level power supply; the capacitor C5 is connected in parallel with the resistor R14.

[0083] In this embodiment, resistor R9 is 180K ohms, resistor R10 is 180K ohms, resistor R11 is 20K ohms, capacitor C5 is 100PF, resistor R12 is 6.1K ohms, resistor R13 is 825 ohms, resistor R14 is 4.7K ohms, capacitor C6 is 100nF, and a 30K ohm resistor R18 is further provided at the output end of the third operational amplifier U3. One end of the resistor R18 is electrically connected to the output end of the second operational amplifier U3, and the other end is connected to a positive 12V voltage.

[0084] The charging connection state detection system utilizes a PWM wave generation circuit to convert the PWM wave signal output by the processor into a rectangular wave that can be recognized by the charging end and input into the charging device, and converts the output rectangular wave into a voltage signal, utilizes a voltage comparison circuit to input the voltage signal into a voltage comparison circuit composed of three operational amplifier circuits, and the operational amplifier circuit outputs three levels according to a reference voltage and input voltages under different charging connection states, and the three levels are respectively input into corresponding level conversion circuits, and utilizes the level conversion circuit to convert the level signal output by the voltage comparison circuit into three logic level signals readable by the processor, thereby forming three different logic level combinations to input into the processor, and the processor determines the charging connection state of the charging device according to different logic level combinations, thereby solving the problem that the existing charging state detection technology relies on AD chips and has high costs, and has the characteristics of simple steps and convenient connection.

[0085] Obviously, the above embodiments of the present invention are only examples for clearly explaining the present invention, and are not intended to limit the implementation methods of the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention shall be included in the protection scope of the claims of the present invention.

Claims

1. A method for detecting a charging connection state of a charging device, characterized in that: S1: Using the PWM wave generation circuit, the PWM wave signal output by the processor is converted into a rectangular wave that can be recognized by the charging terminal and input into the charging device, and at the same time, the output rectangular wave is converted into a voltage signal and input into the voltage comparison circuit; S2: Convert the voltage signal output by the PWM wave generation circuit into a level signal through a voltage comparison circuit; S3: using a level conversion circuit to convert the level signal output by the voltage comparison circuit into a logic level signal readable by the processor and input the signal into the processor; S4: The processor determines the charging connection state of the charging device according to different logic level combinations; the charging connection states of the charging device are: connected but non-charging state, unconnected state, and chargeable state; the peak values ​​of the voltage signal output by the PWM wave generating circuit are different in different charging states; the peak voltage of the voltage signal output by the PWM wave generating circuit in the connected but non-charging state is less than the peak voltage of the voltage signal output by the PWM wave generating circuit in the unconnected state, and the peak voltage of the voltage signal output by the PWM wave generating circuit in the unconnected state is less than the peak voltage of the voltage signal output by the PWM wave generating circuit in the chargeable state; The voltage comparison circuit comprises a first operational amplifier circuit, a second operational amplifier circuit and a third operational amplifier circuit; the voltage signal input to the first operational amplifier circuit and the second operational amplifier circuit is the voltage signal output by the PWM wave generating circuit, and the voltage signal input to the third operational amplifier circuit is 1 / 2 of the voltage signal output by the PWM wave generating circuit; The reference voltage at the input end of the first operational amplifier circuit is less than the peak voltage of the voltage signal output by the PWM wave generating circuit when the circuit is in a connected but non-charging state; The reference voltage at the input end of the second operational amplifier circuit is greater than the peak voltage of the voltage signal output by the PWM wave generating circuit when in a connected but non-charging state and is less than the peak voltage of the voltage signal output by the PWM wave generating circuit when in a non-connected state; The reference voltage at the input end of the third operational amplifier circuit is greater than 1 / 2 of the peak voltage of the voltage signal output by the PWM wave generating circuit in the unconnected state and less than 1 / 2 of the peak voltage of the voltage signal output by the PWM wave generating circuit in the chargeable state.

2. The charging connection status detection method according to claim 1, characterized in that: When the charging connection state is the unconnected state, the first operational amplifier circuit, the second operational amplifier circuit, and the third operational amplifier circuit all output a high level, and the logic output of the level conversion circuit is 111; When the charging connection state is a connected but non-charging state, the first operational amplifier circuit and the second operational amplifier circuit output a high level, the third operational amplifier circuit outputs a low level, and the logic output of the level conversion circuit is 110; When the charging connection state is a chargeable state, the first operational amplifier circuit outputs a high level, the second operational amplifier circuit and the third operational amplifier circuit output a low level, and the logic output of the level conversion circuit is 100.

3. A charging connection status detection system for a charging device, characterized in that: A method for detecting a charging connection state according to any one of claims 1 to 2, comprising a processor for determining a charging connection state and outputting a PWM wave signal, a PWM wave generating circuit for converting a PWM wave signal output by the processor into a rectangular wave recognizable by a charging terminal and inputting the rectangular wave into a charging device and converting the output rectangular wave into a voltage signal, a voltage comparison circuit for converting a voltage signal output by the PWM wave generating circuit into a level signal, and a level conversion circuit for converting the level signal output by the voltage comparison circuit into a logic level signal readable by the processor; the PWM wave generating circuit, the voltage comparison circuit, the level conversion circuit, and the processor are connected in sequence; and the PWM wave generating circuit is connected to the processor.

4. The charging connection status detection system of a charging device according to claim 3, characterized in that: The PWM wave generating circuit comprises an isolated optocoupler and a push-pull circuit, the input end of the push-pull circuit is electrically connected to the voltage output end of the isolated optocoupler; the push-pull circuit converts a rectangular wave into a voltage signal, the output end of the push-pull circuit is electrically connected to the input end of the voltage comparison circuit; the push-pull circuit comprises a transistor Q1 and a triode Q2, the base region of the transistor Q1 and the base region of the triode Q2 are electrically connected to the voltage output end of the isolated optocoupler, respectively, and the emitter of the transistor Q1 and the emitter of the triode Q2 are electrically connected to the input end of the voltage comparison circuit, respectively.

5. The charging connection status detection system of a charging device according to claim 4, characterized in that: The voltage comparison circuit includes a first operational amplifier circuit, a second operational amplifier circuit and a third operational amplifier circuit; the input end of the first operational amplifier circuit, the input end of the second operational amplifier circuit and the input end of the third operational amplifier circuit are respectively electrically connected to the output end of the push-pull circuit; the output end of the first operational amplifier circuit, the output end of the second operational amplifier circuit and the output end of the third operational amplifier circuit are respectively electrically connected to the output end of the level conversion circuit.

6. The charging connection status detection system of a charging device according to claim 5, characterized in that: The level conversion circuit includes a first optocoupler H1, a second optocoupler H2, and a third optocoupler H3; the input end of the first optocoupler H1, the input end of the second optocoupler H2, and the input end of the third optocoupler H3 are electrically connected to the output end of the first operational amplifier circuit, the output end of the second operational amplifier circuit, and the output end of the third operational amplifier circuit respectively, and the output end of the first optocoupler H1, the output end of the second optocoupler H2, and the output end of the third optocoupler H3 are electrically connected to the input end of the processor.

7. The charging connection status detection system of a charging device according to claim 6, characterized in that: The first operational amplifier circuit includes a resistor R1, a capacitor C1, a resistor R2, a resistor R3, a resistor R4, a capacitor C2, and a first operational amplifier U1; One end of the resistor R1 is electrically connected to the output end of the push-pull circuit, the other end of the resistor R1 is electrically connected to one end of the capacitor C1 and the positive input end of the first operational amplifier U1 respectively, and the other end of the capacitor C1 is grounded; one end of the resistor R2 is electrically connected to the negative input end of the first operational amplifier U1, the other end of the resistor R2 is electrically connected to one end of the resistor R3, and the other end of the resistor R3 is electrically connected to a high-level power supply; one end of the resistor R4 is electrically connected to the negative input end of the first operational amplifier U1, and the other end is electrically connected to a low-level power supply; the capacitor C2 is connected in parallel to the resistor R4; the output end of the first operational amplifier U1 is connected to.

8. The charging connection status detection system of a charging device according to claim 7, characterized in that: The second operational amplifier circuit includes a resistor R5, a capacitor C3, a resistor R6, a resistor R7, a resistor R8, a capacitor C4, and a second operational amplifier U2; One end of the resistor R5 is electrically connected to the output end of the push-pull circuit, the other end of the resistor R5 is electrically connected to one end of the capacitor C3 and the positive input end of the second operational amplifier U2, and the other end of the capacitor C3 is grounded; one end of the resistor R7 is electrically connected to the high-level power supply, the other end of the resistor R7 is electrically connected to the negative input end of the second operational amplifier U2 and one end of the resistor R6, one end of the resistor R8 is electrically connected to the low-level power supply and one end of the capacitor C4, and the other end of the resistor R8 is electrically connected to the other end of the resistor R6; one end of the resistor R6 is also electrically connected to the negative input end of the second operational amplifier U2; the other end of the capacitor C4 is electrically connected to one end of the resistor R6, the other end of the resistor R7, and the negative input end of the second operational amplifier U2.

9. The charging connection status detection system of a charging device according to claim 7, characterized in that: The third operational amplifier circuit includes a resistor R9, a resistor R10, a resistor R11, a capacitor C5, a resistor R12, a resistor R13, a resistor R14, a capacitor C6, and a second operational amplifier U3; the resistance value of the resistor R9 is the same as the resistance value of the resistor R10; One end of the resistor R9 is electrically connected to the output end of the push-pull circuit, and the other end of the resistor R9 is electrically connected to one end of the resistor R10 and one end of the resistor R11 respectively, the other end of the resistor R10 is grounded, the other end of the resistor R11 is electrically connected to one end of the capacitor C5 and the positive input end of the second operational amplifier U3 respectively, and the other end of the capacitor C5 is grounded; one end of the resistor R12 is electrically connected to the negative input end of the second operational amplifier U3, the other end of the resistor R12 is electrically connected to one end of the resistor R13, and the other end of the resistor R13 is electrically connected to a high-level power supply; one end of the resistor R14 is electrically connected to the negative input end of the second operational amplifier U3, and the other end is electrically connected to a low-level power supply; the capacitor C5 is connected in parallel with the resistor R14.