Electronic lock control device and method

By using a combination of energy storage capacitor and switching unit in the electronic lock control device, the problem of the electronic lock being unable to unlock after the charger system is powered off is solved, achieving efficient and stable automatic unlocking, ensuring smooth separation of the charging gun from the electric vehicle, and improving the user experience.

CN115503518BActive Publication Date: 2026-04-28XIAN LINCHR NEW ENERGY TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
XIAN LINCHR NEW ENERGY TECH CO LTD
Filing Date
2022-10-10
Publication Date
2026-04-28

AI Technical Summary

Technical Problem

Existing electronic locks cannot be unlocked in time or have a high failure rate after an unexpected power outage in the charging system, resulting in the charging gun and electric vehicle being unable to separate smoothly, leading to a poor user experience.

Method used

The system employs a combination of power supply, energy storage capacitor, switching unit, and switching module. The energy storage capacitor provides a current loop for the electronic lock when power is off, enabling automatic unlocking. It also avoids other loads during charging and discharging, ensuring the efficiency and stability of the drive waveform.

Benefits of technology

This improves the timeliness and success rate of electronic lock unlocking, enabling the charging gun to be separated from the electric vehicle smoothly and promptly, thus enhancing the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115503518B_ABST
    Figure CN115503518B_ABST
Patent Text Reader

Abstract

The application provides an electronic lock control device and method, and relates to the field of electronic locks.The device comprises a power supply, a first switch unit, a switch module, and an energy storage capacitor.The power supply is grounded through the energy storage capacitor.The first end and the second end of the first switch unit are connected to the two ends of the energy storage capacitor.The third end of the first switch unit is connected to the first input end of the switch module.The second input end of the switch module is grounded.The first power supply end of the switch module and the second power supply end of the switch module are both connected to the power supply.The first output end of the switch module and the second output end of the switch module are respectively connected to the two ends of the electronic lock.When the power supply is not powered, the electronic lock is automatically unlocked through the discharge of the energy storage capacitor.The change in the drive waveform of the electronic lock is small, the timeliness and success rate of the unlocking of the electronic lock are improved, the charging gun and the electric vehicle can be timely and smoothly separated, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of electronic lock technology, and more specifically, to an electronic lock control device and method. Background Technology

[0002] With the development of electric vehicles, a series of safety issues may arise during the charging process, such as the accidental disconnection of the charging gun. Therefore, a locking mechanism is needed to lock the electric vehicle and the charging gun while they are charging to ensure the charging safety of the electric vehicle.

[0003] In existing technologies, by setting an electronic lock on the charging gun, the charging gun is kept locked during the charging process to prevent theft. However, the existing electronic lock control method cannot unlock in time after the charging system is unexpectedly powered off, or the unlocking failure rate is high, which makes it impossible for the charging gun to unlock smoothly and separate the charging gun from the electric vehicle, resulting in a poor user experience. Summary of the Invention

[0004] The purpose of this invention is to address the shortcomings of the prior art by providing an electronic lock control device and method to solve the technical problem that the charging gun cannot be smoothly separated from the electric vehicle after an unexpected power outage in the charging system.

[0005] To achieve the above objectives, the technical solutions adopted in the embodiments of this application are as follows:

[0006] In a first aspect, embodiments of this application provide an electronic lock control device, which includes: a power supply, a first switching unit, a second switching unit, a switching module, and an energy storage capacitor;

[0007] The power supply is grounded through the energy storage capacitor. The first and second ends of the first switching unit are connected to the two ends of the energy storage capacitor. The third end of the first switching unit is connected to the first input end of the switching module. The second input end of the switching module is grounded. The first power supply end and the second power supply end of the switching module are both connected to the power supply. The first output end and the second output end of the switching module are respectively connected to the two ends of the electronic lock.

[0008] Optionally, the switching module includes: a second switching unit and a third switching unit;

[0009] The first end of the second switch unit is the first input end of the switch module, and the third end of the first switch unit is connected to the first end of the second switch unit;

[0010] The second end of the second switch unit is the first power supply terminal of the switch module, and the second end of the third switch unit is the second power supply terminal of the switch module. The second end of the second switch unit is connected to the power supply, and the second end of the third switch unit is connected to the power supply.

[0011] The third terminal of the second switch unit is the first output terminal of the switch module, the third terminal of the third switch unit is the second output terminal of the switch module, the third terminal of the second switch unit is connected to one end of the electronic lock, and the third terminal of the third switch unit is connected to the other end of the electronic lock.

[0012] The first terminal of the third switch unit is the second input terminal of the switch module, and the first terminal of the third switch unit is grounded.

[0013] Optionally, the first switching unit is a relay, the first end of the first switching unit is a normally closed contact, the second end of the first switching unit is a normally open contact, and the third end of the first switching unit is a fixed contact;

[0014] The first power drive terminal of the first switching unit is connected to the power supply, and the second power drive terminal of the first switching unit is grounded.

[0015] The first power drive terminal and the second power drive terminal of the first switching unit are respectively the two ends of the power supply coil in the first switching unit.

[0016] Optionally, the control device further includes: a control unit;

[0017] The output terminal of the control unit is connected to the control terminals of the second switch unit and the third switch unit, respectively.

[0018] Optionally, both the second switching unit and the third switching unit are relays;

[0019] The first ends of the second switch unit and the third switch unit are normally closed contacts, the second ends of the second switch unit and the third switch unit are normally open contacts, and the third ends of the second switch unit and the third switch unit are fixed contacts.

[0020] The control terminals of the second switch unit and the third switch unit are respectively the two ends of the power supply coil in the second switch unit and the two ends of the power supply coil in the third switch unit.

[0021] Secondly, embodiments of this application provide an electronic lock control method, the method comprising:

[0022] If the electronic lock control device is detected to be powered on, the switch on / off control mode corresponding to the type of electronic lock is obtained according to the type of electronic lock; the electronic lock control device is any of the electronic lock control devices described in the first aspect above.

[0023] According to the switch on / off control method, the on / off state of the switch module is controlled to control the locking or unlocking of the electronic lock.

[0024] Optionally, obtaining the switch on / off control method corresponding to the type of electronic lock includes:

[0025] If the electronic lock is a pulse-type electronic lock, then the switch on / off control method is determined to be either the first control method or the second control method.

[0026] The step of controlling the on / off state of the switch module according to the switch on / off control method to control the locking or unlocking of the electronic lock includes:

[0027] According to the first control method, the on / off state of the switch module is controlled, such that the first power supply terminal of the switch module is connected to the power supply, the first output terminal of the switch module is connected to one end of the electronic lock, and the second output terminal of the switch module is grounded, so as to realize the unlocking of the pulse electronic lock; or,

[0028] According to the second control method, the on / off state of the switch module is controlled so that the second power supply terminal of the switch module is connected to the power supply, the second output terminal of the switch module is connected to the other end of the electronic lock, and the first output terminal of the switch module is grounded, so as to realize the locking of the pulse electronic lock.

[0029] Optionally, obtaining the switch on / off control method corresponding to the type of electronic lock includes:

[0030] If the type of electronic lock is a level-controlled electronic lock, then the switch on / off control method is determined to be: the third control method, the fourth control method, or the fifth control method;

[0031] The step of controlling the on / off state of the switch module according to the switch on / off control method to control the locking or unlocking of the electronic lock includes:

[0032] According to the third control method, the on / off state of the switch module is controlled, such that the first power supply terminal of the switch module is connected to the power supply, the first output terminal of the switch module is connected to one end of the electronic lock, and the second output terminal of the switch module is grounded, so as to realize the locking of the level-type electronic lock; or,

[0033] According to the fourth control method, the on / off state of the switch module is controlled, such that the second power supply terminal of the switch module is connected to the power supply, the second output terminal of the switch module is connected to the other end of the electronic lock, and the first output terminal of the switch module is grounded, so as to realize the locking of the level-type electronic lock; or,

[0034] According to the fifth control method, the on / off state of the switch module is controlled so that both ends of the electronic lock are grounded, thereby realizing the unlocking of the level-type electronic lock.

[0035] Optionally, if the switch module includes a second switch unit and a third switch unit, then before obtaining the switch on / off control method corresponding to the type of electronic lock, the method further includes:

[0036] The system controls the first target switch unit to sequentially execute the actions in the first action group and obtains the first group of state feedback of the electronic lock corresponding to the first action group; the first action group includes: a closing action and a opening action executed sequentially at intervals; the first target switch unit is the second switch unit, and / or the third switch unit;

