A high-security DC charging gun electronic lock control circuit

By introducing lock comparison module, latch module, locking drive module and unlocking drive module into the DC charging gun electronic lock control circuit, the problems of electronic lock control error judgment and power short circuit in the prior art are solved, and the electronic lock is realized Reliable locking and unlocking, and reduces the risk of power short circuit, improving charging safety and efficiency.

CN112659935BActive Publication Date: 2024-12-31LISHEN (QINGDAO) NEW ENERGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011394516.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-02
Publication Date
2024-12-31
Estimated Expiration
2040-12-02

AI Technical Summary

Technical Problem

The existing battery management system has misjudgment and logic errors when controlling the electronic lock of the DC charging gun to lock and unlock, resulting in a short circuit in the electronic lock driver power supply, affecting charging safety and efficiency. The electronic lock cannot be unlocked when it fails unexpectedly, resulting in charging. The gun cannot be pulled out.

Method used

A high-security DC charging gun electronic lock control circuit including locking comparison module, latch module, locking drive module, unlocking drive module and BMS main control chip was designed. Through scientific hardware circuit design, locking and The unlocked enable signal and latch control signal ensure reliable locking and unlocking of electronic locks and reduce the risk of power short circuit.

Benefits of technology

This solution significantly improves the reliability and safety of electronic locks, reduces the risk of power short circuit, ensures the stability and safety of the charging process, and has practical value and market promotion value due to scientific design, small space and low cost.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112659935B_ABST
    Figure CN112659935B_ABST
Patent Text Reader

Abstract

The present invention discloses a high-security DC charging gun electronic lock control circuit, which includes a locking comparison module, a latch module, a locking drive module, an unlocking drive module and a BMS main control chip; wherein the locking comparison module is respectively connected to the locking drive module, the unlocking drive module and the BMS main control chip; the latch module is respectively connected to the locking drive module, the unlocking drive module and the BMS main control chip; the locking drive module, the unlocking drive module and the BMS main control chip are respectively connected to the electronic lock. The high-security DC charging gun electronic lock control circuit disclosed by the present invention has a scientific structural design, can drive the electronic lock to lock and unlock reliably, and has great practical significance. In addition, the present invention can greatly reduce the risk of short circuit of the electronic lock power supply, and effectively avoid the problem of short circuit of the electronic lock driving power supply.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of battery management, and in particular to a high-safety electronic lock control circuit for a DC charging gun. Background Art

[0002] The Battery Management System (BMS) is a battery protection device and a bridge between the battery and the load terminal. It provides overcharge, over-discharge, over-temperature and other protection functions for the battery according to the actual use status of the battery monitored online to ensure the safe use of the battery. The battery management system BMS is widely used in many fields such as electric vehicles, communication base stations, robots, etc.

[0003] Taking electric vehicles as an example, according to the requirements of the new national standard GB / T18487.1-2015 (General requirements for conductive charging systems of electric vehicles Part 1), an electronic lock function must be added to the DC charging gun to ensure that when the charging pile is charging the on-board power battery system (hereinafter referred to as the battery system), it is prevented from pulling out the gun due to misoperation and other reasons, which may cause an arc and lead to personal safety accidents; the new national standard also requires locking before charging, unlocking after charging is completed, and the gun can only be pulled out after unlocking to ensure personal safety.

[0004] However, based on the existing technical solutions, when the BMS is required to control the locking and unlocking of the electronic lock, the existing technical solutions only judge and control the locking and unlocking of the electronic lock through the BMS software. If the BMS software is wrong or misjudged, it will output an unexpected signal to control the locking or unlocking of the electronic lock. Therefore, the BMS may fail to control the locking or unlocking of the electronic lock as required (for example, the electronic lock should be locked or unlocked but is not locked or unlocked, or should not be locked or unlocked but is locked or unlocked), which seriously affects the user's use;

[0005] In addition, if the BMS controls the logic of locking and unlocking the electronic lock, a short circuit problem will occur in the electronic lock drive power supply, making it impossible for the charging pile to charge the battery system;

[0006] In addition, if the electronic lock loses power due to an accidental power outage, the electronic lock will lose the unlocking power supply and cannot be unlocked, which will in turn make the charging gun unable to be unplugged from the charging pile, and the charging pile will no longer be able to continue charging the battery system. Summary of the invention

[0007] The purpose of the present invention is to provide a high-safety DC charging gun electronic lock control circuit in view of the technical defects in the prior art.

[0008] To this end, the present invention provides a high-security DC charging gun electronic lock control circuit, which includes a locking comparison module, a latch module, a locking drive module, an unlocking drive module and a BMS main control chip;

[0009] Among them, the locking comparison module is used to set the voltage threshold range for driving the electronic lock to lock, and its input end is connected to the detection end CC2 of the DC charging gun socket;

[0010] The locking comparison module, whose output terminal VO is respectively connected to the first input terminal of the locking driving module, the first input terminal of the unlocking driving module and the first input terminal of the BMS main control chip, is used to provide a locking and unlocking enable signal VO;

[0011] Among them, the latch module has a first input terminal connected to the output terminal OEC of the BMS main control chip;

[0012] A latch module, a second input terminal of which is connected to an output terminal LOCK of the BMS main control chip;

[0013] The latch module, whose output terminal LCK is connected to the second input terminal of the locking driving module and the second input terminal of the unlocking driving module respectively, is used to provide the locking driving module and the unlocking driving module with a latch control signal LCK for locking and unlocking;

[0014] Wherein, the first power input terminal of the locking drive module is connected to a DC power supply VCC1;

[0015] The locking drive module has a second power input terminal connected to a DC power supply VCC2;

[0016] The locking drive module has a third input terminal connected to the output terminal LOCK of the BMS main control chip, and is used to receive the control signal LOCK sent by the BMS main control chip to control the on and off of the locking power supply of the electronic lock;

[0017] The locking drive module, whose output terminal LOCK+ is connected to the positive input terminal IN+ of the electronic lock;

[0018] The locking drive module, whose output terminal LOCK+ is also connected to the output terminal UNLOCK- of the unlocking drive module;

[0019] The locking drive module has an output terminal LOCK- connected to the negative input terminal IN- of the electronic lock;

[0020] The locking drive module, whose output terminal LOCK-, is also connected to the output terminal UNLOCK+ of the unlocking drive module;

[0021] Wherein, the unlocking driving module has a first power input terminal connected to an external DC power supply VCC1;

[0022] The unlocking drive module has a second power input terminal connected to an external DC power supply VCC2;

[0023] The unlocking drive module has a third power input terminal connected to an external DC power supply VCC3;

[0024] The unlocking drive module has a third input terminal connected to the output terminal LOCK of the BMS main control chip, and is used to receive the control signal LOCK sent by the BMS main control chip to control the on and off of the unlocking power supply of the electronic lock;

[0025] Unlock the drive module, its output terminal UNLOCK+ is connected to the negative input terminal IN- of the electronic lock;

[0026] The output terminal UNLOCK+ of the unlocking driving module is also connected to the output terminal LOCK- of the locking driving module;

[0027] Unlock drive module, whose output terminal UNLOCK- is connected to the positive input terminal IN+ of the electronic lock;

[0028] The output terminal UNLOCK- of the unlocking driving module is also connected to the output terminal LOCK+ of the locking driving module;

[0029] Among them, the BMS main control chip, whose first input terminal is connected to the output terminal VO of the comparison module, is used to receive the locking and unlocking enable signal VO sent by the output terminal VO of the comparison module;

[0030] The BMS main control chip has a second input terminal connected to the position feedback output terminal ELOCK of the electronic lock, and is used to receive the locking and unlocking position feedback signals output by the position feedback output terminal ELOCK of the electronic lock;

[0031] The BMS main control chip has a first output terminal OEC connected to the second input terminal of the latch module, and is used to provide a latch enable signal OEC to the latch module;

[0032] The BMS main control chip has a second output terminal LOCK connected to the third input terminal of the locking drive module and the third input terminal of the unlocking drive module respectively, and is used to output the control signal LOCK of locking or unlocking the electronic lock to the locking drive module and the unlocking drive module, and to judge whether the electronic lock is locked and unlocked.

[0033] Preferably, the lock comparison module includes: resistors R1-R7, diodes D1-D6 and operational amplifiers U1-U2, wherein:

[0034] The power input terminal 3 of the operational amplifier U1 is connected to a 5V DC power supply VCC1, the second pin of the resistor R4 and the first pin of the resistor R7 respectively;

[0035] The input terminal 1 of the operational amplifier U1 is respectively connected to the second pin of the resistor R3, the anode of the diode D1, the cathode of the diode D2 and the first pin of the resistor R4;

