Vehicle electronic lock control method, device and equipment and vehicle

文档序号:1960178 发布日期:2021-12-14 浏览:15次 中文

阅读说明:本技术 车辆的电子锁控制方法、装置、设备和车辆 (Vehicle electronic lock control method, device and equipment and vehicle ) 是由 唐红兵 于 2021-08-10 设计创作,主要内容包括:本发明公开了一种车辆的电子锁控制方法、装置、设备和车辆。所述方法包括:接收整车控制器发送的电子锁指令;所述电子锁指令包括电子锁上锁指令和电子锁解锁指令;执行与所述电子锁指令对应的驱动检测操作;其中,所述驱动检测操作用于向所述电子锁发送与所述电子锁指令对应的驱动信号,再检测当前所述电子锁反馈的运行状态;所述运行状态包括上锁状态或解锁状态;根据当前所述电子锁反馈的运行状态,上报所述电子锁的状态模式。采用本发明实施例,能有效防止因电子锁反馈的状态有误导致电子锁无法正常上锁或解锁的情况,有效提高电子锁驱动控制的可靠性和鲁棒性。(The invention discloses a vehicle electronic lock control method, device and equipment and a vehicle. The method comprises the following steps: receiving an electronic lock instruction sent by a vehicle controller; the electronic lock instruction comprises an electronic lock locking instruction and an electronic lock unlocking instruction; executing a drive detection operation corresponding to the electronic lock instruction; the driving detection operation is used for sending a driving signal corresponding to the electronic lock instruction to the electronic lock and then detecting the current running state fed back by the electronic lock; the running state comprises a locking state or an unlocking state; and reporting the state mode of the electronic lock according to the current running state fed back by the electronic lock. By adopting the embodiment of the invention, the situation that the electronic lock cannot be normally locked or unlocked due to the error of the state fed back by the electronic lock can be effectively prevented, and the reliability and the robustness of the driving control of the electronic lock are effectively improved.)

1. A control method of an electronic lock of a vehicle, characterized by comprising:

receiving an electronic lock instruction sent by a vehicle controller; the electronic lock instruction comprises an electronic lock locking instruction and an electronic lock unlocking instruction;

executing a drive detection operation corresponding to the electronic lock instruction; the driving detection operation is used for sending a driving signal corresponding to the electronic lock instruction to the electronic lock and then detecting the current running state fed back by the electronic lock; the running state comprises a locking state or an unlocking state;

and reporting the state mode of the electronic lock according to the current running state fed back by the electronic lock.

2. The electronic lock control method for the vehicle according to claim 1, wherein when the electronic lock command sent by the vehicle control unit is an electronic lock locking command, the method further comprises:

reporting the state mode of the electronic lock as a locking state mode;

then, the executing the driving detection operation corresponding to the electronic lock instruction specifically includes:

performing locking drive detection operation; the locking drive detection operation is: sending a locking driving signal to the electronic lock to drive the electronic lock to be locked; after a first preset time period, detecting the current running state fed back by the electronic lock;

then, the reporting the state mode of the electronic lock according to the current running state fed back by the electronic lock includes:

and if the current running state fed back by the electronic lock is detected to be the locked state, reporting that the state mode of the electronic lock is the locked state mode.

3. The method according to claim 2, wherein reporting the status mode of the electronic lock according to the current running status fed back by the electronic lock further comprises:

and if the current running state fed back by the electronic lock is detected to be the unlocking state, the locking drive detection operation is executed again.

4. The electronic lock control method for a vehicle according to claim 3, wherein after the lock actuation detection operation is re-executed if it is detected that the current operation state fed back by the electronic lock is an unlocked state, the method further includes:

counting the re-execution of the lock driving detection operation;

and when the frequency of re-executing the locking driving detection operation reaches a first preset frequency and the current running state fed back by the electronic lock is detected to be an unlocking state, stopping executing the locking driving detection operation and reporting that the state mode of the electronic lock is a locking fault state mode.

5. The electronic lock control method for the vehicle according to claim 1, wherein when the electronic lock command sent by the vehicle control unit is an electronic lock unlocking command, the method further comprises:

reporting the state mode of the electronic lock as an unlocking state mode;

then, the executing the driving detection operation corresponding to the electronic lock instruction specifically includes:

executing an unlock drive detection operation; the unlock drive detection operation is: sending an unlocking driving signal to the electronic lock to drive the electronic lock to unlock; after a second preset time period, detecting the current running state fed back by the electronic lock;

then, the reporting the state mode of the electronic lock according to the current running state fed back by the electronic lock includes:

and reporting that the state mode of the electronic lock is the unlocked state mode if the current running state fed back by the electronic lock is detected to be the unlocked state.

6. The method according to claim 5, wherein reporting the status mode of the electronic lock according to the current running status fed back by the electronic lock further comprises:

and if the current running state fed back by the electronic lock is detected to be the locked state, the unlocking drive detection operation is executed again.

7. The electronic lock control method for a vehicle according to claim 6, wherein after the re-executing of the unlock drive detection operation if the current running state fed back by the electronic lock is detected as the locked state, the method further comprises:

counting the re-execution of the unlock drive detection operation;