[0037] The type of the electronic lock is determined based on the first set of status feedback.

[0038] Optionally, the method further includes:

[0039] If the first set of status feedback does not correspond to the type of the electronic lock, and all status values ​​in the first set of status feedback are the same, then the second target switch unit continues to be controlled to sequentially execute the actions in the second action group to obtain the second set of status feedback of the electronic lock corresponding to the second action group; the second action group includes: sequentially spaced opening and closing actions; the type of the electronic lock is determined based on the first set of status feedback and the second set of status feedback; the second target switch unit is the second switch unit, and / or the third switch unit; or...

[0040] If the first set of status feedback does not correspond to the type of electronic lock, and there are different status values ​​in the first set of status feedback, it is determined that the electronic lock has a fault; or...

[0041] If different status values ​​exist in the second set of status feedback, then it is determined that the electronic lock has a fault; or,

[0042] If both the first and second sets of status feedback are in a disconnected state, then it is determined that the electron has a connection error.

[0043] Compared with the prior art, this application has the following beneficial effects:

[0044] This application provides an electronic lock control device and method. The electronic lock control device includes: a power supply, a first switching unit, a switching module, and an energy storage capacitor. The power supply is grounded through the energy storage capacitor. The first and second terminals of the first switching unit are connected to the two ends of the energy storage capacitor. The third terminal of the first switching unit is connected to the first input terminal of the switching module. The second input terminal of the switching module is grounded. The first and second power supply terminals of the switching module are both connected to the power supply. The first and second output terminals of the switching module are respectively connected to the two ends of the electronic lock. When the charger system loses power, i.e., when the power supply is not supplying power, the electronic lock can be automatically unlocked through the current loop between the energy storage capacitor and the electronic lock. At the same time, there are no other loads in the current loop between the energy storage capacitor and the electronic lock during charging and discharging, so that all the electrical energy stored in the energy storage capacitor can be used for unlocking the electronic lock. Therefore, the change in the driving waveform of the electronic lock is minimal, ensuring the efficiency and stability of the drive, improving the timeliness and success rate of unlocking the electronic lock, and enabling the charging gun to be separated from the electric vehicle in a timely and smooth manner, thus improving the user experience. Attached Figure Description

[0045] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present invention and should not be regarded as a limitation on the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0046] Figure 1 This is a schematic diagram of the structure of an electronic lock control device provided in an embodiment of this application;

[0047] Figure 2 This is a schematic diagram of the structure of an electronic lock control device provided in an embodiment of this application;

[0048] Figure 3 This is a schematic diagram of another electronic lock control device provided in an embodiment of this application;

[0049] Figure 4 This is a schematic diagram of another electronic lock control device provided in an embodiment of this application;

[0050] Figure 5 This is a schematic diagram of another electronic lock control device provided in an embodiment of this application;

[0051] Figure 6 This is a schematic diagram of another electronic lock control device provided in an embodiment of this application;

[0052] Figure 7 This is a schematic diagram of another electronic lock control device provided in an embodiment of this application;

[0053] Figure 8 This is a schematic diagram of another electronic lock control device provided in an embodiment of this application;

[0054] Figure 9 This is a schematic diagram of another electronic lock control device provided in an embodiment of this application;

[0055] Figure 10 This is a schematic diagram of another electronic lock control device provided in an embodiment of this application;

[0056] Figure 11 This is a schematic diagram of another electronic lock control device provided in an embodiment of this application;

[0057] Figure 12 This is a schematic diagram of another electronic lock control device provided in an embodiment of this application;

[0058] Figure 13 This is a schematic diagram of another electronic lock control device provided in an embodiment of this application;

[0059] Figure 14 This is a schematic diagram of another electronic lock control device provided in an embodiment of this application;

[0060] Figure 15 A flowchart illustrating an electronic lock control method provided in an embodiment of this application;

[0061] Figure 16 A flowchart illustrating another electronic lock control method provided in an embodiment of this application;

[0062] Figure 17 A schematic diagram of an electronic lock control device provided in an embodiment of this application;

[0063] Figure 18 This is a schematic diagram of a control unit provided in an embodiment of this application.

[0064] Icons: Power supply 10; First switching unit 20; Switching module 35; Second switching unit 30; Third switching unit 40; Energy storage capacitor 50; First terminal 21 of the first switching unit; Second terminal 22 of the first switching unit; Third terminal 23 of the first switching unit; First terminal 31 of the second switching unit; Second terminal 32 of the second switching unit; Third terminal 33 of the second switching unit; Electronic lock 60; First terminal 41 of the third switching unit; Second terminal 42 of the third switching unit; Third terminal 43 of the third switching unit; Current limiting resistor 70; Diode 80; Transient suppression diode 90; First power drive terminal 24 of the first switching unit; Second power drive terminal 25 of the first switching unit; Control unit 100. Detailed Implementation

[0065] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, not all embodiments. The components of the embodiments of the present application described and shown in the accompanying drawings can generally be arranged and designed in various different configurations. In the description of the present invention, the terms "first," "second," "third," etc., are used only for distinguishing descriptions and should not be construed as indicating or implying relative importance. It should be noted that, unless otherwise specified, the features in the embodiments of the present invention can be combined with each other.

[0066] With the development of electric vehicles, charging safety has become increasingly important. For charging devices with a charging current greater than 16A, a locking mechanism (electronic lock) is set on the charging gun to ensure safety during the charging process. However, existing electronic locks cannot be unlocked in time or have a high failure rate after the charger system is unexpectedly powered off. The charging gun and the electric vehicle cannot be separated in time, which means that users cannot use the electric vehicle when it is not charging, resulting in a poor user experience.

[0067] In order to enable the charging gun to be separated from the electric vehicle in a timely manner after the charging system is unexpectedly powered off, this application provides an electronic lock control device and method. The electronic lock control device enables the charging gun to be automatically and promptly separated from the electric vehicle after the charging system is unexpectedly powered off.

[0068] The following specific examples illustrate an electronic lock control device provided in the embodiments of this application. Figure 1 This is a schematic diagram of the structure of an electronic lock control device provided in an embodiment of this application, as shown below. Figure 1 As shown, the electronic lock control device includes: a power supply 10, a first switching unit 20, a second switching unit 30, a switching module 35, and an energy storage capacitor 50.

[0069] The power supply 10 is grounded through the energy storage capacitor 50, enabling the power supply 10 to charge the energy storage capacitor 50. The charging circuit is: power supply 10 -> energy storage capacitor 50 -> GND (ground). In this embodiment, the capacitance of the energy storage capacitor 50 can be 10mF. Of course, it can also be other sizes, and no specific limitation is made in this embodiment.

[0070] Optionally, the power supply 10 is a 12V power supply. Of course, it can also be a power supply of other voltages. No specific limitation is made in the embodiments of this application.

[0071] In this embodiment, the energy storage capacitor 50 can be a supercapacitor, a novel energy storage device with a large capacity, which can be used as a battery. When the charger system loses power, i.e., when the power supply 10 does not supply power, the electronic lock can be unlocked based on the electrical energy stored in the energy storage capacitor 50. Therefore, in this embodiment, the energy storage capacitor 50 can also be called a power-off unlocking capacitor.

[0072] The first terminal 21 and the second terminal 22 of the first switching unit are connected to the two ends of the energy storage capacitor 50. The electrical energy stored in the energy storage capacitor 50 can be transmitted to the third terminal 23 of the first switching unit through the first terminal 21. The third terminal 23 of the first switching unit is connected to the first input terminal of the switching module 35. The first input terminal of the switching module 35 can be connected to the first output terminal of the switching module 35. The second input terminal of the switching module 35 can be connected to the second output terminal of the switching module 35. The first output terminal and the second output terminal of the switching module 25 are respectively connected to the two ends of the electronic lock. Furthermore, the second input terminal of the switching module 25 is grounded. Therefore, when the power supply 10 does not supply power, the energy storage capacitor 50 can supply power to the electronic lock 60 through the current loop, thereby enabling the electronic lock 60 to unlock. The current loop is as follows: one end of the energy storage capacitor 50 -> the first end 21 of the first switching unit -> the third end 23 of the first switching unit -> the first input end of the switching module 25 -> the first output end of the switching module 25 -> one end of the electronic lock 60 -> the other end of the electronic lock 60 -> the second output end of the switching module 25 -> the second input end of the switching module 25 -> the other end of the energy storage capacitor 50.