[0036] The input terminal 2 of the operational amplifier U1 is respectively connected to the second pin of the resistor R2, the cathode of the diode D1, the anode of the diode D2, the second pin of the resistor R1, the anode of the diode D3, the cathode of the diode D4 and the input terminal 1 of the operational amplifier U2;

[0037] The ground terminal 4 of the operational amplifier U1 is connected to the ground terminal GND;

[0038] The output terminal 5 of the operational amplifier U1 is connected to the cathode of the diode D5;

[0039] The first pin of the resistor R2 and the first pin of the resistor R3 are both connected to the ground terminal GND;

[0040] The port where the second pin of the resistor R7 and the anode of the diode D5 intersect and converge is used as the output terminal VO of the locking comparison module;

[0041] The power input terminal 3 of the operational amplifier U2 is connected to a 5V DC power supply VCC1 and the second pin of the resistor R6 respectively;

[0042] The input terminal 2 of the operational amplifier U2 is respectively connected to the second pin of the resistor R5, the cathode of the diode D3, the anode of the diode D4 and the first pin of the resistor R6;

[0043] The ground terminal 4 of the operational amplifier U2 is connected to the ground terminal GND;

[0044] The output terminal 5 of the operational amplifier U2 is connected to the cathode of the diode D6;

[0045] The power input terminal 3 of the operational amplifier U2 is connected to a DC power source VCC1 and the second pin of the resistor R6 respectively;

[0046] The first pin of the resistor R1 is used as the input end of the lock comparison module and is used to connect to the detection end CC2 of the DC charging gun socket;

[0047] The first pin of the resistor R5 is connected to the ground terminal GND;

[0048] The anode of the diode D6 is connected to the output terminal VO of the locking comparison module.

[0049] Preferably, the latch module includes: resistors R60-R61 and a D latch U3, wherein:

[0050] The power supply terminal VCCD and the latch enable terminal LE of the D latch U3 are connected to the second pin of the resistor R60 after being intersected and merged;

[0051] The input terminal D of the D latch U3, as the first input terminal of the latch module, is connected to the output terminal LOCK of the BMS main control chip;

[0052] The output enable terminal of D latch U3 Connect the second pin of resistor R62;

[0053] The output terminal Q of the D latch U3, as the output terminal LCK of the latch module, is respectively connected to the second input terminal of the locking driving module and the second input terminal of the unlocking driving module;

[0054] Wherein, the first pin of the resistor R62 is connected to the second pin of R61;

[0055] The first pin of the resistor R62 also serves as the second input terminal of the latch module and is also connected to the output terminal OEC of the BMS main control chip;

[0056] The first pin of R61 is connected to the first pin of resistor R60 and a 5V DC power supply VCC1 respectively.

[0057] Preferably, the locking drive module includes: resistors R8 to R18, resistors R38 to R41, switch tubes Q1 to Q6 and switch tubes Q14 to Q16;

[0058] The base B of the switch tube Q1 is connected to the second pin of the resistor R8;

[0059] The emitter E of the switch tube Q1 is connected to the collector C of the switch tube Q2;

[0060] The collector C of the switch tube Q1 is connected to the first pins of the resistors R11, R12 and R15 respectively;

[0061] The first pin of the resistor R8 is used as the first input terminal of the locking driving module and is connected to the output terminal VO of the comparison module;

[0062] The base B of the switch tube Q2 is connected to the second pin of the resistor R9 and the first pin of the resistor R10;

[0063] The emitter E of the switch tube Q2 is connected to the second pin of the resistor R9 and the ground terminal GND;

[0064] Wherein, the base B of the switch tube Q3 is connected to the second pin of the resistor R12;

[0065] The collector C of the switch tube Q3 is connected to the ground terminal GND;

[0066] The emitter E of the switch tube Q3 is connected to the second pin of the resistor R11 and the first pin of the resistor R13 respectively;

[0067] The base B of the switch tube Q4 is connected to the second pins of the resistor R15 and the resistor R16 respectively;

[0068] The emitter E of the switch tube Q4 is connected to the first pin of the resistor R16 and a 12V DC power supply VCC2 respectively;

[0069] The collector C of the switch tube Q4 is connected to the first pin of the resistor R17;

[0070] The gate G of the switch tube Q5 is respectively connected to the second pin of the resistor R13, the second pin of the resistor R14 and the collector C of the switch tube Q16;

[0071] The drain D of the switch tube Q5 is respectively connected to the first pin of the resistor R41, the emitter E of the switch tube Q16, the first pin of the resistor R14 and a 12V DC power supply VCC2;

[0072] The source electrode S of the switch tube Q5 is connected to the output terminal LOCK+ of the locking driving module and the output terminal UNLOCK- of the unlocking driving module respectively;

[0073] The source S of the switch tube Q5, as the output terminal LOCK+ of the locking drive module, is connected to the positive input terminal IN+ of the electronic lock;

[0074] Wherein, the gate G of the switch tube Q6 is connected to the VS1 terminal;

[0075] The VS1 terminal is respectively connected to the second pin of the resistor R17, the first pin of the resistor R18, the collector C of the switch tube Q15 and the first pin of the resistor R40;

[0076] The source S of the switch tube Q6 is connected to the second pin of the resistor R18 and the ground terminal GND respectively;

[0077] The drain electrode D of the switch tube Q6 is connected to the output terminal LOCK- of the locking drive module;

[0078] The drain D of the switch tube Q6, as the output terminal LOCK- of the locking drive module, is connected to the negative input terminal IN- of the electronic lock;

[0079] Among them, the emitter E of the switch tube Q14 is connected to a 5V DC power supply VCC1;

[0080] The base B of the switch tube Q14 is connected to the second pin of the resistor R38;

[0081] The collector C of the switch tube Q14 is connected to the base B of the switch tube Q15 and the first pin of the resistor R39 respectively;

[0082] The first pin of the resistor R38 is used as the third input terminal of the locking drive module and is connected to the output terminal LOCK of the BMS main control chip;

[0083] The second pin of the resistor R39 is connected to the ground terminal GND;

[0084] The base B of the switch tube Q15 is connected to the collector C of the switch tube Q14 and the first pin of the resistor R39;

[0085] The emitter E of the switch tube Q15 is connected to the ground terminal GND;

[0086] Among them, the first pin of the resistor R40 is connected to the VS1 terminal;

[0087] The base B of the switch tube Q16 is connected to the second pin of the resistor R40 and the second pin of the resistor R41 respectively.

[0088] Preferably, the unlocking driving module includes: resistors R19-R30, resistors R42-R44, switch tubes Q7-Q13 and switch tubes Q17-Q18, wherein:

[0089] The collector C of the switch tube Q7 is connected to the external DC power supply VCC3;

[0090] The base B of the switch tube Q7 is connected to the second pin of the resistor R19;

[0091] The emitter E of the switch tube Q7 is connected to the emitter E of the switch tube Q8 and the first pin of the resistor R21 respectively;

[0092] The base B of the switch tube Q8 is connected to the second pins of the resistor R20 and the resistor R21 respectively;

[0093] The collector C of the switch tube Q8 is connected to the first pin of the resistor R22;

[0094] The base B of the switch tube Q9 is connected to the second pin of the resistor R22 and the first pin of the resistor R23 respectively;

[0095] The emitter E of the switch tube Q9 is connected to the second pin of the resistor R23 and the ground terminal GND respectively;

[0096] The collector C of the switch tube Q9 is respectively connected to the second pin of the resistor R24, the first pin of the resistor R27 and the base B of the switch tube Q10;

[0097] The emitter E of the switch tube Q10 is connected to the first pin of the resistor R24 ​​and the first pin of the resistor R25 respectively;

[0098] The collector C of the switch tube Q10 is connected to the ground terminal GND;

[0099] The base B of the switch tube Q11 is connected to the second pin of the resistor R27 and the second pin of the resistor R28 respectively;

[0100] The emitter of the switch tube Q11 is connected to the first pin of the resistor R28 and a 12V DC power supply VCC2 respectively;

[0101] The collector C of the switch tube Q11 is connected to the first pin of the resistor R29;

[0102] The gate G of the switch tube Q12 is respectively connected to the second pin of the resistor R25, the second pin of the resistor R26 and the collector C of the switch tube Q18;

[0103] The drain D of the switch tube Q12 is respectively connected to the second pin of the resistor R44, the emitter E of the switch tube Q18, the first pin of the resistor R26, the cathode of the diode D7 and the cathode of the diode D8;

[0104] The anode of the diode D7 and the anode of the diode D8 are respectively connected to a 12V DC power supply VCC2 and a 12V DC power supply VCC3;

[0105] The source electrode S of the switch tube Q12 is connected to the output terminal UNLOCK+ of the unlocking drive module and the output terminal LOCK+ of the locking drive module respectively; the source electrode S of the switch tube Q12, as the output terminal UNLOCK+ of the unlocking drive module, is connected to the negative input terminal IN- of the electronic lock;

