Control system and state recognition method of vehicle electronic lock and vehicle controller
By arranging a drive unit and a switch unit in the electronic lock, combined with pull-up resistors and pull-down resistors, the voltage changes are monitored to identify the status of the electronic lock, which solves the problem of misidentification of the status caused by the overtravel of the lock rod and achieves accurate status identification of the electronic lock. and the reliability of the charging process.
Patent Information
- Application Number
- CN202410694559.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2024-09-20
AI Technical Summary
When the existing electronic lock is locked, the state is misidentified due to the overtravel of the lock lever, resulting in an unreliable resistance lock state during the charging process, causing the problem that the charging equipment cannot work properly.
By arranging a drive unit and a switch unit in the electronic lock, and combining the pull-up resistor and the pull-down resistor, the voltage changes on the switch unit are monitored, and the control instructions are used to identify the working status of the electronic lock to avoid over-travel interference of the lock rod.
It achieves accurate identification of the locked or unlocked status of electronic locks without increasing hardware costs, avoids charging problems caused by misidentification, reduces after-sales risks and improvement costs for electronic lock manufacturers, and improves the reliability of software identification. .
Smart Images

Figure CN118669003A
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of vehicle electronic lock state recognition, and in particular relates to a control system and state recognition method of a vehicle electronic lock, and a vehicle controller. Background Art
[0002] The electronic lock is a device that locks and unlocks through electrical control. According to the regulations of the electric vehicle conductive charging system, the AC charging power supply socket and vehicle socket should be equipped with an electronic lock, and the DC charging vehicle plug or vehicle seat should be equipped with an electronic lock to prevent accidental disconnection during energy transmission. And when the electronic lock is not reliably locked, the power supply equipment should stop charging or not start charging.
[0003] Currently, electronic locks on the market are generally driven by motors and use micro switches as position signal feedback devices. They are connected to external control circuits through 3 or 4 PIN pins to achieve signal feedback for locking and unlocking the electronic lock. That is, when the lock rod of the electronic lock is extended or retracted, the micro switch is opened or closed accordingly, and the resistance between the PIN pins is detected to determine the state of the electronic lock.
[0004] However, due to hardware design issues of electronic lock products (such as manufacturing process, micro switch accuracy, etc.), when the electronic lock is locked, the lock rod of batch products will have over-travel, that is, the lock rod runs to the specified stop position and then continues to run for a distance, the micro switch will be disconnected and then closed. If the resistance between the PIN pins when the micro switch is disconnected is identified, the electronic lock will be considered to be locked successfully. If the resistance between the PIN pins when the micro switch is closed is identified, the electronic lock will be considered to be unlocked. However, in the actual over-travel state, the lock rod has been fully inserted into the lock hole, and the charging gun is reliably connected. The electronic lock manufacturer believes that the resistance lock is still reliably locked in the over-travel state, but because the micro switch is closed in the over-travel state, the working state of the electronic lock is incorrectly identified.
[0005] Therefore, there is an urgent need for a reliable electronic lock status recognition method to accurately determine the status of the electronic lock. Summary of the invention
[0006] In view of the above-mentioned shortcomings of the prior art, the purpose of the present invention is to provide a state recognition method for a vehicle electronic lock, which can accurately identify the locked or unlocked state of the electronic lock without being affected by the over-travel factor of the electronic lock itself, so as to facilitate the subsequent charging process.
[0007] To achieve the above-mentioned purpose and other related purposes, the present invention provides a control system for a vehicle electronic lock, comprising: an electronic lock, comprising: a drive unit and a switch unit, the switch unit is coupled to the drive unit, and one end of the switch unit is pulled up by a pull-up resistor, and the other end is pulled down to ground; and a control module, used to control the action of the drive unit according to a control instruction to drive the lock rod of the electronic lock to extend or retract; a diagnostic module, used to monitor the voltage on the switch unit, and identify the working state of the electronic lock according to the control instruction and the voltage change on the switch unit.
[0008] According to a specific embodiment of the present invention, the control module and the diagnostic module are both configured on the same vehicle controller, and the control module and the diagnostic module are communicatively connected; wherein the control module is also used to forward the control instruction to the diagnostic module.
[0009] According to a specific embodiment of the present invention, the switch unit includes: a switch, a first resistor and a second resistor; wherein the switch is configured to be able to open when the driving unit drives the lock rod of the electronic lock to extend, and to be able to close when the driving unit drives the lock rod of the electronic lock to retract; the diagnostic module is used to monitor the total voltage across the first resistor and the second resistor, and identify the working state of the electronic lock based on the control instruction and the change in the total voltage across the first resistor and the second resistor.
[0010] According to a specific embodiment of the present invention, one end of the first resistor is connected to one end of the switch, and the other end is connected to one end of the pull-up resistor; the second resistor is connected in parallel to both ends of the switch.
[0011] According to a specific embodiment of the present invention, when the diagnostic module receives a locking command and monitors that the total voltage change on the first resistor and the second resistor is a rising edge from a first voltage threshold to a second voltage threshold, it identifies that the vehicle electronic lock is successfully locked; wherein, the first voltage threshold and the second voltage threshold are calculated based on the resistance value of the first resistor, the resistance value of the second resistor, and the resistance value of the pull-up resistor.
[0012] According to a specific embodiment of the present invention, when the diagnostic module receives an unlocking instruction and monitors that the total voltage change on the first resistor and the second resistor is a falling edge from the second voltage threshold to the first voltage threshold, it identifies that the vehicle electronic lock is successfully unlocked; wherein, the first voltage threshold and the second voltage threshold are calculated based on the resistance value of the first resistor, the resistance value of the second resistor, and the resistance value of the pull-up resistor.
[0013] According to a specific embodiment of the present invention, the first resistor / the second resistor is composed of one or more resistors connected in series / parallel.
[0014] According to a specific embodiment of the present invention, the switch is a micro switch.
[0015] A vehicle controller comprises: a control module, which is used to control the action of a driving unit in an electronic lock according to a control instruction, so as to drive a lock rod of the electronic lock to extend or retract; a diagnostic module, which is used to monitor the voltage on a switch unit in the electronic lock, and identify the working state of the electronic lock according to the control instruction and the voltage change on the switch unit in the electronic lock; and other functional module units.
[0016] A method for identifying the state of a vehicle electronic lock comprises: obtaining a control instruction for driving a lock rod of the electronic lock; and identifying the working state of the vehicle electronic lock according to the control instruction and a voltage change on a switch unit.
[0017] According to a specific embodiment of the present invention, the step of identifying the working state of the vehicle electronic lock according to the control instruction and the voltage change on the switch unit includes: when the control instruction is a locking instruction, and the voltage change on the switch unit is a rising edge from a first voltage threshold to a second voltage threshold, identifying that the vehicle electronic lock is successfully locked; when the control instruction is an unlocking instruction, and the voltage change on the switch unit is a falling edge from the second voltage threshold to the first voltage threshold, identifying that the vehicle electronic lock is successfully unlocked; wherein, the first voltage threshold and the second voltage threshold are calculated based on the resistance value of the switch unit and the resistance value of the pull-up resistor.
[0018] The present invention provides a control system and a state identification method for a vehicle electronic lock. Without increasing any hardware cost, the method monitors the voltage change of the internal circuit of the electronic lock and accurately identifies whether the current state of the electronic lock is locked or unlocked in combination with the control instruction of driving the electronic lock, thereby effectively avoiding interference caused by the over-travel of the lock rod and the problem of being unable to charge due to misidentification of the state. In addition, there is no need to perform hardware process modification on the over-travel electronic lock, thereby avoiding the risk of after-sales problems for electronic lock manufacturers and saving a lot of improvement costs.
[0019] The present invention solves the problem of misidentification of the electronic lock state from the root, avoids the modification of the charging control and charging process of the controller downstream, ensures the reliability of the software identification method, and reduces the workload of verifying the electronic lock state. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 A schematic structural diagram of a specific embodiment of a vehicle electronic lock control system provided by the present invention;
[0021] Figure 2A circuit diagram of a specific embodiment of an electronic lock in a vehicle electronic lock control system provided by the present invention;
[0022] Figure 3 A schematic diagram of a specific embodiment of the electronic lock lever action state provided by the present invention;
[0023] Figure 4 The present invention provides a flow chart of a specific embodiment of a method for identifying the state of a vehicle electronic lock. DETAILED DESCRIPTION
[0024] In order to facilitate understanding of the present application, the present application will be described more fully below with reference to the relevant drawings. Embodiments of the present application are provided in the drawings. However, the present application can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present application more thorough and comprehensive.
[0025] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application.
[0026] It is understood that the terms "first", "second", etc. used in this application may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish a first element from another element. For example, without departing from the scope of this application, a first resistor may be referred to as a second resistor, and similarly, a second resistor may be referred to as a first resistor. Both the first resistor and the second resistor are resistors, but they are not the same resistor.
[0027] It can be understood that the “connection” in the following embodiments should be understood as “electrical connection”, “communication connection”, etc. if the connected circuits, modules, units, etc. have electrical signals or data transmission between each other.
[0028] It can be understood that “at least one” means one or more, “plurality” means two or more, and “at least a portion of an element” means a part or all of an element.
[0029] When used herein, the singular forms "a", "an", and "said / the" may also include plural forms, unless the context clearly indicates otherwise. It should also be understood that the terms "include / comprise" or "have" and the like specify the presence of stated features, wholes, steps, operations, components, parts, or combinations thereof, but do not exclude the possibility of the presence or addition of one or more other features, wholes, steps, operations, components, parts, or combinations thereof. At the same time, the term "and / or" used in this specification includes any and all combinations of the relevant listed items.
[0030] Example 1
[0031] See also Figure 1-2 As shown, a control system for a vehicle electronic lock includes: an electronic lock 10, a control module 20, and a diagnostic module 30. The control module 20 is used to control the operation of the electronic lock 10, such as locking and unlocking actions, according to the control instructions of the vehicle controller, and the diagnostic module 30 is used to identify the actual action state of the electronic lock 10 and feed it back to confirm whether the electronic lock is working normally. For example, when the vehicle controller issues a locking instruction, the control module 20 drives the electronic device inside the electronic lock 10 to act accordingly according to the locking instruction to complete the locking instruction. At the same time, the diagnostic module 30 identifies whether the locking action of the electronic lock 10 is completed, so as to ensure the safety and reliability of the subsequent power supply.
[0032] For details, please refer to Figure 2 As shown, the electronic lock 10 includes: a drive unit M and a switch unit coupled thereto, and the drive unit M is electrically connected to the control module 20 so that the control module 20 can electrically drive the drive unit M to work. For example, PIN1 and PIN4 of the drive unit M are connected to corresponding pins on the control module 20 to facilitate driving the lock rod of the electronic lock to extend or retract.
[0033] It can be understood that locking is completed when the lock rod of the electronic lock is extended, and unlocking is completed when the lock rod of the electronic lock is retracted. The driving unit can drive the lock rod of the electronic lock by driving a certain mechanical structure in the electronic lock; or directly drive the lock rod of the electronic lock so that the electronic lock can complete the switching between locking and unlocking working conditions.
[0034] Further, the switch unit specifically includes a switch K, a first resistor R1 and a second resistor R2. The switch K is configured to be disconnected when the driving unit M drives the lock rod of the electronic lock to extend, and to be closed when the driving unit M drives the lock rod of the electronic lock to retract. The first resistor R1 has one end connected to one end of the switch K, and the other end serves as a connection port PIN2; the second resistor R2 has two ends connected in parallel to the two ends of the switch K. In addition, the other end of the switch K serves as another connection port PIN3.
[0035] It should be noted that the switch K and the drive unit M can be coupled by a mechanical transmission. When the drive unit M drives the lock rod to extend or retract, the switch K can be triggered accordingly to open or close it. No excessive restrictions are imposed on this.
[0036] Since the switch K has two working conditions, namely, open and closed, corresponding to the locked state and unlocked state of the electronic lock, the working state of the electronic lock can be identified according to the characteristics and working conditions of the unit components in the above-mentioned electronic lock 10. Therefore, in this embodiment, the working state of the electronic lock is identified by identifying the voltage change on the switch unit, which can be considered to be the voltage change on the first resistor R1 and the second resistor R2, that is, the voltage change between PIN2 and PIN3, when the switch K is opened and closed, to identify the working state of the electronic lock.
[0037] For this purpose, PIN2 and PIN3 need to be connected to a stable voltage signal, that is, one end of the switch unit is pulled up by a pull-up resistor and the other end is pulled down to ground. Figure 2 As shown, the other end of the first resistor R1 is connected to a pull-up source through a pull-up resistor R, and the other end of the switch K is pulled down to the ground to form a loop. Correspondingly, when the lock rod of the electronic lock is extended, the switch K is disconnected, thereby connecting the second resistor R2 to the loop, and at this time, the first resistor R1, the second resistor R2 and the pull-up resistor R jointly divide the voltage in the loop; when the lock rod of the electronic lock is retracted, the switch K is closed, thereby short-circuiting the second resistor R2, and at this time, only the first resistor R1 and the pull-up resistor R divide the voltage in the loop.
[0038] It should also be noted that when the lock rod of the electronic lock is extended, if the lock rod moves over the travel, the corresponding Figure 3 If only the voltage value between PIN2 and PIN3 at a certain moment is identified, even if the electronic lock is reliably locked in the over-travel state, it will be mistakenly identified as unlocked due to the closure of switch K. Therefore, in this embodiment, the diagnostic module 30 correctly identifies the working state of the electronic lock by monitoring the voltage change between PIN2 and PIN3 and combining the corresponding control instructions to avoid interference from the over-travel state of the electronic lock rod.
[0039] Accordingly, in this embodiment, the control module 20 and the diagnosis module 30 are configured on the same vehicle controller and can communicate with each other, such as sending corresponding control instructions or diagnosis parameters, etc. Specifically, after receiving the control instruction of the superior and controlling the drive unit M to act accordingly, the control module 20 can forward the control instruction to the diagnosis module 30, so that the diagnosis module can identify whether the electronic lock has completed the corresponding working state switching according to the control instruction and the total voltage change of the first resistor R1 and the second resistor R2.
[0040] Specifically, when the diagnostic module 30 receives the locking instruction forwarded by the control module 20, and detects that the voltage between PIN2 and PIN3 has experienced a rising edge jump from the first voltage threshold U1 to the second voltage threshold U2, it is considered that the lock rod of the electronic lock has moved to the locked area, and the state of the electronic lock is determined to be successfully locked, and the electronic lock has been reliably locked. When the diagnostic module 30 receives the unlocking instruction forwarded by the control module 20, and detects that the voltage between PIN2 and PIN3 has experienced a falling edge jump from the second voltage threshold U2 to the first voltage threshold U1, it is considered that the lock rod of the electronic lock has moved to the unlocked area, and the state of the electronic lock is determined to be successfully unlocked.
[0041] The first voltage threshold U1 and the second voltage threshold U2 are calculated based on the resistance of the first resistor R1, the resistance of the second resistor R2, and the resistance of the pull-up resistor R. Assuming that the voltage of the pull-up source is U, the first voltage threshold U1 = U*(R1+R2) / (R1+R2+R) and the second voltage threshold U2 = U*R1 / (R1+R) can be calculated.
[0042] It can be seen that by identifying the operating state of the electronic lock based on the control instruction and the corresponding voltage change, even if the lock rod has over-traveled, it will not affect the identification result, thereby greatly enhancing the reliability of the electronic lock state identification.
[0043] In addition, it can be understood that the first resistor R1, the second resistor R2, and the pull-up resistor R can be composed of multiple resistors in series / parallel, and there is no excessive restriction on this. At the same time, in this embodiment, the switch adopts a micro switch, and of course, switch devices with the same function can be applied. In another specific embodiment, the control module 20 and the diagnostic module 30 can be composed of the same controller, or different controllers. The modifications and embellishments made to the embodiments of the present invention by those skilled in the art without departing from the spirit of the present invention still fall within the scope of the invention application of the present invention.
[0044] Of course, in this embodiment, the voltage change on the resistor is mainly monitored and identified in combination with the corresponding control instructions. It can also be imagined that the rising and falling edges of the current passing through the resistor can be monitored, or the rising and falling edges of the resistance value of the switch unit can be monitored, etc., all of which fall within the protection scope of the present application.
[0045] Example 2
[0046] An embodiment of the present application also provides a vehicle controller, including a control module and a diagnostic module in the control system of the vehicle electronic lock mentioned in the above embodiment, as well as other functional module units.
[0047] Example 3
[0048] See also Figure 4 As shown, the embodiment of the present application also provides a state identification method for a vehicle electronic lock, so as to identify the working state of the vehicle electronic lock based on the control system in the above embodiment, specifically comprising:
[0049] Step S100, obtaining a control instruction for driving a lock rod action of an electronic lock.
[0050] Step S200, identifying the working state of the vehicle electronic lock according to the control instruction and the voltage change on the switch unit.
[0051] Specifically, according to the control system in the above embodiment, when the control instruction is a locking instruction, and the voltage change on the switch unit, that is, the voltage change between PIN2 and PIN3 is a rising edge from the first voltage threshold to the second voltage threshold, it can be identified that the vehicle electronic lock is successfully locked; when the control instruction is an unlocking instruction, and the voltage change between PIN2 and PIN3 is a falling edge from the second voltage threshold to the first voltage threshold, it can be identified that the vehicle electronic lock is successfully unlocked.
[0052] It should be noted that the step division of the above methods is only for clear description. When implemented, they can be combined into one step or some steps can be split and decomposed into multiple steps. As long as they contain the same logical relationship, they are all within the scope of protection of this patent; adding insignificant modifications to the algorithm or process or introducing insignificant designs without changing the core design of the algorithm and process are all within the scope of protection of this patent.
[0053] To sum up, the present invention provides a control system and a state identification method for a vehicle electronic lock. Without increasing any hardware cost, the method monitors the voltage change of the internal circuit of the electronic lock and accurately identifies whether the current state of the electronic lock is locked or unlocked in combination with the control instructions for driving the electronic lock, thereby effectively avoiding interference caused by the lock rod over-travel and the problem of being unable to charge due to misidentification of the state. In addition, there is no need to perform hardware process modification on the electronic lock that has over-traveled, which avoids the risk of after-sales problems for electronic lock manufacturers and saves a lot of improvement costs.
[0054] The present invention solves the problem of misidentification of the electronic lock state from the root, avoids the modification of the charging control and charging process of the controller downstream, ensures the reliability of the software identification method, and reduces the workload of verifying the electronic lock state.
[0055] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the art may modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by a person of ordinary skill in the art without departing from the spirit and technical concept disclosed by the present invention shall still be covered by the claims of the present invention.
[0056] In the description of this specification, the description with reference to the terms "some embodiments", "other embodiments", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic description of the above terms does not necessarily refer to the same embodiment or example.
[0057] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0058] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present invention. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed by the present invention shall still be covered by the claims of the present invention.
Claims
1. A control system for a vehicle electronic lock, characterized in that: include: An electronic lock, comprising: a driving unit and a switch unit, wherein the switch unit is coupled to the driving unit, and one end of the switch unit is pulled up by a pull-up resistor, and the other end is pulled down and grounded; and A control module, used to control the action of the driving unit according to a control instruction, so as to drive the lock rod of the electronic lock to extend or retract; The diagnosis module is used to monitor the voltage on the switch unit and identify the working state of the electronic lock according to the control instruction and the voltage change on the switch unit.
2. The vehicle electronic lock control system according to claim 1, characterized in that: The control module and the diagnostic module are both configured on the same vehicle controller, and the control module and the diagnostic module are communicatively connected; The control module is further configured to forward the control instruction to the diagnosis module.
3. The vehicle electronic lock control system according to claim 1, characterized in that: The switch unit comprises: a switch, a first resistor and a second resistor; Wherein, the switch is configured to be disconnected when the driving unit drives the lock rod of the electronic lock to extend, and to be closed when the driving unit drives the lock rod of the electronic lock to retract; The diagnostic module is used to monitor the total voltage across the first resistor and the second resistor, and identify the working state of the electronic lock according to the control instruction and the change of the total voltage across the first resistor and the second resistor.
4. The vehicle electronic lock control system according to claim 3, characterized in that: One end of the first resistor is connected to one end of the switch, and the other end is connected to one end of the pull-up resistor; the second resistor is connected in parallel to both ends of the switch.
5. The vehicle electronic lock control system according to claim 3, characterized in that: When the diagnostic module receives a locking instruction and detects that the total voltage across the first resistor and the second resistor changes from a first voltage threshold to a rising edge of a second voltage threshold, it identifies that the vehicle electronic lock is locked successfully; The first voltage threshold and the second voltage threshold are calculated according to the resistance value of the first resistor, the resistance value of the second resistor, and the resistance value of the pull-up resistor.
6. The vehicle electronic lock control system according to claim 3, characterized in that: When the diagnostic module receives an unlocking instruction and monitors that the total voltage across the first resistor and the second resistor changes from the second voltage threshold to the falling edge of the first voltage threshold, it is identified that the vehicle electronic lock is unlocked successfully; The first voltage threshold and the second voltage threshold are calculated according to the resistance value of the first resistor, the resistance value of the second resistor, and the resistance value of the pull-up resistor.
7. The vehicle electronic lock control system according to claim 3, characterized in that: The first resistor / the second resistor is composed of one or more resistors connected in series / parallel.
8. The vehicle electronic lock control system according to claim 3, characterized in that: The switch is a micro switch.
9. A vehicle controller, characterized in that: include: A control module, used to control the action of a driving unit in the electronic lock according to a control instruction, so as to drive the lock rod of the electronic lock to extend or retract; The diagnostic module is used to monitor the voltage on the switch unit in the electronic lock and identify the working state of the electronic lock according to the control instruction and the voltage change on the switch unit in the electronic lock.
10. A method for identifying the state of a vehicle electronic lock, characterized in that: include: Obtaining a control instruction for driving a lock rod action of an electronic lock; The working state of the vehicle electronic lock is identified according to the control instruction and the voltage change on the switch unit.
11. The vehicle electronic lock status recognition method according to claim 10, characterized in that: The step of identifying the working state of the vehicle electronic lock according to the control instruction and the voltage change on the switch unit includes: When the control instruction is a locking instruction, and the voltage on the switch unit changes from a first voltage threshold to a rising edge of a second voltage threshold, it is recognized that the vehicle electronic lock is locked successfully; When the control instruction is an unlocking instruction, and the voltage on the switch unit changes from the second voltage threshold to the falling edge of the first voltage threshold, it is recognized that the vehicle electronic lock is unlocked successfully; The first voltage threshold and the second voltage threshold are calculated according to the resistance value of the switch unit and the resistance value of the pull-up resistor.
Citation Information
Patent Citations
Combined charging system electronic lock state recognition method, device and system, and terminal
CN113492701A
Electronic lock control method, device and system
CN113787925A
Charging pile identification circuit and method, charging control guide circuit and vehicle-mounted charger
CN117507908A
Charging socket electronic lock, charging socket and vehicle
CN213845716U
Power plug locking device
US20120234061A1