and when the frequency of re-executing the unlocking drive detection operation reaches a second preset frequency and the current running state fed back by the electronic lock is detected to be a locking state, stopping executing the unlocking drive detection operation and reporting that the state mode of the electronic lock is an unlocking fault state mode.

8. The electronic lock control method for a vehicle according to claim 7, wherein after the reporting that the state of the electronic lock is the unlock failure state mode, the method further comprises:

and if the electronic lock is detected to receive a manual unlocking driving signal input by a user, reporting that the state mode of the electronic lock is an unlocked state mode.

9. The electronic lock control method for a vehicle according to claim 1, wherein before the receiving of the electronic lock instruction transmitted by the vehicle control unit, the method further comprises:

and reporting that the state mode of the electronic lock is a default state mode when the whole vehicle is powered on.

10. An electronic lock control apparatus of a vehicle, characterized by comprising:

the electronic lock instruction receiving module is used for receiving an electronic lock instruction sent by the vehicle control unit; the electronic lock instruction comprises an electronic lock locking instruction and an electronic lock unlocking instruction;

the driving detection operation execution module is used for executing driving detection operation corresponding to the electronic lock instruction; the driving detection operation is used for sending a driving signal corresponding to the electronic lock instruction to the electronic lock and then detecting the current running state fed back by the electronic lock; the running state comprises a locking state or an unlocking state;

and the state mode reporting module is used for reporting the state mode of the electronic lock according to the current running state fed back by the electronic lock.

11. An electronic lock control apparatus of a vehicle, characterized by comprising a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, the processor implementing the electronic lock control method of the vehicle according to any one of claims 1 to 9 when executing the computer program.

12. A vehicle is characterized by comprising an electronic lock, a vehicle control unit and an electronic lock control device, wherein the electronic lock is connected with the electronic lock control device which is connected with the vehicle control unit; the electronic lock control device is the electronic lock control device of the vehicle according to claim 10.

Technical Field

The invention relates to the technical field of vehicle control, in particular to a vehicle electronic lock control method, device and equipment and a vehicle.

Background

With the continuous development of social economy and vehicle technology, vehicles have become essential transportation devices in people's lives. And, with the continuous popularization of the green trip theory, electric automobile is applied to people's trip more and more.

In the prior art, an electric vehicle is charged by a vehicle charging gun. When the vehicle is in a charging state, the charging seat electronic lock needs to be controlled to be locked, so that the charging gun is prevented from being pulled out randomly to influence charging safety. When a vehicle needs to be charged, a Vehicle Control Unit (VCU) can send a locking instruction of an electronic lock to a vehicle-mounted charger (OBC), the vehicle-mounted charger can detect whether the state fed back by the current electronic lock is an unlocked state or not after receiving the instruction, and if the state is the unlocked state, a locking driving signal is sent to the electronic lock to drive the electronic lock to be locked; if not, the locking driving signal is not sent.

However, the inventors found that the prior art has at least the following problems: when the quality problem of the electronic lock itself occurs, the electronic lock can not be normally locked or unlocked according to the instruction of the vehicle control unit when the state of the electronic lock fed back is wrong, so that the charging gun can not be pulled out in a charged state due to the fact that the electronic lock is not locked in the charging process, and the arc is pulled out, or the charging gun can not be pulled out due to the fact that the electronic lock is locked in the non-charging process, and personal safety and vehicle using experience of a user are affected.

Disclosure of Invention

The embodiment of the invention aims to provide a vehicle electronic lock control method, a vehicle electronic lock control device, vehicle electronic lock control equipment and a vehicle, which can effectively prevent the situation that an electronic lock cannot be normally locked or unlocked due to error of the feedback state of the electronic lock, and effectively improve the reliability and robustness of electronic lock drive control.

In order to achieve the above object, an embodiment of the present invention provides an electronic lock control method for a vehicle, including:

receiving an electronic lock instruction sent by a vehicle controller; the electronic lock instruction comprises an electronic lock locking instruction and an electronic lock unlocking instruction;

executing a drive detection operation corresponding to the electronic lock instruction; the driving detection operation is used for sending a driving signal corresponding to the electronic lock instruction to the electronic lock and then detecting the current running state fed back by the electronic lock; the running state comprises a locking state or an unlocking state;

and reporting the state mode of the electronic lock according to the current running state fed back by the electronic lock.

As an improvement of the above scheme, when the electronic lock command sent by the vehicle control unit is an electronic lock locking command, the method further includes:

reporting the state mode of the electronic lock as a locking state mode;

then, the executing the driving detection operation corresponding to the electronic lock instruction specifically includes:

performing locking drive detection operation; the locking drive detection operation is: sending a locking driving signal to the electronic lock to drive the electronic lock to be locked; after a first preset time period, detecting the current running state fed back by the electronic lock;

then, the reporting the state mode of the electronic lock according to the current running state fed back by the electronic lock includes:

and if the current running state fed back by the electronic lock is detected to be the locked state, reporting that the state mode of the electronic lock is the locked state mode.

As an improvement of the above scheme, reporting the state mode of the electronic lock according to the current running state fed back by the electronic lock further includes:

and if the current running state fed back by the electronic lock is detected to be the unlocking state, the locking drive detection operation is executed again.