[0106] Wherein, the gate G of the switch tube Q13 is connected to the VS2 terminal;

[0107] The VS2 terminal is respectively connected to the second pin of the resistor R29, the first pin of the resistor R30, the collector C of the switch tube Q17 and the first pin of the resistor R43;

[0108] The source S of the switch tube Q13 is connected to the second pin of the resistor R30 and the ground terminal GND respectively;

[0109] The drain electrode D of the switch tube Q13, as the output terminal UNLOCK- of the unlocking drive module, is connected to the positive input terminal IN+ of the electronic lock;

[0110] The first pin of the resistor R42 is used as the third input terminal of the unlocking drive module and is connected to the output terminal LOCK of the BMS main control chip;

[0111] The base B of the switch tube Q17 is connected to the second pin of the resistor R42;

[0112] The emitter E of the switch tube Q17 is connected to the ground terminal GND;

[0113] Among them, the first pin of the resistor R43 is connected to the VS2 terminal;

[0114] The base B of the switch tube Q18 is connected to the first pin of the resistor R43 and the first pin of the resistor R44 respectively.

[0115] It can be seen from the technical solution provided by the present invention that, compared with the prior art, the present invention provides a high-security DC charging gun electronic lock control circuit, which has a scientific structural design and can drive the electronic lock to lock and unlock reliably, which has great practical significance.

[0116] In addition, the present invention can greatly reduce the risk of short circuit of the electronic lock power supply, and effectively avoid the problem of short circuit of the electronic lock driving power supply.

[0117] In addition, for the present invention, the hardware circuit design is scientific, the number of ports occupied by the BMS main control chip is small, the electronic components are commonly used models, easy to select, and the price is also low; in addition, since surface-mounted low-power electronic components are used, the circuit board occupies a small space and the design cost is very low. Therefore, the technical solution of the present invention has strong practical value and market promotion value. BRIEF DESCRIPTION OF THE DRAWINGS

[0118] Figure 1 The overall structural block diagram of a high-security DC charging gun electronic lock control circuit provided by the present invention;

[0119] Figure 2 A schematic diagram of a comparison module in a high-security DC charging gun electronic lock control circuit provided by the present invention;

[0120] Figure 3 A schematic diagram of a latch module in a high-security DC charging gun electronic lock control circuit provided by the present invention;

[0121] Figure 4 A schematic diagram of a locking drive module in a high-security DC charging gun electronic lock control circuit provided by the present invention;

[0122] Figure 5 A schematic diagram of an unlocking drive module in a high-security DC charging gun electronic lock control circuit provided by the present invention. DETAILED DESCRIPTION

[0123] In order to make the technical means implemented by the present invention easier to understand, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are only used to explain the relevant application, rather than to limit the application. It is also necessary to explain that, for the convenience of description, only the parts related to the present application are shown in the accompanying drawings.

[0124] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0125] See also Figures 1 to 5 The present invention provides a high-security DC charging gun electronic lock control circuit, including a locking comparison module 100, a latch module 200, a locking drive module 300, an unlocking drive module 400 and a BMS main control chip 500;

[0126] Among them, the locking comparison module 100 is used to set the voltage threshold range for driving the electronic lock to lock, and its input end is connected to the detection end CC2 of the DC charging gun socket;

[0127] The locking comparison module 100, whose output terminal VO is respectively connected to the first input terminal of the locking driving module 300, the first input terminal of the unlocking driving module 400 and the first input terminal of the BMS main control chip 500, is used to provide a locking and unlocking enable signal VO;

[0128] It should be noted that the DC charging gun socket is a socket that complies with the requirements of the new national standard GB / T18487.1-2015 (General requirements for electric vehicle conductive charging systems Part 1). The voltage values ​​of the charging connection confirmation terminal CC2 on it include: 12V (when the charging gun is not inserted) and 6V (when the charging gun is inserted).

[0129] It should be noted that the technical solution of the present invention is applicable to the motor-type electronic locks and electromagnetic electronic locks that are commonly used at present, and they all require positive power supply to drive locking and reverse power supply to drive unlocking, that is, the electronic lock is locked when the positive input terminal IN+ is connected to the driving power supply, and is unlocked when the negative input terminal IN- of the electronic lock is connected to the driving power supply.

[0130] It should be noted that the interface of the electronic lock to which the technical solution of the present invention is applicable needs to comply with the requirements of the new national standard GB / T18487.1-2015 (General requirements for electric vehicle conductive charging systems Part 1) for the electronic lock interface.

[0131] Among them, the latch module 200 has a first input terminal connected to the output terminal OEC of the BMS main control chip 500;

[0132] The latch module 200 has a second input terminal connected to the output terminal LOCK of the BMS main control chip 500;

[0133] The latch module 200, whose output terminal LCK is connected to the second input terminal of the locking driving module 300 and the second input terminal of the unlocking driving module 400, respectively, is used to provide the locking driving module 300 and the unlocking driving module 400 with a latch control signal LCK for locking and unlocking;

[0134] It should be noted that, in the present invention, the output terminal LKC of the latch module 200 has three signal states: high level, low level and high impedance state, specifically:

[0135] 1. High level, turn on the power to drive the electronic lock to lock;

[0136] 2. Low level, connect the power supply to drive the electronic lock to unlock;

[0137] 3. High impedance state, drive power is not connected.

[0138] The locking driving module 300 has a first power input terminal connected to a DC power source VCC1;

[0139] The locking drive module 300 has a second power input terminal connected to a DC power supply VCC2;

[0140] The locking drive module 300 has a third input terminal connected to the output terminal LOCK of the BMS main control chip 500, and is used to receive the control signal LOCK sent by the BMS main control chip 500 to control the on and off of the locking power supply of the electronic lock;

[0141] The locking drive module 300 has an output terminal LOCK+ connected to the positive input terminal IN+ of the electronic lock;

[0142] The locking driving module 300, whose output terminal LOCK+ is also connected to the output terminal UNLOCK- of the unlocking driving module 400;

[0143] The locking drive module 300 has an output terminal LOCK- connected to the negative input terminal IN- of the electronic lock;

[0144] The locking driving module 300, whose output terminal LOCK- is also connected to the output terminal UNLOCK+ of the unlocking driving module 400;

[0145] Wherein, the unlocking driving module 400 has a first power input terminal connected to an external DC power source VCC1;

[0146] The unlocking driving module 400 has a second power input terminal connected to an external DC power source VCC2;

[0147] The unlocking driving module 400 has a third power input terminal connected to an external DC power source VCC3;

[0148] The unlocking drive module 400 has a third input terminal connected to the output terminal LOCK of the BMS main control chip 500, and is used to receive the control signal LOCK sent by the BMS main control chip 500 to control the on and off of the unlocking power supply of the electronic lock;

[0149] The unlocking driving module 400 has an output terminal UNLOCK+ connected to the negative input terminal IN- of the electronic lock;

[0150] The unlocking driving module 400 has an output terminal UNLOCK+ connected to the output terminal LOCK- of the locking driving module 300;

[0151] The unlocking driving module 400 has an output terminal UNLOCK- connected to the positive input terminal IN+ of the electronic lock;

[0152] The output terminal UNLOCK- of the unlocking driving module 400 is also connected to the output terminal LOCK+ of the locking driving module 300;

[0153] Among them, the BMS main control chip 500, whose first input terminal is connected to the output terminal VO of the comparison module 100, is used to receive the locking and unlocking enable signal VO sent by the output terminal VO of the comparison module 100;

[0154] The BMS main control chip 500 has a second input terminal connected to the position feedback output terminal ELOCK of the electronic lock, and is used to receive the locking and unlocking position feedback signals output by the position feedback output terminal ELOCK of the electronic lock;

[0155] The BMS main control chip 500 has a first output terminal OEC connected to the second input terminal of the latch module 200, and is used to provide a latch enable signal OEC to the latch module 200;

[0156] It should be noted that the latch enable signal OEC provided by the BMS main control chip 500 includes two signal states: high level and low level, wherein:

[0157] 1. High level, making the output terminal LKC of the latch module 200 in high impedance state;

[0158] 2. Low level, so that the output terminal LKC of the latch module 200 changes in the same direction as the signal state of its input terminal D, that is, changes with the LOCK signal state; in addition, when the BMS main control chip 500 is reset, the OEC signal is also at a low level.

[0159] It should be noted that the latch enable signal OEC is controlled by the output terminal VO of the comparison module 100 and the feedback signal ELOCK output by the electronic lock, specifically:

[0160] 1. When the output signal VO of the comparison module 100 is at a low level, the priority is the highest, and the latch enable signal OEC is at a high level;