[0073] The switch module 25 can supply power to the electronic lock 60 to control its locked or unlocked state by controlling the connection between the input terminal and the output terminal, as well as the connection between the first power terminal, the second power terminal and the power supply 10.

[0074] Alternatively, the energy storage capacitor 50 can be replaced by multiple energy storage capacitors connected in parallel.

[0075] When the electronic lock 60 is a level-controlled electronic lock, the energy storage capacitor 50 will release all its charge in a short time after the charger system loses power. Since there is no power supply, the level-controlled electronic lock can be automatically unlocked.

[0076] When the electronic lock 60 is a pulse-type electronic lock, one end of the energy storage capacitor 50 is positive, and one end of the electronic lock 60 is negative. The other end of the electronic lock 60 is positive, and the other end of the energy storage capacitor 50 is negative. At this time, the energy storage capacitor 50 begins to discharge, unlocking the pulse-type electronic lock. Because the pulse-type electronic lock operates on a reverse voltage, the electronic lock 60 can be unlocked. Specifically, applying a positive pulse level to the pulse-type electronic lock locks it, and applying a reverse pulse level unlocks it. There are no other power-consuming components between the energy storage capacitor 50 and the electronic lock 60, allowing all the electrical energy stored in the energy storage capacitor 50 to be used for unlocking the electronic lock 60. Therefore, the drive waveform required by the preset electronic lock specifications is met, ensuring the efficiency and stability of the drive, and improving the timeliness and success rate of unlocking the electronic lock.

[0077] This application provides an electronic lock control device that automatically unlocks the electronic lock when the charger system loses power, i.e., when the power supply is unavailable. This unlocking mechanism utilizes the current loop between the energy storage capacitor and the electronic lock. Furthermore, since there are no other loads in the current loop during charging and discharging, all the electrical energy stored in the energy storage capacitor can be used for unlocking the electronic lock. Therefore, the changes to the electronic lock's drive waveform are minimal, ensuring high efficiency and stability of the drive, improving the timeliness and success rate of unlocking, and allowing the charging gun to separate from the electric vehicle smoothly and promptly, thus enhancing the user experience.

[0078] In the above Figure 1 Based on the electronic lock control device shown, this application also provides another electronic lock control device. Optionally, Figure 2 This is a schematic diagram of another electronic lock control device provided in an embodiment of this application, as shown below. Figure 2 As shown, the switch module 25 includes: a second switch unit 30 and a third switch unit 40.

[0079] The first end 31 of the second switch unit 30 is the first input end of the switch module. The third end of the first switch unit 23 is connected to the first end 31 of the second switch unit. The second end 32 of the second switch unit 30 is the first power supply end of the switch module 35. The second end 42 of the third switch unit 40 is the second power supply end of the switch module 35. The second end 32 of the second switch unit 30 is connected to the power supply 10. The second end 42 of the third switch unit 40 is connected to the power supply 10. The third end 33 of the second switch unit 30 is the first output end of the switch module 35. The third end 43 of the third switch unit 40 is the second output end of the switch module 35. The third end 33 of the second switch unit 30 is connected to one end of the electronic lock 60. The third end 43 of the third switch unit 40 is connected to the other end of the electronic lock 60. The first end 41 of the third switch unit 40 is the second input end of the switch module 35. The first end 41 of the third switch unit 40 is grounded.

[0080] The electrical energy stored in the energy storage capacitor 50 can be transmitted from the first terminal 21 of the first switching unit to the third terminal 23 of the first switching unit. The third terminal 23 of the first switching unit is connected to the first terminal 31 of the second switching unit, and the third terminal 23 of the first switching unit can transmit electrical energy to the first terminal 31 of the second switching unit. The third terminal 33 of the second switching unit is connected to one end of the electronic lock 60, and the third terminal 33 of the second switching unit can transmit electrical energy to one end of the electronic lock 60.

[0081] Furthermore, the third terminal 43 of the third switch unit is connected to the other end of the electronic lock 60, and the first terminal 41 of the third switch unit is grounded. Since the energy storage capacitor 50 is also grounded, when the power supply 10 does not supply power, the energy storage capacitor 50 can supply power to the electronic lock 60 through the current loop, so that the electronic lock 60 can be unlocked. Figure 3 This is a schematic diagram of another electronic lock control device provided in an embodiment of this application, as shown below. Figure 3 As shown, the current loop is as follows: one end of the energy storage capacitor 50 -> the first end 21 of the first switching unit -> the third end 23 of the first switching unit -> the first end 31 of the second switching unit -> the third end 33 of the second switching unit -> one end of the electronic lock 60 -> the other end of the electronic lock 60 -> the third end 43 of the third switching unit -> the first end 41 of the third switching unit -> the other end of the energy storage capacitor 50.

[0082] The second terminal 32 of the second switching unit is connected to the power supply 10. When the power supply 10 and the electronic lock 60 are working normally, the third terminal 23 of the first switching unit will switch to the second terminal 22 of the first switching unit. The power supply 10 can supply power to the electronic lock 60 through the second switching unit 30 and the third switching unit 40 to control its locked or unlocked state. Figure 4 This is a schematic diagram of another electronic lock control device provided in an embodiment of this application, as shown below. Figure 4 As shown, the current loop of the power supply is as follows: power supply 10 -> second terminal 32 of the second switching unit -> third terminal 33 of the second switching unit -> one end of the electronic lock 60 -> the other end of the electronic lock 60 -> third terminal 43 of the third switching unit -> first terminal 41 of the third switching unit -> GND.

[0083] The second terminal 42 of the third switching unit is connected to the power supply 10. When the power supply 10 and the electronic lock 60 are working normally, the power supply 10 can also supply power to the electronic lock 60 through the third switching unit 40 and the second switching unit 30 to control its locked or unlocked state. Figure 5 This is a schematic diagram of another electronic lock control device provided in an embodiment of this application, as shown below. Figure 5 As shown, the current loop of the power supply is as follows: power supply 10 -> second terminal 42 of the third switch unit -> third terminal 43 of the third switch unit -> other end of the electronic lock 60 -> one end of the electronic lock 60 -> third terminal 33 of the second switch unit -> first terminal 31 of the second switch unit -> third terminal 23 of the first switch unit -> second terminal 22 of the first switch unit -> GND.

[0084] This application provides an electronic lock control device that can automatically unlock the electronic lock through the current loop of the energy storage capacitor and the electronic lock when the charger system loses power, that is, when the power supply is not supplying power.

[0085] In the above Figure 1 Based on the electronic lock control device shown, this application also provides another electronic lock control device. Optionally, Figure 6 This is a schematic diagram of another electronic lock control device provided in an embodiment of this application, as shown below. Figure 6 As shown, the electronic lock control device also includes a current-limiting resistor 70.

[0086] The power supply 10 is connected to one end of the energy storage capacitor 50 through the current limiting resistor 70, and the other end of the energy storage capacitor 50 is grounded.

[0087] Connecting the current-limiting resistor 70 in series in the charging circuit of the energy storage capacitor 50 can limit the current of the energy storage capacitor 50 during charging, preventing excessive current from affecting the power supply 10 and interfering with other devices. At the same time, the current-limiting resistor 70 can ensure the voltage stability of the charging circuit of the energy storage capacitor 50. Therefore, the current-limiting resistor 70 can ensure the safety of the energy storage capacitor 50 and also extend the service life of the energy storage capacitor 50.

[0088] Alternatively, the current-limiting resistor 70 can be replaced by a MOSFET (Metal-Oxide-Semiconductor Field-Effect Transistor).

[0089] The embodiment of this application provides an electronic lock control device in which the power supply is connected to one end of an energy storage capacitor through a current-limiting resistor, and the other end of the energy storage capacitor is grounded. The safety of the energy storage capacitor can be ensured by the current-limiting resistor.

[0090] In the above Figure 6 Based on the electronic lock control device shown, this application also provides another electronic lock control device. Optionally, Figure 7 This is a schematic diagram of another electronic lock control device provided in an embodiment of this application, as shown below. Figure 7 As shown, the electronic lock control device also includes a diode 80.

[0091] The current-limiting resistor 70 is connected to one end of the energy storage capacitor 50 through the diode 80.