As an improvement of the above solution, after the lock driving detection operation is executed again if it is detected that the current running state fed back by the electronic lock is the unlocked state, the method further includes:

counting the re-execution of the lock driving detection operation;

and when the frequency of re-executing the locking driving detection operation reaches a first preset frequency and the current running state fed back by the electronic lock is detected to be an unlocking state, stopping executing the locking driving detection operation and reporting that the state mode of the electronic lock is a locking fault state mode.

As an improvement of the above scheme, when the electronic lock instruction sent by the vehicle control unit is an electronic lock unlocking instruction, the method further includes:

reporting the state mode of the electronic lock as an unlocking state mode;

then, the executing the driving detection operation corresponding to the electronic lock instruction specifically includes:

executing an unlock drive detection operation; the unlock drive detection operation is: sending an unlocking driving signal to the electronic lock to drive the electronic lock to unlock; after a second preset time period, detecting the current running state fed back by the electronic lock;

then, the reporting the state mode of the electronic lock according to the current running state fed back by the electronic lock includes:

and reporting that the state mode of the electronic lock is the unlocked state mode if the current running state fed back by the electronic lock is detected to be the unlocked state.

As an improvement of the above scheme, reporting the state mode of the electronic lock according to the current running state fed back by the electronic lock further includes:

and if the current running state fed back by the electronic lock is detected to be the locked state, the unlocking drive detection operation is executed again.

As an improvement of the above solution, after the re-executing the unlock driving detection operation if the current running state fed back by the electronic lock is detected to be the locked state, the method further includes:

counting the re-execution of the unlock drive detection operation;

and when the frequency of re-executing the unlocking drive detection operation reaches a second preset frequency and the current running state fed back by the electronic lock is detected to be a locking state, stopping executing the unlocking drive detection operation and reporting that the state mode of the electronic lock is an unlocking fault state mode.

As an improvement of the above scheme, after the reporting that the state of the electronic lock is the unlock failure state mode, the method further includes:

and if the electronic lock is detected to receive a manual unlocking driving signal input by a user, reporting that the state mode of the electronic lock is an unlocked state mode.

As an improvement of the above scheme, before the receiving the electronic lock instruction sent by the vehicle control unit, the method further includes:

and reporting that the state mode of the electronic lock is a default state mode when the whole vehicle is powered on.

The embodiment of the invention provides an electronic lock control device of a vehicle, which comprises:

the electronic lock instruction receiving module is used for receiving an electronic lock instruction sent by the vehicle control unit; the electronic lock instruction comprises an electronic lock locking instruction and an electronic lock unlocking instruction;

the driving detection operation execution module is used for executing driving detection operation corresponding to the electronic lock instruction; the driving detection operation is used for sending a driving signal corresponding to the electronic lock instruction to the electronic lock and then detecting the current running state fed back by the electronic lock; the running state comprises a locking state or an unlocking state;

and the state mode reporting module is used for reporting the state mode of the electronic lock according to the current running state fed back by the electronic lock.

The embodiment of the invention also provides an electronic lock control device of a vehicle, which comprises a processor, a memory and a computer program stored in the memory and configured to be executed by the processor, wherein the processor realizes the electronic lock control method of the vehicle when executing the computer program.

The embodiment of the invention also provides a vehicle, which comprises an electronic lock, a vehicle controller and an electronic lock control device, wherein the electronic lock is connected with the electronic lock control device; the electronic lock control device is the electronic lock control device of the vehicle.

Compared with the prior art, the electronic lock control method, the electronic lock control device, the electronic lock control equipment and the vehicle disclosed by the embodiment of the invention have the advantages that after the electronic lock instruction sent by the vehicle control unit is received, the driving signal corresponding to the electronic lock instruction is sent to the electronic lock to drive the electronic lock to perform a locking action or an unlocking action. And then, detecting the operation state fed back by the electronic lock, and reporting the state mode of the electronic lock according to the operation state fed back by the electronic lock. The embodiment of the invention adopts the control logic of first driving and then detecting, can effectively avoid the situation that the electronic lock cannot normally lock or unlock according to the instruction sent by the whole vehicle controller by the electronic lock because the operation state fed back by the quality problem of the electronic lock is wrong under the control logic of firstly detecting the operation state of the electronic lock and then determining whether to send the driving signal according to the operation state, and can effectively improve the reliability and robustness of the driving control logic of the electronic lock, thereby better ensuring the personal safety of a user and improving the vehicle using experience of the user.

Drawings

Fig. 1 is a schematic flowchart of an electronic lock control method for a vehicle according to an embodiment of the present invention;

FIG. 2 is a diagram illustrating a relationship between status modes of the electronic lock according to an embodiment of the present invention;

fig. 3 is a schematic flowchart of a control method of an electronic lock of a vehicle according to a second embodiment of the present invention;

fig. 4 is a schematic diagram illustrating locking control of an electronic lock according to an embodiment of the invention;

fig. 5 is a schematic diagram illustrating locking control of an electronic lock according to another embodiment of the present invention;

fig. 6 is a schematic flowchart of a control method of an electronic lock of a vehicle according to a third embodiment of the present invention;

