CN117558077A - Parameter adjustment method of electronic lock, storage medium and terminal device - Google Patents

Parameter adjustment method of electronic lock, storage medium and terminal device Download PDF

Info

Publication number
CN117558077A
CN117558077A CN202410035718.8A CN202410035718A CN117558077A CN 117558077 A CN117558077 A CN 117558077A CN 202410035718 A CN202410035718 A CN 202410035718A CN 117558077 A CN117558077 A CN 117558077A
Authority
CN
China
Prior art keywords
electronic lock
parameter adjustment
time length
controlling
locking
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202410035718.8A
Other languages
Chinese (zh)
Inventor
刘志永
李召
李卓盛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Meikai Innovation Technology Co ltd
Original Assignee
Shenzhen Meikai Innovation Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Meikai Innovation Technology Co ltd filed Critical Shenzhen Meikai Innovation Technology Co ltd
Priority to CN202410035718.8A priority Critical patent/CN117558077A/en
Publication of CN117558077A publication Critical patent/CN117558077A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00309Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated with bidirectional data transmission between data carrier and locks
    • EFIXED CONSTRUCTIONS
    • E05LOCKS; KEYS; WINDOW OR DOOR FITTINGS; SAFES
    • E05BLOCKS; ACCESSORIES THEREFOR; HANDCUFFS
    • E05B47/00Operating or controlling locks or other fastening devices by electric or magnetic means
    • E05B47/0001Operating or controlling locks or other fastening devices by electric or magnetic means with electric actuators; Constructional features thereof
    • E05B47/0012Operating or controlling locks or other fastening devices by electric or magnetic means with electric actuators; Constructional features thereof with rotary electromotors
    • EFIXED CONSTRUCTIONS
    • E05LOCKS; KEYS; WINDOW OR DOOR FITTINGS; SAFES
    • E05BLOCKS; ACCESSORIES THEREFOR; HANDCUFFS
    • E05B67/00Padlocks; Details thereof
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00571Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated by interacting with a central unit
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00944Details of construction or manufacture

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Manufacturing & Machinery (AREA)
  • Lock And Its Accessories (AREA)

Abstract

The application provides a parameter adjustment method, storage medium and terminal device of electronic lock, the electronic lock includes the motor, and the motor is used for rotating in order to drive electronic lock unblanking, and the electronic lock still has the motor control parameter that presets, and the motor control parameter that presets is obtained when burning software by the electronic lock and is used for controlling the motor to rotate to drive electronic lock unblanking, the parameter adjustment method includes: the method comprises the steps that external equipment is controlled to generate a parameter adjustment command, and the parameter adjustment command is used for controlling an electronic lock to adjust preset motor control parameters based on the parameter adjustment command so as to obtain target motor control parameters; and controlling the external equipment to send a parameter adjustment command to the electronic lock. In the application, the control parameters of the motor can be adjusted after leaving the factory and in the subsequent use process of the electronic lock, so that unlocking and/or locking failure caused by error rotation of the motor in the actual working process is avoided.

Description