[0092] By connecting diode 80 in series in the charging circuit of energy storage capacitor 50, the stored electrical energy in energy storage capacitor 50 can be prevented from flowing back into the charging system when the charger system loses power. Diode 80 can be any diode with anti-reverse current function, and no specific limitation is made in this embodiment.

[0093] Optionally, diode 80 can be replaced by a switching transistor.

[0094] The embodiment of this application provides an electronic lock control device in which a current-limiting resistor is connected to one end of an energy storage capacitor through a diode. The diode prevents electrical energy from flowing back to the charger system when the charger system loses power, ensuring that the energy storage capacitor has sufficient energy so that all the energy stored in the energy storage capacitor can be used to unlock the electronic lock.

[0095] In the above Figure 7 Based on the electronic lock control device shown, this application also provides another electronic lock control device. Optionally, Figure 8 This is a schematic diagram of another electronic lock control device provided in an embodiment of this application, as shown below. Figure 8 As shown, the electronic lock control device also includes a transient suppression diode 90.

[0096] Transient suppression diode 90 is connected in parallel across the electronic lock 60.

[0097] The transient voltage suppressor diode 90 can also be called a transient voltage suppressor diode. When the electronic lock 60 unlocks, it generates a voltage spike. The transient voltage suppressor diode 90 can absorb this voltage spike to protect the switching unit connected to the electronic lock 60 from damage caused by the voltage spike.

[0098] In this embodiment, the transient suppression diode 90 can be XESD12VT23-3 or other models, and no specific limitation is made in this embodiment.

[0099] This application provides an electronic lock control device in which a transient suppression diode is connected in parallel across the electronic lock. The transient suppression diode can absorb the voltage spikes generated by the electronic lock to ensure the safety of other components connected to the electronic lock.

[0100] In the above Figure 8 Based on the electronic lock control device shown, this application also provides another electronic lock control device. Optionally, Figure 9 This is a schematic diagram of another electronic lock control device provided in an embodiment of this application, as shown below. Figure 9 As shown, the first power drive terminal 24 of the first switching unit is connected to the power supply 10, and the second power drive terminal 25 of the first switching unit is grounded.

[0101] The power supply 10 can control the state of the first switching unit through the first power drive terminal 24 and the second power drive terminal 25 of the first switching unit, that is, the state of the first switching unit 20 can be controlled by the power supply 10. Figure 8 This refers to the state of the first switch unit 20 when the charger system is not powered on.

[0102] In this embodiment, when the charger system is powered on, electrical energy is grounded through the first power drive terminal 24 and the second power drive terminal 25 of the first switch unit, so that electrical energy exists in both the first power drive terminal 24 and the second power drive terminal 25 of the first switch unit, thereby controlling the third terminal 23 of the first switch unit to connect to the second terminal 22 of the first switch unit. At this time, the electronic lock 60 can be locked or unlocked by controlling the state of the switch module 35.

[0103] This application provides an electronic lock control device in which the first power drive terminal of the first switch unit is connected to a power supply, and the second power drive terminal of the first switch unit is grounded. The state of the first switch unit is controlled by the power supply, rather than by an external control device, which can improve the state transition efficiency of the first switch unit.

[0104] In the above Figure 9 Based on the electronic lock control device shown, this application embodiment also provides another electronic lock control device. Optionally, the first switching unit 20 is a relay.

[0105] Optionally, the first switching unit 20 is a single-pole double-throw relay.

[0106] In this circuit, the first end 21 of the first switch unit is a normally closed contact, the second end 22 of the first switch unit is a normally open contact, and the third end 23 of the first switch unit is a fixed contact.

[0107] When the first switch unit 20 is in the reset state, that is, when the power supply 10 is not supplying power and the energy storage capacitor 50 has no stored energy, the first terminal 21 of the first switch unit 20 is connected to the third terminal 23 of the first switch unit. At this time, the electronic lock 60 is also not powered.

[0108] The first power drive terminal 24 and the second power drive terminal 25 of the first switching unit are the two ends of the power supply coil in the first switching unit 20, respectively. Figure 10 This is a schematic diagram of another electronic lock control device provided in an embodiment of this application, as shown below. Figure 10 As shown, when the charger system is powered on, according to the current loop, the power supply 10 supplies power to the power supply coil in the first switching unit 20. After the coil is energized, it attracts the second terminal 22 of the first switching unit to connect to the third terminal 23 of the first switching unit, that is, the first switching unit 20 automatically switches from a normally closed contact to a normally open contact. At the same time, the power supply 10 also charges the energy storage capacitor 50.

[0109] When the charger system loses power, the first switch unit 20 automatically switches from a normally open contact to a normally closed contact, so that the electrical energy in the energy storage capacitor 50 can be transmitted to the electronic lock 60 through the normally closed contact of the first switch unit 20, so that the electronic lock 60 can be unlocked after power failure.

[0110] This application provides an electronic lock control device. The first switching unit is a relay. The first end of the first switching unit is a normally closed contact, the second end of the first switching unit is a normally open contact, and the third end of the first switching unit is a fixed contact. The first power drive end and the second power drive end of the first switching unit are respectively the two ends of the power supply coil in the first switching unit. According to the relationship between the normally open and normally closed contacts of the relay and power supply and power failure, when the charger system loses power, the electrical energy in the energy storage capacitor can be transmitted to the electronic lock through the normally closed contact of the first switching unit so that the electronic lock can unlock after power failure.

[0111] In the above Figure 2 Based on the electronic lock control device shown, this application also provides another electronic lock control device. Optionally, Figure 11 This is a schematic diagram of another electronic lock control device provided in an embodiment of this application, as shown below. Figure 11 As shown, the control device also includes a control unit 100. In another embodiment, Figure 12 This is a schematic diagram of another electronic lock control device provided in an embodiment of this application, as shown below. Figure 12 As shown, in Figure 11 Based on this, a current-limiting resistor of 70Ω, a diode of 80Ω, and a transient suppression diode of 90Ω are set.

[0112] The output terminals of the control unit 100 are respectively connected to the control terminals of the second switch unit 30 and the third switch unit 40.

[0113] After the charger system is powered on, the first switch unit 20 automatically switches from a normally closed contact to a normally open contact. The control unit 100 then controls the states of the second switch unit 30 and the third switch unit 40 to control the state of the electronic lock 60, thereby locking or unlocking the electronic lock 60.

[0114] Optionally, the control unit 100 can be a control chip. For example, the control unit 100 can be a microcontroller unit (MCU). Of course, it can also be other control chips. No specific limitation is made in the embodiments of this application.

[0115] This application provides an electronic lock control device in which the output terminal of the control unit is connected to the control terminals of the second switch unit and the third switch unit respectively, so that after the charger system is powered on, the control unit controls the switching of the working state of the electronic lock during normal operation.

[0116] In the above Figure 12 Based on the electronic lock control device shown, this application embodiment also provides another electronic lock control device. Optionally, both the second switching unit 30 and the third switching unit 40 are relays.

[0117] Optionally, both the second switching unit 30 and the third switching unit 40 are single-pole double-throw relays.

[0118] The first ends of the second switch unit 30 and the third switch unit 40 are normally closed contacts, the second ends of the second switch unit 30 and the third switch unit 40 are normally open contacts, and the third ends of the second switch unit 30 and the third switch unit 40 are fixed contacts.

[0119] When the second switch unit 30 is in the reset state, that is, when the control unit 100 does not control it, the first terminal 31 of the second switch unit 30 is connected to the third terminal 33 of the second switch unit. At this time, the electronic lock 60 is not powered on.

[0120] When the third switch unit 40 is in the reset state, that is, when the control unit 100 does not control it, the first terminal 41 of the third switch unit 40 is connected to the third terminal 43 of the third switch unit. At this time, the electronic lock 60 is not powered on.

[0121] The control terminals of the second switching unit 30 and the third switching unit 40 are the two ends of the power supply coil in the second switching unit and the two ends of the power supply coil in the third switching unit, respectively.