fig. 7 is a schematic structural diagram of an electronic lock control device of a vehicle according to a fourth embodiment of the present invention;

fig. 8 is a schematic structural diagram of an electronic lock control device of a vehicle according to a fifth embodiment of the present invention;

fig. 9 is a schematic structural diagram of a vehicle according to a sixth embodiment of the present invention.

Detailed Description

The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

Referring to fig. 1, a flowchart of an electronic lock control method for a vehicle according to an embodiment of the present invention is shown. The electronic lock control method for the vehicle provided by the embodiment of the invention can be executed by a vehicle-mounted charger and also can be executed by an electronic lock state machine arranged in the vehicle-mounted charger.

The electronic lock control method of the vehicle specifically comprises the following steps of S11 to S13:

s11, receiving an electronic lock instruction sent by the vehicle control unit; the electronic lock instruction comprises an electronic lock locking instruction and an electronic lock unlocking instruction;

s12, executing a driving detection operation corresponding to the electronic lock instruction; the driving detection operation is used for sending a driving signal corresponding to the electronic lock instruction to the electronic lock and then detecting the current running state fed back by the electronic lock; the running state comprises a locking state or an unlocking state;

and S13, reporting the state mode of the electronic lock according to the current running state fed back by the electronic lock.

Specifically, the vehicle control unit of the vehicle generates a corresponding electronic lock instruction according to the current charging or discharging requirement of the vehicle and sends the electronic lock instruction to the vehicle-mounted charger. For example, when the electric quantity of the vehicle battery is less than a preset electric quantity lower limit threshold value and it is detected that a charging gun is plugged in a charging interface of the vehicle, a locking instruction of the electronic lock is generated and issued to a vehicle-mounted charger, so that the vehicle-mounted charger can drive the electronic lock to perform a locking action and control the vehicle to enter a charging state and the like. For another example, when the electric quantity of the vehicle battery reaches a preset electric quantity upper limit threshold value, or when the current vehicle is not in the process of charging or discharging, an electronic lock unlocking instruction is generated and the vehicle-mounted charger is issued, so that the vehicle-mounted charger can drive the electronic lock to execute an unlocking action, and a user can pull down the charging gun smoothly.

It is to be understood that the situation that the vehicle control unit sends the electronic lock command is not limited to the above scenario, and is not specifically limited herein.

Further, after receiving an electronic lock instruction sent by the vehicle control unit, the vehicle-mounted charger sends a driving signal corresponding to the electronic lock instruction to the electronic lock. The driving signal comprises a locking driving signal corresponding to the electronic lock locking instruction and used for driving the electronic lock to execute a locking action, and the driving signal also comprises an unlocking driving signal corresponding to the electronic lock unlocking instruction and used for driving the electronic lock to execute an unlocking action.

It should be noted that the electronic lock may continuously or periodically feed back the running state of the electronic lock to the vehicle-mounted charger. The operation state comprises two states, namely an unlocking state and a locking state. On the basis, after the vehicle-mounted charger sends a corresponding driving signal to the electronic lock, the current running state fed back by the electronic lock is detected, and then the state mode of the electronic lock is reported according to the current running state fed back by the electronic lock.

The embodiment of the invention provides a vehicle electronic lock control method, wherein after receiving an electronic lock instruction sent by a vehicle controller, a vehicle-mounted charger sends a driving signal corresponding to the electronic lock instruction to an electronic lock so as to drive the electronic lock to perform a locking action or an unlocking action. And then, the vehicle-mounted charger detects the operation state fed back by the electronic lock again, and reports the state mode of the electronic lock according to the operation state fed back by the electronic lock. The embodiment of the invention adopts the control logic of first driving and then detecting, can effectively avoid the situation that the electronic lock cannot normally lock or unlock according to the instruction sent by the whole vehicle controller by the electronic lock because the operation state fed back by the quality problem of the electronic lock is wrong under the control logic of firstly detecting the operation state of the electronic lock and then determining whether to send the driving signal according to the operation state, and can effectively improve the reliability and robustness of the driving control logic of the electronic lock, thereby better ensuring the personal safety of a user and improving the vehicle using experience of the user.

As a preferred implementation manner, refer to fig. 2, which is a schematic relationship diagram of status modes of an electronic lock in an embodiment of the present invention. The state modes of the electronic lock comprise a default state mode, a locking state mode and an unlocking state mode. The locking state mode is divided into a locking state mode, a locked state mode and a locking fault state mode; the unlock state mode is further classified into an unlock-in-state mode, an unlocked state mode, and an unlock failure state mode.

Preferably, before the step S11, the method further includes a step S11':

and S11', reporting that the state mode of the electronic lock is a default state mode when the whole vehicle is powered on.

In the embodiment of the invention, when the whole vehicle is powered on, the running state of the current electronic lock is not detected, so a default mode, namely the default mode, is preset and reported and displayed by the electronic lock state machine when the whole vehicle is powered on.

When the vehicle-mounted charger receives an electronic lock instruction of the vehicle control unit, if the electronic lock instruction is an electronic lock locking instruction, reporting that a state mode of the electronic lock is a specific state mode in a locking state mode according to an actual driving detection operation result. And if the electronic lock instruction is an electronic lock unlocking instruction, reporting that the state mode of the electronic lock is a specific state mode in the unlocking state modes according to an actual drive detection operation result.

