Utility model content
For problems of the prior art, the utility model provides a kind of charging system electronic lock control system, energy
Enough realize is controlled two kinds of the compatible of electronic locks, being capable of automatic unlocking, and automatic identification electronic lock class during charging system power down
Type, realizes the normal locking to two kinds of electronic locks.
The utility model is to be achieved through the following technical solutions:
A kind of charging system electronic lock control system, including electronic lock locking circuit;
Described electronic lock locking circuit includes storage capacitor C0, the first locking relay Ka, the second locking relay Kb,
Electronic lock Ta, anti-blocking diode D0, and it is used as the auxiliary source of power supply;
After auxiliary source input positive terminal BMS_Vin connects with least one anti-blocking diode D0, the first locking relay Ka is connected
Normally opened end, constitute a positive supply network;
Connected at least between BMS_GND by negative electrode and the auxiliary source of at least one anti-blocking diode D0 diode groups constituted
One storage capacitor C0 constitutes an energy storage network;
Negative electrode and the second locking relay Kb normally opened end by least one anti-blocking diode D0 diode groups constituted
One negative sense supply network of the composition that links together;
First locking relay Ka and the second locking relay Kb normal-closed end and auxiliary source BMS_GND be connected together composition
One ground networks;
First locking relay Ka contact output end connection electronic lock Ta anode E-LOCK+ constitutes the positive input of unblock
Network;
Second locking relay Kb contact output end connection electronic lock Ta negative terminal E-LOCK- constitutes unblock negative sense input
Network.
It is preferred that, in addition to electronic lock feedback signal detection circuit, it is connected to electronic lock two ends;For being examined by MCU
Electronic lock feedback signal state is surveyed, electronic lock type is recognized.
Further, the electronic lock feedback signal detection circuit includes the first optocoupler U0, is connected in reverse parallel in the first optocoupler U0
First diode D1 of primary side;
Primary side one end of the first optocoupler U0 is grounded and anti-through electronic lock feedback signal power supply V0 connection electronic locks
The anode E+ of feedback signal line, negative terminal E- of the other end through current-limiting resistance R4 connection electronic lock feedback signal lines;
The secondary of the first optocoupler U0 exports electronic lock feedback signal state BMS_DI, and BMS_DI through current-limiting resistance R6
It is connected with MCU I/O port;
The primary side that the first diode D1 is used for the first optocoupler U0 described in reverse protection is not breakdown.
Further, the first optocoupler U0 secondary is also respectively provided with MCU I/O port pull-up resistor R5, and MCU
I/O port filter capacitor C1.
It is preferred that, in addition to auxiliary source power-fail detection circuit, it includes the second optocoupler U1, is connected in reverse parallel in the second optocoupler U1 former
The second diode D2 on side;
The primary side one of the second optocoupler U1 with terminating auxiliary source BMS_GND, the other end is defeated through the auxiliary source of current-limiting resistance R7 connections
Enter anode BMS_Vin;
The secondary of the second optocoupler U1 exports auxiliary source signal state BMS_DO, and BMS_DO and MCU through current-limiting resistance R8
I/O port connection;
The primary side that the second diode D2 is used for the second optocoupler U1 described in reverse protection is not breakdown.
Further, the second optocoupler U1 secondary is also respectively provided with MCU I/O port pull-up resistor R9, and MCU IO
Port filter capacitor C2.
It is preferred that, the first locking relay Ka and the second locking relay Kb are single-pole double-throw relay.
Compared with prior art, the utility model has following beneficial technique effect:
Control system described in the utility model, being capable of compatible two kinds of level type and pulsed by electronic lock locking circuit
Electronic lock, electronic lock realizes the locking work(of electronic lock by the generating positive and negative voltage of level signal between positive and negative sense input network
Energy.And electronic lock type can be automatically identified, in addition, the locking of electronic lock under normal circumstances can either be realized, also can
Realize in the case where there is auxiliary source failure, to the normal release of electronic lock.By the program, solving existing scheme can not be simultaneous
Hold two electron-likes lock, and the problem of there is potential safety hazard under None- identified goes out electronic lock type cases, improve electronic lock
Reliability and security, are that user brings more preferable experience.
Further, circuit is detected by electronic lock feedback signal, can recognize that the work of electronic lock unblock and locking
State, and the working condition based on electronic lock, can recognize that the type of electronic lock.Solve in existing scheme in None- identified
Go out the problem of there is potential safety hazard under electronic lock type cases, improve the security of electronic lock.
Further, by auxiliary source power-fail detection circuit, the working condition in auxiliary source can be fed back in time, so as to go out
In the case of existing auxiliary source failure, electronic lock is normally solved in time by electronic lock locking circuit, making for electronic lock is improved
With experience.
Further, by MCU to electronic lock feedback signal state BMS_DI come the working condition of automatic identification electronic lock,
So as to identify the type of electronic lock;Auxiliary source state is judged by auxiliary source signal state BMS_DO, so as to work as Charging
Being capable of automatic unlocking during system power down.
Embodiment
The utility model is described in further detail with reference to specific embodiment, described is to the utility model
Explanation rather than restriction.
The utility model proposes a kind of automatic identification pipette tips electronic lock type and lock detection scheme, electronic lock class is realized
The automatic identification of type and electronic lock lock detection function.By electronic lock feedback signal automatic detection electronic lock type, and give
The function of normal release is gone out under electronic lock locking implementation and other fault conditions to realize.The utility model one kind charging
System electronic lock control system includes a compatible level type and locks locking circuit, an electronic lock feedback signal with pulsating electronic
Circuit is detected, a fault-signal detects circuit;It can realize that compatible level type locks the detection of normal locking with pulsating electronic,
And the detection of automatic identification electronic lock type.
A kind of charging system electronic lock control system of the utility model, as shown in figure 1, electronic lock locking circuit includes energy storage
Electric capacity C0, the first locking relay Ka, the second locking relay Kb, electronic lock Ta, anti-blocking diode D0, and it is used as power supply electricity
The auxiliary source in source.Wherein, after auxiliary source input positive terminal BMS_Vin connects with least one anti-blocking diode D0, connection single-pole double throw
First locking relay Ka normally opened end, constitutes a positive supply network;Multiple anti-blocking diode D0 in diode group can
To be series connection, previous anti-blocking latter anti-blocking diode D0 of diode D0 negative electrodes connection anode or parallel connection, anode
Same node is connected to, negative electrode is connected to same node;By the negative electrode of at least one anti-blocking diode D0 diode groups constituted
At least one storage capacitor C0 that connected with auxiliary source between BMS_GND constitutes an energy storage network;Simultaneously at least one anti-blocking two
The negative electrode for the diode group that pole pipe D0 is constituted and the second locking relay Kb of single-pole double throw normally opened end link together composition
One negative sense supply network;First locking relay Ka and the second locking relay Kb normal-closed end and auxiliary source BMS_GND connect
A ground networks are constituted together;First locking relay Ka contact output end connection electronic lock Ta anode E-LOCK+
Constitute the positive input network of unblock;Second locking relay Kb contact output end connection electronic lock Ta negative terminal E-LOCK- structures
Into unblock negative sense input network, electronic lock realizes electronics by the generating positive and negative voltage of level signal between positive and negative sense input network
The latch functions of lock.Wherein, auxiliary source is the power supply of electronic lock, can be the auxiliary sources of BMS, preferably 12V, or its
He, illustrates exemplified by use 12V below.In this preferred embodiment, as shown in figure 1, schematical with an anti-blocking diode D0
Constitute diode group.
As shown in figure 1, Ka and Kb are single-pole double-throw relay, the auxiliary source of its normally-closed contact connection electronic lock ground BMS_
GND, normally opened contact connects the auxiliary source input positive terminal BMS_Vin of electronic lock.If electronic lock be level type if the locking of adhesive first after
Electrical equipment Ka, now electronic lock two ends output+12V auxiliary source high level (E-LOCK+ → E-LOCK-), level type electronic lock lock
It is fixed, disconnect the first locking relay Ka, the unblock of level type electronic lock.If electronic lock is pulsed, the first locking of adhesive first after
Electrical equipment Ka, and disconnected after pickup time section, pickup time section is not less than in electronic lock secure ratcs period, this preferred embodiment
Pickup time section is 300ms, the positive square wave arteries and veins in electronic lock two ends output+12V (E-LOCK+ → E-LOCK-) the auxiliary sources of 300ms
Punching, lock pulse formula electronic lock.Disconnected again after the second locking of adhesive relay Kb 300ms, electronic lock two ends output -12V (E-
LOCK+ → E-LOCK-) the auxiliary sources of 300ms negative sense square-wave pulse, untie pulsating electronic lock.300ms in this preferred embodiment
It is the secure ratcs period that electronic lock producer provides, adds certain allowance again from electronic lock specifications.
The requirement of the otherness and national standard of charging gun producer to charging gun can be directed to by above-mentioned control system, it is full
Foot electronic lock is present at present level type and pulsed two types, realize that electronic lock normally locks the function with unblock.This
Charging system electronic lock control system described in utility model, needs to enable electronic lock anti-when realizing automatic identification electronic lock type
Feedback signal, wherein, the detection circuit of electronic lock feedback signal is as shown in Figure 2.
Fig. 2 is the circuit diagram that electronic lock feedback signal described in the utility model example detects circuit, and wherein U0 is the
One optocoupler, for feedback electronic lock whether locking, the first diode D1 is anti-and diode, the primary side for reverse protection optocoupler
It is not breakdown, if there is back-pressure, it will be clamped the transmitting opened pressure drop 0.7V, thereby protect optocoupler primary side in diode
Pipe, R4 is the current-limiting resistance of optocoupler primary side, and R6 is the current-limiting resistance of optical coupling secondary edges, and R5 is MCU I/O port pull-up resistor, and C1 is
MCU I/O port filter capacitor.K1 is electronic lock microswitch, and Vo is electronic lock feedback signal power supply.
By electronic lock microswitch K1, the anode E+ of electronic lock feedback signal line and electronic lock feedback signal line negative terminal E-
The circuit of composition is the microswitch circuit inside electronic lock Ta, and concrete principle is as follows, if electronic lock is locked, i.e. K1 closures, then
BMS_DI outputs low level signal, i.e. MCU, which detect BMS_DI=0 and be considered as electronic lock, to be in the lock state;If electronic lock is unlocked,
That is K1 disconnect, then BMS_DI export high level signal, i.e. MCU detect BMS_DI=1 be considered as electronic lock be in released state.
Detection circuit based on Fig. 2, the BMS_DI detected by MCU carrys out the state of automatic identification electronic lock, and is based on
Following step, carrys out automatic identification electronic lock type.
Its specific automatic identification implementation process, as shown in Figure 3.
1) disconnected after being first defaulted as pulsating electronic lock, adhesive the first locking relay Ka 300ms, so as to send amplitude
For+12V 300ms positive square-wave pulse.
2) state based on the MCU electronic lock feedback signal condition adjudgement electronic lock feedback signals detected is in locking shape
State or released state.
Specifically, if the electronic lock feedback signal state BMS_DI=0 of MCU detections, judge that electronic lock is in locking
State;
If the electronic lock feedback signal state BMS_DI=1 of MCU detections, judge that electronic lock is in released state.
If 3) electronic lock is in released state, electronic lock is level type electronic lock.Then again the locking of adhesive first after
Electrical equipment Ka keeps attracting state, and lasting transmission+12V auxiliary source high level, electronic lock locking terminates life until receiving charging
Order, disconnects the first locking relay Ka and performs unlocking motion, then untie electronic lock.
If 4) electronic lock is in the lock state, electronic lock is locked for pulsating electronic.Then wait receives charging and terminated
Order, then disconnected after adhesive the second locking relay Kb 300ms, so as to send the negative sense square wave arteries and veins for the 300ms that amplitude is -12V
Electronic lock is untied in punching.
The utility model can realize unlocking function after auxiliary source power down so that ensure electronics under the fault condition such as auxiliary source power down
Lock is in released state so that charging gun can be plugged normally under fault condition, is realizing under fault condition electronic lock just
Often work, auxiliary source can be the auxiliary sources of BMS.Micro-processor MCV is used to detect BMS_DO signals, and issues control according to BMS_DO signals
The control signal of the actuating of relay processed;Wherein, MCU can be ARM, DSP, FPGA etc..As shown in figure 4, by taking the auxiliary sources of BMS as an example,
Following steps are specifically included when realizing and being unlocked after power down,
If a. detecting the auxiliary source normal works of BMS, MCU can detect BMS_DO=0, and now MCU issues E_LOCK+=1
And E_LOCK-=0, that is, control to disconnect after the first locking relay Ka adhesives 300ms, make electronic lock two ends E-LOCK+ to E-
LOCK- is the+12V positive square-wave pulse in auxiliary source, locks electronic lock.
If b. detecting after the auxiliary source power down of BMS, MCU can detect BMS_DO=1, but storage capacitor C0 both end voltages for+
12V, now MCU issue E_LOCK+=0 and E_LOCK-=1, that is, control after the second locking relay Kb adhesives 300ms disconnect,
Make electronic lock two ends E-LOCK+ to the auxiliary source negative sense square-wave pulse that E-LOCK- is -12V, electronic lock unblock.
Fig. 4 is the auxiliary source power-fail detection circuit schematic diagrames of electronic lock BMS described in the utility model example, and wherein U1 is the
Two optocouplers, for feed back the auxiliary sources of BMS whether power down, the second diode D2 is anti-and diode, the original for reverse protection optocoupler
Side is not breakdown, if there is back-pressure, will be clamped the transmitting opened pressure drop 0.7V, thereby protect optocoupler primary side in diode
Pipe, R7 is the current-limiting resistance of optocoupler primary side, and R8 is the current-limiting resistance of optical coupling secondary edges, and R9 is MCU I/O port pull-up resistor, and C2 is
MCU I/O port filter capacitor.
In the above-described embodiments, being capable of two kinds of electronic locks of compatible level type and pulsed, electricity by electronic lock locking circuit
Son lock realizes the latch functions of electronic lock by the generating positive and negative voltage of level signal between positive and negative sense input network.And can be certainly
It is dynamic to identify electronic lock type, in addition, the locking of electronic lock under normal circumstances can either be realized, it can also realize auxiliary in appearance
In the case of the failure of source, to the normal release of electronic lock.By the program, solving existing scheme can not compatible two electron-like
Lock, and the problem of there is potential safety hazard under None- identified goes out electronic lock type cases, improve the reliability and peace of electronic lock
Quan Xing, is that user brings more preferable experience.
Specifically, recognizing electronic lock type as follows.
Step 1) first faulty electronic lock is pulsating electronic lock, adhesive the first locking relay Ka, and in pickup time section
After disconnect, pickup time section be not less than the electronic lock secure ratcs period, so as to send the positive square-wave pulse in auxiliary source;
Step 2) it is in the lock state or unlocks based on the MCU electronic lock feedback signal condition adjudgement electronic lock detected
State;If the electronic lock feedback signal state BMS_DI=0 of MCU detections, judges that electronic lock is in the lock state;If MCU
The electronic lock feedback signal state BMS_DI=1 of detection, then judge that electronic lock is in released state.
Step 3) if electronic lock is in released state, electronic lock is level type electronic lock;Then adhesive first is locked again
Only relay Ka keeps attracting state, persistently sends the high level in auxiliary source, and electronic lock locking terminates life until receiving charging
Order, disconnects the first locking relay Ka and performs unlocking motion, then untie electronic lock;Wherein, the first locking of adhesive relay again
Ka is kept after attracting state, and whether detection charging terminates, and the first locking relay Ka is disconnected if terminating and performs unlocking motion,
Electronic lock is untied again;Keep the first locking relay Ka to be in attracting state if being not over, persistently send the height in auxiliary source
Level, terminates order, charging terminates until receiving charging.
Step 4) if electronic lock is in the lock state, electronic lock is locked for pulsating electronic;Then wait and receive charging
Terminate order, then adhesive the second locking relay Kb, and disconnected after pickup time section, pickup time section can not less than electronic lock
By the locking period, so that the negative sense square-wave pulse for sending auxiliary source unties electronic lock;Complete the control to electronic lock.Wherein, sentence
Break after electronic lock for pulsating electronic lock, whether detection charging terminates, adhesive the second locking relay Kb if terminating, and
Disconnected after pickup time section, pickup time section is not less than the electronic lock secure ratcs period;Return and hold if being not over
Row step 2).
Meanwhile, the following unblock control operation of progress of the electronic lock after auxiliary source power down,
If a. MCU detects auxiliary source signal state BMS_DO=0, auxiliary source normal work, now MCU issues E_LOCK+
=1 and E_LOCK-=0, that is, control the first locking relay Ka adhesives, and is disconnected after pickup time section, and pickup time section is not
Less than the electronic lock secure ratcs period, make electronic lock two ends E-LOCK+ to the positive square-wave pulse in source supplemented by E-LOCK-, electricity
Son lock locking;
If b. MCU detects auxiliary source signal state BMS_DO=1, power down failure, but storage capacitor C0 two occur for auxiliary source
Terminal voltage is equal to auxiliary source voltage, and now MCU issues E_LOCK+=0 and E_LOCK-=1, that is, controls the second locking relay Kb to inhale
Close, and disconnected after pickup time section, pickup time section is not less than the electronic lock secure ratcs period, makes electronic lock two ends E-
LOCK+ is to the negative sense square-wave pulse in source supplemented by E-LOCK-, electronic lock unblock.
Above-mentioned the utility model embodiment sequence number is for illustration only, and the quality of embodiment is not represented.
In above-described embodiment of the present utility model, the description to each embodiment all emphasizes particularly on different fields, in some embodiment
The part not being described in detail, may refer to the associated description of other embodiment.
Described above is only preferred embodiment of the present utility model, it is noted that for the common skill of the art
For art personnel, on the premise of the utility model principle is not departed from, some improvements and modifications can also be made, these improve and
Retouching also should be regarded as protection domain of the present utility model.