[0161] 2. When the output signal VO of the comparison module 100 is at a high level, the priority is the lowest, and the effective signal of the feedback signal ELOCK output by the electronic lock has the highest priority; at this time, if the feedback signal ELOCK is valid, the enable signal OEC is at a high level; if the feedback signal ELOCK is invalid, the enable signal OEC is at a high level or a low level, and the high level or low level signal state is controlled by the charging control strategy stored in the BMS main control chip 300. The strategy complies with the charging control strategy required by the new national standard, does not belong to the technical solution of the present invention, and is not explained in detail here.

[0162] The BMS main control chip 500 has a second output terminal LOCK connected to the second input terminal of the latch module 200, and is used to provide a locking or unlocking control signal LOCK to the latch module 200;

[0163] The second output terminal LOCK of the BMS main control chip 500 is also connected to the third input terminal of the locking driving module 300 and the third input terminal of the unlocking driving module 400, respectively, so as to provide the locking or unlocking control signal LOCK to the two driving modules;

[0164] It should be noted that, in the present invention, the output terminal LOCK of the BMS main control chip 500 can be a push-pull output and has three signal states:

[0165] 1. High level, turn on the power to drive the electronic lock to lock;

[0166] 2. Low level, when the power is turned on, the electronic lock is unlocked; in addition, when the BMS main control chip 300 is reset, it is also at a low level;

[0167] 3. High impedance state, the electronic lock is not connected to the power supply.

[0168] In specific implementation, when the output signal VO of the lock comparison module 100 is at a low level, the priority is the highest and the LOCK signal is in a high impedance state;

[0169] In specific implementation, when the output signal VO of the lock comparison module 100 is at a high level, the priority is the lowest, and the LOCK signal is at a high level or a low level; wherein the high level or low level signal is controlled by the charging control strategy stored in the BMS main control chip 300, which complies with the charging control strategy required by the new national standard, does not belong to the technical solution of the present invention, and is not explained in detail here.

[0170] In the present invention, in a specific implementation, the DC power supply VCC1 is a 5V DC power supply, and specifically can be a 5V DC power supply provided by a BMS.

[0171] The DC power supply VCC2 is a 12V DC power supply provided by the DC charging pile, which is the driving power supply for locking and unlocking the electronic lock;

[0172] The DC power supply VCC3 is a 12V DC power supply provided by the BMS and is the driving power supply for unlocking the electronic lock;

[0173] It should be noted that, in the present invention, when the electronic lock is locked, the positive input terminal IN+ and the negative input terminal IN- of the electronic lock are respectively connected to the positive and negative poles of the power supply VCC2; when the electronic lock is unlocked, the positive input terminal IN+ and the negative input terminal IN- of the electronic lock are respectively connected to the negative and positive poles of the power supply VCC2.

[0174] In the present invention, the specific implementation is as follows: Figure 2 As shown, the lock comparison module 100 includes: resistors R1-R7, diodes D1-D6 and operational amplifiers U1-U2, wherein:

[0175] The power input terminal 3 of the operational amplifier U1 is connected to a 5V DC power supply VCC1, the second pin of the resistor R4 and the first pin of the resistor R7 respectively;

[0176] The input terminal 1 of the operational amplifier U1 is respectively connected to the second pin of the resistor R3, the anode of the diode D1, the cathode of the diode D2 and the first pin of the resistor R4;

[0177] The input terminal 2 of the operational amplifier U1 is respectively connected to the second pin of the resistor R2, the cathode of the diode D1, the anode of the diode D2, the second pin of the resistor R1, the anode of the diode D3, the cathode of the diode D4 and the input terminal 1 of the operational amplifier U2;

[0178] The ground terminal 4 of the operational amplifier U1 is connected to the ground terminal GND;

[0179] The output terminal 5 of the operational amplifier U1 is connected to the cathode of the diode D5;

[0180] The first pin of the resistor R2 and the first pin of the resistor R3 are both connected to the ground terminal GND;

[0181] The port where the second pin of the resistor R7 and the anode of the diode D5 intersect and merge is used as the output terminal VO of the locking comparison module 100;

[0182] The power input terminal 3 of the operational amplifier U2 is connected to the power supply 5V and the second pin of the resistor R6 respectively;

[0183] The input terminal 2 of the operational amplifier U2 is respectively connected to the second pin of the resistor R5, the cathode of the diode D3, the anode of the diode D4 and the first pin of the resistor R6;

[0184] The ground terminal 4 of the operational amplifier U2 is connected to the ground terminal GND;

[0185] The output terminal 5 of the operational amplifier U2 is connected to the cathode of the diode D6;

[0186] The power input terminal 3 of the operational amplifier U2 is connected to a 5V DC power supply VCC1 and the second pin of the resistor R6 respectively;

[0187] The first pin of the resistor R1 is used as the input end of the locking comparison module 100 and is used to connect to the detection end CC2 of the DC charging gun socket;

[0188] The first pin of the resistor R5 is connected to the ground terminal GND;

[0189] An anode of the diode D6 is connected to the output terminal VO of the lock comparison module 100 .

[0190] In the present invention, in specific implementation, the working principle of the locking comparison module 100 is as follows:

[0191] 1. When the DC charging gun is not inserted into the DC charging gun socket, or is pulled out of the DC charging gun socket, the voltage of the detection terminal CC2 of the charging gun socket is 12V, and the voltage V1 is obtained after the voltage is divided by the resistor R1 and the resistor R2 (see Figure 2 As shown), at this time, the voltage V1 is greater than the upper limit VTH of the locking voltage threshold; since the voltage V1 is greater than VTH, V1 is greater than the lower limit VTL of the locking voltage threshold, so that the output terminal 5 of the operational amplifier U2 is at a high potential, the diode D6 is cut off, so that the output terminal 5 of the operational amplifier U1 is at a low potential, and the diode D5 is turned on, so that the output terminal VO of the locking comparison module 100 is at a low potential.

[0192] Among them, the upper limit VTH of the locking voltage threshold is obtained by dividing the power supply 5V (i.e., the DC power supply VCC1) by the resistor R4 and the resistor R3, and the lower limit VTL of the locking voltage threshold is obtained by dividing the power supply 5V (i.e., the DC power supply VCC1) by the resistor 6 and the resistor R5.

[0193] 2. When the DC charging gun is inserted into the DC charging gun socket, the detection terminal CC2 of the DC charging gun socket changes from 12V to 6V, so that the voltage V1 is between the lower limit VTL of the locking voltage threshold and the upper limit VTH of the locking voltage threshold; since the voltage V1 is greater than the lower limit VTL of the locking voltage threshold, the output terminal 5 of the operational amplifier U2 is at a high potential, and the diode D6 is cut off. Since the voltage V1 is less than the upper limit VTH of the locking voltage threshold, the output terminal 5 of the operational amplifier U1 is at a high potential, and the diode D5 is cut off, so the output terminal VO of the locking comparison module 100 is at a high potential.

[0194] In the present invention, the specific implementation is as follows: Figure 3 As shown, the latch module 200 includes: resistors R60-R61 and a D latch U3, wherein:

[0195] The power supply terminal VCCD and the latch enable terminal LE of the D latch U3 are connected to the second pin of the resistor R60 after being intersected and merged;

[0196] The input terminal D of the D latch U3, as the first input terminal of the latch module 200, is connected to the output terminal LOCK of the BMS main control chip 500;

[0197] The output enable terminal of D latch U3 Connect the second pin of resistor R62;

[0198] The output terminal Q of the D latch U3, as the output terminal LCK of the latch module 200, is connected to the second input terminal of the locking driving module 300 and the second input terminal of the unlocking driving module 400 respectively;

[0199] Wherein, the first pin of the resistor R62 is connected to the second pin of R61;

[0200] The first pin of the resistor R62 also serves as the second input terminal of the latch module 200 and is also connected to the output terminal OEC of the BMS main control chip.

[0201] The first pin of R61 is connected to the first pin of resistor R60 and a 5V DC power supply VCC1. Figure 4 As shown, the locking driving module 300 includes: resistors R8-R18, resistors R38-R41, switches Q1-Q6 and switches Q14-Q16;

[0202] The base B of the switch tube Q1 is connected to the second pin of the resistor R8;

[0203] The emitter E of the switch tube Q1 is connected to the collector C of the switch tube Q2;

[0204] The collector C of the switch tube Q1 is connected to the first pins of the resistors R11, R12 and R15 respectively;

[0205] The first pin of the resistor R8 is used as the first input terminal of the locking driving module 300 and is connected to the output terminal VO of the comparison module;

[0206] The base B of the switch tube Q2 is connected to the second pin of the resistor R9 and the first pin of the resistor R10;