Referring to fig. 3, a flow chart of a method for controlling an electronic lock of a vehicle according to a second embodiment of the present invention is shown as a preferred implementation manner. The electronic lock control method for the vehicle provided by the second embodiment of the present invention is specifically executed through steps S21 to S23:

and S21, receiving an electronic lock locking instruction sent by the vehicle control unit, and reporting that the state mode of the electronic lock is a locking state mode.

S22, executing locking drive detection operation; the locking drive detection operation is: sending a locking driving signal to the electronic lock to drive the electronic lock to be locked; and after a first preset time, detecting the current running state fed back by the electronic lock.

And S23, if the current operation state fed back by the electronic lock is detected to be the locking state, reporting that the state mode of the electronic lock is the locked state mode.

In an embodiment of the present invention, if the electronic lock command sent by the vehicle control unit is an electronic lock locking command, the driving detection operation corresponding to the electronic lock command is a locking driving detection operation.

Fig. 4 is a schematic diagram of locking control of an electronic lock according to an embodiment of the present invention. The vehicle control unit sends an electronic lock locking instruction to the vehicle-mounted charger, the current charging gun is in a connected state, and the vehicle-mounted charger reports that the state mode of the electronic lock is a locking state mode after receiving the electronic lock locking instruction. And then, the vehicle-mounted charger sends a first locking driving signal to the electronic lock so as to drive the electronic lock to execute a locking action. The driving time of the lock driving signal is TBD1 ms. After the driving time is over, and after a waiting time TBD2ms passes, the vehicle-mounted charger detects the current operation state fed back by the electronic lock, and if the operation state fed back by the electronic lock is the locking state, it indicates that the locking driving is successful at this time, or the electronic lock itself is in the locking state. And reporting that the state mode of the electronic lock is the locked state mode according to the locked state fed back by the electronic lock.

The first preset time is the sum of the driving time and the waiting time. The first preset time, the driving time and the waiting time are all set according to actual conditions, and are not specifically limited herein. Preferably, the waiting time is slightly greater than the driving time. The reason why the waiting time is set to be slightly longer is to avoid the situation where the feedback signal is jittered when the electronic lock is actually operated.

In another case, the electronic lock control method for a vehicle according to the second embodiment of the present invention further includes step S24:

and S24, if the current running state fed back by the electronic lock is detected to be the unlocking state, the locking driving detection operation is executed again.

Fig. 5 is a schematic diagram of locking control of an electronic lock according to another embodiment of the present invention. And after a first preset time period passes, the vehicle-mounted charger detects the current running state fed back by the electronic lock, and if the running state fed back by the electronic lock is an unlocked state, the current running state shows that the locking driving fails, or the electronic lock is in a locked state but the fed back running state is wrong. At this time, in order to increase the success rate of driving the electronic lock to be locked, the vehicle-mounted charger jumps to step S22, and re-executes the locking driving detection operation, so as to report that the state mode of the electronic lock is the locked state mode when detecting that the current operation state fed back by the electronic lock is the locked state.

Further, after the step S24, the method further includes steps S25 and S26:

s25, counting the re-execution of the lock drive detection operation;

s26, when the number of times of re-executing the locking driving detection operation reaches a first preset number of times and it is detected that the current running state fed back by the electronic lock is an unlocked state, stopping executing the locking driving detection operation and reporting that the state mode of the electronic lock is a locking fault state mode.

The vehicle-mounted charger calculates the number of times T1 for which the lock drive detection operation is to be re-executed. For example, if the vehicle-mounted charger receives an electronic lock locking command of the vehicle control unit and then transmits a locking driving signal to the electronic lock, the locking driving signal is defined as a first locking driving signal, and when the locking driving detection operation is re-executed, the transmitted locking driving signal is defined as a second locking driving signal, and at this time, the number of times T1 that the locking driving detection operation is re-executed is defined as one, that is, T1 is 1.

When the number T1 of times of re-executing the locking driving detection operation reaches a first preset number and it is detected that the current running state fed back by the electronic lock is an unlocked state, the execution of the locking driving detection operation is stopped, and the state mode of the electronic lock is reported as a locking fault state mode.

For example, if the first preset number of times is set to 4, then when the number of times T1 of re-executing the locking driving detection operation is 4, that is, after the vehicle-mounted charger has sent the fifth locking driving signal, if it is detected that the current operating state fed back by the electronic lock is still the unlocked state, the vehicle-mounted charger does not execute the locking driving detection operation any more, and reports that the state mode of the electronic lock is the locking fault state mode according to the unlocked state fed back by the electronic lock, so that the user can check and maintain the electronic lock according to the displayed locking fault state mode.

By adopting the technical means of the embodiment of the invention, the reported locking state mode of the electronic lock is divided into three modes of locking, locked and locking fault, the electronic lock is driven to execute corresponding locking action through the control logic which is driven and detected firstly, and the current state mode of the electronic lock is reported according to the multiple detection results of the running state of the electronic lock, so that the reliability and robustness of the driving control logic of the electronic lock can be effectively improved, the state mode of the electronic lock can be reported more accurately, the electronic lock is convenient for a user to check and overhaul, and the vehicle using experience of the user is improved.