[0122] Figure 13 This is a schematic diagram of another electronic lock control device provided in an embodiment of this application, as shown below. Figure 13 As shown, when the control unit 100 supplies power to the power supply coil in the second switch unit 30, the coil, after being energized, attracts the second terminal 32 of the second switch unit to connect to the third terminal 33 of the second switch unit, that is, the second switch unit 30 switches from a normally closed contact to a normally open contact. The power supply current loop is: power supply 10 -> second terminal 32 of the second switch unit -> third terminal 33 of the second switch unit -> one end of the electronic lock 60 -> the other end of the electronic lock 60 -> third terminal 43 of the third switch unit -> first terminal 41 of the third switch unit -> GND. At this time, when the electronic lock 60 is a pulse-type electronic lock, the pulse-type electronic lock is under reverse voltage, and the electronic lock 60 unlocks. When the electronic lock 60 is a level-type electronic lock, when the control unit 100 controls the second switch unit 30 to switch from a normally closed contact to a normally open contact, the electronic lock 60 locks; after the second switch unit 30 switches from a normally closed contact to a normally open contact, when the control unit 100 controls the second switch unit 30 to switch from a normally open contact to a normally closed contact again, the electronic lock 60 unlocks.

[0123] Figure 14 This is a schematic diagram of another electronic lock control device provided in an embodiment of this application, as shown below. Figure 14 As shown, when the control unit 100 supplies power to the power supply coil in the third switch unit 40, the coil, after being energized, attracts the second terminal 42 of the third switch unit to connect with the third terminal 43 of the third switch unit, that is, the third switch unit 40 switches from a normally closed contact to a normally open contact. The power supply current loop is: power supply 10 -> second terminal 42 of the third switch unit -> third terminal 43 of the third switch unit -> the other end of the electronic lock 60 -> one end of the electronic lock 60 -> third terminal 33 of the second switch unit -> first terminal 31 of the second switch unit -> third terminal 23 of the first switch unit -> second terminal 22 of the first switch unit -> GND. At this time, when the electronic lock 60 is a pulse-type electronic lock, the pulse-type electronic lock is under positive voltage, and the electronic lock 60 is locked. When the electronic lock 60 is a level-type electronic lock, the electronic lock 60 is locked when the control unit 100 controls the third switch unit 40 to switch from a normally closed contact to a normally open contact; the electronic lock 60 is unlocked when the control unit 100 controls the third switch unit 40 to switch from a normally closed contact to a normally open contact after the third switch unit 40 switches from a normally open contact to a normally closed contact.

[0124] When the charger system loses power, the first switch unit 20, the second switch unit 30, and the third switch unit 40 all automatically switch to their normally closed contacts. The current loop is as follows: one end of the energy storage capacitor 50 -> the first end 21 of the first switch unit -> the third end 23 of the first switch unit -> the first end 31 of the second switch unit -> the third end 33 of the second switch unit -> one end of the electronic lock 60 -> the other end of the electronic lock 60 -> the third end 43 of the third switch unit -> the first end 41 of the third switch unit -> the other end of the energy storage capacitor 50. The energy storage capacitor 50 begins to discharge, unlocking the pulse-type electronic lock.

[0125] Alternatively, the relay can be replaced by an insulated gate bipolar transistor (IGBT) or a metal-oxide-semiconductor field-effect transistor (MOS).

[0126] This application provides an electronic lock control device in which both the second and third switch units are relays. The first terminals of both the second and third switch units are normally closed contacts, the second terminals are normally open contacts, and the third terminals are fixed contacts. The control terminals of the second and third switch units are the two ends of the power supply coil in the second and third switch units, respectively. This device enables the control unit to switch the working state of the electronic lock during normal operation after the charger system is powered on. Furthermore, after the charger system loses power, a power-off detection circuit is not required; the electronic lock can be unlocked solely by the power-off self-reset function of the switch units (automatically switching to normally closed contacts). This simplifies the circuit complexity of power-off unlocking and improves its efficiency.

[0127] In the above Figures 1 to 14 Based on the aforementioned embodiments, this application also provides an electronic lock control system, which includes an electronic lock 60 and an electronic lock control device.

[0128] The electronic lock in this system can be a pulse-type electronic lock or a level-type electronic lock, meaning that the electronic lock control system provided in this application can be compatible with two different types of electronic locks.

[0129] Two different state control methods exist for the two different types of electronic locks. Furthermore, both types of electronic locks can achieve power-off unlocking, which improves the timeliness and success rate of unlocking.

[0130] In the above Figures 1 to 14Based on the embodiments described above, this application also provides an electronic lock control method. Figure 15 This is a flowchart illustrating an electronic lock control method provided in an embodiment of this application. The execution entity of this method can be a control unit in an electronic lock control device. Figure 15 As shown, the method includes:

[0131] S1501 If the electronic lock control device is detected to be powered on, the switch on / off control mode corresponding to the type of electronic lock is obtained.

[0132] In this embodiment, if the electronic lock control device is in a power-off state, it can automatically unlock based on the hardware properties of the electronic components of the first switch unit, without the need for the control unit to control the electronic lock control device.

[0133] If the electronic lock control device is powered on, the control unit can obtain the corresponding switch on / off control mode according to the type of electronic lock, and then control the switch on / off.

[0134] In this embodiment of the application, the type of electronic lock and the switch on / off control method are corresponding. It can be understood that one type corresponds to one switch on / off control method. Therefore, it is necessary to obtain the switch on / off control method corresponding to the type of electronic lock.

[0135] S1502 controls the on / off state of the switch module according to the switch on / off control method, so as to control the locking or unlocking of the electronic lock.

[0136] The control unit controls the locking of the electronic lock according to the on / off control method corresponding to the locking of the electronic lock in the on / off control method. At the same time, the control unit can also control the unlocking of the electronic lock according to the on / off control method corresponding to the unlocking of the electronic lock in the on / off control method.

[0137] This application provides an electronic lock control method. If the electronic lock control device is detected to be powered on, the method obtains the corresponding switch on / off control mode according to the type of electronic lock, and controls the on / off state of the switch module according to the switch on / off control mode to control the locking or unlocking of the electronic lock, thereby improving the compatibility of the electronic lock control method.

[0138] Furthermore, based on the above embodiments, this application also provides another electronic lock control method. Optionally, in the above method S1501, if the electronic lock control device is detected to be powered on, the switch on / off control mode corresponding to the type of electronic lock is obtained, including:

[0139] If the electronic lock is a pulse-type electronic lock, then the switch on / off control method is determined to be either the first control method or the second control method.

[0140] The above method S1502, according to the switch on / off control method, controls the on / off state of the switch module to control the locking or unlocking of the electronic lock, including:

[0141] According to the first control method, the on / off state of the control switch module is controlled so that the first power supply terminal of the control switch module is connected to the power supply, the first output terminal of the control switch module is connected to one end of the electronic lock, and the second output terminal of the control switch module is grounded. That is, the first input terminal of the control switch module is connected to the first output terminal, and the second input terminal of the control switch module is connected to the second output terminal, so as to realize the unlocking of the pulse electronic lock.

[0142] According to the second control method, the on / off state of the control switch module is controlled so that the second power supply terminal of the control switch module is connected to the power supply, the second output terminal of the control switch module is connected to the other end of the electronic lock, the first output terminal of the control switch module is grounded, that is, the first input terminal of the control switch module is connected to the first output terminal, and the second power supply terminal of the control switch module is connected to the second output terminal of the control switch module to realize the locking of the pulse electronic lock.

[0143] If the electronic lock is a level-controlled electronic lock, then the switch on / off control method is determined to be: the third control method, the fourth control method, or the fifth control method.

[0144] The above method S1502, according to the switch on / off control method, controls the on / off state of the switch module to control the locking or unlocking of the electronic lock, including:

[0145] According to the third control method, the on / off state of the control switch module is controlled so that the first power supply terminal of the control switch module is connected to the power supply, the first output terminal of the control switch module is connected to one end of the electronic lock, the second output terminal of the control switch module is grounded, that is, the second input terminal and the second output terminal of the control switch module are connected, and the first power supply terminal of the control switch module is connected to the first output terminal of the control switch module to realize the locking of the level-type electronic lock.

[0146] According to the fourth control method, the on / off state of the control switch module is controlled so that the second power supply terminal of the control switch module is connected to the power supply, the second output terminal of the control switch module is connected to the other end of the electronic lock, the first output terminal of the control switch module is grounded, that is, the first input terminal of the control switch module is connected to the first output terminal, and the second power supply terminal of the control switch module is connected to the second output terminal of the control switch module to realize the locking of the level-type electronic lock.

[0147] According to the fifth control method, the on / off state of the control switch module is adjusted to ground both ends of the electronic lock, thereby unlocking the level-controlled electronic lock. For example, after the third control method is executed, the first power supply terminal of the control switch module is disconnected from the first output terminal, and the first input terminal is connected to the first output terminal, thereby unlocking the level-controlled electronic lock. For example, after the fourth control method is executed, the second power supply terminal of the control switch module is disconnected from the second output terminal, and the second input terminal is connected to the second output terminal, thereby unlocking the level-controlled electronic lock.