Parameter adjustment method of electronic lock, storage medium and terminal device
Technical Field
The application belongs to the technical field of electronic locks, and particularly relates to a parameter adjustment method, a storage medium and a terminal device of an electronic lock.
Background
An electronic lock generally includes a control module, a motor, and a mechanical switch portion that can be rotated by the motor to lock or unlock the mechanical switch portion when the mechanical switch portion is in a locked position, thereby restricting or allowing movement of the mechanical switch portion to an unlocked position.
In the related art, an electronic lock generally stores preset control parameters, where the preset control parameters are burned before the lock leaves the factory and are used for controlling the rotation of a motor to unlock the lock. The preset control parameters in the electronic lock cannot be modified after leaving the factory, and errors are easy to occur in the rotating stroke of the motor in the actual work of the electronic lock, so that the problem that part of the electronic lock is blocked and cannot be successfully unlocked and/or locked often occurs.
Disclosure of Invention
The embodiment of the application provides a parameter adjustment method of an electronic lock, a storage medium and a terminal device, so as to reduce the probability of clamping the electronic lock.
In a first aspect, an embodiment of the present application provides a method for adjusting parameters of an electronic lock, where the electronic lock includes a motor, the motor is configured to rotate to drive the electronic lock to unlock, the electronic lock further has preset motor control parameters, where the preset motor control parameters are obtained by the electronic lock when software is burned and are used to control the motor to rotate, so as to drive the electronic lock to unlock, and the method for adjusting parameters includes:
controlling external equipment to generate a parameter adjustment command, wherein the parameter adjustment command is used for controlling the electronic lock to adjust the preset motor control parameter based on the parameter adjustment command so as to obtain a target motor control parameter;
and controlling the external equipment to send the parameter adjustment command to the electronic lock.
Optionally, controlling the external device to generate the parameter adjustment command includes:
controlling external equipment to receive an operation instruction input by a user;
and generating the parameter adjustment command based on the operation instruction.
Optionally, controlling the external device to generate the parameter adjustment command includes:
controlling the external equipment to acquire a work log of the electronic lock, wherein the work log comprises real-time motor control parameters and corresponding unlocking results of the electronic lock in a multi-unlocking process;
controlling the external equipment to determine the target times of unlocking failure of the electronic lock in the work log;
and if the target times are larger than a first preset value, controlling the external equipment to generate the parameter adjustment command according to the work log.
Optionally, the electronic lock further comprises a locking member, the locking member being movable to an unlocking position or a locking position, the motor being for: positively rotating the locking member for a first period of time or a first angle when the locking member is in the locked position to unlock the locking member; stopping rotating for a third period of time when the first period of time or the first angle is completed for the locking member to move to the unlocking position; reversing the second time period when stopping rotating the third time period is completed, and returning to a preset angle so that the locking component can move to the locking position and be locked under the action of external force;
wherein the motor control parameter includes at least one of the first duration, the first angle, the third duration, and the second duration.
Optionally, the controlling the external device to generate the parameter adjustment command according to the work log includes:
controlling the external equipment to obtain an intermediate second time length according to the first time length or the first angle in the work log;
and controlling the external equipment to generate the parameter adjustment command according to the middle second time length, so that the electronic lock can adjust the second time length in the current motor control parameters to the middle second time length based on the parameter adjustment command, and the target motor control parameters are obtained.
Optionally, the electronic lock further includes a housing, a lock tongue and a first elastic member, the housing is provided with a mounting cavity and a lock hole, the lock hole is respectively communicated with the mounting cavity and the outside of the housing, the locking component includes a locking section movably mounted in the lock hole, the locking section can move to the unlocking position towards the outside of the mounting cavity, and can move to the locking position towards the inside of the mounting cavity, the lock tongue is slidably mounted in the mounting cavity, the lock tongue can move to the locking section locked in the locking position along a first direction, and can move to the locking section unlocked in the locking position along a second direction, the first direction is opposite to the second direction, the first elastic member is mounted in the mounting cavity for driving the lock tongue to move along the first direction, the motor is arranged in the mounting cavity, and the motor is in transmission connection with the lock tongue for driving the lock tongue to move to the locking section unlocked along the second direction; the controlling the external device to obtain an intermediate second duration according to the first duration or the first angle in the work log includes:
controlling the external equipment to acquire a plurality of first time lengths in the work log, and determining an average value of the plurality of first time lengths in the work log as an average first time length;
and controlling the external equipment to determine the middle second time length according to the average first time length, wherein the middle second time length is smaller than the average first time length.
Optionally, the controlling the external device to generate the parameter adjustment command according to the work log includes:
controlling the external equipment to obtain an intermediate first time length or an intermediate first angle according to a second time length in the work log;
and controlling the external equipment to generate the parameter adjustment command according to the middle first time length or the middle first angle, so that the electronic lock can adjust the first time length of the current motor control parameters to the middle first time length according to the parameter adjustment command, or the electronic lock can adjust the first angle of the current motor control parameters to the middle first angle according to the parameter adjustment command, and the target motor control parameters are obtained.
Optionally, the motor control parameter includes at least one of operating voltage and power consumption when the motor rotates to drive the electronic lock to unlock; the work log also comprises environment information of the electronic lock in the unlocking process for a plurality of times, and the environment information comprises at least one of the temperature and the magnetic field intensity of the environment where the electronic lock is located; the controlling the external device to generate the parameter adjustment command according to the work log includes:
controlling the external equipment to obtain at least one of an intermediate first time length, an intermediate second time length, an intermediate third time length, an intermediate working voltage and intermediate power consumption according to the environment information;
and controlling the external equipment to generate the parameter adjustment command according to at least one of the middle first time length, the middle second time length, the middle third time length, the middle working voltage and the middle power consumption, so that the electronic lock can adjust at least one of the first time length, the second time length, the third time length, the working voltage and the power consumption in the current motor control parameters to the corresponding middle first time length, the middle second time length, the middle third time length, the middle working voltage or the middle power consumption according to the parameter adjustment command, and the target motor control parameters are obtained.
In a second aspect, embodiments of the present application further provide a storage medium having stored thereon a computer program that, when run, performs the parameter adjustment method of any one of the above.
In a second aspect, embodiments of the present application further provide a terminal device, including:
one or more processors; and
a storage means for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the parameter adjustment method as in any one of the above.
In the embodiment of the application, after leaving the factory and in the subsequent use process of the electronic lock, the motor control parameters of the electronic lock can be adjusted through the parameter adjustment command sent by the external equipment, so that unlocking and/or locking failure caused by error rotation of the motor in the actual working process is avoided.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings that are required to be used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained from these drawings without inventive effort to a person skilled in the art.
Fig. 1 is a first flowchart of a parameter adjustment method according to an embodiment of the present application.
Fig. 2 is a schematic structural diagram of the electronic lock provided in the embodiment of the present application in a state that the tongue is locked to the locking member.
Fig. 3 is a second flowchart of a parameter adjustment method according to an embodiment of the present application.
Fig. 4 is a schematic view of the electronic lock shown in fig. 2 in a state in which the locking bolt is released from the locking member.
Fig. 5 is a schematic view of the electronic lock shown in fig. 2 during movement of the locking segment from the unlocked position toward the locked position.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It will be apparent that the described embodiments are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
For a more complete understanding of the present application and the advantages thereof, reference is now made to the following descriptions taken in conjunction with the accompanying drawings. Wherein like reference numerals refer to like parts throughout the following description.
In the related art, an electronic lock generally stores preset control parameters, where the preset control parameters are burned before the lock leaves the factory and are used for controlling the rotation of a motor to unlock the lock. The preset control parameters in the electronic lock cannot be modified after leaving the factory, and errors are easy to occur in the rotating stroke of the motor in the actual work of the electronic lock, so that the problem that part of the electronic locks cannot be successfully unlocked or locked often occurs.
Based on this, the embodiment of the application further provides a parameter adjustment method of an electronic lock, please refer to fig. 1 and fig. 2, fig. 1 is a first flowchart of the parameter adjustment method provided in the embodiment of the application, and fig. 2 is a schematic structural diagram of the electronic lock provided in the embodiment of the application in a state of locking a locking part of a locking bolt. The electronic lock comprises a motor 200, wherein the motor 200 is used for rotating to drive the electronic lock to unlock, the electronic lock is further provided with preset motor control parameters, the preset motor control parameters are obtained by the electronic lock when software is burned and used for controlling the motor 200 to rotate to drive the electronic lock to unlock, and the parameter adjustment method comprises the following steps:
101. and controlling the external equipment to generate a parameter adjustment command, wherein the parameter adjustment command is used for controlling the electronic lock to adjust preset motor control parameters based on the parameter adjustment command so as to obtain target motor control parameters.
102. And controlling the external equipment to send a parameter adjustment command to the electronic lock.
Of course, the parameter adjustment command may also be used to control the electronic lock to adjust the current motor control parameter to the target motor control parameter. Therefore, the electronic lock can adjust the motor control parameters after leaving the factory and in the subsequent use process, so as to avoid unlocking and/or locking failure caused by error rotation of the motor 200 in the actual working process.
In some embodiments, the electronic lock may have a first wireless communication module, and the external device may have a second wireless communication module, where the second wireless communication module may be capable of communicating with the first wireless communication module, so that the external device may be capable of sending a parameter adjustment command to the electronic lock.
The first wireless communication module and the second wireless communication module may include the same one of a bluetooth module, an NFC (Near Field Communication ) module, a WIFI (Wireless Fidelity, wireless fidelity) module, or a star flash module, and further may directly perform wireless communication.
The external device may be a terminal carrying a server, or may be a smart phone, a tablet computer, or the like, which is not limited in the embodiment of the present application.
In some embodiments, controlling the external device to generate the parameter adjustment command may include: controlling external equipment to receive an operation instruction input by a user; a parameter adjustment command is generated based on the operation instruction.
Furthermore, a user can adjust motor control parameters of the electronic lock through external equipment such as a mobile phone, a computer and the like.
For example, a user may directly input specific parameters to be changed through an external device. Or after the external device receives the operation instruction input by the user, the external device obtains the specific parameters to be changed in a mode of calculation generation of the external device or acquisition from the cloud service, and the like, and further generates a parameter adjustment command.
Optionally, the external device may actively determine whether to generate a parameter adjustment command according to the unlocking condition of the electronic lock, so as to adjust the motor control parameter of the electronic lock.
In addition, when the electronic lock is a passive electronic lock, the mode of calculating to obtain the parameter adjustment command is completed through external equipment, so that the power consumption of the electronic lock can be reduced, the reaction speed of the electronic lock can be improved, and the problem of low external energy obtaining efficiency of the passive electronic lock can be well solved.
Specifically, the passive electronic lock is an electronic lock that obtains radio frequency energy from outside through a radio frequency power taking technology. Such electronic locks do not require a built-in battery or external power supply. However, passive electronic locks suffer from lower efficiency of radio frequency power extraction and lower efficiency of external energy extraction. Therefore, by reducing the calculation required inside the electronic lock, the power consumption of the electronic lock itself can be reduced, so that the external radio frequency energy required by the electronic lock is reduced, and the time required by the electronic lock to acquire the external radio frequency energy is reduced to a certain extent.
With continued reference to fig. 3, fig. 3 is a second flowchart of a parameter adjustment method according to an embodiment of the present application. The method described in the previous examples is described in further detail below by way of example. The parameter adjustment method may include:
201. the control external equipment acquires a work log of the electronic lock, wherein the work log comprises real-time motor control parameters and corresponding unlocking results of the electronic lock in the unlocking process for a plurality of times.
In some embodiments, the motor control parameter may include at least one of an operating voltage, power consumption, when the motor 200 rotates to drive the electronic lock to unlock.
Furthermore, on the one hand, whether the working voltage of the motor 200 when the electronic lock is unlocked needs to be increased or not is conveniently confirmed according to the unlocking result, so that unlocking failure caused by insufficient working voltage of the motor 200 is avoided, or whether the working voltage of the motor 200 when the electronic lock is unlocked needs to be reduced or not is avoided, so that the electronic lock can be opened when the passive electronic lock acquires less external radio frequency energy, and unlocking efficiency is improved.
On the other hand, whether the power consumption of the motor 200 when the electronic lock is unlocked needs to be improved or not is conveniently confirmed according to the unlocking result, so that unlocking failure caused by insufficient power consumption of the motor 200 is avoided, or whether the power consumption of the motor 200 when the electronic lock is unlocked needs to be reduced or not is avoided, so that the electronic lock can be opened when the passive electronic lock acquires less external radio frequency energy, and unlocking efficiency is improved.
In some embodiments, the work log may further include environmental information of the electronic lock during the unlocking of the electronic lock a plurality of times, the environmental information including at least one of a temperature and a magnetic field strength of an environment in which the electronic lock is located.
It will be appreciated that in actual use, both ambient temperature and magnetic field strength will have some effect on the rotation of the motor 200. Then, through the environmental information recorded in the work log, the external device can generate more appropriate parameter adjustment commands conveniently, and further adjust the rotation time length, rotation angle, working voltage, power consumption and the like of the motor 200 to more appropriate values, so as to improve the success rate of unlocking and/or locking the electronic lock.
With continued reference to fig. 4 and 5, fig. 4 is a schematic structural view of the electronic lock shown in fig. 2 in a state in which the locking bolt is released from the locking part, and fig. 5 is a schematic structural view of the electronic lock shown in fig. 2 in a state in which the locking section moves from the unlocking position to the locking position. In some embodiments, the electronic lock may further comprise a locking member 100, the locking member 100 being movable to an unlocked position or a locked position, the motor 200 being for: forward rotating the locking member 100 for a first time period or a first angle when the locking member 100 is in the closed position to unlock the locking member 100; stopping the rotation for a third period of time when the forward rotation for the first period of time or the first angle is completed for the locking member 100 to move to the unlocking position; the preset angle is returned after the second period of time is reversed when the stopping of the rotation for the third period of time is completed, so that the locking member 100 can be moved to the locking position and locked by the external force.
Accordingly, the motor control parameter may include at least one of a first duration, a first angle, a third duration, and a second duration.
For example, the electronic lock may further include a housing 300, a latch 400, and a first elastic member 500.
The housing 300 is provided with a mounting cavity 31 and a locking hole 32. The locking holes 32 communicate with the outside of the mounting chamber 31 and the housing 300, respectively. The locking member 100 includes a locking section 11 movably mounted to the locking aperture 32. The locking segment 11 is movable out of the mounting cavity 31 to an unlocked position and into the mounting cavity 31 to a locked position. The bolt 400 is slidably mounted in the mounting cavity 31, the bolt 400 being movable in a first direction H1 to lock to the locking section 11 in the locked position and in a second direction H2 to unlock the locking section 11 in the locked position. The first direction H1 is opposite to the second direction H2. The first elastic member 500 is installed in the installation cavity 31, and is used for driving the latch bolt 400 to move along the first direction H1. The motor 200 is disposed in the mounting cavity 31, and the motor 200 is in transmission connection with the bolt 400, so as to drive the bolt 400 to move along the second direction H2 to release the locking section 11.
The technical solution of the embodiment of the present application is integrally illustrated in the following by combining a process of opening and closing the lock:
first, in an initial state, the locking section 11 is located at the closed position, and the locking tongue 400 locks the locking section 11, so that the housing 300 can lock an external object through the locking part 100.
The motor 200 may then be rotated forward to drive the locking bolt 400 in the second direction H2, thereby causing the locking bolt 400 to release the locking segment 11 or unlock the locking segment 11.
The motor 200 may then be stopped for a certain amount of time for the locking segment 11 to move to the unlocked position.
Finally, the motor 200 is reversed and reset; meanwhile, the first elastic member 500 also drives the latch bolt 400 to reset, so that the latch bolt 400 can be driven to move along the second direction H2 to avoid the displacement in the process of moving the subsequent locking section 11 towards the locking position again, and the latch bolt 400 can be driven to move along the first direction H1 to lock the locking section 11 by the restoration of the first elastic member 500 after the locking section 11 moves to the locking position.
The manner in which the locking bolt 400 locks and unlocks the locking section 11 may be varied. For example, the locking section 11 is provided with a limit groove 111 on the circumferential side. When the locking segment 11 is moved to the locking position, the locking bolt 400 can be moved in the first direction H1 into the limit groove 111 to lock the locking segment 11, and the locking bolt 400 can be moved in the second direction H2 out of the limit groove 111 to release the locking segment 11.
Illustratively, the locking segment 11 is movable upwardly to the exterior of the housing 300 to an unlocked position, and the locking segment 11 is movable downwardly into the mounting cavity 31 to a locked position. At this time, the limiting groove 111 is disposed at the left side of the locking section 11, or a circumferential limiting groove 111 is disposed at the sidewall of the locking section 11. Correspondingly, the lock tongue 400 is slidably mounted in the mounting cavity 31 to the left and right and is located on the left side of the locking section 11; a first elastic member 500 such as a spring is installed at the left side of the latch bolt 400.
Furthermore, when the locking segment 11 is in the locking position, the first elastic member 500 can push the lock tongue 400, so that the lock tongue 400 moves to the right into the limit groove 111, thereby locking or locking the locking segment 11 to limit the movement of the locking segment 11. When unlocking is required, the motor 200 drives the bolt 400 to move leftwards to be separated from the limit groove 111, so that the unlocking section 11 is released to operate the locking section 11 to move to the unlocking position.
In some embodiments, the side of the locking bolt 400 facing the locking hole 32 has a bevel 41. The inclined surface 41 is located at one end of the lock tongue 400 near the lock hole 32 along the first direction H1, and the inclined surface 41 is inclined in a direction away from the lock hole 32.
Continuing with the example of the first direction H1 being a left-right direction and the locking segment 11 moving in an up-down direction within the locking aperture 32, the ramp 41 may be located at the right end of the locking bolt 400 and the ramp 41 may be sloped downward. Therefore, when the locking section 11 moves from the unlocking position to the locking position, the locking section 11 will abut against the inclined surface 41, and then a component force driving the locking bolt 400 to move leftwards or in the second direction H2 is applied to the locking bolt 400 by the locking section 11 moving downwards through the inclined surface 41, so as to drive the locking bolt 400 to move along the second direction H2. Finally, after the locking segment 11 moves to the locking position, the first elastic member 500 starts to elastically restore to push the latch bolt 400 to move in the first direction H1 or to the right into the limit groove 111, thereby locking the locking segment 11.
In some embodiments, the electronic lock further comprises a second elastic member 600. The second elastic member 600 is used to drive the locking segment 11 towards the unlocked position. Thus, after the latch bolt 400 releases the locking section 11 at the locking position, the locking end can be ejected by the second elastic member 600 when the motor 200 stops rotating, so that the opening and closing of the lockset are more convenient.
For example, the locking member 100 may be a lock beam that includes a locking section 11 and a mounting section 12 remote from the locking section 11. The mounting section 12 and the locking section 11 are parallel to each other, and the mounting section 12 movably penetrates through the housing 300. A second resilient member 600, such as a spring, is disposed within the housing 300 and is used to drive the mounting section 12 to move outwardly of the housing 300 so that the mounting section 12 and the locking section 11 can slide synchronously with respect to the housing 300 to move the locking section 11 to an unlocked or locked position.
Wherein the shackle and housing 300 form a closed loop structure to lock an external object when the lock section 11 is in the locked position.
Of course, in some other embodiments, the locking component 100 may be a flexible steel cable, where one end of the steel cable is provided with the locking section 11, and the other end is fixedly disposed on the housing 300, which is not limited in this embodiment.
The output shaft of the motor 200 may be provided with a cam 21, the latch 400 is provided with a transmission hole 42, and the cam 21 is disposed in the transmission hole 42.
Accordingly, the motor 200 can be rotated forward to push the inner wall of the driving hole 42 to move in the second direction H2 by the cam 21, thereby unlocking the locking section 11 at the locking position. And, the motor 200 may be reversed to allow the first elastic member 500 to push the latch 400 to move in the first direction H1 to be inserted into the locking section 11 located at the locking position, to allow the latch 400 to be driven to move in the second direction H2 to avoid the position when the locking section 11 moves toward the locking position, and to drive the latch 400 into the locking section 11 by the first elastic member 500 after the locking section 11 moves to the locking position.
Further, when the latch bolt 400 locks the locking section 11 located at the locking position, the unlocking/locking process of the electronic lock may be as follows:
first, the locking bolt 400 is driven to be disengaged from the locking section 11 by the forward rotation of the motor 200 to release the locking section 11.
Then, the motor 200 may be stopped for a certain time for the second elastic member 600 to eject the locking segment 11 from the closed position toward the opened position, or for the user to apply an external force to pull out the locking segment 11 to the outside of the housing 300.
Then, when the locking segment 11 is ejected or pulled out, the motor 200 may be reversed and reset, so that the first elastic member 500 moves the latch bolt 400 along the first direction H1 to at least partially block the lock hole 32.
Finally, the locking segment 11 moves toward the locked position under an external force such as a pressing force of the user. During the movement of the locking segment 11 towards the locking position, the locking segment 11 will firstly abut against the inclined plane 41 to drive the lock tongue 400 to keep away along the second direction H2, and after the locking segment 11 moves to the locking position, the first elastic member 500 drives the lock tongue 400 to move along the first direction H1 into the limit groove 111 inserted into the locking segment 11 again, so as to lock the locking segment 11 in the locking position.
Illustratively, the inner wall of the drive aperture 42 includes a first inner sidewall 43 that is remote from the lock aperture 32 in the first direction H1. The cam 21 abuts against the first inner side wall 43.
Then, when the motor 200 rotates forward, the convex portion of the cam 21 is deflected in the second direction H2, so that the convex portion of the cam 21 pushes the first inner sidewall 43 to push the latch bolt 400 to move in the second direction H2. When the motor 200 is reversed, the protruding portion of the cam 21 deflects toward the first direction H1 to avoid the displacement, thereby allowing the first elastic member 500 to drive the latch 400 to move along the first direction H1, and the first inner sidewall 43 is always abutted against the cam 21 during this process. Therefore, by controlling the rotation angle of the convex portion of the cam 21 or the positive rotation angle of the motor 200, the distance that the latch 400 moves in the first direction H1 can be limited.
The inner wall of the drive aperture 42 includes a second inner sidewall 44 adjacent the locking aperture 32 in the first direction H1. The cam 21 is spaced from the second inner side wall 44. Thus, when the bolt 400 moves to block the lock hole 32 after the motor 200 is reversed, if the locking segment 11 moves from the unlocking position to the locking position to push the inclined surface 41, the gap between the cam 21 and the second inner sidewall 44 allows the bolt 400 to move along the second direction H2 to block the movement of the locking segment 11.
In some embodiments, the electronic lock may also have one or more of a first sensor, a second sensor, and a third sensor. The first sensor is used to detect the rotation angle of the motor 200, the second sensor is used to detect the position of the latch bolt 400, and the third sensor is used to detect the position of the locking member 100. The work log may also include one or more of rotation angle data of the motor 200, movement data of the locking bolt 400, and movement data of the locking member 100 during each rotation of the motor 200 to unlock the lock.
In the subsequent process, the external device can better determine which of the forward rotation, the stop rotation and the reverse rotation of the motor 200 corresponds to the rotation time length or the unlocking failure caused by unsuitable rotation angle, and finally, the external device can generate a more suitable parameter adjustment command according to the work log.
202. And controlling the external equipment to determine the target times of unlocking failure of the electronic lock in the work log.
In some embodiments, the failure to unlock may include: the embodiment of the present application does not limit the unlocking of the locking section 11 when the motor 200 is rotated forward, the locking section 11 cannot be ejected out of the housing 300 in time when the rotation of the electronic lock is stopped, so that the locking section is locked again, and the lock tongue 400 cannot return to the position at the beginning of the rotation after the electronic lock is rotated backward, so that the subsequent locking cannot be closed.
In some embodiments, the target number of times may be the number of times the electronic lock fails to unlock during a consecutive preset round of unlocking. For example, the target number of times may be the number of times the lock fails during the last 10 unlocking processes.
Then, it can be understood that the continuous preset round unlocking process is used as a reference sample set, and if the unlocking failure times of the sample set are more, the electronic lock can be considered to have a larger probability of unlocking failure in the subsequent use process. Therefore, a parameter adjustment command needs to be generated subsequently to adjust the motor control parameters of the electronic lock.
Alternatively, the target number of times may be a total number of times of unlocking failure in a work log of the electronic lock, which is not limited in the embodiment of the present application.
203. And if the target times are greater than a first preset value, controlling the external equipment to generate a parameter adjustment command according to the work log.
In the following, the technical solution of the embodiment of the present application is first illustrated by taking the adjustment of the second duration as an example.
The controlling the external device to generate the parameter adjustment command according to the work log may include: controlling external equipment to obtain an intermediate second time length according to the first time length or the first angle in the work log; and controlling the external equipment to generate a parameter adjustment command according to the middle second time length, so that the electronic lock can adjust the second time length in the current motor control parameters to the middle second time length based on the parameter adjustment command, and further obtaining the target motor control parameters.
In some embodiments, controlling the external device to generate the parameter adjustment command according to the intermediate second time period may include: the control external device generates a parameter adjustment command having an intermediate second duration.
In some embodiments, controlling the external device to obtain the intermediate second duration according to the first duration or the first angle in the work log may include: controlling external equipment to acquire a plurality of first time lengths in a work log, and determining an average value of the plurality of first time lengths in the work log as an average first time length; the control external device determines an intermediate second time period based on the average first time period.
Wherein the average first duration and the intermediate second duration may be equal. Then, in the subsequent process, the second time period in the motor control parameter may be directly adjusted to be the same as the average first time period, so that the motor 200 may be more accurately reset after the reverse rotation.
Alternatively, the intermediate second time period may be less than the average first time period.
For example, the side surface of the latch bolt 400 facing the latch hole 32 also has a blocking surface 45. The blocking surface 45 is located on one side of the inclined surface 41 away from the lock hole 32 along the first direction H1, and the blocking surface 45 is perpendicular to the axis of the lock hole 32.
Then, taking the example that the locking section 11 slides up and down, the inclined surface 41 is at least partially located at the upper side of the right end of the lock tongue 400, and the blocking surface 45 is located at the left side of the inclined surface 41. At this time, if the reverse rotation time period and the forward rotation time period of the motor 200 are the same, that is, the first time period is equal to the second time period, the blocking surface 45 is excessively moved in the first direction H1 due to the influence of the first elastic member 500, so that the locking hole 32 is partially blocked. Therefore, when the locking section 11 moves downward from the unlocking position to the locking position, the locking section 11 will abut against the blocking surface 45 to be blocked, so that the electronic lock cannot normally complete the subsequent unlocking and locking actions.
In contrast, in the embodiment of the present application, the second time length after the subsequent electronic lock is adjusted according to the parameter adjustment command is less than the first time length, so that the blocking surface 45 of the lock tongue 400 partially blocks the lock hole 32 after the motor 200 is reversed due to the first elastic member 500 can be avoided, and thus, the electronic lock is prevented from being unable to normally complete the subsequent unlocking and locking actions.
The foregoing is illustrative of some of the adjusting the second time period in the preset motor control parameters in the embodiments of the present application, and the following continues to illustrate the adjusting the first time period or the first angle in the preset motor control parameters.
The controlling the external device to generate the parameter adjustment command according to the work log may include: controlling external equipment to obtain an intermediate first time length or an intermediate first angle according to a second time length in the work log; and the control external equipment generates a parameter adjustment command according to the middle first time length or the middle first angle, so that the electronic lock can adjust the first time length in the current motor control parameters to the middle first time length according to the parameter adjustment command, or can adjust the first angle in the current motor control parameters to the middle first angle according to the parameter adjustment command, and the target motor control parameters are obtained.
In some embodiments, controlling the external device to generate the parameter adjustment command according to the intermediate first time period or the intermediate first angle may include: controlling external equipment to acquire a plurality of second time durations in the work log, and determining an average value of the plurality of second time durations in the work log as an average second time duration; the controlling external device determines an intermediate first time period or an intermediate first angle based on the average second time period.
In some embodiments, the intermediate first time period and the average second time period may be equal.
Then, in the subsequent process, the second time period in the motor control parameter may be directly adjusted to be the same as the average first time period, so that the motor 200 may be more accurately reset after the reverse rotation.
Alternatively, the intermediate first duration may be greater than the average second duration.
Then, since the second time length after the electronic lock is adjusted according to the parameter adjustment command is smaller than the first time length, it is ensured that the lock tongue 400 or the blocking surface 45 of the lock tongue 400 will not block the movement of the locking section 11 after being reset, so as to avoid the locking of the electronic lock.
The foregoing is illustrative of some of the adjustment of the first time length or the first angle of the preset motor control parameters in the embodiments of the present application, and the following description will proceed with the adjustment of the motor control parameters based on the environmental information.
The controlling the external device to generate the parameter adjustment command according to the work log may include: controlling the external device to obtain at least one of an intermediate first time period, an intermediate second time period, an intermediate third time period, an intermediate working voltage and intermediate power consumption according to the environment information; and controlling the external equipment to generate a parameter adjustment command according to at least one of the middle first time length, the middle second time length, the middle third time length, the middle working voltage and the middle power consumption, so that the electronic lock can adjust at least one of the first time length, the second time length, the third time length, the working voltage and the power consumption in the current motor control parameters to the corresponding middle first time length, the middle second time length, the middle third time length, the middle working voltage or the middle power consumption according to the parameter adjustment command, and accordingly obtaining the target motor control parameters.
The middle first time period, the middle second time period, the middle third time period, the middle working voltage and the middle power consumption are respectively in one-to-one correspondence with the first time period, the second time period, the third time period, the working voltage and the power consumption.
204. And controlling the external equipment to send a parameter adjustment command to the electronic lock.
Therefore, the electronic lock can adjust the motor control parameters after leaving the factory and in the subsequent use process, so as to avoid unlocking and/or locking failure caused by error rotation of the motor 200 in the actual working process.
The embodiment of the application also provides a storage medium applied to the electronic lock, and a computer program is stored on the storage medium, and the computer program executes the parameter adjustment method when running.
The embodiment of the application also provides a terminal device, which comprises one or more processors and a storage device, wherein the storage device is used for storing one or more programs; the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the parameter adjustment method as described above.
The terminal device may be a terminal carrying a server, or may be a smart phone, a tablet computer, or the like, which is not limited in the embodiment of the present application.
The foregoing has described in detail the methods for parameter adjustment provided by the embodiments of the present application, and specific examples have been applied herein to illustrate the principles and embodiments of the present application, and the above description of the embodiments is only for aiding in the understanding of the methods of the present application and the core ideas thereof; meanwhile, as those skilled in the art will vary in the specific embodiments and application scope according to the ideas of the present application, the contents of the present specification should not be construed as limiting the present application in summary.