Preferably, in step S26, that is, after the status mode of the electronic lock is reported as the locking fault status mode, if an electronic lock unlocking instruction sent by the vehicle control unit is received, the status mode of the electronic lock is reported as the unlocking status mode, and the original locking fault status mode is released. The specific status mode of the reported unlocked status modes is contingent on the specific situation.

By adopting the technical means of the embodiment of the invention, when the electronic lock is in the locking fault, the unlocking instruction of the vehicle control unit is received again, and the locking fault is automatically cleared, so that the locking fault of the electronic lock can be eliminated through vehicle control, and the control flexibility of the electronic lock is improved.

Referring to fig. 6, a flow chart of an electronic lock control method for a vehicle according to a third embodiment of the present invention is shown as a preferred implementation manner. In the electronic lock control method for a vehicle provided by the third embodiment of the present invention,

specifically, the steps S31 to S33 are performed:

and S31, receiving an electronic lock unlocking instruction sent by the vehicle control unit, and reporting that the state mode of the electronic lock is an unlocking state mode.

S32, executing unlocking drive detection operation; the unlock drive detection operation is: sending an unlocking driving signal to the electronic lock to drive the electronic lock to unlock; and after a second preset time period, detecting the current running state fed back by the electronic lock.

And S33, reporting that the state mode of the electronic lock is the unlocked state mode if the current running state fed back by the electronic lock is detected to be the unlocked state.

In the embodiment of the invention, the electronic lock instruction sent by the vehicle control unit is an electronic lock unlocking instruction, and the drive detection operation corresponding to the electronic lock instruction is an unlocking drive detection operation.

The vehicle control unit sends an electronic lock unlocking instruction to the vehicle-mounted charger, and the vehicle-mounted charger reports that the state mode of the electronic lock is an unlocking state mode after receiving the electronic lock unlocking instruction. And then, the vehicle-mounted charger sends a first unlocking driving signal to the electronic lock to drive the electronic lock to execute an unlocking action. The driving time of the unlocking driving signal is TBD' 1 ms. After the driving time is over, and after a waiting time TBD' 2ms passes, the vehicle-mounted charger detects the current operation state fed back by the electronic lock, and if the operation state fed back by the electronic lock is an unlocking state, it indicates that the unlocking driving is successful at the moment, or the electronic lock is in the unlocking state. And reporting that the state mode of the electronic lock is the unlocked state mode according to the unlocked state fed back by the electronic lock.

The second preset time is the sum of the driving time and the waiting time. The second preset time, the driving time and the waiting time are all set according to actual conditions, and are not specifically limited herein. Preferably, the waiting time is slightly longer than the driving time, and the second preset time period is equal to the first preset time period.

In another case, the electronic lock control method for a vehicle according to the third embodiment of the present invention further includes step S34:

and S34, if the current running state fed back by the electronic lock is detected to be the locked state, re-executing the unlocking driving detection operation.

And after sending a first unlocking driving signal to the electronic lock and after the second preset time, the vehicle-mounted charger detects the current running state fed back by the electronic lock, and if the running state fed back by the electronic lock is a locked state, the unlocking driving fails at the moment, or the electronic lock is in an unlocked state but the fed back running state is wrong. At this time, in order to improve the success rate of driving the electronic lock to unlock, the vehicle-mounted charger jumps to step S32 to re-execute the unlocking driving detection operation, so that when it is detected that the current running state fed back by the electronic lock is the unlocked state, the state mode of the electronic lock is reported as the unlocked state mode.

Further, after the step S34, the method further includes steps S35 and S36:

s35, counting the re-execution of the unlock drive detection operation;

and S36, when the number of times of re-executing the unlocking driving detection operation reaches a second preset number of times and the current running state fed back by the electronic lock is detected to be a locking state, stopping executing the unlocking driving detection operation and reporting that the state mode of the electronic lock is an unlocking fault state mode.

The vehicle-mounted charger calculates the number of times T2 for which the unlock drive detection operation is re-executed. For example, after receiving an electronic lock unlocking instruction of the vehicle control unit, the vehicle-mounted charger records an unlocking driving signal sent to the electronic lock as a first unlocking driving signal, and when the unlocking driving detection operation is re-executed, the vehicle-mounted charger records the sent unlocking driving signal as a second unlocking driving signal, and at this time, the number of times T2 of re-executing the unlocking driving detection operation is recorded as one time, that is, T2 is 1.

When the number of times T2 of re-executing the unlocking driving detection operation reaches a second preset number of times and it is detected that the current running state fed back by the electronic lock is a locked state, the execution of the unlocking driving detection operation is stopped, and the state mode of the electronic lock is reported as an unlocking fault state mode.

For example, if the second preset number of times is set to 4, then when the number of times T2 of re-executing the unlocking driving detection operation is 4, that is, after the vehicle-mounted charger has sent the fifth unlocking driving signal, if it is detected that the current operating state fed back by the electronic lock is still the locked state, the vehicle-mounted charger does not execute the unlocking driving detection operation any more, and reports the state mode of the electronic lock as the unlocking fault state mode according to the locked state fed back by the electronic lock, so that the user can check and maintain the electronic lock according to the displayed unlocking fault state mode.

By adopting the technical means of the embodiment of the invention, the reported unlocking state mode of the electronic lock is divided into three modes of unlocking, unlocked and unlocking faults, the electronic lock is driven to execute corresponding unlocking action through the control logic which is driven firstly and then detected, and the current state mode of the electronic lock is reported according to the multiple detection results of the running state of the electronic lock, so that the reliability and robustness of the driving control logic of the electronic lock can be effectively improved, the state mode of the electronic lock can be reported more accurately, the electronic lock is convenient for a user to check and overhaul, and the vehicle using experience of the user is improved.

As a preferred embodiment, after step S36, the method further includes step S37:

and S37, if the electronic lock is detected to receive a manual unlocking driving signal input by a user, reporting that the state mode of the electronic lock is an unlocked state mode.

Preferably, the manual unlocking driving signal is input by the user in a manner that: and sending a manual unlocking driving signal to the electronic lock by using a standby pull rope of the electronic lock.

It should be noted that the user may also input the manual unlocking driving signal in other manners, for example, by triggering the central control screen of the vehicle, inputting the manual unlocking driving signal to the vehicle, and the like, which do not affect the beneficial effects obtained by the present invention.

In one case, if the vehicle is charged, the electronic lock cannot be unlocked according to an unlocking instruction of the vehicle control unit, and at this time, the vehicle-mounted charger reports that the state mode of the electronic lock is an unlocking fault state mode. And then, after detecting that the electronic lock receives a manual unlocking driving signal input by a user, the vehicle-mounted charger reports that the state mode of the electronic lock is an unlocked state mode, and the original unlocking fault state mode is released.

As a preferred embodiment, when the state mode of the electronic lock is reported to be any one of a locked state mode in locking, locked state or locking fault, if the electronic lock receives a manual unlocking driving signal input by a user, the vehicle-mounted charger reports that the state mode of the electronic lock is an unlocked state mode.

In another case, if the vehicle is in a charging or discharging process, at this time, no matter the vehicle is in any one of the locking state modes of locking, locking or locking failure, after detecting that the electronic lock receives a manual unlocking driving signal input by a user, the vehicle-mounted charger reports that the state mode of the electronic lock is the unlocked state mode, and stops outputting current or reduces the input current to a preset current value TBD a.

Preferably, in step S36, that is, after the status mode of the electronic lock is reported as the unlock failure status mode, if the electronic lock locking instruction sent by the vehicle control unit is received, the status mode of the electronic lock is reported as the lock status mode, and the original unlock failure status mode is released. The specific status mode of the reported lock status modes is contingent on the specific situation.

By adopting the technical means of the embodiment of the invention, when the electronic lock is in the unlocking fault, the locking instruction of the vehicle control unit is received again, and the unlocking fault is automatically cleared, so that the user is allowed to charge again, and the situation that the vehicle-mounted charger cannot control charging or derate charging due to the fault of the electronic lock is avoided.

As a preferred embodiment, the manner of sending the electronic lock instruction to the vehicle-mounted charger by the vehicle control unit is as follows: by periodic CAN messaging.

On this basis, the control method further includes steps S01 and S02:

s01, when the vehicle is detected to be in the charging or discharging process and the electronic lock instruction issued by the vehicle controller is not received for a third preset time, determining that the electronic lock instruction of the vehicle controller is lost, and reporting a communication loss fault;

and S02, maintaining the locking state mode of the electronic lock unchanged until the vehicle is detected not to be in the charging or discharging process, and sending an unlocking driving signal to the electronic lock to drive the electronic lock to unlock.

The third preset time period should be longer than the period of the CAN message sent by the vehicle controller, and may be specifically set according to an actual situation. For example, the third preset time period is set to 500 ms.

It should be noted that the vehicle-mounted charger is internally provided with an ECU module responsible for ac charging and ac discharging, and is in communication interaction with the vehicle control unit and the battery management system BMS, so that the vehicle-mounted charger can determine whether the current vehicle is in the charging or discharging process through its own internal state machine and the external communication signal state.

Fig. 7 is a schematic structural diagram of an electronic lock control device for a vehicle according to a fourth embodiment of the present invention. An embodiment of the present invention provides an electronic lock control device 40 for a vehicle, including: an electronic lock instruction receiving module 41, a drive detection operation executing module 42 and a state mode reporting module 43; wherein the content of the first and second substances,

the electronic lock instruction receiving module 41 is configured to receive an electronic lock instruction sent by the vehicle controller; the electronic lock instruction comprises an electronic lock locking instruction and an electronic lock unlocking instruction;

the driving detection operation executing module 42 is configured to execute a driving detection operation corresponding to the electronic lock instruction; the driving detection operation is used for sending a driving signal corresponding to the electronic lock instruction to the electronic lock and then detecting the current running state fed back by the electronic lock; the running state comprises a locking state or an unlocking state;

the status mode reporting module 43 is configured to report the status mode of the electronic lock according to the current running status fed back by the electronic lock.