[0148] This application provides an electronic lock control method. If the electronic lock is a pulse-type electronic lock, the switch on / off control method is determined to be either a first control method or a second control method. If the electronic lock is a level-type electronic lock, the switch on / off control method is determined to be either a third control method, a fourth control method, or a fifth control method. This method controls the locking or unlocking of both types of electronic locks, improving the compatibility of electronic lock control methods.

[0149] In the above Figure 15 Based on the embodiments described above, this application also provides another electronic lock control method. Optionally, Figure 16 A flowchart illustrating another electronic lock control method provided in this application embodiment is shown below. Figure 16 As shown, if the switch module includes a second switch unit and a third switch unit, before method S1501 above, that is, before obtaining the switch on / off control method corresponding to the type of electronic lock, the method further includes:

[0150] S1601, control the first target switch unit to execute the actions in the first action group in sequence, and obtain the first group of state feedback of the electronic lock corresponding to the first action group.

[0151] The first action group includes: a closing action and a closing action executed at intervals in sequence, the first target switch unit being the second switch unit, and / or the third switch unit.

[0152] In this embodiment of the application, since the control methods for different types of electronic locks are also different, after the charger system is powered on, before controlling the state of the electronic lock, the type of electronic lock should be determined first, and then the state of the electronic lock should be controlled according to the control method corresponding to the type.

[0153] Before determining the type of electronic lock, the action of the first target switch unit can be recorded as a conditional input, and each conditional input corresponds to the state feedback of the electronic lock. For example, when the target switch unit is the second switch unit, the second switch unit is controlled to close. If the corresponding state feedback of the electronic lock is open, then the conditional input is that the second switch unit is closed, and the resulting state feedback of the electronic lock is open.

[0154] Controlling the action of the target switch unit and obtaining the status feedback of the electronic lock corresponding to the action can be used as data basis for determining the type of electronic lock.

[0155] In this embodiment of the application, the state feedback of the electronic lock can be represented by a numerical value, wherein the state feedback of the electronic lock is in the open state, which is represented by 0, and the state feedback of the electronic lock is in the closed state, which is represented by 1.

[0156] In the embodiments of this application, when the electronic lock is a level-type electronic lock, the state of the level-type electronic lock can change immediately when the state of the switching unit changes. However, when the electronic lock is a pulse-type electronic lock, the state of the pulse-type electronic lock will not change immediately when the state of the switching unit changes. Instead, it will maintain the current state for a period of time and wait for the next switching action before the state changes.

[0157] Therefore, the first target switch unit needs to perform multiple actions in sequence. The duration of each action can be set to 200ms. If the state feedback of the electronic lock does not change immediately after the state of the first target switch unit changes, it is a pulse-type electronic lock; otherwise, it is a level-type electronic lock.

[0158] S1602, Based on the first set of status feedback, determine the type of electronic lock.

[0159] Based on the status feedback of the electronic lock and the preset relationship between the status feedback and the electronic lock type, the type of electronic lock can be determined.

[0160] In this application embodiment, the electronic lock can be divided into four types: normally open level electronic lock, normally closed level electronic lock, normally open pulse electronic lock, and normally closed pulse electronic lock.

[0161] If the electronic lock's status feedback is "open" when it is unlocked, then the electronic lock is a normally open type; if the electronic lock's status feedback is "closed" when it is unlocked, then the electronic lock is a normally closed type.

[0162] For example, when the first target switch unit is the second switch unit, if the first action group includes three sequentially executed actions: second switch unit closing, second switch unit opening, and second switch unit closing, and if the state feedback of the electronic lock corresponding to the three actions in the first action group is 0, 1, and 0 respectively, then the electronic lock is a normally open level-type electronic lock; if the state feedback of the electronic lock corresponding to the three actions in the first action group is 1, 0, and 1 respectively, then the electronic lock is a normally closed level-type electronic lock; if the state feedback of the electronic lock corresponding to the three actions in the first action group is 0, 1, and 1 respectively, then the electronic lock is a normally closed pulse-type electronic lock; if the state feedback of the electronic lock corresponding to the three actions in the first action group is 1, 0, and 0 respectively, then the electronic lock is a normally open pulse-type electronic lock.

[0163] For example, when the first target switch unit is the third switch unit, if the first action group includes three sequentially executed actions: the third switch unit closing, the third switch unit opening, and the third switch unit closing, and if the state feedback of the electronic lock corresponding to the three actions in the first action group is 0, 1, and 0 respectively, then the electronic lock is a normally open level-type electronic lock; if the state feedback of the electronic lock corresponding to the three actions in the first action group is 1, 0, and 1 respectively, then the electronic lock is a normally closed level-type electronic lock; if the state feedback of the electronic lock corresponding to the three actions in the first action group is 0, 1, and 1 respectively, then the electronic lock is a normally open pulse-type electronic lock; if the state feedback of the electronic lock corresponding to the three actions in the first action group is 1, 0, and 0 respectively, then the electronic lock is a normally closed pulse-type electronic lock.

[0164] Depending on the type of electronic lock, the on / off control method corresponding to the type is adopted to control the on / off state of the second and third switch units in order to control the locking or unlocking of the electronic lock.

[0165] For example, if the electronic lock is a normally open level-type electronic lock, after the charger system is powered on, the first switch unit switches from a normally closed contact to a normally open contact. The control unit does not control the third switch unit. The electronic lock locks after the control unit controls the second switch unit to switch from a normally closed contact to a normally open contact, and unlocks after the control unit controls the second switch unit to switch from a normally open contact to a normally closed contact. Alternatively, after the charger system is powered on, the first switch unit switches from a normally closed contact to a normally open contact. The control unit does not control the second switch unit. The electronic lock locks after the control unit controls the third switch unit to switch from a normally closed contact to a normally open contact, and unlocks after the control unit controls the third switch unit to switch from a normally open contact to a normally closed contact.

[0166] For example, if the electronic lock is a normally open pulse-type electronic lock, after the charger system is powered on, the first switching unit switches from a normally closed contact to a normally open contact. The control unit does not control the third switching unit. After the control unit controls the second switching unit to switch from a normally closed contact to a normally open contact, and after 200ms, the control unit controls the second switching unit to switch from a normally open contact to a normally closed contact, the electronic lock unlocks. Alternatively, after the charger system is powered on, the first switching unit switches from a normally closed contact to a normally open contact. The control unit does not control the second switching unit. After the control unit controls the third switching unit to switch from a normally closed contact to a normally open contact, and after 200ms, the control unit controls the second switching unit to switch from a normally open contact to a normally closed contact, the electronic lock locks.

[0167] This application provides an electronic lock control method that can sequentially execute actions in a first action group by controlling a first target switch unit to obtain a first set of state feedback of the electronic lock corresponding to the first action group. The first target switch unit is a second switch unit and / or a third switch unit. Based on the first set of state feedback, the type of electronic lock is determined. Then, according to the type of electronic lock, the on / off state of the second switch unit and the third switch unit can be controlled by adopting a switch on / off control method corresponding to the type of electronic lock to control the locking or unlocking of the electronic lock. This method first determines the type of electronic lock, and then controls the locking or unlocking of the electronic lock according to the control method corresponding to the type of electronic lock, thereby improving the compatibility of electronic lock control.

[0168] Furthermore, based on the above embodiments, this application also provides another electronic lock control method. Optionally, the above method further includes:

[0169] If the first set of status feedback does not have a corresponding type of electronic lock, and all status values ​​in the first set of status feedback are the same, then the second target switch unit continues to be controlled to execute the actions in the second action group in sequence, and obtain the second set of status feedback of the electronic lock corresponding to the second action group.

[0170] For example, if the first set of status feedback is not among the multiple sets of status feedback provided in the above embodiments, it means that the type of the corresponding electronic lock cannot be determined solely by the first set of status feedback. In this case, if all status values ​​in the first set of status feedback are the same, then the type of the corresponding electronic lock also needs to be determined by the second set of status feedback.

[0171] The second set of status feedback needs to be obtained by sequentially executing the actions in the second action group through the second target switch unit. The second action group includes: sequentially spaced opening and closing actions.

[0172] The type of electronic lock needs to be determined based on the first set of status feedback and the second set of status feedback.

[0173] For example, the first target switch unit is the second switch unit, and the first action group includes three actions executed sequentially: the second switch unit closes, the second switch unit opens, and the second switch unit closes. The second target switch unit is the third switch unit, and the second action group includes two actions executed sequentially: the third switch unit opens and the third switch unit closes. If the state feedback of the electronic lock corresponding to the three actions in the first action group is 0, 0, and 0 respectively, and the state feedback of the electronic lock corresponding to the two actions in the second action group is 1 and 1 respectively, then the electronic lock is a normally open pulse-type electronic lock. If the state feedback of the electronic lock corresponding to the three actions in the first action group is 1, 1, and 1 respectively, and the state feedback of the electronic lock corresponding to the two actions in the second action group is 0 and 0 respectively, then the electronic lock is a normally closed pulse-type electronic lock.

[0174] For example, the first target switch unit is the third switch unit, and the first action group includes three actions executed sequentially: the third switch unit closes, the third switch unit opens, and the third switch unit closes. The second target switch unit is the second switch unit, and the second action group includes two actions executed sequentially: the second switch unit opens and the second switch unit closes. If the state feedback of the electronic lock corresponding to the three actions in the first action group is 0, 0, and 0 respectively, and the state feedback of the electronic lock corresponding to the two actions in the second action group is 1 and 1 respectively, then the electronic lock is a normally closed pulse-type electronic lock. If the state feedback of the electronic lock corresponding to the three actions in the first action group is 1, 1, and 1 respectively, and the state feedback of the electronic lock corresponding to the two actions in the second action group is 0 and 0 respectively, then the electronic lock is a normally open pulse-type electronic lock.

[0175] This application provides an electronic lock control method. If the first set of state feedback does not correspond to the type of electronic lock, and all state values ​​in the first set of state feedback are the same, then the second target switch unit is controlled to sequentially execute the actions in the second action group to obtain the second set of state feedback of the electronic lock corresponding to the second action group. The second action group includes: a disconnection action and a closing action executed sequentially at intervals. The type of electronic lock is determined based on the first set of state feedback and the second set of state feedback. This method can determine the type of electronic lock by combining the state feedback of one switch unit with the state feedback of another switch unit when the state feedback of one switch unit cannot determine the type of electronic lock.

[0176] Furthermore, based on the above embodiments, this application also provides another electronic lock control method. Optionally, the method further includes:

[0177] If the first set of status feedback does not have a corresponding type of electronic lock, and there are different status values ​​in the first set of status feedback, it is determined that the electronic lock has a fault.

[0178] For example, if the first target switch unit is the second switch unit, and if the first action group includes three actions executed sequentially: the second switch unit closes, the second switch unit opens, and the second switch unit closes, and if the state feedback of the electronic lock corresponding to the three actions in the first action group is 0, 0, 1, or 1, 1, 0 respectively, then the electronic lock has a fault error.

[0179] For example, if the first target switch unit is the third switch unit, and if the first action group includes three actions executed sequentially: the third switch unit closes, the third switch unit opens, and the third switch unit closes, and if the state feedback of the electronic lock corresponding to the three actions in the first action group is 0, 0, 1, or 1, 1, 0 respectively, then the electronic lock has a fault error.

[0180] If different status values ​​are found in the second set of status feedback, it is determined that the electronic lock has a fault.

[0181] For example, the first target switch unit is the second switch unit, and the first action group includes three sequentially executed actions: the second switch unit closes, the second switch unit opens, and the second switch unit closes again. The second target switch unit is the third switch unit, and the second action group includes two sequentially executed actions: the third switch unit opens and the third switch unit closes. If the state feedback of the electronic lock corresponding to the three actions in the first action group is 0, 0, 0 respectively, and the state feedback of the electronic lock corresponding to the two actions in the second action group is 0, 1 respectively, or 1, 0 respectively, then the electronic lock has a fault. If the state feedback of the electronic lock corresponding to the three actions in the first action group is 1, 1, 1 respectively, and the state feedback of the electronic lock corresponding to the two actions in the second action group is 0, 1 respectively, or 1, 0 respectively, then the electronic lock has a fault. Optionally, in this case, if the state feedback of the electronic lock corresponding to the three actions in the first action group is 1, 1, 1 respectively, and the state feedback of the electronic lock corresponding to the two actions in the second action group is 1, 1 respectively, then the electronic lock also has a fault.

[0182] For example, the first target switch unit is the third switch unit, and the first action group includes three sequentially executed actions: the third switch unit closes, the third switch unit opens, and the third switch unit closes again. The second target switch unit is the second switch unit, and the second action group includes two sequentially executed actions: the second switch unit opens and the second switch unit closes. If the state feedback of the electronic lock corresponding to the three actions in the first action group is 0, 0, 0 respectively, and the state feedback of the electronic lock corresponding to the two actions in the second action group is 0, 1 respectively, or 1, 0 respectively, then the electronic lock has a fault. Optionally, in this case, if the state feedback of the electronic lock corresponding to the three actions in the first action group is 1, 1, 1 respectively, and the state feedback of the electronic lock corresponding to the two actions in the second action group is 1, 1 respectively, then the electronic lock also has a fault.

[0183] If both the first and second sets of status feedback are in an "off" state, then there is a connection error in the electronic lock. That is, if the first set of status feedback is 0, 0, 0, and the second set of status feedback is also 0, 0, then the electronic lock has not been successfully connected to the circuit.

[0184] This application provides an electronic lock control method. If the first set of status feedback does not have a corresponding electronic lock type, and there are different status values ​​in the first set of status feedback, it is determined that the electronic lock has a fault. Alternatively, if there are different status values ​​in the second set of status feedback, it is determined that the electronic lock has a fault. Or, if both the first and second sets of status feedback are in a disconnected state, it is determined that the electronic lock has a connection error. This method can determine that the electronic lock is faulty or not connected to the circuit, and needs to be repaired before being connected to the circuit for use.

[0185] The following describes an electronic lock control device, control unit, and storage medium provided in this application for implementation. The specific implementation process and technical effects are described above and will not be repeated below.

[0186] Figure 17 This is a schematic diagram of an electronic lock control device provided in an embodiment of this application, as shown below. Figure 17 As shown, the electronic lock control device may include:

[0187] The acquisition module 1701 is used to acquire the switch on / off control mode corresponding to the type of electronic lock if the electronic lock control device is detected to be powered on.

[0188] The control module 1702 is used to control the on / off state of the switch module according to the switch on / off control method, so as to control the locking or unlocking of the electronic lock.

[0189] Optionally, the acquisition module 1701 is specifically used to determine the switch on / off control method as either a first control method or a second control method when the electronic lock is a pulse-type electronic lock; according to the switch on / off control method, control the on / off state of the switch module to control the locking or unlocking of the electronic lock, including: according to the first control method, controlling the on / off state of the switch module so that the first power supply terminal of the switch module is connected to the power supply, the first output terminal of the switch module is connected to one end of the electronic lock, and the second output terminal of the switch module is grounded, so as to unlock the pulse-type electronic lock; or, according to the second control method, controlling the on / off state of the switch module so that the second power supply terminal of the switch module is connected to the power supply, the second output terminal of the switch module is connected to the other end of the electronic lock, and the first output terminal of the switch module is grounded, so as to lock the pulse-type electronic lock.

[0190] Optionally, the acquisition module 1701 is specifically used to determine, if the electronic lock is a level-controlled electronic lock, the switch on / off control method is: a third control method, a fourth control method, or a fifth control method; according to the switch on / off control method, control the on / off state of the switch module to control the locking or unlocking of the electronic lock, including: according to the third control method, controlling the on / off state of the switch module so that the first power terminal of the switch module is connected to the power supply, the first output terminal of the switch module is connected to one end of the electronic lock, and the second output terminal of the switch module is grounded, so as to realize the locking of the level-controlled electronic lock; or, according to the fourth control method, controlling the on / off state of the switch module so that the second power terminal of the switch module is connected to the power supply, the second output terminal of the switch module is connected to the other end of the electronic lock, and the first output terminal of the switch module is grounded, so as to realize the locking of the level-controlled electronic lock; or, according to the fifth control method, controlling the on / off state of the switch module so that both ends of the electronic lock are grounded, so as to realize the unlocking of the level-controlled electronic lock.