Claims (10)

1. The method for adjusting parameters of the electronic lock is characterized in that the electronic lock comprises a motor, the motor is used for rotating to drive the electronic lock to unlock, the electronic lock is further provided with preset motor control parameters, the preset motor control parameters are obtained by the electronic lock when software is burned and used for controlling the motor to rotate, and therefore the electronic lock is driven to unlock, and the method for adjusting the parameters comprises the following steps:
controlling external equipment to generate a parameter adjustment command, wherein the parameter adjustment command is used for controlling the electronic lock to adjust the preset motor control parameter based on the parameter adjustment command so as to obtain a target motor control parameter;
and controlling the external equipment to send the parameter adjustment command to the electronic lock.
2. The parameter adjustment method according to claim 1, characterized by controlling an external device to generate a parameter adjustment command, comprising:
controlling external equipment to receive an operation instruction input by a user;
and generating the parameter adjustment command based on the operation instruction.
3. The parameter adjustment method according to claim 1, characterized by controlling an external device to generate a parameter adjustment command, comprising:
controlling the external equipment to acquire a work log of the electronic lock, wherein the work log comprises real-time motor control parameters and corresponding unlocking results of the electronic lock in a multi-unlocking process;
controlling the external equipment to determine the target times of unlocking failure of the electronic lock in the work log;
and if the target times are larger than a first preset value, controlling the external equipment to generate the parameter adjustment command according to the work log.
4. A method of adjusting a parameter as defined in claim 3, wherein the electronic lock further comprises a locking member movable to an unlocked position or a locked position, the motor being configured to: positively rotating the locking member for a first period of time or a first angle when the locking member is in the locked position to unlock the locking member; stopping rotating for a third period of time when the first period of time or the first angle is completed for the locking member to move to the unlocking position; reversing the second time period when stopping rotating the third time period is completed, and returning to a preset angle so that the locking component can move to the locking position and be locked under the action of external force;
wherein the motor control parameter includes at least one of the first duration, the first angle, the third duration, and the second duration.
5. The parameter adjustment method according to claim 4, wherein the controlling the external device to generate the parameter adjustment command from the work log includes:
controlling the external equipment to obtain an intermediate second time length according to the first time length or the first angle in the work log;
and controlling the external equipment to generate the parameter adjustment command according to the middle second time length, so that the electronic lock can adjust the second time length in the current motor control parameters to the middle second time length based on the parameter adjustment command, and the target motor control parameters are obtained.
6. The method of claim 5, wherein the electronic lock further comprises a housing, a locking bolt, and a first elastic member, the housing having a mounting cavity and a locking hole, the locking hole communicating with the mounting cavity and an exterior of the housing, respectively, the locking member including a locking segment movably mounted to the locking hole, the locking segment being movable out of the mounting cavity to the unlocked position and into the mounting cavity to the locked position, the locking bolt being slidably mounted in the mounting cavity, the locking bolt being movable in a first direction to lock the locking segment in the locked position, and movable in a second direction to unlock the locking segment in the locked position, the first direction being opposite to the second direction, the first elastic member being mounted in the mounting cavity for driving the locking bolt in the first direction, the motor being disposed in the mounting cavity, the motor being in driving connection with the locking bolt for driving the locking segment in the second direction to unlock; the controlling the external device to obtain an intermediate second duration according to the first duration or the first angle in the work log includes:
controlling the external equipment to acquire a plurality of first time lengths in the work log, and determining an average value of the plurality of first time lengths in the work log as an average first time length;
and controlling the external equipment to determine the middle second time length according to the average first time length, wherein the middle second time length is smaller than the average first time length.
7. A parameter adjustment method according to claim 3, wherein the controlling the external device to generate the parameter adjustment command from the work log comprises:
controlling the external equipment to obtain an intermediate first time length or an intermediate first angle according to a second time length in the work log;
and controlling the external equipment to generate the parameter adjustment command according to the middle first time length or the middle first angle, so that the electronic lock can adjust the first time length of the current motor control parameters to the middle first time length according to the parameter adjustment command, or the electronic lock can adjust the first angle of the current motor control parameters to the middle first angle according to the parameter adjustment command, and the target motor control parameters are obtained.
8. The parameter adjustment method according to claim 3, wherein the motor control parameter includes at least one of an operating voltage and power consumption when the motor rotates to drive the electronic lock to unlock; the work log also comprises environment information of the electronic lock in the unlocking process for a plurality of times, and the environment information comprises at least one of the temperature and the magnetic field intensity of the environment where the electronic lock is located; the controlling the external device to generate the parameter adjustment command according to the work log includes:
controlling the external equipment to obtain at least one of an intermediate first time length, an intermediate second time length, an intermediate third time length, an intermediate working voltage and intermediate power consumption according to the environment information;
and controlling the external equipment to generate the parameter adjustment command according to at least one of the middle first time length, the middle second time length, the middle third time length, the middle working voltage and the middle power consumption, so that the electronic lock can adjust at least one of the first time length, the second time length, the third time length, the working voltage and the power consumption in the current motor control parameters to the corresponding middle first time length, the middle second time length, the middle third time length, the middle working voltage or the middle power consumption according to the parameter adjustment command, and the target motor control parameters are obtained.
9. A storage medium having stored thereon a computer program which, when run, performs the parameter adjustment method of any one of claims 1 to 8.
10. A terminal apparatus, comprising:
one or more processors; and
a storage means for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the parameter adjustment method of any one of claims 1 to 8.
CN202410035718.8A 2024-01-10 2024-01-10 Parameter adjustment method of electronic lock, storage medium and terminal device Pending CN117558077A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410035718.8A CN117558077A (en) 2024-01-10 2024-01-10 Parameter adjustment method of electronic lock, storage medium and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410035718.8A CN117558077A (en) 2024-01-10 2024-01-10 Parameter adjustment method of electronic lock, storage medium and terminal device