The fourth embodiment of the invention provides an electronic lock control device for a vehicle, which is characterized in that after an electronic lock instruction sent by a vehicle control unit is received, a driving signal corresponding to the electronic lock instruction is sent to an electronic lock to drive the electronic lock to execute a locking action or an unlocking action. And then, detecting the operation state fed back by the electronic lock, and reporting the state mode of the electronic lock according to the operation state fed back by the electronic lock. The embodiment of the invention adopts the control logic of first driving and then detecting, can effectively avoid the situation that the electronic lock cannot normally lock or unlock according to the instruction sent by the whole vehicle controller by the electronic lock because the operation state fed back by the quality problem of the electronic lock is wrong under the control logic of firstly detecting the operation state of the electronic lock and then determining whether to send the driving signal according to the operation state, and can effectively improve the reliability and robustness of the driving control logic of the electronic lock, thereby better ensuring the personal safety of a user and improving the vehicle using experience of the user.

As a preferred embodiment, the electronic lock instruction receiving module 41 includes an electronic lock locking instruction receiving unit, the drive detection operation executing module 42 includes a locking drive detection operation executing unit, and the status mode reporting module 43 includes a locking status mode reporting unit.

Then, in one embodiment,

the electronic lock locking instruction receiving unit is used for receiving an electronic lock locking instruction sent by the vehicle control unit and controlling the locking state mode reporting unit to report that the state mode of the electronic lock is a locking state mode.

The locking drive detection operation execution unit is used for executing locking drive detection operation; the locking drive detection operation is: sending a locking driving signal to the electronic lock to drive the electronic lock to be locked; and after a first preset time, detecting the current running state fed back by the electronic lock.

The locking state mode reporting unit is used for reporting that the state mode of the electronic lock is the locked state mode if the current running state fed back by the electronic lock is detected to be the locking state; and the number of the first and second groups,

and if the current running state fed back by the electronic lock is detected to be an unlocking state, controlling the locking driving detection operation execution unit to execute the locking driving detection operation again.

The device also comprises a drive detection operation counting module;

wherein the drive detection operation counting module comprises a locking drive detection operation counting module, configured to count the re-execution of the locking drive detection operation; and when the number of times of re-executing the locking drive detection operation reaches a first preset number of times and the current running state fed back by the electronic lock is detected to be an unlocking state, controlling the locking drive detection operation execution unit to stop executing the locking drive detection operation, and controlling the locking state mode reporting unit to report that the state mode of the electronic lock is a locking fault state mode.

As a preferred embodiment, the electronic lock instruction receiving module 41 includes an electronic lock unlocking instruction receiving unit, the drive detection operation executing module 42 includes an unlocking drive detection operation executing unit, and the state mode reporting module 43 includes an unlocking state mode reporting unit.

Then, in another embodiment,

the electronic lock unlocking instruction receiving unit is used for receiving an electronic lock unlocking instruction sent by the vehicle control unit and controlling the unlocking state mode reporting unit to report that the state mode of the electronic lock is an unlocking state mode.

The unlocking drive detection operation execution unit is used for executing unlocking drive detection operation; the unlock drive detection operation is: sending an unlocking driving signal to the electronic lock to drive the electronic lock to unlock; and after a second preset time period, detecting the current running state fed back by the electronic lock.

The unlocking state mode reporting unit is used for reporting that the state mode of the electronic lock is the unlocked state mode if the current running state fed back by the electronic lock is detected to be the unlocking state; and the number of the first and second groups,

and if the current running state fed back by the electronic lock is detected to be the locked state, controlling the unlocking drive detection operation execution unit to execute the unlocking drive detection operation again.

The drive detection operation counting module further includes: an unlock drive detection operation counting module for counting the re-execution of the unlock drive detection operation; and when the number of times of re-executing the unlocking drive detection operation reaches a second preset number of times and the current running state fed back by the electronic lock is detected to be the locking state, controlling the unlocking drive detection operation execution unit to stop executing the unlocking drive detection operation and controlling the unlocking state mode reporting unit to report that the state mode of the electronic lock is the unlocking fault state mode.

It should be noted that, the electronic lock control device for a vehicle according to the embodiment of the present invention is configured to execute all the process steps of the electronic lock control method for a vehicle according to the first to third embodiments, and working principles and beneficial effects of the two are in one-to-one correspondence, so that details are not repeated.

Fig. 8 is a schematic structural diagram of an electronic lock control device of a vehicle according to a fifth embodiment of the present invention. The embodiment of the invention provides an electronic lock control device 50 of a vehicle, which comprises a processor 51, a memory 52 and a computer program stored in the memory and configured to be executed by the processor, wherein the processor executes the computer program to realize the electronic lock control method of the vehicle according to any one of the first embodiment to the third embodiment.

It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-only memory (ROM), a Random Access Memory (RAM), or the like.

Fig. 9 is a schematic structural diagram of a vehicle according to a sixth embodiment of the present invention. The vehicle 60 provided by the embodiment of the invention comprises an electronic lock 61, a vehicle control unit 62 and an electronic lock control device 63.

The electronic lock 61 is connected with the electronic lock control device 63, and the electronic lock control device 63 is connected with the vehicle control unit 62. The electronic lock control device 63 is the electronic lock control device of the vehicle according to the fourth embodiment.

While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention.

20页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种电动汽车充电设备及其地锁装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类