[0207] The emitter E of the switch tube Q2 is connected to the second pin of the resistor R9 and the ground terminal GND;

[0208] Wherein, the base B of the switch tube Q3 is connected to the second pin of the resistor R12;

[0209] The collector C of the switch tube Q3 is connected to the ground terminal GND;

[0210] The emitter E of the switch tube Q3 is connected to the second pin of the resistor R11 and the first pin of the resistor R13 respectively;

[0211] The base B of the switch tube Q4 is connected to the second pins of the resistor R15 and the resistor R16 respectively;

[0212] The emitter E of the switch tube Q4 is connected to the first pin of the resistor R16 and a 12V DC power supply VCC2 respectively;

[0213] The collector C of the switch tube Q4 is connected to the first pin of the resistor R17;

[0214] The gate G of the switch tube Q5 is respectively connected to the second pin of the resistor R13, the second pin of the resistor R14 and the collector C of the switch tube Q16;

[0215] The drain D of the switch tube Q5 is respectively connected to the first pin of the resistor R41, the emitter E of the switch tube Q16, the first pin of the resistor R14 and a 12V DC power supply VCC2;

[0216] The source S of the switch tube Q5 is connected to the output terminal LOCK+ of the locking driving module 300 and the output terminal UNLOCK- of the unlocking driving module 400 respectively;

[0217] The source S of the switch tube Q5 is used as the output terminal LOCK+ of the locking driving module 300 and is connected to the positive input terminal IN+ of the electronic lock;

[0218] The gate G of the switch tube Q6 is connected to the VS1 terminal (VS1 is a port inside the locking driving module 300);

[0219] The VS1 terminal is respectively connected to the second pin of the resistor R17, the first pin of the resistor R18, the collector C of the switch tube Q15 and the first pin of the resistor R40;

[0220] The source S of the switch tube Q6 is connected to the second pin of the resistor R18 and the ground terminal GND respectively;

[0221] The drain electrode D of the switch tube Q6 is connected to the output terminal LOCK- of the locking driving module 300;

[0222] The drain D of the switch tube Q6 is used as the output terminal LOCK- of the locking driving module 300 and is connected to the negative input terminal IN- of the electronic lock;

[0223] Wherein, the emitter E of the switch tube Q14 is connected to a 5V DC power supply VCC1;

[0224] The base B of the switch tube Q14 is connected to the second pin of the resistor R38;

[0225] The collector C of the switch tube Q14 is connected to the base B of the switch tube Q15 and the first pin of the resistor R39 respectively;

[0226] The first pin of the resistor R38 is used as the third input terminal of the locking driving module 300 and is connected to the output terminal LOCK of the BMS main control chip 500;

[0227] The second pin of the resistor R39 is connected to the ground terminal GND;

[0228] The base B of the switch tube Q15 is connected to the collector C of the switch tube Q14 and the first pin of the resistor R39;

[0229] The emitter E of the switch tube Q15 is connected to the ground terminal GND;

[0230] Among them, the first pin of the resistor R40 is connected to the VS1 terminal;

[0231] The base B of the switch tube Q16 is connected to the second pin of the resistor R40 and the second pin of the resistor R41 respectively.

[0232] In the present invention, the specific implementation is as follows: Figure 5 As shown, the unlocking driving module 400 includes: resistors R19-R30, resistors R42-R44, switch tubes Q7-Q13 and switch tubes Q17-Q18, wherein:

[0233] The collector C of the switch tube Q7 is connected to the external DC power supply VCC3 (power supply 5V);

[0234] The base B of the switch tube Q7 is connected to the second pin of the resistor R19;

[0235] The emitter E of the switch tube Q7 is connected to the emitter E of the switch tube Q8 and the first pin of the resistor R21 respectively;

[0236] The base B of the switch tube Q8 is connected to the second pins of the resistor R20 and the resistor R21 respectively;

[0237] The collector C of the switch tube Q8 is connected to the first pin of the resistor R22;

[0238] The base B of the switch tube Q9 is connected to the second pin of the resistor R22 and the first pin of the resistor R23 respectively;

[0239] The emitter E of the switch tube Q9 is connected to the second pin of the resistor R23 and the ground terminal GND respectively;

[0240] The collector C of the switch tube Q9 is respectively connected to the second pin of the resistor R24, the first pin of the resistor R27 and the base B of the switch tube Q10;

[0241] The emitter E of the switch tube Q10 is connected to the first pin of the resistor R24 ​​and the first pin of the resistor R25 respectively;

[0242] The collector C of the switch tube Q10 is connected to the ground terminal GND;

[0243] The base B of the switch tube Q11 is connected to the second pin of the resistor R27 and the second pin of the resistor R28 respectively;

[0244] The emitter of the switch tube Q11 is connected to the first pin of the resistor R28 and a 12V DC power supply VCC2 respectively;

[0245] The collector C of the switch tube Q11 is connected to the first pin of the resistor R29;

[0246] The gate G of the switch tube Q12 is respectively connected to the second pin of the resistor R25, the second pin of the resistor R26 and the collector C of the switch tube Q18;

[0247] The drain D of the switch tube Q12 is respectively connected to the second pin of the resistor R44, the emitter E of the switch tube Q18, the first pin of the resistor R26, the cathode of the diode D7 and the cathode of the diode D8;

[0248] The anode of diode D7 and the anode of diode D8 are respectively connected to a 12V DC power supply VCC2 (i.e., a 12V charging pile low-voltage DC power supply VCC2) and a 12V DC power supply VCC3 (i.e., a BMS normal power 12V);

[0249] The source electrode S of the switch tube Q12 is connected to the output terminal UNLOCK+ of the unlocking driving module 400 and the output terminal LOCK+ of the locking driving module 300 respectively;

[0250] The source electrode S of the switch tube Q12, as the output terminal UNLOCK+ of the unlocking driving module 400, is connected to the negative input terminal IN- of the electronic lock;

[0251] The gate G of the switch tube Q13 is connected to the VS2 terminal (VS2 is a port inside the unlocking driving module 400);

[0252] The VS2 terminal is respectively connected to the second pin of the resistor R29, the first pin of the resistor R30, the collector C of the switch tube Q17 and the first pin of the resistor R43;

[0253] The gate G of the switch tube Q13 is also connected to the second pin of the resistor R29, the first pin of the resistor 30 and the collector C of the switch tube Q17 respectively;

[0254] The source S of the switch tube Q13 is connected to the second pin of the resistor R30 and the ground terminal GND respectively;

[0255] The drain D of the switch tube Q13, as the output terminal UNLOCK- of the unlocking driving module 400, is connected to the positive input terminal IN+ of the electronic lock;

[0256] The first pin of the resistor R42 is used as the third input terminal of the unlocking driving module 400 and is connected to the output terminal LOCK of the BMS main control chip 500;

[0257] The base B of the switch tube Q17 is connected to the second pin of the resistor R42;

[0258] The emitter E of the switch tube Q17 is connected to the ground terminal GND;

[0259] Among them, the first pin of the resistor R43 is connected to the VS2 terminal;

[0260] The base B of the switch tube Q18 is connected to the first pin of the resistor R43 and the first pin of the resistor R44 respectively.

[0261] In the present invention, in a specific implementation, Q1, Q2, Q7, Q9, Q17 and Q15 are NPN transistors;

[0262] Q8, Q14, Q16 and Q18 are PNP transistors;

[0263] Q5 and Q12 are P-connected MOS tubes; Q6 and Q13 are N-connected MOS tubes (field effect tubes).

[0264] In the present invention, in specific implementation, the working principles of each module included are as follows:

[0265] 1. When the DC charging gun is not inserted into the DC charging gun socket, the output terminal VO of the locking comparison module 100 is at a low potential (highest priority), so that the output terminal LOCK of the BMS main control chip 500 is in a high impedance state, and the output terminal OEC of the BMS main control chip 500 is at a high level;

[0266] For locking latch module 200, see Figure 3 The latch enable terminal LE of the D latch U3 is connected to the power supply 5V through the resistor R60 and always maintains a high level, and its output enable terminal The high-level OEC is pulled to a high level through the resistor R62, so that its output terminal Q is in a high-impedance state, that is, the output terminal LKC of the locking latch module 200 is in a high-impedance state;

[0267] For locking drive module 300, see Figure 4 , the output terminal VO of the locking comparison module 100 is at a low potential, so that the switch tube Q1 is turned off; the high-impedance state LKC turns off the switch tube Q2, thereby turning off the switch tubes Q3-Q4; the high-impedance state LOCK turns off the switch tubes Q14-Q16, the resistor R14 makes the gate-source voltage of the switch tube Q5 equal to make it cut off, and the resistor R18 makes the gate-source voltage of the switch tube Q6 equal to make it cut off, then there is no 12V (DC power supply VCC2) output between the output terminals LOCK+ and LOCK- of the locking drive module 300, so it will not drive the electronic lock to lock, and the position feedback output terminal ELOCK of the electronic lock will not output a locking signal (i.e., a locked position feedback signal);

[0268] For the unlocking drive module 400, see Figure 5 , the low-level VO turns off the switch tube Q7; the high-impedance LKC turns off the switch tube Q8, thereby turning off the switch tubes Q9-Q11; the high-impedance LOCK turns off the switch tubes Q17-Q18, the resistor R26 makes the gate-source voltage of the switch tube Q12 equal to make it cut off, and the resistor R30 makes the gate-source voltage of the switch tube Q13 equal to make it cut off, then there is no 12V (DC power supply VCC2 or VCC3) output between the output terminals UNLOCK+ and UNLOCK- of the unlocking driving module 400, so it will not drive the electronic lock to unlock, and the position feedback output terminal ELOCK of the electronic lock does not output an unlocking signal;

[0269] During this period, the power consumption of the locking driving module 300 and the unlocking driving module 400 is zero.

[0270] 2. When the DC charging gun is inserted into the DC charging gun socket, the detection terminal CC2 of the DC charging gun socket changes from 12V to 6V, and the output terminal VO of the locking comparison module 100 changes from low potential to high potential (the priority changes from the highest to the lowest); since the high potential VO signal has the lowest priority, the signal change of the output terminal LOCK of the BMS main control chip 300 is no longer controlled, so that the BMS main control chip 300 can control the signal state of its output terminal LOCK according to the charging strategy;

[0271] When the electronic lock position feedback output terminal ELOCK does not output a locking signal to the first input terminal of the BMS main control chip 500, according to the charging strategy, the BMS main control chip 500 first sets its output terminal OEC to a low level, and then changes its output terminal LOCK from a high impedance state to a high level;

[0272] Under this condition, for the latch module 200, see Figure 3, the low level OEC enables the output of the D latch U3 through resistor R62 Pull down to a low level, so that its output terminal Q follows the signal LOCK of the input terminal D to change to a high level in the same direction, that is, the output terminal LKC of the latch module 200 changes from a high impedance state to a high level;

[0273] For the locking drive module 300, see Figure 4 , the high level VO (lowest priority) turns the switch tube Q1 from off to on, the high level LKC turns the switch tube Q2 from off to on, the high level LOCK continues to keep the switch tubes Q14 to Q16 off, thereby turning the switch tubes Q3 to Q6 from off to on, then there is a 12V (DC power supply VCC2) output between the output terminals LOCK+ and LOCK- of the locking drive module 300, providing a positive power supply for the electronic lock to drive the electronic lock to lock;

[0274] When the electronic lock is reliably locked, the electronic lock outputs a locking signal (i.e., a locked position feedback signal) to the first input terminal of the BMS main control chip 500 through its position feedback output terminal ELOCK, so that the output terminal OEC of the BMS main control chip 500 changes from a low level to a high level, thereby enabling the enable terminal of the latch module 200 to The resistor R62, the resistor R61 and the power supply 5V are pulled from a low level to a high level, so that the output terminal LKC of the latch module 200 changes from a high level to a high impedance state, and the switch tube Q2 changes from on to off, so that the switch tubes Q3 to Q6 also change from on to off, and the connection with the DC power supply 12V (DC power supply VCC2 or VCC3) is disconnected, so that there is no 12V output between the output terminals LOCK+ and LOCK- of the locking drive module 300; at this time, the output terminal LOCK of the BMS main control chip 500 remains at a high level; so far, the BMS main control chip allows the power battery system to charge.

[0275] For the unlocking drive module 400, see Figure 5 , the high-level VO turns the switch tube Q7 from off to on, but the high-impedance LKC keeps the switch tube Q8 off, thereby keeping the switch tubes Q9 to Q13 off as well. Then, there is no 12V (DC power supply VCC2 or VCC3) output between the output terminals UNLOCK+ and UNLOCK- of the unlocking driving module 400, so the electronic lock will not be driven to unlock, and the position feedback output terminal ELOCK of the electronic lock has no unlock signal (i.e., unlock position feedback signal) output;

[0276] During the locking of the electronic lock, the high level LOCK causes the switch tubes Q17~Q18 in the unlocking drive module 400 to change from off to on, which provides a safety redundant measure for reliably cutting off the switch tubes Q12 and Q13. The purpose is to ensure that when the electronic lock is connected to the power supply 12V and locked, the switch tubes Q12 and Q13 are reliably cut off to avoid a short circuit fault of the power supply 12V to the ground through the switch tube Q13.

[0277] It should be noted that the switch tube Q12 is connected to the DC power supply 12V (i.e., the external DC power supply VCC2) provided by the charging pile through the diode D7, and is connected to the BMS normal power 12V (i.e., the external DC power supply VCC3) through the diode D8. The DC power output by the unlocking drive module 400 comes from these two power supplies.

[0278] 3. When charging is completed, the DC charging gun cannot be unplugged from the DC charging socket because it is locked by the electronic lock. The voltage of the detection terminal CC2 of the DC charging gun socket remains unchanged at 6V, and the output terminal VO of the locking comparison module 100 also remains at a high potential (lowest priority). Under this condition, according to the charging strategy, the BMS main control chip 500 first changes its output terminal LOCK from a high level to a low level, and then changes its output terminal OEC from a high level to a low level.

[0279] For the latch module 200, see Figure 3 , a low level OEC will enable the output of the D latch U3 The resistor R62 is pulled down from high level to low level, so that the output terminal Q follows the signal LOCK of the input terminal D and changes to low level in the same direction, that is, the output terminal LKC of the latch module 200 changes from high level to low level;

[0280] For the locking drive module 300, see Figure 4 , the high level VO keeps the switch tube Q1 turned on, the low level LKC keeps the switch tube Q2 turned off, and the switch tubes Q3~Q6 are also turned off, then there is no 12V (DC power supply VCC2) output between the output terminals LOCK+ and LOCK- of the locking drive module 300; the low level LOCK makes the switch tubes Q14~Q16 turn from off to on, which provides a safety redundancy measure for the reliable cutoff of the switch tubes Q5 and Q6, and the purpose is to ensure that when the electronic lock is connected to the power supply 12V (DC power supply VCC2 or VCC3) and unlocked, the switch tubes Q5 and Q6 are reliably cut off, so as to avoid the power supply 12V from being short-circuited to the ground through the switch tube Q6.

[0281] For the unlocking drive module 400, see Figure 5, the high level VO keeps the switch tube Q7 turned on, the low level LKC turns the switch tube Q8 from off to on, the low level LOCK turns the switch tubes Q17-Q18 from on to off, thereby turning the switch tubes Q9-Q13 from off to on, then there is a 12V (DC power supply VCC2 or VCC3) output between the output terminals UNLOCK+ and UNLOCK- of the unlocking driving module 400, providing a reverse power supply for the electronic lock to drive the electronic lock to unlock;

[0282] When the electronic lock is reliably unlocked, the electronic lock outputs an unlocking signal (i.e., an unlocked position feedback signal) to the first input terminal of the BMS main control chip 500 through its position feedback output terminal ELOCK, so that the output terminal OEC of the BMS main control chip 500 changes from a low level to a high level, and the output terminal LKC of the latch module 200 changes from a low level to a high impedance state, so that the switch tube Q8 changes from on to off, and the switch tubes Q9 to Q13 also change from on to off, disconnecting the connection with the DC power supply 12V (DC power supply VCC2 or VCC3), so that there is no 12V output between the output terminals UNLOCK+ and UNLOCK- of the unlocking drive module 400; at this point, the DC charging gun can be unplugged from the DC charging socket.

[0283] It should be noted that if it is a motor-type electronic lock, after the electronic lock outputs the locked or unlocked position feedback signal ELOCK, the output terminal OEC of the BMS main control chip 500 maintains a high level, so that the output terminal LKC of the latch module 200 remains in a high impedance state, so that there is no 12V output between the output terminals LOCK+ and LOCK- of the locking drive module 300.

[0284] It should be noted that, if it is an electromagnetic electronic lock, the output terminal OEC of the BMS main control chip 500 is a periodic high and low level signal, so that the output terminal LKC of the latch module 200 changes periodically between a high impedance state and a high level, so that the output terminals LOCK+ and LOCK- of the locking drive module 300 are periodic 12V outputs; the 12V output and disconnection time should meet the power-on and power-off times required in the electronic lock specification.