[0191] Optionally, the acquisition module 1701 is further configured to control the first target switch unit to sequentially execute the actions in the first action group, and acquire the first set of state feedback of the electronic lock corresponding to the first action group; the first action group includes: closing action and opening action executed sequentially at intervals; the first target switch unit is a second switch unit, and / or a third switch unit; and the type of electronic lock is determined according to the first set of state feedback.

[0192] The determination module 1703 is used to, if the first set of state feedback does not correspond to the type of electronic lock, and all state values ​​in the first set of state feedback are the same, continue to control the second target switch unit to sequentially execute the actions in the second action group to obtain the second set of state feedback of the electronic lock corresponding to the second action group; the second action group includes: sequentially spaced opening and closing actions; the type of electronic lock is determined based on the first set of state feedback and the second set of state feedback; the second target switch unit is a second switch unit and / or a third switch unit; or, if the first set of state feedback does not correspond to the type of electronic lock, and different state values ​​exist in the first set of state feedback, it is determined that the electronic lock has a fault error; or, if different state values ​​exist in the second set of state feedback, it is determined that the electronic lock has a fault error; or, if both the first set of state feedback and the second set of state feedback are in an open state, it is determined that the electronic lock has a connection error.

[0193] These modules can be one or more integrated circuits configured to implement the above methods, such as one or more Application Specific Integrated Circuits (ASICs), one or more digital signal processors (DSPs), or one or more Field Programmable Gate Arrays (FPGAs). Alternatively, when a module is implemented using processing element scheduler code, the processing element can be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor capable of calling program code. Furthermore, these modules can be integrated together as a system-on-a-chip (SOC).

[0194] Figure 18 This is a schematic diagram of a control unit provided in an embodiment of this application. The control unit may be a device with computing processing capabilities.

[0195] The control unit includes a processor 1801, a storage medium 1802, and a bus 1803. The processor 1801 and the storage medium 1802 are connected via the bus 1803.

[0196] Storage medium 1802 is used to store programs, and processor 1801 calls the programs stored in storage medium 1802 to execute the above method embodiments. The specific implementation and technical effects are similar, and will not be described again here.

[0197] Optionally, the present invention also provides a program product, such as a computer-readable storage medium, including a program that, when executed by a processor, is used to perform the above-described method embodiments.

[0198] In the several embodiments provided by this invention, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

Claims

1. An electronic lock control device, characterized in that, include: Power supply, first switching unit, switching module, energy storage capacitor; The power supply is grounded through the energy storage capacitor. The first and second ends of the first switching unit are connected to the two ends of the energy storage capacitor. The third end of the first switching unit is connected to the first input end of the switching module. The second input end of the switching module is grounded. The first power supply end and the second power supply end of the switching module are both connected to the power supply. The first output end and the second output end of the switching module are respectively connected to the two ends of the electronic lock. The switching module includes: a second switching unit and a third switching unit; both the second switching unit and the third switching unit are relays. The first ends of the second switch unit and the third switch unit are normally closed contacts, the second ends of the second switch unit and the third switch unit are normally open contacts, and the third ends of the second switch unit and the third switch unit are fixed contacts. The first end of the second switch unit is the first input end of the switch module, and the third end of the first switch unit is connected to the first end of the second switch unit; The second end of the second switch unit is the first power supply terminal of the switch module, and the second end of the third switch unit is the second power supply terminal of the switch module. The second end of the second switch unit is connected to the power supply, and the second end of the third switch unit is connected to the power supply. The third terminal of the second switch unit is the first output terminal of the switch module, the third terminal of the third switch unit is the second output terminal of the switch module, the third terminal of the second switch unit is connected to one end of the electronic lock, and the third terminal of the third switch unit is connected to the other end of the electronic lock. The first terminal of the third switch unit is the second input terminal of the switch module, and the first terminal of the third switch unit is grounded. The first switching unit is a relay, the first end of the first switching unit is a normally closed contact, the second end of the first switching unit is a normally open contact, and the third end of the first switching unit is a fixed contact; The first power drive terminal of the first switching unit is connected to the power supply, and the second power drive terminal of the first switching unit is grounded. The first power drive terminal and the second power drive terminal of the first switching unit are respectively the two ends of the power supply coil in the first switching unit.

2. The control device according to claim 1, characterized in that, The control device further includes: a control unit; The output terminal of the control unit is connected to the control terminals of the second switch unit and the third switch unit, respectively.

3. The control device according to claim 2, characterized in that, The control terminals of the second switch unit and the third switch unit are respectively the two ends of the power supply coil in the second switch unit and the two ends of the power supply coil in the third switch unit.

4. An electronic lock control method, characterized in that, The method includes: If the electronic lock control device is detected to be powered on, the switch on / off control mode corresponding to the type of electronic lock is obtained; the electronic lock control device is any one of the electronic lock control devices described in claims 1-3 above. According to the switch on / off control method, the on / off state of the switch module is controlled to control the locking or unlocking of the electronic lock.

5. The electronic lock control method according to claim 4, characterized in that, The step of obtaining the switch on / off control method corresponding to the type of electronic lock includes: If the electronic lock is a pulse-type electronic lock, then the switch on / off control method is determined to be either the first control method or the second control method. The step of controlling the on / off state of the switch module according to the switch on / off control method to control the locking or unlocking of the electronic lock includes: According to the first control method, the on / off state of the switch module is controlled, such that the first power supply terminal of the switch module is connected to the power supply, the first output terminal of the switch module is connected to one end of the electronic lock, and the second output terminal of the switch module is grounded, so as to realize the unlocking of the pulse electronic lock; or, According to the second control method, the on / off state of the switch module is controlled so that the second power supply terminal of the switch module is connected to the power supply, the second output terminal of the switch module is connected to the other end of the electronic lock, and the first output terminal of the switch module is grounded, so as to realize the locking of the pulse electronic lock.

6. The electronic lock control method according to claim 4, characterized in that, The step of obtaining the switch on / off control method corresponding to the type of electronic lock includes: If the type of electronic lock is a level-controlled electronic lock, then the switch on / off control method is determined to be: the third control method, the fourth control method, or the fifth control method; The step of controlling the on / off state of the switch module according to the switch on / off control method to control the locking or unlocking of the electronic lock includes: According to the third control method, the on / off state of the switch module is controlled, such that the first power supply terminal of the switch module is connected to the power supply, the first output terminal of the switch module is connected to one end of the electronic lock, and the second output terminal of the switch module is grounded, so as to realize the locking of the level-type electronic lock; or, According to the fourth control method, the on / off state of the switch module is controlled, such that the second power supply terminal of the switch module is connected to the power supply, the second output terminal of the switch module is connected to the other end of the electronic lock, and the first output terminal of the switch module is grounded, so as to realize the locking of the level-type electronic lock; or, According to the fifth control method, the on / off state of the switch module is controlled so that both ends of the electronic lock are grounded, thereby realizing the unlocking of the level-type electronic lock.

7. The electronic lock control method according to claim 4, characterized in that, If the switch module includes a second switch unit and a third switch unit, then before obtaining the switch on / off control method corresponding to the type of electronic lock, the method further includes: The system controls the first target switch unit to sequentially execute the actions in the first action group and obtains the first group of state feedback of the electronic lock corresponding to the first action group; the first action group includes: a closing action and a opening action executed sequentially at intervals; the first target switch unit is the second switch unit, and / or the third switch unit; The type of the electronic lock is determined based on the first set of status feedback.

8. The electronic lock control method according to claim 7, characterized in that, The method further includes: If the first set of status feedback does not correspond to the type of the electronic lock, and all status values ​​in the first set of status feedback are the same, then the second target switch unit continues to be controlled to sequentially execute the actions in the second action group to obtain the second set of status feedback of the electronic lock corresponding to the second action group; the second action group includes: sequentially spaced opening and closing actions; the type of the electronic lock is determined based on the first set of status feedback and the second set of status feedback; the second target switch unit is the second switch unit, and / or the third switch unit; or... If the first set of status feedback does not correspond to the type of electronic lock, and there are different status values ​​in the first set of status feedback, it is determined that the electronic lock has a fault; or... If different status values ​​exist in the second set of status feedback, then it is determined that the electronic lock has a fault; or, If both the first and second sets of status feedback are in a disconnected state, then it is determined that the electronic lock has a connection error.

Citation Information

Patent Citations

  • Control system and control method for electronic lock of charging system

    CN106785691A

  • Electronic lock control device and system

    CN218085105U