Publications (1)

Publication Number Publication Date
CN117558077A true CN117558077A (en) 2024-02-13

Family

ID=89813060

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410035718.8A Pending CN117558077A (en) 2024-01-10 2024-01-10 Parameter adjustment method of electronic lock, storage medium and terminal device

Country Status (1)

Country Link
CN (1) CN117558077A (en)

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104670679A (en) * 2014-12-19 2015-06-03 中国印钞造币总公司 Control method and control device for mechanical lock of cash carrying bag
CN106285281A (en) * 2016-10-28 2017-01-04 北京经纬恒润科技有限公司 The anti-clamping method of a kind of automobile door lock and device
CN106485824A (en) * 2016-11-18 2017-03-08 成都雅骏新能源汽车科技股份有限公司 A kind of method and system of electric automobile remotely control car door lock
CN211647701U (en) * 2019-12-30 2020-10-09 罗国民 Passive intelligent padlock
CN212359371U (en) * 2019-12-06 2021-01-15 胡渐佳 Automatic lock reminding system
CN112593777A (en) * 2020-12-16 2021-04-02 珠海格力电器股份有限公司 Motor control method of intelligent door lock and intelligent door lock
CN114255528A (en) * 2020-09-22 2022-03-29 许宏明 Dual-control system of intelligent lock
CN114645639A (en) * 2020-12-18 2022-06-21 深圳Tcl新技术有限公司 Motor torque force adjusting method, intelligent door lock and computer readable storage medium
CN115713822A (en) * 2022-11-11 2023-02-24 深圳市兆威机电股份有限公司 Electronic lock unlocking method and device, electronic lock and readable storage medium
CN218668919U (en) * 2022-09-30 2023-03-21 深圳市每开创新科技有限公司 Lock set
CN115856478A (en) * 2022-12-22 2023-03-28 德施曼机电(中国)有限公司 Method and device for monitoring running state of electronic lock, equipment and storage medium
CN115909552A (en) * 2022-10-26 2023-04-04 广东汇泰龙科技股份有限公司 Intelligent door lock control method, system and storage medium
CN116241131A (en) * 2023-03-20 2023-06-09 云丁网络技术(北京)有限公司 Electronic lock and control circuit and control method thereof
CN117115942A (en) * 2023-08-10 2023-11-24 深圳市每开创新科技有限公司 Device control method, device, passive electronic lock and storage medium

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104670679A (en) * 2014-12-19 2015-06-03 中国印钞造币总公司 Control method and control device for mechanical lock of cash carrying bag
CN106285281A (en) * 2016-10-28 2017-01-04 北京经纬恒润科技有限公司 The anti-clamping method of a kind of automobile door lock and device
CN106485824A (en) * 2016-11-18 2017-03-08 成都雅骏新能源汽车科技股份有限公司 A kind of method and system of electric automobile remotely control car door lock
CN212359371U (en) * 2019-12-06 2021-01-15 胡渐佳 Automatic lock reminding system
CN211647701U (en) * 2019-12-30 2020-10-09 罗国民 Passive intelligent padlock
CN114255528A (en) * 2020-09-22 2022-03-29 许宏明 Dual-control system of intelligent lock
CN112593777A (en) * 2020-12-16 2021-04-02 珠海格力电器股份有限公司 Motor control method of intelligent door lock and intelligent door lock
CN114645639A (en) * 2020-12-18 2022-06-21 深圳Tcl新技术有限公司 Motor torque force adjusting method, intelligent door lock and computer readable storage medium
CN218668919U (en) * 2022-09-30 2023-03-21 深圳市每开创新科技有限公司 Lock set
CN115909552A (en) * 2022-10-26 2023-04-04 广东汇泰龙科技股份有限公司 Intelligent door lock control method, system and storage medium
CN115713822A (en) * 2022-11-11 2023-02-24 深圳市兆威机电股份有限公司 Electronic lock unlocking method and device, electronic lock and readable storage medium
CN115856478A (en) * 2022-12-22 2023-03-28 德施曼机电(中国)有限公司 Method and device for monitoring running state of electronic lock, equipment and storage medium
CN116241131A (en) * 2023-03-20 2023-06-09 云丁网络技术(北京)有限公司 Electronic lock and control circuit and control method thereof
CN117115942A (en) * 2023-08-10 2023-11-24 深圳市每开创新科技有限公司 Device control method, device, passive electronic lock and storage medium