[0285] 4. When the DC charging gun is unplugged, the voltage of the detection terminal CC2 of the DC charging gun socket changes from 6V to 12V, and the output terminal VO of the lock comparison module 100 changes from high potential to low potential (the priority changes from the lowest to the highest), so that the output terminal LOCK of the BMS main control chip 500 is in a high impedance state, and the output terminal OEC of the BMS main control chip 500 is also in a high level, and the enable terminal of the latch module 200 is When the low level is pulled to the high level, the output terminal LCK of the latch module 200 becomes a high impedance state;

[0286] After the DC charging gun is unplugged, the power consumption of the locking driving module 300 and the unlocking driving module 400 is zero.

[0287] 5. When the BMS main control chip 500 is reset, its output terminals OEC and LOCK are both at low levels, so that the output terminal LKC of the latch module 200 is at a low level, so that the locking drive module 300 disconnects the DC power supply VCC2, and the unlocking drive module 400 connects to the 12V power supply (DC power supply VCC2 or VCC3) to drive the electronic lock to unlock; at this time, the DC charging gun can be unplugged.

[0288] 6. When the electronic lock loses power accidentally, that is, when the DC power supply (DC power supply VCC2) provided by the charging pile loses power accidentally, at the moment of power failure, in the unlocking drive module 400, the BMS normal power 12V (DC power supply VCC3) continues to provide reverse power to the electronic lock through the diode D8 and the switch tube Q12 to drive the electronic lock to unlock, so that the DC charging gun can be unplugged.

[0289] It should be noted that in actual use, the DC charging gun should be able to be unplugged when the BMS is reset or the electronic lock loses power accidentally.

[0290] In the present invention, in terms of specific implementation, it should be noted that the BMS main control chip can apply the currently commonly used brands, series and models, such as NXP's MC9S12 series, Infineon's TC2 series TC265, etc. The model of the BMS main control chip is not within the protection scope of the present invention.

[0291] In summary, compared with the prior art, the present invention provides a high-security DC charging gun electronic lock control circuit, which has a scientific structural design and can drive the electronic lock to lock and unlock reliably, and has great practical significance.

[0292] In addition, the present invention can greatly reduce the risk of short circuit of the electronic lock power supply, and effectively avoid the problem of short circuit of the electronic lock driving power supply.

[0293] In addition, for the present invention, the hardware circuit design is scientific, the number of ports occupied by the BMS main control chip is small, the electronic components are commonly used models, easy to select, and the price is also low; in addition, since surface-mounted low-power electronic components are used, the circuit board occupies a small space and the design cost is very low. Therefore, the technical solution of the present invention has strong practical value and market promotion value.

[0294] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A high-security DC charging gun electronic lock control circuit, characterized in that: It comprises a locking comparison module (100), a latching module (200), a locking drive module (300), an unlocking drive module (400) and a BMS main control chip (500); The locking comparison module (100) is used to set a voltage threshold range for driving the electronic lock to lock, and its input end is connected to the detection end CC2 of the DC charging gun socket; A locking comparison module (100), whose output terminal VO is respectively connected to the first input terminal of the locking drive module (300), the first input terminal of the unlocking drive module (400) and the first input terminal of the BMS main control chip (500), and is used to provide a locking and unlocking enable signal VO; Wherein, the latch module (200) has a first input terminal connected to the output terminal OEC of the BMS main control chip (500); A latch module (200), a second input end of which is connected to an output end LOCK of a BMS main control chip (500); A latch module (200), whose output terminal LCK is respectively connected to a second input terminal of a locking drive module (300) and a second input terminal of an unlocking drive module (400), and is used to provide a locking and unlocking latch control signal LCK to the locking drive module (300) and the unlocking drive module (400); Wherein, the first power input terminal of the locking drive module (300) is connected to a direct current power source VCC1; A locking drive module (300), wherein a second power input terminal thereof is connected to a direct current power source VCC2; A locking drive module (300), whose third input terminal is connected to the output terminal LOCK of the BMS main control chip (500), and is used to receive a control signal LOCK sent by the BMS main control chip (500) to control the on and off of the locking power supply of the electronic lock; A locking drive module (300), whose output terminal LOCK+ is connected to the positive input terminal IN+ of the electronic lock; The locking drive module (300), whose output terminal LOCK+ is also connected to the output terminal UNLOCK- of the unlocking drive module (400); A locking drive module (300), whose output terminal LOCK- is connected to the negative input terminal IN- of the electronic lock; The locking drive module (300), whose output terminal LOCK- is also connected to the output terminal UNLOCK+ of the unlocking drive module (400); Wherein, the unlocking drive module (400) has a first power input terminal connected to an external direct current power source VCC1; An unlocking drive module (400), a second power input terminal of which is connected to an external direct current power source VCC2; An unlocking drive module (400), wherein a third power input terminal thereof is connected to an external direct current power source VCC3; An unlocking drive module (400), the third input end of which is connected to the output end LOCK of the BMS main control chip (500), and is used to receive a control signal LOCK sent by the BMS main control chip (500) to control the on and off of the unlocking power supply of the electronic lock; An unlocking drive module (400), whose output terminal UNLOCK+ is connected to the negative input terminal IN- of the electronic lock; An unlocking drive module (400), whose output terminal UNLOCK+ is also connected to the output terminal LOCK- of the locking drive module (300); An unlocking drive module (400), whose output terminal UNLOCK- is connected to the positive input terminal IN+ of the electronic lock; An unlocking drive module (400), whose output terminal UNLOCK- is also connected to the output terminal LOCK+ of the locking drive module (300); The BMS main control chip (500) has a first input terminal connected to the output terminal VO of the comparison module (100) and is used to receive a locking and unlocking enable signal VO sent by the output terminal VO of the comparison module (100); A BMS main control chip (500), a second input end of which is connected to a position feedback output end ELOCK of the electronic lock, and is used to receive a locking and unlocking position feedback signal output by the position feedback output end ELOCK of the electronic lock; A BMS main control chip (500), a first output terminal OEC of which is connected to a second input terminal of the latch module (200), and is used to provide a latch enable signal OEC to the latch module (200); A BMS main control chip (500), a second output terminal LOCK of which is respectively connected to a third input terminal of a locking drive module (300) and a third input terminal of an unlocking drive module (400), and is used to output a control signal LOCK for locking or unlocking the electronic lock to the locking drive module (300) and the unlocking drive module (400), and to judge whether the electronic lock is locked or unlocked; The latch enable signal OEC provided by the BMS main control chip (500) includes two signal states: high level and low level, wherein: The high level causes the output terminal LKC of the latch module (200) to be in a high impedance state; The low level causes the output terminal LKC of the latch module (200) to change in the same direction as the signal state of its input terminal D; when the BMS main control chip (500) is reset, the OEC signal is at a low level; When the output signal VO of the locking comparison module (100) is at a low level, the priority is the highest, making the latch enable signal OEC at a high level; When the output signal VO of the locking comparison module (100) is at a high level, the priority is the lowest, and the effective signal of the feedback signal ELOCK output by the electronic lock has the highest priority; at this time, if the feedback signal ELOCK is effective, the enable signal OEC is at a high level; if the feedback signal ELOCK is invalid, the enable signal OEC is at a high level or a low level, and the signal state of the high level or the low level is controlled by the charging control strategy stored in the BMS main control chip (300); When the output signal VO of the lock comparison module (100) is at a low level, the priority is the highest and the LOCK signal is in a high impedance state; When the output signal VO of the locking comparison module (100) is at a high level, the priority is the lowest and the LOCK signal is at a high level or a low level; wherein the high level or low level signal is controlled by the charging control strategy stored in the BMS main control chip (300).

2. The high-security DC charging gun electronic lock control circuit according to claim 1, characterized in that: The locking comparison module (100) comprises: resistors R1-R7, diodes D1-D6 and operational amplifiers U1-U2, wherein: The power input terminal 3 of the operational amplifier U1 is respectively connected to a 5V DC power supply VCC1, the second pin of the resistor R4 and the first pin of the resistor R7; The input terminal 1 of the operational amplifier U1 is respectively connected to the second pin of the resistor R3, the anode of the diode D1, the cathode of the diode D2 and the first pin of the resistor R4; The input terminal 2 of the operational amplifier U1 is respectively connected to the second pin of the resistor R2, the cathode of the diode D1, the anode of the diode D2, the second pin of the resistor R1, the anode of the diode D3, the cathode of the diode D4 and the input terminal 1 of the operational amplifier U2; The ground terminal 4 of the operational amplifier U1 is connected to the ground terminal GND; The output terminal 5 of the operational amplifier U1 is connected to the cathode of the diode D5; The first pin of the resistor R2 and the first pin of the resistor R3 are both connected to the ground terminal GND; The port where the second pin of the resistor R7 and the anode of the diode D5 intersect and converge is used as the output terminal VO of the locking comparison module (100); The power input terminal 3 of the operational amplifier U2 is connected to a 5V DC power supply VCC1 and the second pin of the resistor R6 respectively; The input terminal 2 of the operational amplifier U2 is respectively connected to the second pin of the resistor R5, the cathode of the diode D3, the anode of the diode D4 and the first pin of the resistor R6; The ground terminal 4 of the operational amplifier U2 is connected to the ground terminal GND; The output terminal 5 of the operational amplifier U2 is connected to the cathode of the diode D6; The power input terminal 3 of the operational amplifier U2 is connected to a DC power source VCC1 and the second pin of the resistor R6 respectively; The first pin of the resistor R1 is used as an input terminal of the locking comparison module (100) and is used to connect to the detection terminal CC2 of the DC charging gun socket; The first pin of the resistor R5 is connected to the ground terminal GND; The anode of the diode D6 is connected to the output terminal VO of the locking comparison module (100).

3. The high-security DC charging gun electronic lock control circuit according to claim 1, characterized in that: The latch module (200) comprises: resistors R60-R61 and a D latch U3, wherein: The power supply terminal VCCD and the latch enable terminal LE of the D latch U3 are connected to the second pin of the resistor R60 after being intersected and merged; An input terminal D of the D latch U3, serving as a first input terminal of the latch module (200), is connected to an output terminal LOCK of the BMS main control chip (500); The output enable terminal OE of the D latch U3 is connected to the second pin of the resistor R62; An output terminal Q of the D latch U3, serving as an output terminal LCK of the latch module (200), is respectively connected to a second input terminal of the locking drive module (300) and a second input terminal of the unlocking drive module (400); Wherein, the first pin of the resistor R62 is connected to the second pin of R61; The first pin of the resistor R62 also serves as the second input terminal of the latch module (200), and is also connected to the output terminal OEC of the BMS main control chip; The first pin of R61 is connected to the first pin of resistor R60 and a 5V DC power supply VCC1 respectively.

4. The high-security DC charging gun electronic lock control circuit according to claim 1, characterized in that: The locking drive module (300) comprises: resistors R8-R18, resistors R38-R41, switch tubes Q1-Q6 and switch tubes Q14-Q16; The base B of the switch tube Q1 is connected to the second pin of the resistor R8; The emitter E of the switch tube Q1 is connected to the collector C of the switch tube Q2; The collector C of the switch tube Q1 is connected to the first pins of the resistors R11, R12 and R15 respectively; The first pin of the resistor R8 is used as the first input terminal of the locking drive module (300) and is connected to the output terminal VO of the comparison module; The base B of the switch tube Q2 is connected to the second pin of the resistor R9 and the first pin of the resistor R10; The emitter E of the switch tube Q2 is connected to the second pin of the resistor R9 and the ground terminal GND; Wherein, the base B of the switch tube Q3 is connected to the second pin of the resistor R12; The collector C of the switch tube Q3 is connected to the ground terminal GND; The emitter E of the switch tube Q3 is connected to the second pin of the resistor R11 and the first pin of the resistor R13 respectively; The base B of the switch tube Q4 is connected to the second pins of the resistor R15 and the resistor R16 respectively; The emitter E of the switch tube Q4 is connected to the first pin of the resistor R16 and a 12V DC power supply VCC2 respectively; The collector C of the switch tube Q4 is connected to the first pin of the resistor R17; The gate G of the switch tube Q5 is respectively connected to the second pin of the resistor R13, the second pin of the resistor R14 and the collector C of the switch tube Q16; The drain D of the switch tube Q5 is respectively connected to the first pin of the resistor R41, the emitter E of the switch tube Q16, the first pin of the resistor R14 and a 12V DC power supply VCC2; The source electrode S of the switch tube Q5 is respectively connected to the output terminal LOCK+ of the locking drive module (300) and the output terminal UNLOCK- of the unlocking drive module (400); The source electrode S of the switch tube Q5, serving as the output terminal LOCK+ of the locking drive module (300), is connected to the positive input terminal IN+ of the electronic lock; Wherein, the gate G of the switch tube Q6 is connected to the VS1 terminal; The VS1 terminal is respectively connected to the second pin of the resistor R17, the first pin of the resistor R18, the collector C of the switch tube Q15 and the first pin of the resistor R40; The source S of the switch tube Q6 is connected to the second pin of the resistor R18 and the ground terminal GND respectively; The drain electrode D of the switch tube Q6 is connected to the output terminal LOCK- of the locking drive module (300); The drain electrode D of the switch tube Q6, serving as the output terminal LOCK- of the locking drive module (300), is connected to the negative input terminal IN- of the electronic lock; Among them, the emitter E of the switch tube Q14 is connected to a 5V DC power supply VCC1; The base B of the switch tube Q14 is connected to the second pin of the resistor R38; The collector C of the switch tube Q14 is connected to the base B of the switch tube Q15 and the first pin of the resistor R39 respectively; The first pin of the resistor R38 is used as the third input terminal of the locking drive module (300) and is connected to the output terminal LOCK of the BMS main control chip (500); The second pin of the resistor R39 is connected to the ground terminal GND; The base B of the switch tube Q15 is connected to the collector C of the switch tube Q14 and the first pin of the resistor R39; The emitter E of the switch tube Q15 is connected to the ground terminal GND; Among them, the first pin of the resistor R40 is connected to the VS1 terminal; The base B of the switch tube Q16 is connected to the second pin of the resistor R40 and the second pin of the resistor R41 respectively.

5. The high-security DC charging gun electronic lock control circuit according to claim 1, characterized in that: The unlocking driving module (400) comprises: resistors R19-R30, resistors R42-R44, switch tubes Q7-Q13 and switch tubes Q17-Q18, wherein: The collector C of the switch tube Q7 is connected to the external DC power supply VCC3; The base B of the switch tube Q7 is connected to the second pin of the resistor R19; The emitter E of the switch tube Q7 is connected to the emitter E of the switch tube Q8 and the first pin of the resistor R21 respectively; The base B of the switch tube Q8 is connected to the second pins of the resistor R20 and the resistor R21 respectively; The collector C of the switch tube Q8 is connected to the first pin of the resistor R22; The base B of the switch tube Q9 is connected to the second pin of the resistor R22 and the first pin of the resistor R23 respectively; The emitter E of the switch tube Q9 is connected to the second pin of the resistor R23 and the ground terminal GND respectively; The collector C of the switch tube Q9 is respectively connected to the second pin of the resistor R24, the first pin of the resistor R27 and the base B of the switch tube Q10; The emitter E of the switch tube Q10 is connected to the first pin of the resistor R24 ​​and the first pin of the resistor R25 respectively; The collector C of the switch tube Q10 is connected to the ground terminal GND; The base B of the switch tube Q11 is connected to the second pin of the resistor R27 and the second pin of the resistor R28 respectively; The emitter of the switch tube Q11 is connected to the first pin of the resistor R28 and a 12V DC power supply VCC2 respectively; The collector C of the switch tube Q11 is connected to the first pin of the resistor R29; The gate G of the switch tube Q12 is respectively connected to the second pin of the resistor R25, the second pin of the resistor R26 and the collector C of the switch tube Q18; The drain D of the switch tube Q12 is respectively connected to the second pin of the resistor R44, the emitter E of the switch tube Q18, the first pin of the resistor R26, the cathode of the diode D7 and the cathode of the diode D8; The anode of the diode D7 and the anode of the diode D8 are respectively connected to a 12V DC power supply VCC2 and a 12V DC power supply VCC3; The source electrode S of the switch tube Q12 is respectively connected to the output terminal UNLOCK+ of the unlocking drive module (400) and the output terminal LOCK+ of the locking drive module (300); the source electrode S of the switch tube Q12, as the output terminal UNLOCK+ of the unlocking drive module (400), is connected to the negative input terminal IN- of the electronic lock; Wherein, the gate G of the switch tube Q13 is connected to the VS2 terminal; The VS2 terminal is respectively connected to the second pin of the resistor R29, the first pin of the resistor R30, the collector C of the switch tube Q17 and the first pin of the resistor R43; The source S of the switch tube Q13 is connected to the second pin of the resistor R30 and the ground terminal GND respectively; The drain electrode D of the switch tube Q13, serving as the output terminal UNLOCK- of the unlocking drive module (400), is connected to the positive input terminal IN+ of the electronic lock; The first pin of the resistor R42 is used as the third input terminal of the unlocking drive module (400) and is connected to the output terminal LOCK of the BMS main control chip (500); The base B of the switch tube Q17 is connected to the second pin of the resistor R42; The emitter E of the switch tube Q17 is connected to the ground terminal GND; Among them, the first pin of the resistor R43 is connected to the VS2 terminal; The base B of the switch tube Q18 is connected to the first pin of the resistor R43 and the first pin of the resistor R44 respectively.