Summary of the invention
The object of the present invention is to provide a kind of charging socket control method for electronic lock, which can solve vehicle and exists
The problem of charging gun is pulled out when charging.It is a further object of the present invention to provide a kind of charging socket electronic lock control devices.This
Invention a further object provides a kind of entire car controller with above-mentioned charging socket electronic lock control device.The present invention also provides one
Kind has the electric vehicle of the charging socket electronic lock control device.
To achieve the above object, the present invention provides a kind of charging socket control method for electronic lock, includes the following steps:
Obtain the charged state of vehicle;
When the vehicle is in state to be charged, transmission locking order control electronic locking mechanism locking;
Judge the electronic locking mechanism whether locking, if the electronic locking mechanism locking, fills the vehicle
Electricity;
When the Vehicular charging finishes, transmission unlocking command controls the electronic locking mechanism unlock.
Relative to above-mentioned background technique, charging socket control method for electronic lock provided by the invention, core is, works as vehicle
Be in state to be charged when, then send locking order with realize electronic locking mechanism lock.In other words, only when vehicle exists
When under state to be charged, electronic locking mechanism just will do it locking, to charging gun and vehicle are connected as one, so as to subsequent
Charging operations;In this course, it is not necessarily to manual operation, electronic locking mechanism just can lock automatically, charging gun is locked
Vehicle is terminated in, is charged to vehicle.Using set-up mode as above, vehicle charging gun in charging can effectively be avoided to be pulled out
Out, and process of locking is automatic progress, is occurred caused by effectively preventing because of human factor with the scene for carrying power-off, raising
Charging security, reduces accident odds, while also can avoid the generation that charging equipment is stolen phenomenon.
Preferably, the vehicle is in state to be charged and is specially:The charging connection signal connecting with the vehicle meets
The preset current type of vehicle, and the electricity of presently described vehicle is unsatisfactory for the default electricity.
Once it should be evident that vehicle is accessed the electric current for meeting predetermined current type, and vehicle is unsatisfactory for default electricity
Amount, i.e., vehicle is in state to be charged;That is, vehicle is just in shape to be charged only when meeting above-mentioned two condition
State, and then the electronic locking mechanism locking of vehicle;Using so set, can be avoided electronic locking mechanism accidentally locking probability,
Improve the reliability of Vehicular charging.
Preferably, it is described judge the electronic locking mechanism whether locking the step of include:
If the non-locking of electronic locking mechanism, judge whether the number for sending the locking order is default more than first
Number;If the number for sending the locking order is more than first preset times, terminate the charging to the vehicle.
Preferably, before the transmission unlocking command controls the electronic locking mechanism unlock, further include:
Judge whether electronic lock anti-theft switch is opened;
If the electronic lock anti-theft switch is not opened, the electronic locking mechanism unlock operation is executed;
If the electronic lock anti-theft switch is opened, persistently detect whether the electronic lock anti-theft switch closes;Once institute
The closing of electronic lock anti-theft switch is stated, then executes the electronic locking mechanism unlock operation.
Preferably, the transmission unlocking command controls the step of electronic locking mechanism unlock and further includes:
If the electronic locking mechanism does not unlock, after the preset time that is delayed, repetition sends the unlocking command until terminating
Charging to the vehicle.
Preferably, locating vehicle during the charging process, electronic locking mechanism described in real-time detection whether locking, once it is described
Electronic locking mechanism unlock, then terminate the charging to the vehicle.
The present invention also provides a kind of charging socket electronic lock control devices, including:
Upper lock module:For being in state to be charged when vehicle, locking order is sent to control electronic locking mechanism locking;
Charging module:For judge the electronic locking mechanism whether locking, if the electronic locking mechanism locking, right
The vehicle charges;
Unlocked state:When the Vehicular charging finishes, then unlocking command is sent to realize the electronic locking mechanism unlock.
With above-mentioned charging socket control method for electronic lock correspondingly, charging socket electronic lock provided by the invention control dress
It sets, can effectively avoid vehicle charging gun in charging from being pulled out, and process of locking is automatic progress, is effectively prevented because of people
, with the scene generation for carrying power-off, to improve charging security caused by factor, reducing accident odds, while
It can avoid the generation that charging equipment is stolen phenomenon.
Preferably, the charging module includes:
Charge judging unit:If judging time for sending the locking order for the non-locking of the electronic locking mechanism
Whether number is more than the first preset times;If the number for sending the locking order is more than first preset times, terminate pair
The charging of the vehicle.
Preferably, further include:
Judgment module:For judging whether electronic lock anti-theft switch is opened;If the electronic lock anti-theft switch is not opened,
Execute the electronic locking mechanism unlock operation;If the electronic lock anti-theft switch is opened, it is anti-persistently to detect the electronic lock
Whether pirate of the open pass is closed;Once the electronic lock anti-theft switch is closed, then the electronic locking mechanism unlock operation is executed.
Preferably, further include:
Repeat sending module:If not unlocking for the electronic locking mechanism, after second preset time that is delayed, repeat to send
The unlocking command is until terminate the charging to the vehicle.
Preferably, further include:
Detection module:For when locating vehicle during the charging process, electronic locking mechanism described in real-time detection whether locking,
Once the electronic locking mechanism unlock, then terminate the charging to the vehicle.
The present invention also provides a kind of entire car controllers, control and fill including charging socket electronic lock described in above-mentioned any one
It sets.
The present invention also provides a kind of electric vehicles, including entire car controller as described above, further include and the vehicle
The connected electronic locking mechanism of controller and battery management module;
Electronic locking mechanism is connect with for the charging socket end for filling charging gun insertion;When the electronic locking mechanism
After locking, the charging gun can not be detached from the charging socket end;
Battery management module:For receiving after the charging gun is inserted into the charging socket end, the charging socket end
The wake-up signal of output, and the wake-up signal is delivered to the entire car controller.
It preferably, further include the electronic lock anti-theft switch being connected with the entire car controller;If before the Vehicular charging,
The electronic lock anti-theft switch is opened, then after the Vehicular charging finishes, closes the electronic lock anti-theft switch to realize
The electronic locking mechanism unlock.
Specific embodiment
In order to make those skilled in the art more fully understand the present invention program, with reference to the accompanying drawing and it is embodied
The present invention is described in further detail for mode.
Fig. 1 to Fig. 6 is please referred to, Fig. 1 is the process of charging socket control method for electronic lock provided by the embodiment of the present invention
Figure;Fig. 2 is a kind of overall flow figure of specific embodiment of Fig. 1;Fig. 3 is the overall flow of another specific embodiment of Fig. 2
Figure;Fig. 4 is the overall flow figure of another specific embodiment of Fig. 2;Fig. 5 is the electricity of charging socket provided by the embodiment of the present invention
The structure chart of sub- lock control system;Fig. 6 is the structure chart of electronic locking mechanism in Fig. 5.
The invention discloses a kind of charging socket control method for electronic lock, mainly include the following steps that, obtain filling for vehicle
Electricity condition;
When vehicle is in state to be charged, then locking order control electronic locking mechanism locking is sent;
Judging the electronic locking mechanism, whether locking carries out the vehicle if the electronic locking mechanism locking
Charging;
When the Vehicular charging finishes, then sends unlocking command and control the electronic locking mechanism unlock.
In the step s 100, the charged state of vehicle is obtained;In the present invention, the charged state setting of vehicle may include nothing
Need charged state, state to be charged, have been filled with electricity condition etc.;It then may determine that whether vehicle is in state to be charged, such as walk
Rapid S200;
In step S300, once judging that vehicle is in state to be charged, locking order, electronic locking just can be sent
After authorities to locking order, locking operation is executed.
Step S400 is used to judge electronic locking mechanism, and whether locking then carries out vehicle when electronic locking mechanism locking
Charging, such as step S500.It should be evident that electronic locking mechanism just understands automatic locking when vehicle is only in state to be charged,
To realize that charging gun is integrated with electronic locking mechanism, it is ensured that charging gun will not be with Vehicles separation;And on electronic locking mechanism
During locking this, it is not necessarily to manual operation.Using set-up mode as above, vehicle charging gun in charging can effectively be avoided to be pulled out
Out, and process of locking is automatic progress, effectively prevents forgetting caused by because of human factor that the scene of locking occurs, improves
Charging security, reduces accident odds.
In step S600, when Vehicular charging finishes, after electronic locking mechanism receives unlocking command, solution can be realized
Lock operation, to realize that charging gun and electronic locking mechanism are in unlocked state, charging gun just can be extracted from vehicle, such as
Step S700.So, effectively ensure vehicle during the charging process, charging gun and vehicle are in connection status, avoid because accidentally
It pulls out charging gun and causes the generation of contingency.
It is in this state of state to be charged for above-mentioned vehicle, the present invention provides the particular state of vehicle, that is, with vehicle
The charging connection signal of connection meets the preset current type of vehicle, and the electricity of current vehicle is unsatisfactory for default electricity.
When the electricity of vehicle is unsatisfactory for default electricity, charging gun is connect with vehicle, judges to fill from what charging gun exported
Whether electrical connection signal meets the preset current type of vehicle;Only when the electricity of vehicle is unsatisfactory for default electricity and connects with vehicle
When the charging connection signal connect meets vehicle preset current type, vehicle just meets in state to be charged, above-mentioned electronic lock
Locking mechanism locking This move can execute.
For default electricity, can be defined according to the instruction of vehicle user;For example, if vehicle user will be preset
Electricity is defined as the 60% of the total battery capacity of vehicle, then when the electricity of vehicle be less than the total battery capacity of vehicle 60% when, then this
When vehicle electricity be unsatisfactory for default electricity.Certainly, other definition can also be had by presetting between electricity and the total battery capacity of vehicle
Mode or default electricity can also be defined using other modes, will not be described in great detail herein.
Above-mentioned preset current type can be alternating current and be also possible to direct current;If that is, vehicle using alternating current into
Row charging should then judge whether the charging connection signal of charging gun output is alternating current, as long as when the charging of charging gun output connects
When to connect signal be alternating current, and the electricity of vehicle is unsatisfactory for default electricity, and electronic locking mechanism can execute locking.With etc
As, if vehicle is charged using direct current, then should judge whether the charging connection signal of charging gun output is direct current,
As long as when the charging connection signal of charging gun output is direct current, and the electricity of vehicle is unsatisfactory for default electricity, electronic locking
Mechanism can execute locking
More specifically, for judge the electronic locking mechanism whether locking specific steps and send unlocking command
The specific steps before the electronic locking mechanism unlock are controlled, Figure of description 2 gives a kind of stream of specific embodiment
Cheng Tu.Figure of description 5 gives the structure chart of charging socket electronic lock control system, understands below in conjunction with Fig. 2 and Fig. 5 and charges
The method of socket electronic lock control.Before this, in order to better understand the methods of operation of all parts in vehicle, knot of the present invention
Fig. 5 and Fig. 6 is closed to be illustrated corresponding component.
Charging socket end 60 is for providing charging gun and vehicle link information;Electronic locking mechanism 40 is mounted on charging socket
On end 60;Electronic lock anti-theft switch 80 is typically mounted on cockpit instrument desk, is used for unlocking electronic lock anti-theft function;Vehicle control
Device 10 processed is used to be directed to the locking order or unlocking command of electronic locking mechanism 40 according to the output of other controller informations;Locking after
Electric appliance 20 is defaulted as ground state, for exporting high level (such as 12V) locking electronic locking mechanism 40 according to locking order;Unlock
Relay 30 is defaulted as ground state, unlocks electronic locking mechanism 40 for exporting high level (such as 12V) according to unlocking command;Electricity
Pond management module 50 includes charging standby ready signal device 70, and charging standby ready signal device 70 is started to charge for determination
It charges with end, battery management module 50 is used to obtain charging gun and vehicle link information, and when charging gun is connect with vehicle
Output charging wake-up signal, and according to entire car controller 10 provide information control charging standby ready signal device 70 closure and
It disconnects.Herein, charging standby ready signal device 70 can switch for the S2 of battery management module 50.
Electronic locking mechanism 40 includes status switch 90, bolt 100, mechanical release switch 110, electronic lock motor 120, the
One pin 1, second pin 2 and third pin 3.
Wherein, electronic lock motor 120 is used as power source, for driving 40 locking of electronic locking mechanism and unlock;Electronic lock
Status switch 90 is used to indicate the locking or unlocked state of electronic locking mechanism 40;Bolt 100 is used for locking or unlock, and phase
Being opened or closed for electronic lock status switch 90 should be driven;Mechanical release switch 110 is used for emergency unlock in the case of system exception;
First pin 1 is connect with unlock relay 30;Third pin 3 is connect with unlock relay 20;Second pin 2 and entire car controller
10 connections;First pin 1 and third pin 3 are for controlling electronic lock motor 120;First pin 1 and second pin 2 are used for electronics
Lock status detection.
When locking relay 20 and receiving the locking order of the transmission of entire car controller 10, high level is exported to third pin 3,
First pin 1 and third pin 3 form potential difference, and driving electronic lock motor 120 rotates counterclockwise, and drive bolt 100 to move down, electricity
Sub- 40 locking of lockable mechanism, electronic lock status switch 90 are closed, 2 short circuit of the first pin 1 and second pin, and entire car controller 10 is logical
It crosses the first pin 1 and second pin 2 detects the state of electronic locking mechanism 40 as lockup state.
When unlocking relay 30 and receiving the unlocking command of the transmission of entire car controller 10, export high level to the first pin 1,
First pin 1 and third pin 3 form potential difference, and driving electronic lock motor 120 rotates clockwise, and drive bolt 100 to move up, electricity
Sub- lockable mechanism 40 unlocks, and electronic lock status switch 90 disconnects, 2 open circuit of the first pin 1 and second pin, and entire car controller 10 is logical
It crosses the first pin 1 and second pin 2 detects the state of electronic locking mechanism 40 as unlocked state.
It is described below for the process of Fig. 2.In step S101, charging gun is connect with vehicle;More specifically, it fills
Electric rifle is connect with charging socket end 60, and charging gun is inserted into charging socket end 60 in other words.When charging gun and charging socket end 60 connect
After connecing, step S102 is executed.
In step s 102, the wake-up signal that charging socket end 60 exports wakes up battery management module 50, battery management
Module 50 sends wake up instruction to entire car controller 10 after being waken up and wakes up entire car controller 10;That is in step S102, battery
Management module 50 is waken up with entire car controller 10.
After battery management module 50 and entire car controller 10 are waken up, battery management module 50 detects charging socket end
60 charging connection signal, i.e. step S103;And then, the judgement of battery management module 50 insertion charging socket end in step S104
Whether 60 charging connection signal meets preset current type, and entire car controller 10 judges whether the electricity of vehicle is discontented with
The default electricity of foot.
If any one is unsatisfactory for for above-mentioned two judgement, then terminate to charge, step S105;If being inserted into charging socket end 60
Charging connection signal meet preset current type, and the electricity of vehicle is to be unsatisfactory for default electricity, then carries out step
S106。
In step S106, entire car controller 10 continues to send locking order to locking relay 20;Herein, full-vehicle control
Device 10 can continue to send locking order to locking relay 20 within the T1 period;Step S107, when entire car controller 10 passes through
Go through the T1 period send locking order after, stop send locking order;Step S108, entire car controller 10 detect electronic locking
Mechanism 40 whether locking;If locking, progress step S112, the closure of battery management module 50 charge electronic locking mechanism 40
Standby ready signal device 70, charges.If the not yet locking of electronic locking mechanism 40, step S109 is carried out, judges whether to surpass
It crosses the first preset times and sends locking order, if being less than the first preset times, enter step S111, be delayed preset time
Afterwards, entire car controller 10 continues persistently to send locking order to locking relay 20, and repeats step S107.If sending locking
The number of order alreadys exceed the first preset times, then carries out step S110, stops sending, and terminate to charge.
By above-mentioned it is found that it is lasting, the T1 period that entire car controller 10, which sends locking order to locking relay 20,
Preferably greater than it is equal to 2 seconds;If entire car controller 10 is after sending locking order, the non-locking of electronic locking mechanism 40, also
Can be with repetitive operation, the first preset times can be set to 3 times herein;That is, entire car controller 10 can be to locking relay 20
Send 3 locking orders;If terminating to charge more than 3 times.
Vehicle during the charging process, real-time detection electronic locking mechanism 40 whether locking, once electronic locking mechanism 40 solve
Lock, then terminate the charging to vehicle.That is in step S113, in entire charging process, entire car controller 10 monitors electronic lock in real time
40 state of locking mechanism, and send the CAN bus of vehicle;When detecting the non-locking of electronic locking mechanism 40, then terminates to charge, that is, walk
Rapid S114 and step S115.
It is above-mentioned to give vehicle during the charging process for the control process of electronic locking mechanism, exist below for vehicle
Charging is described in detail electronic locking mechanism unlocking process after finishing.
After Vehicular charging finishes, the unlocking process of electronic locking mechanism 40 can two kinds of different forms;One:Vehicle
User opens electronic lock anti-theft switch 80;Secondly:The non-unlocking electronic lock anti-theft switch 80 of vehicle user.
The process of electronic locking mechanism unlocking process when Fig. 3 shows vehicle user non-unlocking electronic lock anti-theft switch 80
Figure;When i.e. vehicle user is without electronic lock theft-proof requirement, the electronic lock anti-theft switch 80 on cockpit instrument desk is in off state.
After Vehicular charging, when the electricity of vehicle meets default electricity, the control charging of battery management module 50 is ready
Signal device 70 disconnects, and after the standby ready signal device 70 that charges disconnects certain time (such as 5s), entire car controller 10 is to solution
Lock relay 30 persistently sends unlocking command, and after time T1, entire car controller 10 stops sending unlocking command, full-vehicle control
Device 10 is to judge electronic locking mechanism 40 by the first pin 1 and the state of second pin 2 for detecting electronic locking mechanism 40
It is no to have unlocked;If the first pin 1 and second pin 2 of electronic locking mechanism 40 are open circuit, electronic locking mechanism has been unlocked,
Then the control of entire car controller 10 charging terminates (referring to step S201-S204).If 1 He of the first pin of electronic locking mechanism 40
Second pin 2 is short-circuit condition, then electronic locking mechanism 40 does not unlock, and entire car controller 10 judges to send whether unlocking command surpasses
The second preset times (can be 3 times) be crossed, if being less than 3 times, entire car controller 10 is after a certain time to unlock relay
Device 30 persistently sends unlocking command again, repeats step S202-S203.If it is super that the judgement of entire car controller 10 sends unlocking command
The second preset times are crossed, then controlling charging terminates (referring to step S205 and S204).
The flow chart of electronic locking mechanism unlocking process when Fig. 4 shows vehicle user unlocking electronic lock anti-theft switch 80;
I.e. for vehicle user there are when electronic lock theft-proof requirement, the electronic lock anti-theft switch 80 on cockpit instrument desk is open state.
When vehicle user has electronic lock theft-proof requirement, vehicle user carries out will be on instrument desk before cockpit is left in charging
Electronic lock anti-theft switch 80, which is pressed, arrives open state.After Vehicular charging, when the electricity of vehicle meets default electricity, battery management mould
The control charging standby ready signal device 70 of block 50 disconnects, and it is opening state that entire car controller 10, which detects electronic lock anti-theft switch 80,
State, then controlling Full Vehicle System terminates to charge, then electric (referring to step under electricity, low pressure under 10 control system high pressure of entire car controller
S301-S303).10 real-time detection electronic lock anti-theft switch of entire car controller, 80 state, if electronic lock anti-theft switch 80 is still
For open state, then continue waiting for, it is whole if user returns to cockpit and closes the electronic lock anti-theft switch 80 on instrument desk
Vehicle controller 10 detects that electronic lock anti-theft switch 80 is in off state, and entire car controller 10 is persistently sent to unlock relay 30
Unlocking command, after a certain period of time, entire car controller 10 stop sending unlocking command, and entire car controller 10 passes through detection electronic locking
The state of first pin 1 of mechanism 40 and second pin 2 judges whether electronic locking mechanism 40 has unlocked;If electronic locking
The first pin 1 and second pin 2 of mechanism 40 are open circuit, then electronic locking mechanism 40 has unlocked, then 10 suspend mode of entire car controller
(referring to step S304-S308).If the first pin 1 and second pin 2 of electronic locking mechanism 40 are short-circuit condition, electronics
Lockable mechanism 40 does not unlock, and whether entire car controller 10 judges to send unlocking command more than the second preset times (such as 3 times), if
The second preset times are less than, then entire car controller 10 sends unlock life to unlock relay 30 is lasting again after a certain time
It enables, repeats step S306-S307.If it is more than the second preset times, vehicle that the judgement of entire car controller 10, which sends unlocking command,
10 suspend mode of controller (referring to step S308, S309).It should be noted that for the different setting sides of electronic locking mechanism 40
Formula, above in connection with control electronic locking mechanism 40 unlock and locking mode can there are many kinds of, however it is not limited to this paper institute
The mode stated.
The present invention also provides a kind of charging socket electronic lock control devices, including:
Upper lock module:For being in state to be charged when vehicle, locking order is sent to control electronic locking mechanism locking;
Charging module:For judge the electronic locking mechanism whether locking, if the electronic locking mechanism locking, right
The vehicle charges;
Unlocked state:When the Vehicular charging finishes, then unlocking command is sent to realize the electronic locking mechanism unlock.
With above-mentioned charging socket control method for electronic lock correspondingly, upper lock module, charging module and unlocked state difference
It is locked, with controlling electronic locking mechanism for judging electronics for realizing locking order is sent when vehicle is in state to be charged
Whether locking carries out charging to vehicle and when Vehicular charging finishes, then sends lockable mechanism if electronic locking mechanism locking
Unlocking command with realize electronic locking mechanism unlock function, will not be described in great detail herein herein.
Charging module further includes charging judging unit:If the judging unit that charges for realizing the non-locking of electronic locking mechanism,
Then judge the number for sending locking order whether more than the first preset times;If the number for sending locking order is more than first default
Number then terminates the charging to vehicle.
In addition to this, charging socket electronic lock control device of the invention further includes judgment module and/or repeats to send mould
Block;Judgment module is for judging whether electronic lock anti-theft switch is opened;If the electronic lock anti-theft switch is not opened, institute is executed
State electronic locking mechanism unlock operation;If the electronic lock anti-theft switch is opened, the electronic lock anti-theft switch is persistently detected
Whether close;Once the electronic lock anti-theft switch is closed, then the electronic locking mechanism unlock operation is executed.It repeats to send mould
If block does not unlock for the electronic locking mechanism, after second preset time that is delayed, repetition sends the unlocking command until knot
Charging of the beam to the vehicle.
Detection module be used for when vehicle during the charging process, real-time detection electronic locking mechanism whether locking, once electronics
Lockable mechanism unlock, then terminate the charging to vehicle.
Above-mentioned upper lock module, charging module, unlocked state, charging judging unit, judgment module, repeat sending module and
Detection module and above-mentioned charging socket control method for electronic lock correspond, can be with reference charge socket control method for electronic lock institute
The content of record, will not be described in great detail herein.
The present invention also provides a kind of entire car controllers, including above-mentioned charging socket electronic lock control device.That is, full-vehicle control
Device may include above-mentioned upper lock module, charging module, unlocked state, charging judging unit, judgment module, repeat sending module with
And detection module.
The present invention also provides a kind of electric vehicles, including above-mentioned entire car controller, further include being connected with entire car controller
Electronic locking mechanism and battery management module.
Electronic locking mechanism is connect with for the charging socket end for filling charging gun insertion;When electronic locking mechanism is locked
Afterwards, charging gun can not be detached from the charging socket end.Battery management module is for receiving when charging gun is inserted into charging socket end
Afterwards, the wake-up signal of charging socket end output, and wake-up signal is delivered to entire car controller.
Electric vehicle can also include the electronic lock anti-theft switch being connected with entire car controller;If before Vehicular charging, electricity
Son lock anti-theft switch is opened, then after Vehicular charging finishes, closes electronic lock anti-theft switch to realize electronic locking mechanism solution
Lock.In addition to this, the other parts of electric vehicle are referred to the prior art, not reinflated herein.
It should be noted that in the present specification, such as first and second etc relational terms are used merely to one
Entity is distinguished with other several entities, and without necessarily requiring or implying between these entities, there are any this actual
Relationship or sequence.
Above to electric vehicle provided by the present invention, entire car controller and charging socket electronic lock control device and method
It is described in detail.Used herein a specific example illustrates the principle and implementation of the invention, the above reality
The explanation for applying example is merely used to help understand method and its core concept of the invention.It should be pointed out that for the art
For those of ordinary skill, without departing from the principle of the present invention, can with several improvements and modifications are made to the present invention,
These improvements and modifications also fall within the scope of protection of the claims of the present invention.