Similar Documents

Publication Publication Date Title
CN102061840B (en) Intelligent locking system and working method thereof
US11965359B2 (en) Energy harvesting arrangement and electronic locking system
US11939794B2 (en) Release mechanism, energy harvesting arrangement and electronic locking system
CN109741504B (en) Key management box, key ring, key management device and key management method
CN109653605B (en) Locking device and leasing equipment
CN110821298B (en) Locking mechanism, lock cylinder and lockset
CN110656821B (en) Electronic lock
CN117558077A (en) Parameter adjustment method of electronic lock, storage medium and terminal device
KR100851139B1 (en) Key interlock apparatus for an steering column lock device
CN117552685B (en) Electronic lock, unlocking method thereof and storage medium
CN107100448B (en) Remote control vehicle lock and remote control vehicle locking method
CN110670979B (en) Control method of electronic lock and electronic lock
CN115909552A (en) Intelligent door lock control method, system and storage medium
CN110905295B (en) Locking mechanism, lock cylinder and lockset
CN212054136U (en) Electric control dead bolt driving device
CN113027246A (en) Lock body, control method thereof and computer readable storage medium
JP2010101124A (en) Lock device for door
CN110159093B (en) Automatic anti-theft lock
CN210396408U (en) Lock core and unlocking key
WO2021072940A1 (en) Electronic lock and control method therefor
CN112396731A (en) Unlocking method and system of intelligent door lock and storage medium
CN217925364U (en) Door lock linkage device for intelligent bullet cabinet
KR102137906B1 (en) Door handle
CN217975810U (en) Automatic door lock device for intelligent bullet cabinet
CN210087017U (en) Electronic lock with built-in rotation control mechanism

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination